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
Genderfluid (Light)
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) activityBar.foreground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) activityBarBadge.background
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) editor.background
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editor.foreground
#4A53B6 RGB(74, 83, 182) RGBA(74, 83, 182, 1) editorLineNumber.foreground
#323DBB RGB(50, 61, 187) RGBA(50, 61, 187, 1) gitDecoration.modifiedResourceForeground
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) gitDecoration.untrackedResourceForeground
#323DBB RGB(50, 61, 187) RGBA(50, 61, 187, 1) list.errorForeground
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) list.warningForeground
#323DBB RGB(50, 61, 187) RGBA(50, 61, 187, 1) sideBarTitle.foreground
#FE75A1 RGB(254, 117, 161) RGBA(254, 117, 161, 1) statusBar.background
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) statusBar.debuggingBackground
#263238 RGB(38, 50, 56) RGBA(38, 50, 56, 1) statusBar.foreground
#323DBB RGB(50, 61, 187) RGBA(50, 61, 187, 1) statusBar.noFolderBackground
#323DBB RGB(50, 61, 187) RGBA(50, 61, 187, 1) statusBar.noFolderForeground
#FE75A1 RGB(254, 117, 161) RGBA(254, 117, 161, 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
#6F75B9 RGB(111, 117, 185) RGBA(111, 117, 185, 1) comment.block
#6F75B9 RGB(111, 117, 185) RGBA(111, 117, 185, 1) comment.block.documentation
#6F75B9 RGB(111, 117, 185) RGBA(111, 117, 185, 1) comment.line
#6F75B9 RGB(111, 117, 185) RGBA(111, 117, 185, 1) constant
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) constant.character
#FE75A1 RGB(254, 117, 161) RGBA(254, 117, 161, 1) constant.character.escape
#FE75A1 RGB(254, 117, 161) RGBA(254, 117, 161, 1) constant.numeric
#FE75A1 RGB(254, 117, 161) RGBA(254, 117, 161, 1) constant.numeric.integer
#FE75A1 RGB(254, 117, 161) RGBA(254, 117, 161, 1) constant.numeric.float
#FE75A1 RGB(254, 117, 161) RGBA(254, 117, 161, 1) constant.numeric.hex
#FE75A1 RGB(254, 117, 161) RGBA(254, 117, 161, 1) constant.numeric.octal
#FE75A1 RGB(254, 117, 161) RGBA(254, 117, 161, 1) constant.other
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) constant.other.placeholder
#4A53B6 RGB(74, 83, 182) RGBA(74, 83, 182, 1) entity
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) entity.name
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) entity.name.class
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) entity.name.function
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) entity.name.method
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) entity.name.namespace
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) entity.name.section
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) entity.name.selector
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) entity.name.tag
#FE75A1 RGB(254, 117, 161) RGBA(254, 117, 161, 1) entity.name.type
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) entity.name.type.enum
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) entity.name.type.interface
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) entity.name.type.struct
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) entity.other
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) entity.other.attribute-name
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) entity.other.inherited-class
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) invalid
#FE75A1 RGB(254, 117, 161) RGBA(254, 117, 161, 1) invalid.deprecated
#FE75A1 RGB(254, 117, 161) RGBA(254, 117, 161, 1) invalid.illegal
#FE75A1 RGB(254, 117, 161) RGBA(254, 117, 161, 1) keyword
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 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
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) keyword.operator.new
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) keyword.operator.assignment
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) keyword.operator.arithmetic
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) keyword.operator.logical
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) keyword.other
#FE75A1 RGB(254, 117, 161) RGBA(254, 117, 161, 1) markup
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.bold
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) markup.changed
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) markup.deleted
#FE75A1 RGB(254, 117, 161) RGBA(254, 117, 161, 1) markup.heading
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) markup.inline.raw
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) markup.inserted
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) markup.italic
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) markup.raw
#5C5ADB RGB(92, 90, 219) RGBA(92, 90, 219, 1) markup.underline
#5C5ADB RGB(92, 90, 219) RGBA(92, 90, 219, 1) markup.underline.link
#5C5ADB RGB(92, 90, 219) RGBA(92, 90, 219, 1) meta
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) meta.function-call
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) meta.tag
#FE75A1 RGB(254, 117, 161) RGBA(254, 117, 161, 1) punctuation.definition.bracket
#FE75A1 RGB(254, 117, 161) RGBA(254, 117, 161, 1) punctuation.definition.comment
#6F75B9 RGB(111, 117, 185) RGBA(111, 117, 185, 1) punctuation.definition.string.begin
#FE75A1 RGB(254, 117, 161) RGBA(254, 117, 161, 1) punctuation.definition.string.end
#FE75A1 RGB(254, 117, 161) RGBA(254, 117, 161, 1) punctuation.separator
#FE75A1 RGB(254, 117, 161) RGBA(254, 117, 161, 1) punctuation.separator.continuation
#FE75A1 RGB(254, 117, 161) RGBA(254, 117, 161, 1) punctuation.terminator
#FE75A1 RGB(254, 117, 161) RGBA(254, 117, 161, 1) storage
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) storage.modifier
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) storage.type
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) string
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) string.interpolated
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) string.other
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) string.quoted
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) string.quoted.double
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) string.quoted.other
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) string.quoted.single
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) string.quoted.triple
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) string.regexp
#FE75A1 RGB(254, 117, 161) RGBA(254, 117, 161, 1) string.template
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) string.unquoted
#BE18D5 RGB(190, 24, 213) RGBA(190, 24, 213, 1) support
#D5B7E9 RGB(213, 183, 233) RGBA(213, 183, 233, 1) support.class
#FA4BA5 RGB(250, 75, 165) RGBA(250, 75, 165, 1) support.constant
#FE75A1 RGB(254, 117, 161) RGBA(254, 117, 161, 1) support.function
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) support.other
#FA4BA5 RGB(250, 75, 165) RGBA(250, 75, 165, 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
#6497FF RGB(100, 151, 255) RGBA(100, 151, 255, 1) variable
#4A53B6 RGB(74, 83, 182) RGBA(74, 83, 182, 1) variable.function
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) variable.language
#FE75A1 RGB(254, 117, 161) RGBA(254, 117, 161, 1) variable.name
#4A53B6 RGB(74, 83, 182) RGBA(74, 83, 182, 1) variable.other
#4A53B6 RGB(74, 83, 182) RGBA(74, 83, 182, 1) variable.other.constant
#4A53B6 RGB(74, 83, 182) RGBA(74, 83, 182, 1) variable.other.property
#4A53B6 RGB(74, 83, 182) RGBA(74, 83, 182, 1) variable.other.readwrite
#4A53B6 RGB(74, 83, 182) RGBA(74, 83, 182, 1) variable.parameter
#FE75A1 RGB(254, 117, 161) RGBA(254, 117, 161, 1)