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
Orchette by skantastic
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) activityBar.foreground
#FCD6E3 RGB(252, 214, 227) RGBA(252, 214, 227, 1) activityBarBadge.background
#E4879E RGB(228, 135, 158) RGBA(228, 135, 158, 1) editor.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) editor.foreground
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) list.errorForeground
#E65983 RGB(230, 89, 131) RGBA(230, 89, 131, 1) list.warningForeground
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) sideBar.background
#0E0E0E RGB(14, 14, 14) RGBA(14, 14, 14, 1) sideBar.foreground
#F5C0D3 RGB(245, 192, 211) RGBA(245, 192, 211, 1) statusBar.background
#4A202A RGB(74, 32, 42) RGBA(74, 32, 42, 1) statusBar.foreground
#FCD6E3 RGB(252, 214, 227) RGBA(252, 214, 227, 1) tab.activeBackground
#B06578 RGB(176, 101, 120) RGBA(176, 101, 120, 1) tab.activeForeground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) tab.border
#83394A RGB(131, 57, 74) RGBA(131, 57, 74, 1) tab.inactiveBackground
#1A1A1A RGB(26, 26, 26) RGBA(26, 26, 26, 1) tab.inactiveForeground
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) titleBar.activeBackground
#83394A RGB(131, 57, 74) RGBA(131, 57, 74, 1) titleBar.activeForeground
#FCD6E3 RGB(252, 214, 227) RGBA(252, 214, 227, 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
#8D5B6D RGB(141, 91, 109) RGBA(141, 91, 109, 1) comment.block
#8D5B6D RGB(141, 91, 109) RGBA(141, 91, 109, 1) comment.block.documentation
#8D5B6D RGB(141, 91, 109) RGBA(141, 91, 109, 1) comment.line
#8D5B6D RGB(141, 91, 109) RGBA(141, 91, 109, 1) constant
#D893E5 RGB(216, 147, 229) RGBA(216, 147, 229, 1) constant.character
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.character.escape
#A164BA RGB(161, 100, 186) RGBA(161, 100, 186, 1) constant.numeric
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.numeric.integer
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.numeric.float
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.numeric.hex
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.numeric.octal
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.other
#D893E5 RGB(216, 147, 229) RGBA(216, 147, 229, 1) constant.other.placeholder
#FFE9EF RGB(255, 233, 239) RGBA(255, 233, 239, 1) entity
#FF9CB5 RGB(255, 156, 181) RGBA(255, 156, 181, 1) entity.name
#FF9CB5 RGB(255, 156, 181) RGBA(255, 156, 181, 1) entity.name.class
#FF9CB5 RGB(255, 156, 181) RGBA(255, 156, 181, 1) entity.name.function
#EFBAE4 RGB(239, 186, 228) RGBA(239, 186, 228, 1) entity.name.method
#FF9CB5 RGB(255, 156, 181) RGBA(255, 156, 181, 1) entity.name.namespace
#FF9CB5 RGB(255, 156, 181) RGBA(255, 156, 181, 1) entity.name.section
#FF9CB5 RGB(255, 156, 181) RGBA(255, 156, 181, 1) entity.name.selector
#FF9CB5 RGB(255, 156, 181) RGBA(255, 156, 181, 1) entity.name.tag
#D69FF1 RGB(214, 159, 241) RGBA(214, 159, 241, 1) entity.name.type
#FF9CB5 RGB(255, 156, 181) RGBA(255, 156, 181, 1) entity.name.type.enum
#FF9CB5 RGB(255, 156, 181) RGBA(255, 156, 181, 1) entity.name.type.interface
#FF9CB5 RGB(255, 156, 181) RGBA(255, 156, 181, 1) entity.name.type.struct
#FF9CB5 RGB(255, 156, 181) RGBA(255, 156, 181, 1) entity.other
#A164BA RGB(161, 100, 186) RGBA(161, 100, 186, 1) entity.other.attribute-name
#D893E5 RGB(216, 147, 229) RGBA(216, 147, 229, 1) entity.other.inherited-class
#FF9CB5 RGB(255, 156, 181) RGBA(255, 156, 181, 1) invalid
#FFBCCD RGB(255, 188, 205) RGBA(255, 188, 205, 1) invalid.deprecated
#FFBCCD RGB(255, 188, 205) RGBA(255, 188, 205, 1) invalid.illegal
#FFBCCD RGB(255, 188, 205) RGBA(255, 188, 205, 1) keyword
#FC809F RGB(252, 128, 159) RGBA(252, 128, 159, 1) keyword.control
#EFBAE4 RGB(239, 186, 228) RGBA(239, 186, 228, 1) keyword.control.flow
#EFBAE4 RGB(239, 186, 228) RGBA(239, 186, 228, 1) keyword.operator
#FC809F RGB(252, 128, 159) RGBA(252, 128, 159, 1) keyword.operator.new
#FC809F RGB(252, 128, 159) RGBA(252, 128, 159, 1) keyword.operator.assignment
#FC809F RGB(252, 128, 159) RGBA(252, 128, 159, 1) keyword.operator.arithmetic
#FC809F RGB(252, 128, 159) RGBA(252, 128, 159, 1) keyword.operator.logical
#FC809F RGB(252, 128, 159) RGBA(252, 128, 159, 1) keyword.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) markup
#FFE9EF RGB(255, 233, 239) RGBA(255, 233, 239, 1) markup.bold
#D69FF1 RGB(214, 159, 241) RGBA(214, 159, 241, 1) markup.changed
#FC809F RGB(252, 128, 159) RGBA(252, 128, 159, 1) markup.deleted
#FFBCCD RGB(255, 188, 205) RGBA(255, 188, 205, 1) markup.heading
#FF9CB5 RGB(255, 156, 181) RGBA(255, 156, 181, 1) markup.inline.raw
#FC809F RGB(252, 128, 159) RGBA(252, 128, 159, 1) markup.inserted
#FF9CB5 RGB(255, 156, 181) RGBA(255, 156, 181, 1) markup.italic
#D69FF1 RGB(214, 159, 241) RGBA(214, 159, 241, 1) markup.raw
#FFE9EF RGB(255, 233, 239) RGBA(255, 233, 239, 1) markup.underline
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) markup.underline.link
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) meta
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) meta.function-call
#EFBAE4 RGB(239, 186, 228) RGBA(239, 186, 228, 1) meta.tag
#A164BA RGB(161, 100, 186) RGBA(161, 100, 186, 1) punctuation.definition.bracket
#A164BA RGB(161, 100, 186) RGBA(161, 100, 186, 1) punctuation.definition.comment
#8D5B6D RGB(141, 91, 109) RGBA(141, 91, 109, 1) punctuation.definition.string.begin
#A164BA RGB(161, 100, 186) RGBA(161, 100, 186, 1) punctuation.definition.string.end
#A164BA RGB(161, 100, 186) RGBA(161, 100, 186, 1) punctuation.separator
#A164BA RGB(161, 100, 186) RGBA(161, 100, 186, 1) punctuation.separator.continuation
#A164BA RGB(161, 100, 186) RGBA(161, 100, 186, 1) punctuation.terminator
#A164BA RGB(161, 100, 186) RGBA(161, 100, 186, 1) storage
#FC809F RGB(252, 128, 159) RGBA(252, 128, 159, 1) storage.modifier
#FC809F RGB(252, 128, 159) RGBA(252, 128, 159, 1) storage.type
#FC809F RGB(252, 128, 159) RGBA(252, 128, 159, 1) string
#D69FF1 RGB(214, 159, 241) RGBA(214, 159, 241, 1) string.interpolated
#D69FF1 RGB(214, 159, 241) RGBA(214, 159, 241, 1) string.other
#D69FF1 RGB(214, 159, 241) RGBA(214, 159, 241, 1) string.quoted
#D69FF1 RGB(214, 159, 241) RGBA(214, 159, 241, 1) string.quoted.double
#D69FF1 RGB(214, 159, 241) RGBA(214, 159, 241, 1) string.quoted.other
#D69FF1 RGB(214, 159, 241) RGBA(214, 159, 241, 1) string.quoted.single
#D69FF1 RGB(214, 159, 241) RGBA(214, 159, 241, 1) string.quoted.triple
#D69FF1 RGB(214, 159, 241) RGBA(214, 159, 241, 1) string.regexp
#A164BA RGB(161, 100, 186) RGBA(161, 100, 186, 1) string.template
#D69FF1 RGB(214, 159, 241) RGBA(214, 159, 241, 1) string.unquoted
#D69FF1 RGB(214, 159, 241) RGBA(214, 159, 241, 1) support
#FF9CB5 RGB(255, 156, 181) RGBA(255, 156, 181, 1) support.class
#D893E5 RGB(216, 147, 229) RGBA(216, 147, 229, 1) support.constant
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) support.function
#EFBAE4 RGB(239, 186, 228) RGBA(239, 186, 228, 1) support.other
#D893E5 RGB(216, 147, 229) RGBA(216, 147, 229, 1) support.type
#F3C3FC RGB(243, 195, 252) RGBA(243, 195, 252, 1) support.type.primitive
#F3C3FC RGB(243, 195, 252) RGBA(243, 195, 252, 1) support.type.property-name
#FF9CB5 RGB(255, 156, 181) RGBA(255, 156, 181, 1) variable
#FFE9EF RGB(255, 233, 239) RGBA(255, 233, 239, 1) variable.function
#EFBAE4 RGB(239, 186, 228) RGBA(239, 186, 228, 1) variable.language
#FFBCCD RGB(255, 188, 205) RGBA(255, 188, 205, 1) variable.name
#FFE9EF RGB(255, 233, 239) RGBA(255, 233, 239, 1) variable.other
#D69FF1 RGB(214, 159, 241) RGBA(214, 159, 241, 1) variable.other.constant
#D69FF1 RGB(214, 159, 241) RGBA(214, 159, 241, 1) variable.other.property
#D69FF1 RGB(214, 159, 241) RGBA(214, 159, 241, 1) variable.other.readwrite
#D69FF1 RGB(214, 159, 241) RGBA(214, 159, 241, 1) variable.parameter
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1)