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
Raspberry
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#262626 RGB(38, 38, 38) RGBA(38, 38, 38, 1) editor.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) list.activeSelectionIconForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) sideBar.border
#EAEAEA RGB(234, 234, 234) RGBA(234, 234, 234, 1) statusBar.background
#0F141A RGB(15, 20, 26) RGBA(15, 20, 26, 1) tab.activeBackground
#161D26 RGB(22, 29, 38) RGBA(22, 29, 38, 1) tab.activeBorder
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) tab.activeForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) tab.inactiveBackground
#212121 RGB(33, 33, 33) RGBA(33, 33, 33, 1) tab.inactiveForeground
#D4DADA RGB(212, 218, 218) RGBA(212, 218, 218, 1) terminal.background
#262626 RGB(38, 38, 38) RGBA(38, 38, 38, 1) terminal.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) titleBar.activeBackground
#262626 RGB(38, 38, 38) RGBA(38, 38, 38, 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
#6C7E7E RGB(108, 126, 126) RGBA(108, 126, 126, 1) comment.block
#6C7E7E RGB(108, 126, 126) RGBA(108, 126, 126, 1) comment.block.documentation
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) comment.line
#6C7E7E RGB(108, 126, 126) RGBA(108, 126, 126, 1) constant
#E499FF RGB(228, 153, 255) RGBA(228, 153, 255, 1) constant.character
#E499FF RGB(228, 153, 255) RGBA(228, 153, 255, 1) constant.character.escape
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) constant.numeric
#E499FF RGB(228, 153, 255) RGBA(228, 153, 255, 1) constant.numeric.integer
#E499FF RGB(228, 153, 255) RGBA(228, 153, 255, 1) constant.numeric.float
#E499FF RGB(228, 153, 255) RGBA(228, 153, 255, 1) constant.numeric.hex
#E499FF RGB(228, 153, 255) RGBA(228, 153, 255, 1) constant.numeric.octal
#E499FF RGB(228, 153, 255) RGBA(228, 153, 255, 1) constant.other
#91F6FE RGB(145, 246, 254) RGBA(145, 246, 254, 1) constant.other.placeholder
#91F6FE RGB(145, 246, 254) RGBA(145, 246, 254, 1) constant.regexp
#E499FF RGB(228, 153, 255) RGBA(228, 153, 255, 1) constant.rgb-value
#E499FF RGB(228, 153, 255) RGBA(228, 153, 255, 1) entity
#00A84F RGB(0, 168, 79) RGBA(0, 168, 79, 1) entity.name
#00A84F RGB(0, 168, 79) RGBA(0, 168, 79, 1) entity.name.class
#00A84F RGB(0, 168, 79) RGBA(0, 168, 79, 1) entity.name.function
#00CAFF RGB(0, 202, 255) RGBA(0, 202, 255, 1) entity.name.method
#00A84F RGB(0, 168, 79) RGBA(0, 168, 79, 1) entity.name.namespace
#00A84F RGB(0, 168, 79) RGBA(0, 168, 79, 1) entity.name.section
#00A84F RGB(0, 168, 79) RGBA(0, 168, 79, 1) entity.name.selector
#00A84F RGB(0, 168, 79) RGBA(0, 168, 79, 1) entity.name.tag
#FF1531 RGB(255, 21, 49) RGBA(255, 21, 49, 1) entity.name.type
#9FFCEA RGB(159, 252, 234) RGBA(159, 252, 234, 1) entity.name.type.enum
#9FFCEA RGB(159, 252, 234) RGBA(159, 252, 234, 1) entity.name.type.interface
#9FFCEA RGB(159, 252, 234) RGBA(159, 252, 234, 1) entity.name.type.struct
#9FFCEA RGB(159, 252, 234) RGBA(159, 252, 234, 1) entity.other
#00A84F RGB(0, 168, 79) RGBA(0, 168, 79, 1) entity.other.attribute-name
#80DE9A RGB(128, 222, 154) RGBA(128, 222, 154, 1) entity.other.inherited-class
#9FFCEA RGB(159, 252, 234) RGBA(159, 252, 234, 1) invalid
#990000 RGB(153, 0, 0) RGBA(153, 0, 0, 1) invalid.illegal
#990000 RGB(153, 0, 0) RGBA(153, 0, 0, 1) keyword
#FA2464 RGB(250, 36, 100) RGBA(250, 36, 100, 1) keyword.control
#FA2464 RGB(250, 36, 100) RGBA(250, 36, 100, 1) keyword.control.flow
#FA2464 RGB(250, 36, 100) RGBA(250, 36, 100, 1) keyword.operator
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword.operator.new
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword.operator.assignment
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword.operator.arithmetic
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword.operator.logical
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword.other
#FA2464 RGB(250, 36, 100) RGBA(250, 36, 100, 1) markup
#38EF7D RGB(56, 239, 125) RGBA(56, 239, 125, 1) markup.bold
#00CAFF RGB(0, 202, 255) RGBA(0, 202, 255, 1) markup.changed
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) markup.deleted
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) markup.heading
#FA2464 RGB(250, 36, 100) RGBA(250, 36, 100, 1) markup.inline.raw
#38EF7D RGB(56, 239, 125) RGBA(56, 239, 125, 1) markup.inserted
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) markup.italic
#00CAFF RGB(0, 202, 255) RGBA(0, 202, 255, 1) markup.list
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) markup.list.numbered
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) markup.list.unnumbered
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) markup.quote
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) markup.raw
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) meta
#FFB18A RGB(255, 177, 138) RGBA(255, 177, 138, 1) meta.function-call
#00CAFF RGB(0, 202, 255) RGBA(0, 202, 255, 1) meta.selector
#00A84F RGB(0, 168, 79) RGBA(0, 168, 79, 1) meta.tag
#FFBDC9 RGB(255, 189, 201) RGBA(255, 189, 201, 1) punctuation.definition.bracket
#00A84F RGB(0, 168, 79) RGBA(0, 168, 79, 1) punctuation.definition.comment
#6C7E7E RGB(108, 126, 126) RGBA(108, 126, 126, 1) punctuation.definition.string.begin
#00A84F RGB(0, 168, 79) RGBA(0, 168, 79, 1) punctuation.definition.string.end
#00A84F RGB(0, 168, 79) RGBA(0, 168, 79, 1) punctuation.separator
#00A84F RGB(0, 168, 79) RGBA(0, 168, 79, 1) punctuation.separator.continuation
#00A84F RGB(0, 168, 79) RGBA(0, 168, 79, 1) punctuation.terminator
#00A84F RGB(0, 168, 79) RGBA(0, 168, 79, 1) storage
#FA2464 RGB(250, 36, 100) RGBA(250, 36, 100, 1) storage.modifier
#FA2464 RGB(250, 36, 100) RGBA(250, 36, 100, 1) storage.type
#38EF7D RGB(56, 239, 125) RGBA(56, 239, 125, 1) string
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) string.interpolated
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) string.other
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) string.quoted
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) string.quoted.double
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) string.quoted.other
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) string.quoted.single
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) string.quoted.triple
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) string.regexp
#00A84F RGB(0, 168, 79) RGBA(0, 168, 79, 1) string.template
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) string.unquoted
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) support
#91F6FE RGB(145, 246, 254) RGBA(145, 246, 254, 1) support.class
#9FFCEA RGB(159, 252, 234) RGBA(159, 252, 234, 1) support.constant
#E499FF RGB(228, 153, 255) RGBA(228, 153, 255, 1) support.function
#00CAFF RGB(0, 202, 255) RGBA(0, 202, 255, 1) support.type
#38EF7D RGB(56, 239, 125) RGBA(56, 239, 125, 1) support.type.primitive
#38EF7D RGB(56, 239, 125) RGBA(56, 239, 125, 1) support.type.property-name
#91F6FE RGB(145, 246, 254) RGBA(145, 246, 254, 1) support.variable
FFFFFF — — variable
FFFFFF — — variable.function
FFFFFF — — variable.language
#E499FF RGB(228, 153, 255) RGBA(228, 153, 255, 1) variable.name
FFFFFF — — variable.other
FFFFFF — — variable.other.constant
FFFFFF — — variable.other.property
FFFFFF — — variable.other.readwrite
FFFFFF — — variable.parameter
FFFFFF — —