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
Spacegray Input Light
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#007ACC RGB(0, 122, 204) RGBA(0, 122, 204, 1) editor.background
#EFF1F5 RGB(239, 241, 245) RGBA(239, 241, 245, 1) editor.foreground
#4F5B66 RGB(79, 91, 102) RGBA(79, 91, 102, 1) editor.selectionBackground
#DFE1E8 RGB(223, 225, 232) RGBA(223, 225, 232, 1) editorCursor.foreground
#4F5B66 RGB(79, 91, 102) RGBA(79, 91, 102, 1) editorLineHighlight
#A7ADBA30 RGB(167, 173, 186) RGBA(167, 173, 186, 0.188) editorWhitespace.foreground
#DFE1E8 RGB(223, 225, 232) RGBA(223, 225, 232, 1) sideBar.background
#E8EBF2 RGB(232, 235, 242) RGBA(232, 235, 242, 1) widget.shadow
#DFE1E8 RGB(223, 225, 232) RGBA(223, 225, 232, 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
#A7ADBA RGB(167, 173, 186) RGBA(167, 173, 186, 1) comment.block
#A7ADBA RGB(167, 173, 186) RGBA(167, 173, 186, 1) comment.block.documentation
#A7ADBA RGB(167, 173, 186) RGBA(167, 173, 186, 1) comment.line
#A7ADBA RGB(167, 173, 186) RGBA(167, 173, 186, 1) constant
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) constant.character
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) constant.character.escape
#96B5B4 RGB(150, 181, 180) RGBA(150, 181, 180, 1) constant.numeric
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) constant.numeric.integer
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) constant.numeric.float
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) constant.numeric.hex
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) constant.numeric.octal
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) constant.other
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) constant.other.placeholder
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) constant.regexp
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) constant.rgb-value
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) entity
#8FA1B3 RGB(143, 161, 179) RGBA(143, 161, 179, 1) entity.name
#8FA1B3 RGB(143, 161, 179) RGBA(143, 161, 179, 1) entity.name.function
#8FA1B3 RGB(143, 161, 179) RGBA(143, 161, 179, 1) entity.name.section
#8FA1B3 RGB(143, 161, 179) RGBA(143, 161, 179, 1) entity.name.tag
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) entity.name.type
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) entity.other
#8FA1B3 RGB(143, 161, 179) RGBA(143, 161, 179, 1) entity.other.attribute-name
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) entity.other.inherited-class
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) invalid
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) invalid.illegal
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) keyword
#B48EAD RGB(180, 142, 173) RGBA(180, 142, 173, 1) keyword.control
#B48EAD RGB(180, 142, 173) RGBA(180, 142, 173, 1) keyword.control.flow
#B48EAD RGB(180, 142, 173) RGBA(180, 142, 173, 1) keyword.operator
#4F5B66 RGB(79, 91, 102) RGBA(79, 91, 102, 1) keyword.operator.new
#4F5B66 RGB(79, 91, 102) RGBA(79, 91, 102, 1) keyword.operator.assignment
#4F5B66 RGB(79, 91, 102) RGBA(79, 91, 102, 1) keyword.operator.arithmetic
#4F5B66 RGB(79, 91, 102) RGBA(79, 91, 102, 1) keyword.operator.logical
#4F5B66 RGB(79, 91, 102) RGBA(79, 91, 102, 1) keyword.other
#B48EAD RGB(180, 142, 173) RGBA(180, 142, 173, 1) markup
#565656 RGB(86, 86, 86) RGBA(86, 86, 86, 1) markup.bold
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) markup.changed
#B48EAD RGB(180, 142, 173) RGBA(180, 142, 173, 1) markup.deleted
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) markup.inserted
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) markup.italic
#B48EAD RGB(180, 142, 173) RGBA(180, 142, 173, 1) markup.list
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) markup.list.numbered
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) markup.list.unnumbered
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) markup.quote
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) markup.raw
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) meta
#4F5B66 RGB(79, 91, 102) RGBA(79, 91, 102, 1) meta.selector
#B48EAD RGB(180, 142, 173) RGBA(180, 142, 173, 1) punctuation.definition.comment
#A7ADBA RGB(167, 173, 186) RGBA(167, 173, 186, 1) punctuation.definition.string.begin
#4F5B66 RGB(79, 91, 102) RGBA(79, 91, 102, 1) punctuation.definition.string.end
#4F5B66 RGB(79, 91, 102) RGBA(79, 91, 102, 1) storage
#B48EAD RGB(180, 142, 173) RGBA(180, 142, 173, 1) storage.modifier
#B48EAD RGB(180, 142, 173) RGBA(180, 142, 173, 1) storage.type
#B48EAD RGB(180, 142, 173) RGBA(180, 142, 173, 1) string
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) string.interpolated
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) string.other
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) string.quoted
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) string.quoted.double
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) string.quoted.other
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) string.quoted.single
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) string.quoted.triple
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) string.regexp
#96B5B4 RGB(150, 181, 180) RGBA(150, 181, 180, 1) string.template
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) string.unquoted
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) support
#96B5B4 RGB(150, 181, 180) RGBA(150, 181, 180, 1) support.class
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) support.function
#96B5B4 RGB(150, 181, 180) RGBA(150, 181, 180, 1) variable
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) variable.function
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) variable.language
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) variable.name
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) variable.other
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) variable.other.constant
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) variable.other.property
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) variable.other.readwrite
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) variable.parameter
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1)