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
Golden-Blue Color Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#001733 RGB(0, 23, 51) RGBA(0, 23, 51, 1) badge.background
#BBDAFFCC RGB(187, 218, 255) RGBA(187, 218, 255, 0.8) badge.foreground
#001733 RGB(0, 23, 51) RGBA(0, 23, 51, 1) debugToolBar.background
#001C40 RGB(0, 28, 64) RGBA(0, 28, 64, 1) dropdown.background
#001733 RGB(0, 23, 51) RGBA(0, 23, 51, 1) editor.background
#002451 RGB(0, 36, 81) RGBA(0, 36, 81, 1) editor.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editor.lineHighlightBackground
#00346E RGB(0, 52, 110) RGBA(0, 52, 110, 1) editor.selectionBackground
#003F8E RGB(0, 63, 142) RGBA(0, 63, 142, 1) editorCursor.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editorGroup.border
#404F7D RGB(64, 79, 125) RGBA(64, 79, 125, 1) editorGroup.dropBackground
#25375DAA RGB(37, 55, 93) RGBA(37, 55, 93, 0.667) editorGroupHeader.tabsBackground
#001733 RGB(0, 23, 51) RGBA(0, 23, 51, 1) editorHoverWidget.background
#001C40 RGB(0, 28, 64) RGBA(0, 28, 64, 1) editorHoverWidget.border
#FFFFFF44 RGB(255, 255, 255) RGBA(255, 255, 255, 0.267) editorLineNumber.activeForeground
#949494 RGB(148, 148, 148) RGBA(148, 148, 148, 1) editorWhitespace.foreground
#404F7D RGB(64, 79, 125) RGBA(64, 79, 125, 1) editorWidget.background
#001C40 RGB(0, 28, 64) RGBA(0, 28, 64, 1) errorForeground
#A92049 RGB(169, 32, 73) RGBA(169, 32, 73, 1) focusBorder
#BBDAFF RGB(187, 218, 255) RGBA(187, 218, 255, 1) input.background
#001733 RGB(0, 23, 51) RGBA(0, 23, 51, 1) list.activeSelectionBackground
#FFFFFF60 RGB(255, 255, 255) RGBA(255, 255, 255, 0.376) list.focusBackground
#FFFFFF60 RGB(255, 255, 255) RGBA(255, 255, 255, 0.376) list.highlightForeground
#BBDAFF RGB(187, 218, 255) RGBA(187, 218, 255, 1) list.hoverBackground
#FFFFFF30 RGB(255, 255, 255) RGBA(255, 255, 255, 0.188) list.inactiveSelectionBackground
#FFFFFF40 RGB(255, 255, 255) RGBA(255, 255, 255, 0.251) minimap.selectionHighlight
#003F8E RGB(0, 63, 142) RGBA(0, 63, 142, 1) panel.border
#FFC66D RGB(255, 198, 109) RGBA(255, 198, 109, 1) peekViewResult.background
#001C40 RGB(0, 28, 64) RGBA(0, 28, 64, 1) pickerGroup.foreground
#BBDAFF RGB(187, 218, 255) RGBA(187, 218, 255, 1) progressBar.background
#BBDAFFCC RGB(187, 218, 255) RGBA(187, 218, 255, 0.8) sideBar.background
#001C40 RGB(0, 28, 64) RGBA(0, 28, 64, 1) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) statusBar.background
#001126 RGB(0, 17, 38) RGBA(0, 17, 38, 1) statusBar.debuggingBackground
#001126 RGB(0, 17, 38) RGBA(0, 17, 38, 1) statusBar.noFolderBackground
#001126 RGB(0, 17, 38) RGBA(0, 17, 38, 1) statusBarItem.remoteBackground
#0E639C RGB(14, 99, 156) RGBA(14, 99, 156, 1) tab.inactiveBackground
#001C40 RGB(0, 28, 64) RGBA(0, 28, 64, 1) tab.modifiedBorder
#FFEEAD RGB(255, 238, 173) RGBA(255, 238, 173, 1) terminal.ansiBlack
#063164 RGB(6, 49, 100) RGBA(6, 49, 100, 1) terminal.ansiBlue
#6D9CBE RGB(109, 156, 190) RGBA(109, 156, 190, 1) terminal.ansiBrightBlack
#5A647E RGB(90, 100, 126) RGBA(90, 100, 126, 1) terminal.ansiBrightBlue
#6D9CBE RGB(109, 156, 190) RGBA(109, 156, 190, 1) terminal.ansiBrightCyan
#519F50 RGB(81, 159, 80) RGBA(81, 159, 80, 1) terminal.ansiBrightGreen
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) terminal.ansiBrightMagenta
#B6B3EB RGB(182, 179, 235) RGBA(182, 179, 235, 1) terminal.ansiBrightRed
#DA4939 RGB(218, 73, 57) RGBA(218, 73, 57, 1) terminal.ansiBrightWhite
#F9F7F3 RGB(249, 247, 243) RGBA(249, 247, 243, 1) terminal.ansiBrightYellow
#FFC66D RGB(255, 198, 109) RGBA(255, 198, 109, 1) terminal.ansiCyan
#519F50 RGB(81, 159, 80) RGBA(81, 159, 80, 1) terminal.ansiGreen
#A5C261 RGB(165, 194, 97) RGBA(165, 194, 97, 1) terminal.ansiMagenta
#B6B3EB RGB(182, 179, 235) RGBA(182, 179, 235, 1) terminal.ansiRed
#DA4939 RGB(218, 73, 57) RGBA(218, 73, 57, 1) terminal.ansiWhite
#E6E1DC RGB(230, 225, 220) RGBA(230, 225, 220, 1) terminal.ansiYellow
#FFC66D RGB(255, 198, 109) RGBA(255, 198, 109, 1) terminal.background
#063164 RGB(6, 49, 100) RGBA(6, 49, 100, 1) terminal.foreground
#E6E1DC RGB(230, 225, 220) RGBA(230, 225, 220, 1) terminalCursor.background
#E6E1DC RGB(230, 225, 220) RGBA(230, 225, 220, 1) terminalCursor.foreground
#E6E1DC RGB(230, 225, 220) RGBA(230, 225, 220, 1) titleBar.activeBackground
#001126 RGB(0, 17, 38) RGBA(0, 17, 38, 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
#7285B7 RGB(114, 133, 183) RGBA(114, 133, 183, 1) comment.block
#7285B7 RGB(114, 133, 183) RGBA(114, 133, 183, 1) comment.block.documentation
#7285B7 RGB(114, 133, 183) RGBA(114, 133, 183, 1) comment.line
#7285B7 RGB(114, 133, 183) RGBA(114, 133, 183, 1) constant
#FFD484 RGB(255, 212, 132) RGBA(255, 212, 132, 1) constant.character
#BDD5EA RGB(189, 213, 234) RGBA(189, 213, 234, 1) constant.character.escape
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric
#E7EE98 RGB(231, 238, 152) RGBA(231, 238, 152, 1) constant.numeric.integer
#E7EE98 RGB(231, 238, 152) RGBA(231, 238, 152, 1) constant.numeric.float
#E7EE98 RGB(231, 238, 152) RGBA(231, 238, 152, 1) constant.numeric.hex
#E7EE98 RGB(231, 238, 152) RGBA(231, 238, 152, 1) constant.numeric.octal
#E7EE98 RGB(231, 238, 152) RGBA(231, 238, 152, 1) constant.other
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) constant.other.placeholder
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) entity
#D1F1A9 RGB(209, 241, 169) RGBA(209, 241, 169, 1) entity.name
#D1F1A9 RGB(209, 241, 169) RGBA(209, 241, 169, 1) entity.name.class
#D1F1A9 RGB(209, 241, 169) RGBA(209, 241, 169, 1) entity.name.function
#FFE26F RGB(255, 226, 111) RGBA(255, 226, 111, 1) entity.name.method
#D1F1A9 RGB(209, 241, 169) RGBA(209, 241, 169, 1) entity.name.namespace
#D1F1A9 RGB(209, 241, 169) RGBA(209, 241, 169, 1) entity.name.section
#D1F1A9 RGB(209, 241, 169) RGBA(209, 241, 169, 1) entity.name.selector
#D1F1A9 RGB(209, 241, 169) RGBA(209, 241, 169, 1) entity.name.tag
#4FC1FF RGB(79, 193, 255) RGBA(79, 193, 255, 1) entity.name.type
#D1F1A9 RGB(209, 241, 169) RGBA(209, 241, 169, 1) entity.name.type.enum
#D1F1A9 RGB(209, 241, 169) RGBA(209, 241, 169, 1) entity.name.type.interface
#D1F1A9 RGB(209, 241, 169) RGBA(209, 241, 169, 1) entity.name.type.struct
#D1F1A9 RGB(209, 241, 169) RGBA(209, 241, 169, 1) entity.other
#FFD484 RGB(255, 212, 132) RGBA(255, 212, 132, 1) entity.other.attribute-name
#FFD484 RGB(255, 212, 132) RGBA(255, 212, 132, 1) entity.other.inherited-class
#D1F1A9 RGB(209, 241, 169) RGBA(209, 241, 169, 1) invalid
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) invalid.deprecated
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) invalid.illegal
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword
#17F1DF RGB(23, 241, 223) RGBA(23, 241, 223, 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
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) keyword.operator.new
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) keyword.operator.assignment
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) keyword.operator.arithmetic
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) keyword.operator.logical
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) keyword.other
#BDD5EA RGB(189, 213, 234) RGBA(189, 213, 234, 1) markup
#1DFCFC RGB(29, 252, 252) RGBA(29, 252, 252, 1) markup.bold
#BDD5EA RGB(189, 213, 234) RGBA(189, 213, 234, 1) markup.changed
#17F1DF RGB(23, 241, 223) RGBA(23, 241, 223, 1) markup.deleted
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.heading
#D1F1A9 RGB(209, 241, 169) RGBA(209, 241, 169, 1) markup.inline.raw
#17F1DF RGB(23, 241, 223) RGBA(23, 241, 223, 1) markup.inserted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) markup.italic
#BDD5EA RGB(189, 213, 234) RGBA(189, 213, 234, 1) markup.raw
#FFF8DB RGB(255, 248, 219) RGBA(255, 248, 219, 1) markup.underline
#BDD5EA RGB(189, 213, 234) RGBA(189, 213, 234, 1) markup.underline.link
#BDD5EA RGB(189, 213, 234) RGBA(189, 213, 234, 1) meta
#7285B7 RGB(114, 133, 183) RGBA(114, 133, 183, 1) meta.class
#FFF8DB RGB(255, 248, 219) RGBA(255, 248, 219, 1) meta.function-call
#BBDAFF RGB(187, 218, 255) RGBA(187, 218, 255, 1) meta.tag
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) punctuation.definition.bracket
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) punctuation.definition.comment
#7285B7 RGB(114, 133, 183) RGBA(114, 133, 183, 1) punctuation.definition.string.begin
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) punctuation.definition.string.end
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) punctuation.separator
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) punctuation.separator.continuation
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) punctuation.terminator
#8BE9FD RGB(139, 233, 253) RGBA(139, 233, 253, 1) storage
#17F1DF RGB(23, 241, 223) RGBA(23, 241, 223, 1) storage.modifier
#17F1DF RGB(23, 241, 223) RGBA(23, 241, 223, 1) storage.type
#17F1DF RGB(23, 241, 223) RGBA(23, 241, 223, 1) string
#BDD5EA RGB(189, 213, 234) RGBA(189, 213, 234, 1) string.interpolated
#BDD5EA RGB(189, 213, 234) RGBA(189, 213, 234, 1) string.other
#BDD5EA RGB(189, 213, 234) RGBA(189, 213, 234, 1) string.quoted
#BDD5EA RGB(189, 213, 234) RGBA(189, 213, 234, 1) string.quoted.double
#BDD5EA RGB(189, 213, 234) RGBA(189, 213, 234, 1) string.quoted.other
#BDD5EA RGB(189, 213, 234) RGBA(189, 213, 234, 1) string.quoted.single
#BDD5EA RGB(189, 213, 234) RGBA(189, 213, 234, 1) string.quoted.triple
#BDD5EA RGB(189, 213, 234) RGBA(189, 213, 234, 1) string.regexp
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) string.template
#BDD5EA RGB(189, 213, 234) RGBA(189, 213, 234, 1) string.unquoted
#BDD5EA RGB(189, 213, 234) RGBA(189, 213, 234, 1) support
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) support.class
#FFD484 RGB(255, 212, 132) RGBA(255, 212, 132, 1) support.constant
#BDD5EA RGB(189, 213, 234) RGBA(189, 213, 234, 1) support.function
#BBDAFF RGB(187, 218, 255) RGBA(187, 218, 255, 1) support.other
#FFD484 RGB(255, 212, 132) RGBA(255, 212, 132, 1) support.type
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) support.type.primitive
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) support.type.property-name
#FFD78C RGB(255, 215, 140) RGBA(255, 215, 140, 1) variable
#BDD5EA RGB(189, 213, 234) RGBA(189, 213, 234, 1) variable.function
#BDD5EA RGB(189, 213, 234) RGBA(189, 213, 234, 1) variable.language
#92EAE3 RGB(146, 234, 227) RGBA(146, 234, 227, 1) variable.name
#BDD5EA RGB(189, 213, 234) RGBA(189, 213, 234, 1) variable.other
#BDD5EA RGB(189, 213, 234) RGBA(189, 213, 234, 1) variable.other.constant
#BDD5EA RGB(189, 213, 234) RGBA(189, 213, 234, 1) variable.other.property
#BDD5EA RGB(189, 213, 234) RGBA(189, 213, 234, 1) variable.other.readwrite
#BDD5EA RGB(189, 213, 234) RGBA(189, 213, 234, 1) variable.parameter
#FFB86C RGB(255, 184, 108) RGBA(255, 184, 108, 1)