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
Dim Fire Dusk
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.activeBorder
#5A4A3A RGB(90, 74, 58) RGBA(90, 74, 58, 1) activityBar.background
#212121 RGB(33, 33, 33) RGBA(33, 33, 33, 1) activityBar.foreground
#B1B1B1 RGB(177, 177, 177) RGBA(177, 177, 177, 1) activityBar.inactiveForeground
#616161 RGB(97, 97, 97) RGBA(97, 97, 97, 1) activityBarBadge.background
#616161 RGB(97, 97, 97) RGBA(97, 97, 97, 1) activityBarBadge.foreground
#2B2B2B RGB(43, 43, 43) RGBA(43, 43, 43, 1) button.background
#5A4A3A RGB(90, 74, 58) RGBA(90, 74, 58, 1) editor.background
#212121 RGB(33, 33, 33) RGBA(33, 33, 33, 1) editor.foreground
#B1B1B1 RGB(177, 177, 177) RGBA(177, 177, 177, 1) editor.lineHighlightBackground
#2B2B2B RGB(43, 43, 43) RGBA(43, 43, 43, 1) editor.selectionBackground
#2B2B2B RGB(43, 43, 43) RGBA(43, 43, 43, 1) editor.symbolHighlightBackground
#4F4F4FD0 RGB(79, 79, 79) RGBA(79, 79, 79, 0.816) editor.wordHighlightBackground
#4F4F4FD0 RGB(79, 79, 79) RGBA(79, 79, 79, 0.816) editorGutter.addedBackground
#BFD088 RGB(191, 208, 136) RGBA(191, 208, 136, 1) editorGutter.deletedBackground
#DB7857 RGB(219, 120, 87) RGBA(219, 120, 87, 1) editorGutter.modifiedBackground
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) editorInlayHint.background
#2B2B2B RGB(43, 43, 43) RGBA(43, 43, 43, 1) editorInlayHint.foreground
#616161 RGB(97, 97, 97) RGBA(97, 97, 97, 1) focusBorder
#5A4A3A RGB(90, 74, 58) RGBA(90, 74, 58, 1) list.activeSelectionBackground
#4F4F4F RGB(79, 79, 79) RGBA(79, 79, 79, 1) list.activeSelectionForeground
#D1D1D1 RGB(209, 209, 209) RGBA(209, 209, 209, 1) list.inactiveSelectionBackground
#2B2B2B RGB(43, 43, 43) RGBA(43, 43, 43, 1) list.inactiveSelectionForeground
#D1D1D1 RGB(209, 209, 209) RGBA(209, 209, 209, 1) menu.background
#212121 RGB(33, 33, 33) RGBA(33, 33, 33, 1) scrollbarSlider.background
#2B2B2B RGB(43, 43, 43) RGBA(43, 43, 43, 1) selection.background
#2B2B2B RGB(43, 43, 43) RGBA(43, 43, 43, 1) sideBar.background
#212121 RGB(33, 33, 33) RGBA(33, 33, 33, 1) sideBar.foreground
#B1B1B1 RGB(177, 177, 177) RGBA(177, 177, 177, 1) sideBarTitle.foreground
#616161 RGB(97, 97, 97) RGBA(97, 97, 97, 1) statusBar.background
#212121 RGB(33, 33, 33) RGBA(33, 33, 33, 1) statusBar.foreground
#616161 RGB(97, 97, 97) RGBA(97, 97, 97, 1) terminal.ansiBlack
#9BC2B2 RGB(155, 194, 178) RGBA(155, 194, 178, 1) terminal.ansiBlue
#C0B3A6 RGB(192, 179, 166) RGBA(192, 179, 166, 1) terminal.ansiBrightBlack
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) terminal.ansiBrightBlue
#C0B3A6 RGB(192, 179, 166) RGBA(192, 179, 166, 1) terminal.ansiBrightCyan
#C49EAD RGB(196, 158, 173) RGBA(196, 158, 173, 1) terminal.ansiBrightGreen
#AD7777 RGB(173, 119, 119) RGBA(173, 119, 119, 1) terminal.ansiBrightMagenta
#DB7857 RGB(219, 120, 87) RGBA(219, 120, 87, 1) terminal.ansiBrightRed
#BFD088 RGB(191, 208, 136) RGBA(191, 208, 136, 1) terminal.ansiBrightWhite
#EFEFEF RGB(239, 239, 239) RGBA(239, 239, 239, 1) terminal.ansiBrightYellow
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) terminal.ansiCyan
#C49EAD RGB(196, 158, 173) RGBA(196, 158, 173, 1) terminal.ansiGreen
#AD7777 RGB(173, 119, 119) RGBA(173, 119, 119, 1) terminal.ansiMagenta
#DB7857 RGB(219, 120, 87) RGBA(219, 120, 87, 1) terminal.ansiRed
#BFD088 RGB(191, 208, 136) RGBA(191, 208, 136, 1) terminal.ansiWhite
#D1D1D1 RGB(209, 209, 209) RGBA(209, 209, 209, 1) terminal.ansiYellow
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) terminal.foreground
#D1D1D1 RGB(209, 209, 209) RGBA(209, 209, 209, 1) titleBar.activeBackground
#212121 RGB(33, 33, 33) RGBA(33, 33, 33, 1) titleBar.activeForeground
#616161 RGB(97, 97, 97) RGBA(97, 97, 97, 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
#616161 RGB(97, 97, 97) RGBA(97, 97, 97, 1) comment.block
#616161 RGB(97, 97, 97) RGBA(97, 97, 97, 1) comment.block.documentation
#616161 RGB(97, 97, 97) RGBA(97, 97, 97, 1) comment.line
#616161 RGB(97, 97, 97) RGBA(97, 97, 97, 1) constant
#C49EAD RGB(196, 158, 173) RGBA(196, 158, 173, 1) constant.character
#C0B3A6 RGB(192, 179, 166) RGBA(192, 179, 166, 1) constant.character.escape
#C0B3A6 RGB(192, 179, 166) RGBA(192, 179, 166, 1) constant.numeric
#C0B3A6 RGB(192, 179, 166) RGBA(192, 179, 166, 1) constant.numeric.integer
#C0B3A6 RGB(192, 179, 166) RGBA(192, 179, 166, 1) constant.numeric.float
#C0B3A6 RGB(192, 179, 166) RGBA(192, 179, 166, 1) constant.numeric.hex
#C0B3A6 RGB(192, 179, 166) RGBA(192, 179, 166, 1) constant.numeric.octal
#C0B3A6 RGB(192, 179, 166) RGBA(192, 179, 166, 1) constant.other
#C49EAD RGB(196, 158, 173) RGBA(196, 158, 173, 1) constant.other.placeholder
#D1D1D1 RGB(209, 209, 209) RGBA(209, 209, 209, 1) entity
#9BC2B2 RGB(155, 194, 178) RGBA(155, 194, 178, 1) entity.name
#9BC2B2 RGB(155, 194, 178) RGBA(155, 194, 178, 1) entity.name.class
#9BC2B2 RGB(155, 194, 178) RGBA(155, 194, 178, 1) entity.name.function
#C0BAA4 RGB(192, 186, 164) RGBA(192, 186, 164, 1) entity.name.method
#9BC2B2 RGB(155, 194, 178) RGBA(155, 194, 178, 1) entity.name.namespace
#9BC2B2 RGB(155, 194, 178) RGBA(155, 194, 178, 1) entity.name.section
#9BC2B2 RGB(155, 194, 178) RGBA(155, 194, 178, 1) entity.name.selector
#9BC2B2 RGB(155, 194, 178) RGBA(155, 194, 178, 1) entity.name.tag
#C0BAA4 RGB(192, 186, 164) RGBA(192, 186, 164, 1) entity.name.type
#9BC2B2 RGB(155, 194, 178) RGBA(155, 194, 178, 1) entity.name.type.enum
#9BC2B2 RGB(155, 194, 178) RGBA(155, 194, 178, 1) entity.name.type.interface
#9BC2B2 RGB(155, 194, 178) RGBA(155, 194, 178, 1) entity.name.type.struct
#9BC2B2 RGB(155, 194, 178) RGBA(155, 194, 178, 1) entity.other
#C0BAA4 RGB(192, 186, 164) RGBA(192, 186, 164, 1) entity.other.attribute-name
#C0BAA4 RGB(192, 186, 164) RGBA(192, 186, 164, 1) entity.other.inherited-class
#D1D1D1 RGB(209, 209, 209) RGBA(209, 209, 209, 1) keyword
#AD7777 RGB(173, 119, 119) RGBA(173, 119, 119, 1) keyword.control
#C0BAA4 RGB(192, 186, 164) RGBA(192, 186, 164, 1) keyword.control.flow
#C0BAA4 RGB(192, 186, 164) RGBA(192, 186, 164, 1) keyword.operator
#AD7777 RGB(173, 119, 119) RGBA(173, 119, 119, 1) keyword.operator.new
#AD7777 RGB(173, 119, 119) RGBA(173, 119, 119, 1) keyword.operator.assignment
#AD7777 RGB(173, 119, 119) RGBA(173, 119, 119, 1) keyword.operator.arithmetic
#AD7777 RGB(173, 119, 119) RGBA(173, 119, 119, 1) keyword.operator.logical
#AD7777 RGB(173, 119, 119) RGBA(173, 119, 119, 1) keyword.other
#AD7777 RGB(173, 119, 119) RGBA(173, 119, 119, 1) markup
#EFEFEF RGB(239, 239, 239) RGBA(239, 239, 239, 1) markup.bold
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) markup.changed
#D1D1D1 RGB(209, 209, 209) RGBA(209, 209, 209, 1) markup.deleted
#AD7777 RGB(173, 119, 119) RGBA(173, 119, 119, 1) markup.heading
#C0B3A6 RGB(192, 179, 166) RGBA(192, 179, 166, 1) markup.inline.raw
#D1D1D1 RGB(209, 209, 209) RGBA(209, 209, 209, 1) markup.inserted
#C0B3A6 RGB(192, 179, 166) RGBA(192, 179, 166, 1) markup.italic
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) markup.underline
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) markup.underline.link
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) meta
#D1D1D1 RGB(209, 209, 209) RGBA(209, 209, 209, 1) meta.function-call
#C0BAA4 RGB(192, 186, 164) RGBA(192, 186, 164, 1) meta.tag
#D1D1D1 RGB(209, 209, 209) RGBA(209, 209, 209, 1) punctuation.definition.bracket
#D1D1D1 RGB(209, 209, 209) RGBA(209, 209, 209, 1) punctuation.definition.comment
#616161 RGB(97, 97, 97) RGBA(97, 97, 97, 1) punctuation.definition.string.begin
#D1D1D1 RGB(209, 209, 209) RGBA(209, 209, 209, 1) punctuation.definition.string.end
#D1D1D1 RGB(209, 209, 209) RGBA(209, 209, 209, 1) punctuation.separator
#D1D1D1 RGB(209, 209, 209) RGBA(209, 209, 209, 1) punctuation.separator.continuation
#D1D1D1 RGB(209, 209, 209) RGBA(209, 209, 209, 1) punctuation.terminator
#D1D1D1 RGB(209, 209, 209) RGBA(209, 209, 209, 1) storage
#AD7777 RGB(173, 119, 119) RGBA(173, 119, 119, 1) storage.modifier
#AD7777 RGB(173, 119, 119) RGBA(173, 119, 119, 1) storage.type
#AD7777 RGB(173, 119, 119) RGBA(173, 119, 119, 1) string
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) string.interpolated
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) string.other
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) string.quoted
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) string.quoted.double
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) string.quoted.other
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) string.quoted.single
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) string.quoted.triple
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) string.regexp
#C0B3A6 RGB(192, 179, 166) RGBA(192, 179, 166, 1) string.template
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) string.unquoted
#ACB6CA RGB(172, 182, 202) RGBA(172, 182, 202, 1) support
#C0BAA4 RGB(192, 186, 164) RGBA(192, 186, 164, 1) support.class
#C0BAA4 RGB(192, 186, 164) RGBA(192, 186, 164, 1) support.constant
#C0B3A6 RGB(192, 179, 166) RGBA(192, 179, 166, 1) support.function
#C0BAA4 RGB(192, 186, 164) RGBA(192, 186, 164, 1) support.other
#D1D1D1 RGB(209, 209, 209) RGBA(209, 209, 209, 1) support.type
#D1D1D1 RGB(209, 209, 209) RGBA(209, 209, 209, 1) support.type.primitive
#D1D1D1 RGB(209, 209, 209) RGBA(209, 209, 209, 1) support.type.property-name
#D1D1D1 RGB(209, 209, 209) RGBA(209, 209, 209, 1) variable
#D1D1D1 RGB(209, 209, 209) RGBA(209, 209, 209, 1) variable.function
#C0BAA4 RGB(192, 186, 164) RGBA(192, 186, 164, 1) variable.language
#D1D1D1 RGB(209, 209, 209) RGBA(209, 209, 209, 1) variable.name
#D1D1D1 RGB(209, 209, 209) RGBA(209, 209, 209, 1) variable.other
#D1D1D1 RGB(209, 209, 209) RGBA(209, 209, 209, 1) variable.other.constant
#D1D1D1 RGB(209, 209, 209) RGBA(209, 209, 209, 1) variable.other.property
#D1D1D1 RGB(209, 209, 209) RGBA(209, 209, 209, 1) variable.other.readwrite
#D1D1D1 RGB(209, 209, 209) RGBA(209, 209, 209, 1) variable.parameter
#D1D1D1 RGB(209, 209, 209) RGBA(209, 209, 209, 1)