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
zanshi
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#2F7CAF RGB(47, 124, 175) RGBA(47, 124, 175, 1) button.background
#2F7CAF RGB(47, 124, 175) RGBA(47, 124, 175, 1) editor.background
#2A2D3D RGB(42, 45, 61) RGBA(42, 45, 61, 1) editor.selectionBackground
#376889 RGB(55, 104, 137) RGBA(55, 104, 137, 1) sideBar.background
#1B1E2A RGB(27, 30, 42) RGBA(27, 30, 42, 1) sideBar.foreground
#767D9E RGB(118, 125, 158) RGBA(118, 125, 158, 1) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) statusBar.background
#2F7CAF RGB(47, 124, 175) RGBA(47, 124, 175, 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
#51525C RGB(81, 82, 92) RGBA(81, 82, 92, 1) comment.block
#51525C RGB(81, 82, 92) RGBA(81, 82, 92, 1) comment.block.documentation
#51525C RGB(81, 82, 92) RGBA(81, 82, 92, 1) comment.line
#51525C RGB(81, 82, 92) RGBA(81, 82, 92, 1) constant
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.character
#BECFE8 RGB(190, 207, 232) RGBA(190, 207, 232, 1) constant.character.escape
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric
#BECFE8 RGB(190, 207, 232) RGBA(190, 207, 232, 1) constant.numeric.integer
#BECFE8 RGB(190, 207, 232) RGBA(190, 207, 232, 1) constant.numeric.float
#BECFE8 RGB(190, 207, 232) RGBA(190, 207, 232, 1) constant.numeric.hex
#BECFE8 RGB(190, 207, 232) RGBA(190, 207, 232, 1) constant.numeric.octal
#BECFE8 RGB(190, 207, 232) RGBA(190, 207, 232, 1) constant.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.other.placeholder
#BECFE8 RGB(190, 207, 232) RGBA(190, 207, 232, 1) entity
#CB5C69 RGB(203, 92, 105) RGBA(203, 92, 105, 1) entity.name
#8ABFA6 RGB(138, 191, 166) RGBA(138, 191, 166, 1) entity.name.class
#8ABFA6 RGB(138, 191, 166) RGBA(138, 191, 166, 1) entity.name.function
#5AAADE RGB(90, 170, 222) RGBA(90, 170, 222, 1) entity.name.method
#8ABFA6 RGB(138, 191, 166) RGBA(138, 191, 166, 1) entity.name.namespace
#8ABFA6 RGB(138, 191, 166) RGBA(138, 191, 166, 1) entity.name.section
#8ABFA6 RGB(138, 191, 166) RGBA(138, 191, 166, 1) entity.name.selector
#8ABFA6 RGB(138, 191, 166) RGBA(138, 191, 166, 1) entity.name.tag
#8ABFA6 RGB(138, 191, 166) RGBA(138, 191, 166, 1) entity.name.type
#8ABFA6 RGB(138, 191, 166) RGBA(138, 191, 166, 1) entity.name.type.enum
#8ABFA6 RGB(138, 191, 166) RGBA(138, 191, 166, 1) entity.name.type.interface
#8ABFA6 RGB(138, 191, 166) RGBA(138, 191, 166, 1) entity.name.type.struct
#8ABFA6 RGB(138, 191, 166) RGBA(138, 191, 166, 1) entity.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.attribute-name
#DAB067 RGB(218, 176, 103) RGBA(218, 176, 103, 1) entity.other.inherited-class
#8ABFA6 RGB(138, 191, 166) RGBA(138, 191, 166, 1) invalid
#CB5C69 RGB(203, 92, 105) RGBA(203, 92, 105, 1) invalid.deprecated
#CB5C69 RGB(203, 92, 105) RGBA(203, 92, 105, 1) invalid.illegal
#CB5C69 RGB(203, 92, 105) RGBA(203, 92, 105, 1) keyword
#A57EC5 RGB(165, 126, 197) RGBA(165, 126, 197, 1) keyword.control
#5AAADE RGB(90, 170, 222) RGBA(90, 170, 222, 1) keyword.control.flow
#5AAADE RGB(90, 170, 222) RGBA(90, 170, 222, 1) keyword.operator
#A57EC5 RGB(165, 126, 197) RGBA(165, 126, 197, 1) keyword.operator.new
#A57EC5 RGB(165, 126, 197) RGBA(165, 126, 197, 1) keyword.operator.assignment
#A57EC5 RGB(165, 126, 197) RGBA(165, 126, 197, 1) keyword.operator.arithmetic
#A57EC5 RGB(165, 126, 197) RGBA(165, 126, 197, 1) keyword.operator.logical
#A57EC5 RGB(165, 126, 197) RGBA(165, 126, 197, 1) keyword.other
#BECFE8 RGB(190, 207, 232) RGBA(190, 207, 232, 1) markup
#BECFE8 RGB(190, 207, 232) RGBA(190, 207, 232, 1) markup.bold
#CB5C69 RGB(203, 92, 105) RGBA(203, 92, 105, 1) markup.changed
#A57EC5 RGB(165, 126, 197) RGBA(165, 126, 197, 1) markup.deleted
#CB5C69 RGB(203, 92, 105) RGBA(203, 92, 105, 1) markup.heading
#8ABFA6 RGB(138, 191, 166) RGBA(138, 191, 166, 1) markup.inline.raw
#A57EC5 RGB(165, 126, 197) RGBA(165, 126, 197, 1) markup.inserted
#8ABFA6 RGB(138, 191, 166) RGBA(138, 191, 166, 1) markup.italic
#CB5C69 RGB(203, 92, 105) RGBA(203, 92, 105, 1) markup.raw
#BECFE8 RGB(190, 207, 232) RGBA(190, 207, 232, 1) markup.underline
#CB5C69 RGB(203, 92, 105) RGBA(203, 92, 105, 1) markup.underline.link
#CB5C69 RGB(203, 92, 105) RGBA(203, 92, 105, 1) meta
#BECFE8 RGB(190, 207, 232) RGBA(190, 207, 232, 1) meta.function-call
#5AAADE RGB(90, 170, 222) RGBA(90, 170, 222, 1) meta.tag
#5AAADE RGB(90, 170, 222) RGBA(90, 170, 222, 1) punctuation.definition.bracket
#5AAADE RGB(90, 170, 222) RGBA(90, 170, 222, 1) punctuation.definition.comment
#51525C RGB(81, 82, 92) RGBA(81, 82, 92, 1) punctuation.definition.string.begin
#5AAADE RGB(90, 170, 222) RGBA(90, 170, 222, 1) punctuation.definition.string.end
#5AAADE RGB(90, 170, 222) RGBA(90, 170, 222, 1) punctuation.separator
#5AAADE RGB(90, 170, 222) RGBA(90, 170, 222, 1) punctuation.separator.continuation
#5AAADE RGB(90, 170, 222) RGBA(90, 170, 222, 1) punctuation.terminator
#5AAADE RGB(90, 170, 222) RGBA(90, 170, 222, 1) storage
#A57EC5 RGB(165, 126, 197) RGBA(165, 126, 197, 1) storage.modifier
#A57EC5 RGB(165, 126, 197) RGBA(165, 126, 197, 1) storage.type
#A57EC5 RGB(165, 126, 197) RGBA(165, 126, 197, 1) string
#CB5C69 RGB(203, 92, 105) RGBA(203, 92, 105, 1) string.interpolated
#CB5C69 RGB(203, 92, 105) RGBA(203, 92, 105, 1) string.other
#CB5C69 RGB(203, 92, 105) RGBA(203, 92, 105, 1) string.quoted
#CB5C69 RGB(203, 92, 105) RGBA(203, 92, 105, 1) string.quoted.double
#BECFE8 RGB(190, 207, 232) RGBA(190, 207, 232, 1) string.quoted.other
#CB5C69 RGB(203, 92, 105) RGBA(203, 92, 105, 1) string.quoted.single
#BECFE8 RGB(190, 207, 232) RGBA(190, 207, 232, 1) string.quoted.triple
#CB5C69 RGB(203, 92, 105) RGBA(203, 92, 105, 1) string.regexp
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) string.template
#CB5C69 RGB(203, 92, 105) RGBA(203, 92, 105, 1) string.unquoted
#CB5C69 RGB(203, 92, 105) RGBA(203, 92, 105, 1) support
#8ABFA6 RGB(138, 191, 166) RGBA(138, 191, 166, 1) support.class
#F0BF64 RGB(240, 191, 100) RGBA(240, 191, 100, 1) support.constant
#BECFE8 RGB(190, 207, 232) RGBA(190, 207, 232, 1) support.function
#5AAADE RGB(90, 170, 222) RGBA(90, 170, 222, 1) support.other
#F0BF64 RGB(240, 191, 100) RGBA(240, 191, 100, 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
#BECFE8 RGB(190, 207, 232) RGBA(190, 207, 232, 1) variable.function
#5AAADE RGB(90, 170, 222) RGBA(90, 170, 222, 1) variable.language
#CB5C69 RGB(203, 92, 105) RGBA(203, 92, 105, 1) variable.name
#BECFE8 RGB(190, 207, 232) RGBA(190, 207, 232, 1) variable.other
#BECFE8 RGB(190, 207, 232) RGBA(190, 207, 232, 1) variable.other.constant
#BECFE8 RGB(190, 207, 232) RGBA(190, 207, 232, 1) variable.other.property
#BECFE8 RGB(190, 207, 232) RGBA(190, 207, 232, 1) variable.other.readwrite
#BECFE8 RGB(190, 207, 232) RGBA(190, 207, 232, 1) variable.parameter
#BECFE8 RGB(190, 207, 232) RGBA(190, 207, 232, 1)