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
Ilk Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#2B2B2B RGB(43, 43, 43) RGBA(43, 43, 43, 1) editor.foldBackground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) editor.foreground
#FAE6E9 RGB(250, 230, 233) RGBA(250, 230, 233, 1) editor.selectionBackground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) editorBracketHighlight.foreground1
#F0E7AF RGB(240, 231, 175) RGBA(240, 231, 175, 1) editorBracketHighlight.foreground2
#F1E9B7 RGB(241, 233, 183) RGBA(241, 233, 183, 1) editorBracketHighlight.foreground3
#F3ECBE RGB(243, 236, 190) RGBA(243, 236, 190, 1) editorBracketHighlight.foreground4
#F4EEC6 RGB(244, 238, 198) RGBA(244, 238, 198, 1) editorBracketHighlight.foreground5
#F6F1CE RGB(246, 241, 206) RGBA(246, 241, 206, 1) editorBracketHighlight.foreground6
#F7F3D6 RGB(247, 243, 214) RGBA(247, 243, 214, 1) editorBracketHighlight.unexpectedBracket.foreground
#EB7889 RGB(235, 120, 137) RGBA(235, 120, 137, 1) editorBracketMatch.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) editorBracketMatch.border
#F0E7AF RGB(240, 231, 175) RGBA(240, 231, 175, 1) editorBracketPairGuide.activeBackground1
#F0E7AF RGB(240, 231, 175) RGBA(240, 231, 175, 1) editorBracketPairGuide.activeBackground2
#F1E9B7 RGB(241, 233, 183) RGBA(241, 233, 183, 1) editorBracketPairGuide.activeBackground3
#F3ECBE RGB(243, 236, 190) RGBA(243, 236, 190, 1) editorBracketPairGuide.activeBackground4
#F4EEC6 RGB(244, 238, 198) RGBA(244, 238, 198, 1) editorBracketPairGuide.activeBackground5
#F6F1CE RGB(246, 241, 206) RGBA(246, 241, 206, 1) editorBracketPairGuide.activeBackground6
#F7F3D6 RGB(247, 243, 214) RGBA(247, 243, 214, 1) editorBracketPairGuide.background1
#666453 RGB(102, 100, 83) RGBA(102, 100, 83, 1) editorBracketPairGuide.background2
#757361 RGB(117, 115, 97) RGBA(117, 115, 97, 1) editorBracketPairGuide.background3
#858370 RGB(133, 131, 112) RGBA(133, 131, 112, 1) editorBracketPairGuide.background4
#949280 RGB(148, 146, 128) RGBA(148, 146, 128, 1) editorBracketPairGuide.background5
#A3A191 RGB(163, 161, 145) RGBA(163, 161, 145, 1) editorBracketPairGuide.background6
#B3B1A2 RGB(179, 177, 162) RGBA(179, 177, 162, 1) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) statusBar.background
#1A1A1A RGB(26, 26, 26) RGBA(26, 26, 26, 1) statusBar.debuggingBackground
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) statusBar.noFolderBackground
#212121 RGB(33, 33, 33) RGBA(33, 33, 33, 1) statusBarItem.remoteBackground
#1A1A1A RGB(26, 26, 26) RGBA(26, 26, 26, 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
#8F8F8F RGB(143, 143, 143) RGBA(143, 143, 143, 1) comment.block
#8F8F8F RGB(143, 143, 143) RGBA(143, 143, 143, 1) comment.block.documentation
#8F8F8F RGB(143, 143, 143) RGBA(143, 143, 143, 1) comment.line
#8F8F8F RGB(143, 143, 143) RGBA(143, 143, 143, 1) constant
#82BD89 RGB(130, 189, 137) RGBA(130, 189, 137, 1) constant.character
#82BD89 RGB(130, 189, 137) RGBA(130, 189, 137, 1) constant.character.escape
#D49AA1 RGB(212, 154, 161) RGBA(212, 154, 161, 1) constant.numeric
#F0E7AF RGB(240, 231, 175) RGBA(240, 231, 175, 1) constant.numeric.integer
#F0E7AF RGB(240, 231, 175) RGBA(240, 231, 175, 1) constant.numeric.float
#F0E7AF RGB(240, 231, 175) RGBA(240, 231, 175, 1) constant.numeric.hex
#F0E7AF RGB(240, 231, 175) RGBA(240, 231, 175, 1) constant.numeric.octal
#F0E7AF RGB(240, 231, 175) RGBA(240, 231, 175, 1) constant.other
#82BD89 RGB(130, 189, 137) RGBA(130, 189, 137, 1) constant.other.placeholder
#D49AA1 RGB(212, 154, 161) RGBA(212, 154, 161, 1) constant.regexp
#82BD89 RGB(130, 189, 137) RGBA(130, 189, 137, 1) constant.rgb-value
#82BD89 RGB(130, 189, 137) RGBA(130, 189, 137, 1) entity
#82AABD RGB(130, 170, 189) RGBA(130, 170, 189, 1) entity.name
#82AABD RGB(130, 170, 189) RGBA(130, 170, 189, 1) entity.name.function
#82BD89 RGB(130, 189, 137) RGBA(130, 189, 137, 1) entity.name.tag
#82AABD RGB(130, 170, 189) RGBA(130, 170, 189, 1) entity.name.type
#82AABD RGB(130, 170, 189) RGBA(130, 170, 189, 1) entity.name.type.interface
#F0C3A9 RGB(240, 195, 169) RGBA(240, 195, 169, 1) entity.name.type.struct
#82AABD RGB(130, 170, 189) RGBA(130, 170, 189, 1) entity.other
#F0C3A9 RGB(240, 195, 169) RGBA(240, 195, 169, 1) entity.other.attribute-name
#F0C3A9 RGB(240, 195, 169) RGBA(240, 195, 169, 1) invalid
#EB7889 RGB(235, 120, 137) RGBA(235, 120, 137, 1) invalid.deprecated
#EB7889 RGB(235, 120, 137) RGBA(235, 120, 137, 1) invalid.illegal
#EB7889 RGB(235, 120, 137) RGBA(235, 120, 137, 1) keyword
#F0E7AF RGB(240, 231, 175) RGBA(240, 231, 175, 1) keyword.control
#F0E7AF RGB(240, 231, 175) RGBA(240, 231, 175, 1) keyword.control.flow
#F0E7AF RGB(240, 231, 175) RGBA(240, 231, 175, 1) keyword.operator
#F0E7AF RGB(240, 231, 175) RGBA(240, 231, 175, 1) keyword.operator.new
#F0E7AF RGB(240, 231, 175) RGBA(240, 231, 175, 1) keyword.operator.assignment
#F0E7AF RGB(240, 231, 175) RGBA(240, 231, 175, 1) keyword.operator.arithmetic
#F0E7AF RGB(240, 231, 175) RGBA(240, 231, 175, 1) keyword.operator.logical
#F0E7AF RGB(240, 231, 175) RGBA(240, 231, 175, 1) keyword.other
#F0E7AF RGB(240, 231, 175) RGBA(240, 231, 175, 1) markup
#F0C3A9 RGB(240, 195, 169) RGBA(240, 195, 169, 1) markup.bold
#82BD89 RGB(130, 189, 137) RGBA(130, 189, 137, 1) markup.heading
#F0C3A9 RGB(240, 195, 169) RGBA(240, 195, 169, 1) markup.inline.raw
#F0E7AF RGB(240, 231, 175) RGBA(240, 231, 175, 1) markup.italic
#82BD89 RGB(130, 189, 137) RGBA(130, 189, 137, 1) markup.quote
#82BDB0 RGB(130, 189, 176) RGBA(130, 189, 176, 1) meta
#82AABD RGB(130, 170, 189) RGBA(130, 170, 189, 1) meta.preprocessor
#82BD89 RGB(130, 189, 137) RGBA(130, 189, 137, 1) punctuation.definition.bracket
#F0E7AF RGB(240, 231, 175) RGBA(240, 231, 175, 1) punctuation.definition.comment
#8F8F8F RGB(143, 143, 143) RGBA(143, 143, 143, 1) punctuation.definition.string.begin
#F0E7AF RGB(240, 231, 175) RGBA(240, 231, 175, 1) punctuation.definition.string.end
#F0E7AF RGB(240, 231, 175) RGBA(240, 231, 175, 1) punctuation.separator
#F0E7AF RGB(240, 231, 175) RGBA(240, 231, 175, 1) punctuation.separator.continuation
#F0E7AF RGB(240, 231, 175) RGBA(240, 231, 175, 1) punctuation.terminator
#F0E7AF RGB(240, 231, 175) RGBA(240, 231, 175, 1) storage
#F0C3A9 RGB(240, 195, 169) RGBA(240, 195, 169, 1) storage.modifier
#F0E7AF RGB(240, 231, 175) RGBA(240, 231, 175, 1) storage.type
#F0C3A9 RGB(240, 195, 169) RGBA(240, 195, 169, 1) string
#D1B8BB RGB(209, 184, 187) RGBA(209, 184, 187, 1) string.interpolated
#D1B8BB RGB(209, 184, 187) RGBA(209, 184, 187, 1) string.other
#D1B8BB RGB(209, 184, 187) RGBA(209, 184, 187, 1) string.quoted
#D1B8BB RGB(209, 184, 187) RGBA(209, 184, 187, 1) string.quoted.double
#D1B8BB RGB(209, 184, 187) RGBA(209, 184, 187, 1) string.quoted.other
#D1B8BB RGB(209, 184, 187) RGBA(209, 184, 187, 1) string.quoted.single
#D1B8BB RGB(209, 184, 187) RGBA(209, 184, 187, 1) string.quoted.triple
#D1B8BB RGB(209, 184, 187) RGBA(209, 184, 187, 1) string.regexp
#D1B8BB RGB(209, 184, 187) RGBA(209, 184, 187, 1) string.template
#D1B8BB RGB(209, 184, 187) RGBA(209, 184, 187, 1) string.unquoted
#D1B8BB RGB(209, 184, 187) RGBA(209, 184, 187, 1) support
#F0C3A9 RGB(240, 195, 169) RGBA(240, 195, 169, 1) support.function
#82BD89 RGB(130, 189, 137) RGBA(130, 189, 137, 1) support.type
#F0C3A9 RGB(240, 195, 169) RGBA(240, 195, 169, 1) support.type.primitive
#F0C3A9 RGB(240, 195, 169) RGBA(240, 195, 169, 1) support.type.property-name
#F0C3A9 RGB(240, 195, 169) RGBA(240, 195, 169, 1) variable
#FAE6E9 RGB(250, 230, 233) RGBA(250, 230, 233, 1) variable.function
#FAE6E9 RGB(250, 230, 233) RGBA(250, 230, 233, 1) variable.language
#FAE6E9 RGB(250, 230, 233) RGBA(250, 230, 233, 1) variable.name
#FAE6E9 RGB(250, 230, 233) RGBA(250, 230, 233, 1) variable.other
#FAE6E9 RGB(250, 230, 233) RGBA(250, 230, 233, 1) variable.other.constant
#FAE6E9 RGB(250, 230, 233) RGBA(250, 230, 233, 1) variable.other.property
#82AABD RGB(130, 170, 189) RGBA(130, 170, 189, 1) variable.other.readwrite
#FAE6E9 RGB(250, 230, 233) RGBA(250, 230, 233, 1) variable.parameter
#FAE6E9 RGB(250, 230, 233) RGBA(250, 230, 233, 1)