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
Psychedelic Comedown
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#161616 RGB(22, 22, 22) RGBA(22, 22, 22, 1) editor.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) editor.foreground
#8F939F RGB(143, 147, 159) RGBA(143, 147, 159, 1) editor.lineHighlightBorder
#442266 RGB(68, 34, 102) RGBA(68, 34, 102, 1) editorBracketMatch.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) editorBracketMatch.border
#008800 RGB(0, 136, 0) RGBA(0, 136, 0, 1) editorError.foreground
#880000 RGB(136, 0, 0) RGBA(136, 0, 0, 1) editorIndentGuide.activeBackground
#442266 RGB(68, 34, 102) RGBA(68, 34, 102, 1) editorWarning.foreground
#0055AA RGB(0, 85, 170) RGBA(0, 85, 170, 1) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 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
#C28D88 RGB(194, 141, 136) RGBA(194, 141, 136, 1) comment.block
#C28D88 RGB(194, 141, 136) RGBA(194, 141, 136, 1) comment.block.documentation
#C28D88 RGB(194, 141, 136) RGBA(194, 141, 136, 1) comment.line
#C28D88 RGB(194, 141, 136) RGBA(194, 141, 136, 1) constant
#959AA6 RGB(149, 154, 166) RGBA(149, 154, 166, 1) constant.character
#959AA6 RGB(149, 154, 166) RGBA(149, 154, 166, 1) constant.character.escape
#959AA6 RGB(149, 154, 166) RGBA(149, 154, 166, 1) constant.numeric
#959AA6 RGB(149, 154, 166) RGBA(149, 154, 166, 1) constant.numeric.integer
#959AA6 RGB(149, 154, 166) RGBA(149, 154, 166, 1) constant.numeric.float
#959AA6 RGB(149, 154, 166) RGBA(149, 154, 166, 1) constant.numeric.hex
#959AA6 RGB(149, 154, 166) RGBA(149, 154, 166, 1) constant.numeric.octal
#959AA6 RGB(149, 154, 166) RGBA(149, 154, 166, 1) constant.other
#959AA6 RGB(149, 154, 166) RGBA(149, 154, 166, 1) constant.other.placeholder
#959AA6 RGB(149, 154, 166) RGBA(149, 154, 166, 1) constant.regexp
#959AA6 RGB(149, 154, 166) RGBA(149, 154, 166, 1) constant.rgb-value
#959AA6 RGB(149, 154, 166) RGBA(149, 154, 166, 1) entity
#00FF66 RGB(0, 255, 102) RGBA(0, 255, 102, 1) entity.name
#00FF66 RGB(0, 255, 102) RGBA(0, 255, 102, 1) entity.name.section
#00FF66 RGB(0, 255, 102) RGBA(0, 255, 102, 1) entity.name.tag
#00CCFF RGB(0, 204, 255) RGBA(0, 204, 255, 1) entity.name.type
#8890FC RGB(136, 144, 252) RGBA(136, 144, 252, 1) entity.name.type.enum
#8890FC RGB(136, 144, 252) RGBA(136, 144, 252, 1) entity.name.type.interface
#8890FC RGB(136, 144, 252) RGBA(136, 144, 252, 1) entity.name.type.struct
#8890FC RGB(136, 144, 252) RGBA(136, 144, 252, 1) entity.other
#D57BC8 RGB(213, 123, 200) RGBA(213, 123, 200, 1) entity.other.attribute-name
#D57BC8 RGB(213, 123, 200) RGBA(213, 123, 200, 1) keyword
#FF524D RGB(255, 82, 77) RGBA(255, 82, 77, 1) keyword.control
#9EA1E8 RGB(158, 161, 232) RGBA(158, 161, 232, 1) keyword.control.flow
#FF524D RGB(255, 82, 77) RGBA(255, 82, 77, 1) keyword.operator
#8F939F RGB(143, 147, 159) RGBA(143, 147, 159, 1) keyword.operator.new
#9EA1E8 RGB(158, 161, 232) RGBA(158, 161, 232, 1) keyword.operator.assignment
#8F939F RGB(143, 147, 159) RGBA(143, 147, 159, 1) keyword.operator.arithmetic
#8F939F RGB(143, 147, 159) RGBA(143, 147, 159, 1) keyword.operator.logical
#8F939F RGB(143, 147, 159) RGBA(143, 147, 159, 1) meta
#00CCFF RGB(0, 204, 255) RGBA(0, 204, 255, 1) meta.function-call
#D57BC8 RGB(213, 123, 200) RGBA(213, 123, 200, 1) meta.selector
#00CCFF RGB(0, 204, 255) RGBA(0, 204, 255, 1) meta.tag
#0088FF RGB(0, 136, 255) RGBA(0, 136, 255, 1) punctuation.definition.bracket
#8F939F RGB(143, 147, 159) RGBA(143, 147, 159, 1) punctuation.definition.comment
#C28D88 RGB(194, 141, 136) RGBA(194, 141, 136, 1) punctuation.definition.string.begin
#00AD99 RGB(0, 173, 153) RGBA(0, 173, 153, 1) punctuation.definition.string.end
#00AD99 RGB(0, 173, 153) RGBA(0, 173, 153, 1) punctuation.separator
#8F939F RGB(143, 147, 159) RGBA(143, 147, 159, 1) punctuation.separator.continuation
#8F939F RGB(143, 147, 159) RGBA(143, 147, 159, 1) punctuation.terminator
#8F939F RGB(143, 147, 159) RGBA(143, 147, 159, 1) storage
#DFB141 RGB(223, 177, 65) RGBA(223, 177, 65, 1) storage.type
#9EA1E8 RGB(158, 161, 232) RGBA(158, 161, 232, 1) string
#00AD99 RGB(0, 173, 153) RGBA(0, 173, 153, 1) string.interpolated
#00AD99 RGB(0, 173, 153) RGBA(0, 173, 153, 1) string.other
#00AD99 RGB(0, 173, 153) RGBA(0, 173, 153, 1) string.quoted
#00AD99 RGB(0, 173, 153) RGBA(0, 173, 153, 1) string.quoted.double
#00AD99 RGB(0, 173, 153) RGBA(0, 173, 153, 1) string.quoted.other
#00AD99 RGB(0, 173, 153) RGBA(0, 173, 153, 1) string.quoted.single
#00AD99 RGB(0, 173, 153) RGBA(0, 173, 153, 1) string.quoted.triple
#00AD99 RGB(0, 173, 153) RGBA(0, 173, 153, 1) string.regexp
#00AD99 RGB(0, 173, 153) RGBA(0, 173, 153, 1) string.template
#00AD99 RGB(0, 173, 153) RGBA(0, 173, 153, 1) string.unquoted
#00AD99 RGB(0, 173, 153) RGBA(0, 173, 153, 1) support
#00AD99 RGB(0, 173, 153) RGBA(0, 173, 153, 1) support.class
#00DDAA RGB(0, 221, 170) RGBA(0, 221, 170, 1) support.constant
#00AD99 RGB(0, 173, 153) RGBA(0, 173, 153, 1) support.type
#0088FF RGB(0, 136, 255) RGBA(0, 136, 255, 1) support.type.property-name
#0088FF RGB(0, 136, 255) RGBA(0, 136, 255, 1) support.variable
#8890FC RGB(136, 144, 252) RGBA(136, 144, 252, 1) variable
#8890FC RGB(136, 144, 252) RGBA(136, 144, 252, 1) variable.function
#8890FC RGB(136, 144, 252) RGBA(136, 144, 252, 1) variable.language
#DF8040 RGB(223, 128, 64) RGBA(223, 128, 64, 1) variable.name
#8890FC RGB(136, 144, 252) RGBA(136, 144, 252, 1) variable.other
#8890FC RGB(136, 144, 252) RGBA(136, 144, 252, 1) variable.other.constant
#8890FC RGB(136, 144, 252) RGBA(136, 144, 252, 1) variable.other.property
#8890FC RGB(136, 144, 252) RGBA(136, 144, 252, 1) variable.other.readwrite
#8890FC RGB(136, 144, 252) RGBA(136, 144, 252, 1) variable.parameter
#8890FC RGB(136, 144, 252) RGBA(136, 144, 252, 1)