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
BlueThemeDev
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.activeBackground
#010E32 RGB(1, 14, 50) RGBA(1, 14, 50, 1) activityBar.activeBorder
#FFC100 RGB(255, 193, 0) RGBA(255, 193, 0, 1) activityBar.background
#17202A RGB(23, 32, 42) RGBA(23, 32, 42, 1) activityBar.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) activityBar.inactiveForeground
#505C77 RGB(80, 92, 119) RGBA(80, 92, 119, 1) editor.background
#05002C RGB(5, 0, 44) RGBA(5, 0, 44, 1) editor.foldBackground
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) editor.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editor.lineHighlightBackground
#323232 RGB(50, 50, 50) RGBA(50, 50, 50, 1) editor.selectionBackground
#004052 RGB(0, 64, 82) RGBA(0, 64, 82, 1) editorGroupHeader.tabsBackground
#001624 RGB(0, 22, 36) RGBA(0, 22, 36, 1) menu.background
#012342 RGB(1, 35, 66) RGBA(1, 35, 66, 1) menubar.selectionBackground
#001930 RGB(0, 25, 48) RGBA(0, 25, 48, 1) menubar.selectionForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) minimap.background
#00142E RGB(0, 20, 46) RGBA(0, 20, 46, 1) panel.background
#001624 RGB(0, 22, 36) RGBA(0, 22, 36, 1) sideBar.background
#212F3D RGB(33, 47, 61) RGBA(33, 47, 61, 1) sideBar.foreground
#D6DBDF RGB(214, 219, 223) RGBA(214, 219, 223, 1) sideBarSectionHeader.background
#17202A RGB(23, 32, 42) RGBA(23, 32, 42, 1) sideBarSectionHeader.foreground
#D5DBDB RGB(213, 219, 219) RGBA(213, 219, 219, 1) statusBar.background
#3C0050 RGB(60, 0, 80) RGBA(60, 0, 80, 1) statusBar.foreground
#F1F1F1 RGB(241, 241, 241) RGBA(241, 241, 241, 1) statusBar.noFolderBackground
#3C0050 RGB(60, 0, 80) RGBA(60, 0, 80, 1) tab.inactiveBackground
#00304E RGB(0, 48, 78) RGBA(0, 48, 78, 1) terminal.background
#001930 RGB(0, 25, 48) RGBA(0, 25, 48, 1) terminal.foreground
#D4EBFF RGB(212, 235, 255) RGBA(212, 235, 255, 1) terminal.selectionBackground
#C6C6C6 RGB(198, 198, 198) RGBA(198, 198, 198, 1) terminal.selectionForeground
#002575 RGB(0, 37, 117) RGBA(0, 37, 117, 1) titleBar.activeBackground
#002F3E RGB(0, 47, 62) RGBA(0, 47, 62, 1) welcomePage.background
#1C2A37 RGB(28, 42, 55) RGBA(28, 42, 55, 1) welcomePage.tileBackground
#485561 RGB(72, 85, 97) RGBA(72, 85, 97, 1) welcomePage.tileHoverBackground
#014989 RGB(1, 73, 137) RGBA(1, 73, 137, 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
#6E6C86 RGB(110, 108, 134) RGBA(110, 108, 134, 1) comment.block
#6E6C86 RGB(110, 108, 134) RGBA(110, 108, 134, 1) comment.block.documentation
#6E6C86 RGB(110, 108, 134) RGBA(110, 108, 134, 1) comment.line
#6E6C86 RGB(110, 108, 134) RGBA(110, 108, 134, 1) constant
#FAC35D RGB(250, 195, 93) RGBA(250, 195, 93, 1) constant.character
#FF3C00 RGB(255, 60, 0) RGBA(255, 60, 0, 1) constant.character.escape
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric
#FF3C00 RGB(255, 60, 0) RGBA(255, 60, 0, 1) constant.numeric.integer
#FF3C00 RGB(255, 60, 0) RGBA(255, 60, 0, 1) constant.numeric.float
#FF3C00 RGB(255, 60, 0) RGBA(255, 60, 0, 1) constant.numeric.hex
#FF3C00 RGB(255, 60, 0) RGBA(255, 60, 0, 1) constant.numeric.octal
#FF3C00 RGB(255, 60, 0) RGBA(255, 60, 0, 1) constant.other
#FAC35D RGB(250, 195, 93) RGBA(250, 195, 93, 1) constant.other.placeholder
#E2F069 RGB(226, 240, 105) RGBA(226, 240, 105, 1) entity
#00FD87 RGB(0, 253, 135) RGBA(0, 253, 135, 1) entity.name
#00FD87 RGB(0, 253, 135) RGBA(0, 253, 135, 1) entity.name.class
#00FD87 RGB(0, 253, 135) RGBA(0, 253, 135, 1) entity.name.function
#00E1FF RGB(0, 225, 255) RGBA(0, 225, 255, 1) entity.name.method
#00FD87 RGB(0, 253, 135) RGBA(0, 253, 135, 1) entity.name.namespace
#00FD87 RGB(0, 253, 135) RGBA(0, 253, 135, 1) entity.name.section
#00FD87 RGB(0, 253, 135) RGBA(0, 253, 135, 1) entity.name.selector
#00FD87 RGB(0, 253, 135) RGBA(0, 253, 135, 1) entity.name.tag
#FF565E RGB(255, 86, 94) RGBA(255, 86, 94, 1) entity.name.type
#00FD87 RGB(0, 253, 135) RGBA(0, 253, 135, 1) entity.name.type.enum
#00FD87 RGB(0, 253, 135) RGBA(0, 253, 135, 1) entity.name.type.interface
#00FD87 RGB(0, 253, 135) RGBA(0, 253, 135, 1) entity.name.type.struct
#00FD87 RGB(0, 253, 135) RGBA(0, 253, 135, 1) entity.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.attribute-name
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.inherited-class
#CBFF7D RGB(203, 255, 125) RGBA(203, 255, 125, 1) invalid
#FC395A RGB(252, 57, 90) RGBA(252, 57, 90, 1) invalid.deprecated
#FC395A RGB(252, 57, 90) RGBA(252, 57, 90, 1) invalid.illegal
#FC395A RGB(252, 57, 90) RGBA(252, 57, 90, 1) keyword
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) keyword.control
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) keyword.control.flow
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) keyword.operator
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) keyword.operator.new
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) keyword.operator.assignment
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) keyword.operator.arithmetic
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) keyword.operator.logical
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) keyword.other
#FF3C00 RGB(255, 60, 0) RGBA(255, 60, 0, 1) markup
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.bold
#FA232E RGB(250, 35, 46) RGBA(250, 35, 46, 1) markup.changed
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.deleted
#EC7E90 RGB(236, 126, 144) RGBA(236, 126, 144, 1) markup.heading
#CBFF7D RGB(203, 255, 125) RGBA(203, 255, 125, 1) markup.inline.raw
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.inserted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) markup.italic
#FA232E RGB(250, 35, 46) RGBA(250, 35, 46, 1) markup.raw
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.underline
#DD1608 RGB(221, 22, 8) RGBA(221, 22, 8, 1) markup.underline.link
#DD1608 RGB(221, 22, 8) RGBA(221, 22, 8, 1) meta
#53575A RGB(83, 87, 90) RGBA(83, 87, 90, 1) meta.function-call
#00E1FF RGB(0, 225, 255) RGBA(0, 225, 255, 1) meta.tag
#58A6C5 RGB(88, 166, 197) RGBA(88, 166, 197, 1) punctuation.definition.bracket
#58A6C5 RGB(88, 166, 197) RGBA(88, 166, 197, 1) punctuation.definition.comment
#6E6C86 RGB(110, 108, 134) RGBA(110, 108, 134, 1) punctuation.definition.string.begin
#58A6C5 RGB(88, 166, 197) RGBA(88, 166, 197, 1) punctuation.definition.string.end
#58A6C5 RGB(88, 166, 197) RGBA(88, 166, 197, 1) punctuation.separator
#58A6C5 RGB(88, 166, 197) RGBA(88, 166, 197, 1) punctuation.separator.continuation
#58A6C5 RGB(88, 166, 197) RGBA(88, 166, 197, 1) punctuation.terminator
#58A6C5 RGB(88, 166, 197) RGBA(88, 166, 197, 1) storage
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) storage.modifier
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) storage.type
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) string
#FA232E RGB(250, 35, 46) RGBA(250, 35, 46, 1) string.interpolated
#FA232E RGB(250, 35, 46) RGBA(250, 35, 46, 1) string.other
#FA232E RGB(250, 35, 46) RGBA(250, 35, 46, 1) string.quoted
#FA232E RGB(250, 35, 46) RGBA(250, 35, 46, 1) string.quoted.double
#FA232E RGB(250, 35, 46) RGBA(250, 35, 46, 1) string.quoted.other
#FA232E RGB(250, 35, 46) RGBA(250, 35, 46, 1) string.quoted.single
#FA232E RGB(250, 35, 46) RGBA(250, 35, 46, 1) string.quoted.triple
#FA232E RGB(250, 35, 46) RGBA(250, 35, 46, 1) string.regexp
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) string.template
#FA232E RGB(250, 35, 46) RGBA(250, 35, 46, 1) string.unquoted
#FA232E RGB(250, 35, 46) RGBA(250, 35, 46, 1) support
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) support.class
#FFCD71 RGB(255, 205, 113) RGBA(255, 205, 113, 1) support.constant
#FF3C00 RGB(255, 60, 0) RGBA(255, 60, 0, 1) support.function
#00E1FF RGB(0, 225, 255) RGBA(0, 225, 255, 1) support.other
#FFCD71 RGB(255, 205, 113) RGBA(255, 205, 113, 1) support.type
#8CC3D8 RGB(140, 195, 216) RGBA(140, 195, 216, 1) support.type.primitive
#8CC3D8 RGB(140, 195, 216) RGBA(140, 195, 216, 1) support.type.property-name
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) variable
#E2F069 RGB(226, 240, 105) RGBA(226, 240, 105, 1) variable.function
#00E1FF RGB(0, 225, 255) RGBA(0, 225, 255, 1) variable.language
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.name
#E2F069 RGB(226, 240, 105) RGBA(226, 240, 105, 1) variable.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.other.constant
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.other.property
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.other.readwrite
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.parameter
#FF3C00 RGB(255, 60, 0) RGBA(255, 60, 0, 1)