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
ilclight
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#FF00E6 RGB(255, 0, 230) RGBA(255, 0, 230, 1) editor.background
#EFFF5A RGB(239, 255, 90) RGBA(239, 255, 90, 1) editor.foreground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) sideBarTitle.foreground
#FF00E6 RGB(255, 0, 230) RGBA(255, 0, 230, 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
#2ED064AA RGB(46, 208, 100) RGBA(46, 208, 100, 0.667) comment.block
#2ED064AA RGB(46, 208, 100) RGBA(46, 208, 100, 0.667) comment.block.documentation
#2ED064AA RGB(46, 208, 100) RGBA(46, 208, 100, 0.667) comment.line
#2ED064AA RGB(46, 208, 100) RGBA(46, 208, 100, 0.667) constant
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) constant.character
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) constant.character.escape
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) constant.numeric
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) constant.numeric.integer
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) constant.numeric.float
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) constant.numeric.hex
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) constant.numeric.octal
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) constant.other
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) constant.other.placeholder
#FF00D9 RGB(255, 0, 217) RGBA(255, 0, 217, 1) entity
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) entity.name
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) entity.name.class
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) entity.name.function
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) entity.name.method
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) entity.name.namespace
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) entity.name.section
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) entity.name.selector
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) entity.name.tag
#FF00E6 RGB(255, 0, 230) RGBA(255, 0, 230, 1) entity.name.type
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) entity.name.type.enum
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) entity.name.type.interface
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) entity.name.type.struct
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) entity.other
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) entity.other.attribute-name
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) entity.other.inherited-class
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) invalid
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) invalid.deprecated
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) invalid.illegal
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) keyword
#001AFF RGB(0, 26, 255) RGBA(0, 26, 255, 1) keyword.control
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) keyword.control.flow
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) keyword.operator
#001AFF RGB(0, 26, 255) RGBA(0, 26, 255, 1) keyword.operator.new
#001AFF RGB(0, 26, 255) RGBA(0, 26, 255, 1) keyword.operator.assignment
#001AFF RGB(0, 26, 255) RGBA(0, 26, 255, 1) keyword.operator.arithmetic
#001AFF RGB(0, 26, 255) RGBA(0, 26, 255, 1) keyword.operator.logical
#001AFF RGB(0, 26, 255) RGBA(0, 26, 255, 1) keyword.other
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) markup
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) markup.bold
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) markup.changed
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) markup.deleted
#00FF04 RGB(0, 255, 4) RGBA(0, 255, 4, 1) markup.heading
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) markup.inline.raw
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) markup.inserted
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) markup.italic
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) markup.raw
#FF00E6 RGB(255, 0, 230) RGBA(255, 0, 230, 1) markup.underline
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) markup.underline.link
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) meta
#B368FF RGB(179, 104, 255) RGBA(179, 104, 255, 1) meta.function-call
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) meta.tag
#0008FF RGB(0, 8, 255) RGBA(0, 8, 255, 1) punctuation.definition.bracket
#0008FF RGB(0, 8, 255) RGBA(0, 8, 255, 1) punctuation.definition.comment
#2ED064AA RGB(46, 208, 100) RGBA(46, 208, 100, 0.667) punctuation.definition.string.begin
#0008FF RGB(0, 8, 255) RGBA(0, 8, 255, 1) punctuation.definition.string.end
#0008FF RGB(0, 8, 255) RGBA(0, 8, 255, 1) punctuation.separator
#0008FF RGB(0, 8, 255) RGBA(0, 8, 255, 1) punctuation.separator.continuation
#0008FF RGB(0, 8, 255) RGBA(0, 8, 255, 1) punctuation.terminator
#0008FF RGB(0, 8, 255) RGBA(0, 8, 255, 1) storage
#001AFF RGB(0, 26, 255) RGBA(0, 26, 255, 1) storage.modifier
#001AFF RGB(0, 26, 255) RGBA(0, 26, 255, 1) storage.type
#001AFF RGB(0, 26, 255) RGBA(0, 26, 255, 1) string
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) string.interpolated
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) string.other
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) string.quoted
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) string.quoted.double
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) string.quoted.other
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) string.quoted.single
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) string.quoted.triple
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) string.regexp
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) string.template
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) string.unquoted
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) support
#B368FF RGB(179, 104, 255) RGBA(179, 104, 255, 1) support.class
#FF0090 RGB(255, 0, 144) RGBA(255, 0, 144, 1) support.constant
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) support.function
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) support.other
#FF0090 RGB(255, 0, 144) RGBA(255, 0, 144, 1) support.type
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) support.type.primitive
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) support.type.property-name
#FF0091 RGB(255, 0, 145) RGBA(255, 0, 145, 1) variable
#FF00D9 RGB(255, 0, 217) RGBA(255, 0, 217, 1) variable.function
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) variable.language
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) variable.name
#FF00D9 RGB(255, 0, 217) RGBA(255, 0, 217, 1) variable.other
#FF007B RGB(255, 0, 123) RGBA(255, 0, 123, 1) variable.other.constant
#FF007B RGB(255, 0, 123) RGBA(255, 0, 123, 1) variable.other.property
#FF007B RGB(255, 0, 123) RGBA(255, 0, 123, 1) variable.other.readwrite
#FF007B RGB(255, 0, 123) RGBA(255, 0, 123, 1) variable.parameter
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1)