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
Fargerik Dark Lush
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#1F201F RGB(31, 32, 31) RGBA(31, 32, 31, 1) activityBarBadge.background
#00CC22 RGB(0, 204, 34) RGBA(0, 204, 34, 1) editor.background
#1B1B19 RGB(27, 27, 25) RGBA(27, 27, 25, 1) editor.foreground
#DEFBBE RGB(222, 251, 190) RGBA(222, 251, 190, 1) editorGutter.background
#1E221E RGB(30, 34, 30) RGBA(30, 34, 30, 1) sideBar.background
#181D17 RGB(24, 29, 23) RGBA(24, 29, 23, 1) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) statusBar.background
#32462F RGB(50, 70, 47) RGBA(50, 70, 47, 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
#F19E31 RGB(241, 158, 49) RGBA(241, 158, 49, 1) comment.block
#F19E31 RGB(241, 158, 49) RGBA(241, 158, 49, 1) comment.block.documentation
#F19E31 RGB(241, 158, 49) RGBA(241, 158, 49, 1) comment.line
#F19E31 RGB(241, 158, 49) RGBA(241, 158, 49, 1) constant
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.character
#F4F5C5 RGB(244, 245, 197) RGBA(244, 245, 197, 1) constant.character.escape
#DD6839 RGB(221, 104, 57) RGBA(221, 104, 57, 1) constant.numeric
#F4F5C5 RGB(244, 245, 197) RGBA(244, 245, 197, 1) constant.numeric.integer
#F4F5C5 RGB(244, 245, 197) RGBA(244, 245, 197, 1) constant.numeric.float
#F4F5C5 RGB(244, 245, 197) RGBA(244, 245, 197, 1) constant.numeric.hex
#F4F5C5 RGB(244, 245, 197) RGBA(244, 245, 197, 1) constant.numeric.octal
#F4F5C5 RGB(244, 245, 197) RGBA(244, 245, 197, 1) constant.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.other.placeholder
#5EF865 RGB(94, 248, 101) RGBA(94, 248, 101, 1) entity
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.class
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.function
#A5EE75 RGB(165, 238, 117) RGBA(165, 238, 117, 1) entity.name.method
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.namespace
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.section
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.selector
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.tag
#F1BCBE RGB(241, 188, 190) RGBA(241, 188, 190, 1) entity.name.type
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.enum
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.interface
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.struct
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 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
#7EE28B RGB(126, 226, 139) RGBA(126, 226, 139, 1) invalid
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) invalid.deprecated
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) invalid.illegal
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) keyword
#28C21A RGB(40, 194, 26) RGBA(40, 194, 26, 1) keyword.control
#82FFBA RGB(130, 255, 186) RGBA(130, 255, 186, 1) keyword.control.flow
#82FFBA RGB(130, 255, 186) RGBA(130, 255, 186, 1) keyword.operator
#28C21A RGB(40, 194, 26) RGBA(40, 194, 26, 1) keyword.operator.new
#28C21A RGB(40, 194, 26) RGBA(40, 194, 26, 1) keyword.operator.assignment
#28C21A RGB(40, 194, 26) RGBA(40, 194, 26, 1) keyword.operator.arithmetic
#28C21A RGB(40, 194, 26) RGBA(40, 194, 26, 1) keyword.operator.logical
#28C21A RGB(40, 194, 26) RGBA(40, 194, 26, 1) keyword.other
#F4F5C5 RGB(244, 245, 197) RGBA(244, 245, 197, 1) markup
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.bold
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 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
#CFFFA3 RGB(207, 255, 163) RGBA(207, 255, 163, 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
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) markup.raw
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.underline
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) markup.underline.link
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) meta
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) meta.function-call
#A5EE75 RGB(165, 238, 117) RGBA(165, 238, 117, 1) meta.tag
#F1BCBE RGB(241, 188, 190) RGBA(241, 188, 190, 1) punctuation.definition.bracket
#09FF00 RGB(9, 255, 0) RGBA(9, 255, 0, 1) punctuation.definition.comment
#F19E31 RGB(241, 158, 49) RGBA(241, 158, 49, 1) punctuation.definition.string.begin
#09FF00 RGB(9, 255, 0) RGBA(9, 255, 0, 1) punctuation.definition.string.end
#09FF00 RGB(9, 255, 0) RGBA(9, 255, 0, 1) punctuation.separator
#09FF00 RGB(9, 255, 0) RGBA(9, 255, 0, 1) punctuation.separator.continuation
#09FF00 RGB(9, 255, 0) RGBA(9, 255, 0, 1) punctuation.terminator
#09FF00 RGB(9, 255, 0) RGBA(9, 255, 0, 1) storage
#69E230 RGB(105, 226, 48) RGBA(105, 226, 48, 1) storage.modifier
#69E230 RGB(105, 226, 48) RGBA(105, 226, 48, 1) storage.type
#FB5041 RGB(251, 80, 65) RGBA(251, 80, 65, 1) string
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.interpolated
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.double
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.single
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.triple
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.regexp
#FFF789 RGB(255, 247, 137) RGBA(255, 247, 137, 1) string.template
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.unquoted
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) support
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) support.class
#7EE28B RGB(126, 226, 139) RGBA(126, 226, 139, 1) support.constant
#F4F5C5 RGB(244, 245, 197) RGBA(244, 245, 197, 1) support.function
#A5EE75 RGB(165, 238, 117) RGBA(165, 238, 117, 1) support.other
#7EE28B RGB(126, 226, 139) RGBA(126, 226, 139, 1) support.type
#D6BFB2 RGB(214, 191, 178) RGBA(214, 191, 178, 1) support.type.primitive
#D6BFB2 RGB(214, 191, 178) RGBA(214, 191, 178, 1) support.type.property-name
#D6C8B2 RGB(214, 200, 178) RGBA(214, 200, 178, 1) variable
#5EF865 RGB(94, 248, 101) RGBA(94, 248, 101, 1) variable.function
#5EF865 RGB(94, 248, 101) RGBA(94, 248, 101, 1) variable.language
#FF8453 RGB(255, 132, 83) RGBA(255, 132, 83, 1) variable.name
#5EF865 RGB(94, 248, 101) RGBA(94, 248, 101, 1) variable.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.other.constant
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.other.property
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.other.readwrite
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.parameter
#F4F5C5 RGB(244, 245, 197) RGBA(244, 245, 197, 1)