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
Semantica
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#F0F0F0 RGB(240, 240, 240) RGBA(240, 240, 240, 1) activityBar.foreground
#007ACC RGB(0, 122, 204) RGBA(0, 122, 204, 1) editor.background
#F7F7F7 RGB(247, 247, 247) RGBA(247, 247, 247, 1) editor.findMatchBackground
#FFBC5D RGB(255, 188, 93) RGBA(255, 188, 93, 1) editor.findMatchHighlightBackground
#FFE9A6 RGB(255, 233, 166) RGBA(255, 233, 166, 1) editor.foreground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) editor.lineHighlightBackground
#F0F0F0 RGB(240, 240, 240) RGBA(240, 240, 240, 1) editor.selectionBackground
#BFDBFE RGB(191, 219, 254) RGBA(191, 219, 254, 1) editor.selectionHighlightBackground
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) editorCursor.foreground
#007ACC RGB(0, 122, 204) RGBA(0, 122, 204, 1) editorGroupHeader.tabsBackground
#F0F0F0 RGB(240, 240, 240) RGBA(240, 240, 240, 1) editorLineNumber.foreground
#9DA39A RGB(157, 163, 154) RGBA(157, 163, 154, 1) panel.background
#F0F0F0 RGB(240, 240, 240) RGBA(240, 240, 240, 1) sideBar.background
#F0F0F0 RGB(240, 240, 240) RGBA(240, 240, 240, 1) statusBar.background
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) statusBar.debuggingBackground
#FFBC5D RGB(255, 188, 93) RGBA(255, 188, 93, 1) statusBar.debuggingForeground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) statusBar.foreground
#474747 RGB(71, 71, 71) RGBA(71, 71, 71, 1) statusBar.noFolderBackground
#7A3E9D RGB(122, 62, 157) RGBA(122, 62, 157, 1) statusBar.noFolderForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) terminal.ansiBlack
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) terminal.ansiBlue
#325CC0 RGB(50, 92, 192) RGBA(50, 92, 192, 1) terminal.ansiBrightBlack
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) terminal.ansiBrightBlue
#007ACC RGB(0, 122, 204) RGBA(0, 122, 204, 1) terminal.ansiBrightCyan
#00AACB RGB(0, 170, 203) RGBA(0, 170, 203, 1) terminal.ansiBrightGreen
#60CB00 RGB(96, 203, 0) RGBA(96, 203, 0, 1) terminal.ansiBrightMagenta
#E64CE6 RGB(230, 76, 230) RGBA(230, 76, 230, 1) terminal.ansiBrightRed
#F05050 RGB(240, 80, 80) RGBA(240, 80, 80, 1) terminal.ansiBrightWhite
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) terminal.ansiBrightYellow
#FFBC5D RGB(255, 188, 93) RGBA(255, 188, 93, 1) terminal.ansiCyan
#0083B2 RGB(0, 131, 178) RGBA(0, 131, 178, 1) terminal.ansiGreen
#448C27 RGB(68, 140, 39) RGBA(68, 140, 39, 1) terminal.ansiMagenta
#7A3E9D RGB(122, 62, 157) RGBA(122, 62, 157, 1) terminal.ansiRed
#AA3731 RGB(170, 55, 49) RGBA(170, 55, 49, 1) terminal.ansiWhite
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) terminal.ansiYellow
#CB9000 RGB(203, 144, 0) RGBA(203, 144, 0, 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
#008000 RGB(0, 128, 0) RGBA(0, 128, 0, 1) comment.block
#008000 RGB(0, 128, 0) RGBA(0, 128, 0, 1) comment.block.documentation
#008000 RGB(0, 128, 0) RGBA(0, 128, 0, 1) comment.line
#008000 RGB(0, 128, 0) RGBA(0, 128, 0, 1) constant
#7A3E9D RGB(122, 62, 157) RGBA(122, 62, 157, 1) constant.character
#5257E7 RGB(82, 87, 231) RGBA(82, 87, 231, 1) constant.character.escape
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) constant.numeric
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) constant.numeric.integer
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) constant.numeric.float
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) constant.numeric.hex
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) constant.numeric.octal
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) constant.other
#7A3E9D RGB(122, 62, 157) RGBA(122, 62, 157, 1) constant.other.placeholder
#7A3E9D RGB(122, 62, 157) RGBA(122, 62, 157, 1) constant.regexp
#811F3F RGB(129, 31, 63) RGBA(129, 31, 63, 1) constant.rgb-value
#7A3E9D RGB(122, 62, 157) RGBA(122, 62, 157, 1) entity
#066555 RGB(6, 101, 85) RGBA(6, 101, 85, 1) entity.name
#325CC0 RGB(50, 92, 192) RGBA(50, 92, 192, 1) entity.name.class
#367C96 RGB(54, 124, 150) RGBA(54, 124, 150, 1) entity.name.function
#795E26 RGB(121, 94, 38) RGBA(121, 94, 38, 1) entity.name.method
#325CC0 RGB(50, 92, 192) RGBA(50, 92, 192, 1) entity.name.namespace
#325CC0 RGB(50, 92, 192) RGBA(50, 92, 192, 1) entity.name.section
#325CC0 RGB(50, 92, 192) RGBA(50, 92, 192, 1) entity.name.selector
#800000 RGB(128, 0, 0) RGBA(128, 0, 0, 1) entity.name.tag
#800000 RGB(128, 0, 0) RGBA(128, 0, 0, 1) entity.name.type
#367C96 RGB(54, 124, 150) RGBA(54, 124, 150, 1) entity.name.type.enum
#367C96 RGB(54, 124, 150) RGBA(54, 124, 150, 1) entity.name.type.interface
#367C96 RGB(54, 124, 150) RGBA(54, 124, 150, 1) entity.name.type.struct
#367C96 RGB(54, 124, 150) RGBA(54, 124, 150, 1) entity.other
#066555 RGB(6, 101, 85) RGBA(6, 101, 85, 1) entity.other.attribute-name
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) entity.other.inherited-class
#066555 RGB(6, 101, 85) RGBA(6, 101, 85, 1) invalid
#CD3131 RGB(205, 49, 49) RGBA(205, 49, 49, 1) invalid.deprecated
#CD3131 RGB(205, 49, 49) RGBA(205, 49, 49, 1) invalid.illegal
#CD3131 RGB(205, 49, 49) RGBA(205, 49, 49, 1) keyword
#5257E7 RGB(82, 87, 231) RGBA(82, 87, 231, 1) keyword.control
#5257E7 RGB(82, 87, 231) RGBA(82, 87, 231, 1) keyword.control.flow
#5257E7 RGB(82, 87, 231) RGBA(82, 87, 231, 1) keyword.operator
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) keyword.operator.new
#5257E7 RGB(82, 87, 231) RGBA(82, 87, 231, 1) keyword.operator.assignment
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) keyword.operator.arithmetic
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) keyword.operator.logical
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) keyword.other
#5257E7 RGB(82, 87, 231) RGBA(82, 87, 231, 1) markup
#C13E1E RGB(193, 62, 30) RGBA(193, 62, 30, 1) markup.bold
#000080 RGB(0, 0, 128) RGBA(0, 0, 128, 1) markup.changed
#0451A5 RGB(4, 81, 165) RGBA(4, 81, 165, 1) markup.deleted
#C13E1E RGB(193, 62, 30) RGBA(193, 62, 30, 1) markup.heading
#800000 RGB(128, 0, 0) RGBA(128, 0, 0, 1) markup.inline.raw
#800000 RGB(128, 0, 0) RGBA(128, 0, 0, 1) markup.inserted
#09885A RGB(9, 136, 90) RGBA(9, 136, 90, 1) meta
#C13E1E RGB(193, 62, 30) RGBA(193, 62, 30, 1) meta.preprocessor
#5257E7 RGB(82, 87, 231) RGBA(82, 87, 231, 1) meta.return-type
#367C96 RGB(54, 124, 150) RGBA(54, 124, 150, 1) meta.type
#066555 RGB(6, 101, 85) RGBA(6, 101, 85, 1) punctuation.definition.bracket
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) punctuation.definition.comment
#008000 RGB(0, 128, 0) RGBA(0, 128, 0, 1) punctuation.definition.string.begin
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) punctuation.definition.string.end
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) punctuation.separator
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) punctuation.separator.continuation
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) punctuation.terminator
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) storage
#5257E7 RGB(82, 87, 231) RGBA(82, 87, 231, 1) storage.modifier
#5257E7 RGB(82, 87, 231) RGBA(82, 87, 231, 1) storage.type
#5257E7 RGB(82, 87, 231) RGBA(82, 87, 231, 1) string
#C13E1E RGB(193, 62, 30) RGBA(193, 62, 30, 1) string.interpolated
#C13E1E RGB(193, 62, 30) RGBA(193, 62, 30, 1) string.other
#C13E1E RGB(193, 62, 30) RGBA(193, 62, 30, 1) string.quoted
#C13E1E RGB(193, 62, 30) RGBA(193, 62, 30, 1) string.quoted.double
#C13E1E RGB(193, 62, 30) RGBA(193, 62, 30, 1) string.quoted.other
#C13E1E RGB(193, 62, 30) RGBA(193, 62, 30, 1) string.quoted.single
#C13E1E RGB(193, 62, 30) RGBA(193, 62, 30, 1) string.quoted.triple
#C13E1E RGB(193, 62, 30) RGBA(193, 62, 30, 1) string.regexp
#811F3F RGB(129, 31, 63) RGBA(129, 31, 63, 1) string.template
#C13E1E RGB(193, 62, 30) RGBA(193, 62, 30, 1) string.unquoted
#C13E1E RGB(193, 62, 30) RGBA(193, 62, 30, 1) support
#D16969 RGB(209, 105, 105) RGBA(209, 105, 105, 1) support.class
#367C96 RGB(54, 124, 150) RGBA(54, 124, 150, 1) support.constant
#066555 RGB(6, 101, 85) RGBA(6, 101, 85, 1) support.function
#795E26 RGB(121, 94, 38) RGBA(121, 94, 38, 1) support.other
#D16969 RGB(209, 105, 105) RGBA(209, 105, 105, 1) support.type
#367C96 RGB(54, 124, 150) RGBA(54, 124, 150, 1) support.type.primitive
#367C96 RGB(54, 124, 150) RGBA(54, 124, 150, 1) support.type.property-name
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) support.variable
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) variable
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) variable.function
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) variable.language
#1F377F RGB(31, 55, 127) RGBA(31, 55, 127, 1) variable.name
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) variable.other
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) variable.other.constant
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) variable.other.property
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) variable.other.readwrite
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) variable.parameter
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1)