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
KeizanCybernetics
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#8490FF RGB(132, 144, 255) RGBA(132, 144, 255, 1) editor.background
#272727 RGB(39, 39, 39) RGBA(39, 39, 39, 1) editor.foreground
#ECF0F1 RGB(236, 240, 241) RGBA(236, 240, 241, 1) sideBarTitle.foreground
#ECF0F1 RGB(236, 240, 241) RGBA(236, 240, 241, 1) statusBar.background
#272727 RGB(39, 39, 39) RGBA(39, 39, 39, 1) statusBar.border
#3A3A3A RGB(58, 58, 58) RGBA(58, 58, 58, 1) statusBar.debuggingBackground
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) statusBar.noFolderBackground
#5E5E5E RGB(94, 94, 94) RGBA(94, 94, 94, 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
#95A5A6 RGB(149, 165, 166) RGBA(149, 165, 166, 1) comment.block
#95A5A6 RGB(149, 165, 166) RGBA(149, 165, 166, 1) comment.block.documentation
#95A5A6 RGB(149, 165, 166) RGBA(149, 165, 166, 1) comment.line
#95A5A6 RGB(149, 165, 166) RGBA(149, 165, 166, 1) constant
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.character
#D24F3D RGB(210, 79, 61) RGBA(210, 79, 61, 1) constant.character.escape
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric
#D24F3D RGB(210, 79, 61) RGBA(210, 79, 61, 1) constant.numeric.integer
#D24F3D RGB(210, 79, 61) RGBA(210, 79, 61, 1) constant.numeric.float
#D24F3D RGB(210, 79, 61) RGBA(210, 79, 61, 1) constant.numeric.hex
#D24F3D RGB(210, 79, 61) RGBA(210, 79, 61, 1) constant.numeric.octal
#D24F3D RGB(210, 79, 61) RGBA(210, 79, 61, 1) constant.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.other.placeholder
#2BA35B RGB(43, 163, 91) RGBA(43, 163, 91, 1) entity
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) entity.name
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) entity.name.class
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) entity.name.function
#398AC9 RGB(57, 138, 201) RGBA(57, 138, 201, 1) entity.name.method
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) entity.name.namespace
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) entity.name.section
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) entity.name.selector
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) entity.name.tag
#D24F3D RGB(210, 79, 61) RGBA(210, 79, 61, 1) entity.name.type
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) entity.name.type.enum
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) entity.name.type.interface
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) entity.name.type.struct
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) entity.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.attribute-name
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.inherited-class
#ECF0F1 RGB(236, 240, 241) RGBA(236, 240, 241, 1) invalid
#D24F3D RGB(210, 79, 61) RGBA(210, 79, 61, 1) invalid.deprecated
#D24F3D RGB(210, 79, 61) RGBA(210, 79, 61, 1) invalid.illegal
#D24F3D RGB(210, 79, 61) RGBA(210, 79, 61, 1) keyword
#B64EF7 RGB(182, 78, 247) RGBA(182, 78, 247, 1) keyword.control
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) keyword.control.flow
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) keyword.operator
#B64EF7 RGB(182, 78, 247) RGBA(182, 78, 247, 1) keyword.operator.new
#B64EF7 RGB(182, 78, 247) RGBA(182, 78, 247, 1) keyword.operator.assignment
#B64EF7 RGB(182, 78, 247) RGBA(182, 78, 247, 1) keyword.operator.arithmetic
#B64EF7 RGB(182, 78, 247) RGBA(182, 78, 247, 1) keyword.operator.logical
#B64EF7 RGB(182, 78, 247) RGBA(182, 78, 247, 1) keyword.other
#D24F3D RGB(210, 79, 61) RGBA(210, 79, 61, 1) markup
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.bold
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 1) markup.changed
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.deleted
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.heading
#ECF0F1 RGB(236, 240, 241) RGBA(236, 240, 241, 1) markup.inline.raw
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.inserted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) markup.italic
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 1) markup.raw
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.underline
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 1) markup.underline.link
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 1) meta
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) meta.function-call
#398AC9 RGB(57, 138, 201) RGBA(57, 138, 201, 1) meta.tag
#BDC3C7 RGB(189, 195, 199) RGBA(189, 195, 199, 1) punctuation.definition.bracket
#BDC3C7 RGB(189, 195, 199) RGBA(189, 195, 199, 1) punctuation.definition.comment
#95A5A6 RGB(149, 165, 166) RGBA(149, 165, 166, 1) punctuation.definition.string.begin
#BDC3C7 RGB(189, 195, 199) RGBA(189, 195, 199, 1) punctuation.definition.string.end
#BDC3C7 RGB(189, 195, 199) RGBA(189, 195, 199, 1) punctuation.separator
#BDC3C7 RGB(189, 195, 199) RGBA(189, 195, 199, 1) punctuation.separator.continuation
#BDC3C7 RGB(189, 195, 199) RGBA(189, 195, 199, 1) punctuation.terminator
#BDC3C7 RGB(189, 195, 199) RGBA(189, 195, 199, 1) storage
#B64EF7 RGB(182, 78, 247) RGBA(182, 78, 247, 1) storage.modifier
#B64EF7 RGB(182, 78, 247) RGBA(182, 78, 247, 1) storage.type
#B64EF7 RGB(182, 78, 247) RGBA(182, 78, 247, 1) string
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 1) string.interpolated
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 1) string.other
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 1) string.quoted
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 1) string.quoted.double
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 1) string.quoted.other
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 1) string.quoted.single
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 1) string.quoted.triple
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 1) string.regexp
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) string.template
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 1) string.unquoted
#2ECC71 RGB(46, 204, 113) RGBA(46, 204, 113, 1) support
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) support.class
#398AC9 RGB(57, 138, 201) RGBA(57, 138, 201, 1) support.constant
#D24F3D RGB(210, 79, 61) RGBA(210, 79, 61, 1) support.function
#398AC9 RGB(57, 138, 201) RGBA(57, 138, 201, 1) support.other
#398AC9 RGB(57, 138, 201) RGBA(57, 138, 201, 1) support.type
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) support.type.primitive
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) support.type.property-name
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) variable
#2BA35B RGB(43, 163, 91) RGBA(43, 163, 91, 1) variable.function
#398AC9 RGB(57, 138, 201) RGBA(57, 138, 201, 1) variable.language
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.name
#2BA35B RGB(43, 163, 91) RGBA(43, 163, 91, 1) variable.other
#D24F3D RGB(210, 79, 61) RGBA(210, 79, 61, 1) variable.other.constant
#D24F3D RGB(210, 79, 61) RGBA(210, 79, 61, 1) variable.other.property
#D24F3D RGB(210, 79, 61) RGBA(210, 79, 61, 1) variable.other.readwrite
#D24F3D RGB(210, 79, 61) RGBA(210, 79, 61, 1) variable.parameter
#D24F3D RGB(210, 79, 61) RGBA(210, 79, 61, 1)