VS Code preview Full workbench mockup using this variant's colors and tokenColors.
fetchUser.tssrc/components index.ts README.md
src
components fetchUser.ts Button.tsx Modal.tsx legacy.tsx fetch Config.tsindex.ts renamed.ts staged.ts removed.ts
vendor package.json broken.ts slow.ts tsconfig.json README.md package-lock.json 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
export interface User {
id : string ;
name : string ;
role : " admin " | " member " ;
tags : string [] ;
}
/**
* Fetch user data by ID
* @ param id
* @ returns User object or null if ID is invalid
*/
export async function fetchUser ( id : string ) : Promise < User | null > {
if ( ! id ) {
return null ;
}
const response = await fetch ( ` /api/users/ ${ id }` , {
method : " GET " ,
headers : { Accept : " application/json " },
} ) ;
if ( ! response . ok ) {
throw new Error ( ` HTTP ${ response . status }` ) ;
}
return ( await response . json ()) as User ;
}
function greet ( user : User ) : string {
// Simple greeting function that uses the user's name
return ` Hello, ${ user . name } ! ` ;
}
Problems1
Output
Debug Console
Terminal
Ports
✓ fetchUser passed 12 blk
✗ Cannot find name 'user'. error ▲ warning 412 ready localhost
Ln 5, Col 12
Spaces: 2
UTF-8
LF
TypeScript
Fresh Wind Light
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.activeBackground
#C6D3D5 RGB(198, 211, 213) RGBA(198, 211, 213, 1) activityBar.background
#DAE2E4 RGB(218, 226, 228) RGBA(218, 226, 228, 1) activityBar.foreground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) activityBar.inactiveForeground
#5C7D7D RGB(92, 125, 125) RGBA(92, 125, 125, 1) activityBarBadge.background
#E96D00 RGB(233, 109, 0) RGBA(233, 109, 0, 1) badge.background
#FFD0A7 RGB(255, 208, 167) RGBA(255, 208, 167, 1) breadcrumb.background
#E3E9EB RGB(227, 233, 235) RGBA(227, 233, 235, 1) button.background
#00A073 RGB(0, 160, 115) RGBA(0, 160, 115, 1) checkbox.background
#ECF5F0 RGB(236, 245, 240) RGBA(236, 245, 240, 1) editor.background
#EFF2F3 RGB(239, 242, 243) RGBA(239, 242, 243, 1) editor.foreground
#5C5C4F RGB(92, 92, 79) RGBA(92, 92, 79, 1) editor.lineHighlightBackground
#F6F9FA RGB(246, 249, 250) RGBA(246, 249, 250, 1) editor.selectionBackground
#D0E8E7 RGB(208, 232, 231) RGBA(208, 232, 231, 1) editorGroupHeader.tabsBackground
#DAE2E4 RGB(218, 226, 228) RGBA(218, 226, 228, 1) list.activeSelectionBackground
#CBE9E9 RGB(203, 233, 233) RGBA(203, 233, 233, 1) list.activeSelectionForeground
#094040 RGB(9, 64, 64) RGBA(9, 64, 64, 1) list.activeSelectionIconForeground
#19473F RGB(25, 71, 63) RGBA(25, 71, 63, 1) list.hoverBackground
#DAE2E4 RGB(218, 226, 228) RGBA(218, 226, 228, 1) list.inactiveSelectionBackground
#C6D8D8 RGB(198, 216, 216) RGBA(198, 216, 216, 1) scrollbar.shadow
#052F354A RGB(5, 47, 53) RGBA(5, 47, 53, 0.29) scrollbarSlider.activeBackground
#95C5C5 RGB(149, 197, 197) RGBA(149, 197, 197, 1) scrollbarSlider.background
#C5D9D9 RGB(197, 217, 217) RGBA(197, 217, 217, 1) scrollbarSlider.hoverBackground
#B3C8C8 RGB(179, 200, 200) RGBA(179, 200, 200, 1) sideBar.background
#E9EEEF RGB(233, 238, 239) RGBA(233, 238, 239, 1) sideBar.border
#A9C0C0 RGB(169, 192, 192) RGBA(169, 192, 192, 1) sideBarSectionHeader.background
#DAE2E4 RGB(218, 226, 228) RGBA(218, 226, 228, 1) statusBar.background
#31B09D RGB(49, 176, 157) RGBA(49, 176, 157, 1) tab.activeBackground
#EFF2F3 RGB(239, 242, 243) RGBA(239, 242, 243, 1) tab.activeBorderTop
#00CE56 RGB(0, 206, 86) RGBA(0, 206, 86, 1) tab.border
#C6D6D6 RGB(198, 214, 214) RGBA(198, 214, 214, 1) tab.inactiveBackground
#DAE2E4 RGB(218, 226, 228) RGBA(218, 226, 228, 1) titleBar.activeBackground
#DAE2E4 RGB(218, 226, 228) RGBA(218, 226, 228, 1) titleBar.border
#C6D6D6 RGB(198, 214, 214) RGBA(198, 214, 214, 1) titleBar.inactiveBackground
#DAE2E4 RGB(218, 226, 228) RGBA(218, 226, 228, 1) tree.indentGuidesStroke
#A9C0C0 RGB(169, 192, 192) RGBA(169, 192, 192, 1)
tokenColors Foregrounds this theme assigns to the token scope catalog. A rule with only a font style is skipped, and a longer matching scope wins. Italic and bold rules are not listed — the preview above shows them in the code.
scope HEX RGB RGBA comment
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) comment.block
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) comment.block.documentation
#00AA1F RGB(0, 170, 31) RGBA(0, 170, 31, 1) comment.line
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) constant
#004A78 RGB(0, 74, 120) RGBA(0, 74, 120, 1) constant.character
#004A78 RGB(0, 74, 120) RGBA(0, 74, 120, 1) constant.character.escape
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) constant.numeric
#004A78 RGB(0, 74, 120) RGBA(0, 74, 120, 1) constant.numeric.integer
#004A78 RGB(0, 74, 120) RGBA(0, 74, 120, 1) constant.numeric.float
#004A78 RGB(0, 74, 120) RGBA(0, 74, 120, 1) constant.numeric.hex
#004A78 RGB(0, 74, 120) RGBA(0, 74, 120, 1) constant.numeric.octal
#004A78 RGB(0, 74, 120) RGBA(0, 74, 120, 1) constant.other
#47A721 RGB(71, 167, 33) RGBA(71, 167, 33, 1) constant.other.placeholder
#47A721 RGB(71, 167, 33) RGBA(71, 167, 33, 1) constant.regexp
#004A78 RGB(0, 74, 120) RGBA(0, 74, 120, 1) constant.rgb-value
#004A78 RGB(0, 74, 120) RGBA(0, 74, 120, 1) entity
#AD3F00 RGB(173, 63, 0) RGBA(173, 63, 0, 1) entity.name
#AD3F00 RGB(173, 63, 0) RGBA(173, 63, 0, 1) entity.name.class
#AD3F00 RGB(173, 63, 0) RGBA(173, 63, 0, 1) entity.name.function
#004BA7 RGB(0, 75, 167) RGBA(0, 75, 167, 1) entity.name.method
#AD3F00 RGB(173, 63, 0) RGBA(173, 63, 0, 1) entity.name.namespace
#AD3F00 RGB(173, 63, 0) RGBA(173, 63, 0, 1) entity.name.section
#AD3F00 RGB(173, 63, 0) RGBA(173, 63, 0, 1) entity.name.selector
#AD3F00 RGB(173, 63, 0) RGBA(173, 63, 0, 1) entity.name.tag
#B34500 RGB(179, 69, 0) RGBA(179, 69, 0, 1) entity.name.type
#A40341 RGB(164, 3, 65) RGBA(164, 3, 65, 1) entity.name.type.enum
#A40341 RGB(164, 3, 65) RGBA(164, 3, 65, 1) entity.name.type.interface
#A40341 RGB(164, 3, 65) RGBA(164, 3, 65, 1) entity.name.type.struct
#A40341 RGB(164, 3, 65) RGBA(164, 3, 65, 1) entity.other
#AD3F00 RGB(173, 63, 0) RGBA(173, 63, 0, 1) entity.other.attribute-name
#BB7A45 RGB(187, 122, 69) RGBA(187, 122, 69, 1) entity.other.inherited-class
#A40341 RGB(164, 3, 65) RGBA(164, 3, 65, 1) invalid
#660000 RGB(102, 0, 0) RGBA(102, 0, 0, 1) invalid.illegal
#660000 RGB(102, 0, 0) RGBA(102, 0, 0, 1) keyword
#009384 RGB(0, 147, 132) RGBA(0, 147, 132, 1) keyword.control
#009384 RGB(0, 147, 132) RGBA(0, 147, 132, 1) keyword.control.flow
#009384 RGB(0, 147, 132) RGBA(0, 147, 132, 1) keyword.operator
#D89400 RGB(216, 148, 0) RGBA(216, 148, 0, 1) keyword.operator.new
#D89400 RGB(216, 148, 0) RGBA(216, 148, 0, 1) keyword.operator.assignment
#D89400 RGB(216, 148, 0) RGBA(216, 148, 0, 1) keyword.operator.arithmetic
#D89400 RGB(216, 148, 0) RGBA(216, 148, 0, 1) keyword.operator.logical
#D89400 RGB(216, 148, 0) RGBA(216, 148, 0, 1) keyword.other
#009384 RGB(0, 147, 132) RGBA(0, 147, 132, 1) markup
#AB6526 RGB(171, 101, 38) RGBA(171, 101, 38, 1) markup.bold
#448C27 RGB(68, 140, 39) RGBA(68, 140, 39, 1) markup.changed
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) markup.deleted
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) markup.heading
#AA3731 RGB(170, 55, 49) RGBA(170, 55, 49, 1) markup.inline.raw
#AB6526 RGB(171, 101, 38) RGBA(171, 101, 38, 1) markup.inserted
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) markup.italic
#448C27 RGB(68, 140, 39) RGBA(68, 140, 39, 1) markup.list
#4B83CD RGB(75, 131, 205) RGBA(75, 131, 205, 1) markup.list.numbered
#4B83CD RGB(75, 131, 205) RGBA(75, 131, 205, 1) markup.list.unnumbered
#4B83CD RGB(75, 131, 205) RGBA(75, 131, 205, 1) markup.quote
#7A3E9D RGB(122, 62, 157) RGBA(122, 62, 157, 1) markup.raw
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) meta
#434343 RGB(67, 67, 67) RGBA(67, 67, 67, 1) meta.selector
#AD3F00 RGB(173, 63, 0) RGBA(173, 63, 0, 1) meta.tag
#083041 RGB(8, 48, 65) RGBA(8, 48, 65, 1) punctuation.definition.bracket
#AD3F00 RGB(173, 63, 0) RGBA(173, 63, 0, 1) punctuation.definition.comment
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) punctuation.definition.string.begin
#AD3F00 RGB(173, 63, 0) RGBA(173, 63, 0, 1) punctuation.definition.string.end
#AD3F00 RGB(173, 63, 0) RGBA(173, 63, 0, 1) punctuation.separator
#AD3F00 RGB(173, 63, 0) RGBA(173, 63, 0, 1) punctuation.separator.continuation
#AD3F00 RGB(173, 63, 0) RGBA(173, 63, 0, 1) punctuation.terminator
#AD3F00 RGB(173, 63, 0) RGBA(173, 63, 0, 1) storage
#009384 RGB(0, 147, 132) RGBA(0, 147, 132, 1) storage.modifier
#009384 RGB(0, 147, 132) RGBA(0, 147, 132, 1) storage.type
#263B99 RGB(38, 59, 153) RGBA(38, 59, 153, 1) string
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) string.interpolated
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) string.other
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) string.quoted
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) string.quoted.double
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) string.quoted.other
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) string.quoted.single
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) string.quoted.triple
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) string.regexp
#3C78C6 RGB(60, 120, 198) RGBA(60, 120, 198, 1) string.template
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) string.unquoted
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) support
#47A721 RGB(71, 167, 33) RGBA(71, 167, 33, 1) support.class
#A40341 RGB(164, 3, 65) RGBA(164, 3, 65, 1) support.constant
#226FCC RGB(34, 111, 204) RGBA(34, 111, 204, 1) support.function
#004BA7 RGB(0, 75, 167) RGBA(0, 75, 167, 1) support.type
#263B99 RGB(38, 59, 153) RGBA(38, 59, 153, 1) support.type.primitive
#263B99 RGB(38, 59, 153) RGBA(38, 59, 153, 1) support.type.property-name
#125599 RGB(18, 85, 153) RGBA(18, 85, 153, 1) support.variable
#00842C RGB(0, 132, 44) RGBA(0, 132, 44, 1) variable
#00842C RGB(0, 132, 44) RGBA(0, 132, 44, 1) variable.function
#00842C RGB(0, 132, 44) RGBA(0, 132, 44, 1) variable.language
#226FCC RGB(34, 111, 204) RGBA(34, 111, 204, 1) variable.name
#00842C RGB(0, 132, 44) RGBA(0, 132, 44, 1) variable.other
#00842C RGB(0, 132, 44) RGBA(0, 132, 44, 1) variable.other.constant
#00842C RGB(0, 132, 44) RGBA(0, 132, 44, 1) variable.other.property
#00842C RGB(0, 132, 44) RGBA(0, 132, 44, 1) variable.other.readwrite
#00842C RGB(0, 132, 44) RGBA(0, 132, 44, 1) variable.parameter
#00842C RGB(0, 132, 44) RGBA(0, 132, 44, 1)