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
Cream Comfort Dark
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA button.background
#5D4C4420 RGB(93, 76, 68) RGBA(93, 76, 68, 0.125) descriptionForeground
#8C7D72 RGB(140, 125, 114) RGBA(140, 125, 114, 1) editor.background
#1A1613 RGB(26, 22, 19) RGBA(26, 22, 19, 1) editor.foreground
#E6DFD7 RGB(230, 223, 215) RGBA(230, 223, 215, 1) editor.lineHighlightBackground
#2A25221A RGB(42, 37, 34) RGBA(42, 37, 34, 0.102) editor.selectionBackground
#5D4C4466 RGB(93, 76, 68) RGBA(93, 76, 68, 0.4) editor.selectionHighlightBackground
#5D4C4440 RGB(93, 76, 68) RGBA(93, 76, 68, 0.251) editorCursor.foreground
#A08C7C RGB(160, 140, 124) RGBA(160, 140, 124, 1) errorForeground
#D49A8F RGB(212, 154, 143) RGBA(212, 154, 143, 1) focusBorder
#5D4C44 RGB(93, 76, 68) RGBA(93, 76, 68, 1) foreground
#E6DFD7 RGB(230, 223, 215) RGBA(230, 223, 215, 1) infoForeground
#8CAEA7 RGB(140, 174, 167) RGBA(140, 174, 167, 1) sideBar.background
#1F1B18 RGB(31, 27, 24) RGBA(31, 27, 24, 1) statusBar.background
#2A2522 RGB(42, 37, 34) RGBA(42, 37, 34, 1) textLink.foreground
#A08C7C RGB(160, 140, 124) RGBA(160, 140, 124, 1) warningForeground
#C2A38A RGB(194, 163, 138) RGBA(194, 163, 138, 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
#6D6258 RGB(109, 98, 88) RGBA(109, 98, 88, 1) comment.block
#6D6258 RGB(109, 98, 88) RGBA(109, 98, 88, 1) comment.block.documentation
#6D6258 RGB(109, 98, 88) RGBA(109, 98, 88, 1) comment.line
#6D6258 RGB(109, 98, 88) RGBA(109, 98, 88, 1) constant
#D49A6F RGB(212, 154, 111) RGBA(212, 154, 111, 1) constant.character
#D49A6F RGB(212, 154, 111) RGBA(212, 154, 111, 1) constant.character.escape
#D49A6F RGB(212, 154, 111) RGBA(212, 154, 111, 1) constant.numeric
#6D6258 RGB(109, 98, 88) RGBA(109, 98, 88, 1) constant.numeric.integer
#6D6258 RGB(109, 98, 88) RGBA(109, 98, 88, 1) constant.numeric.float
#6D6258 RGB(109, 98, 88) RGBA(109, 98, 88, 1) constant.numeric.hex
#6D6258 RGB(109, 98, 88) RGBA(109, 98, 88, 1) constant.numeric.octal
#6D6258 RGB(109, 98, 88) RGBA(109, 98, 88, 1) entity
#C2A38A RGB(194, 163, 138) RGBA(194, 163, 138, 1) entity.name
#A08C7C RGB(160, 140, 124) RGBA(160, 140, 124, 1) entity.name.class
#E6DFD7 RGB(230, 223, 215) RGBA(230, 223, 215, 1) entity.name.function
#C2A38A RGB(194, 163, 138) RGBA(194, 163, 138, 1) entity.name.tag
#A08C7C RGB(160, 140, 124) RGBA(160, 140, 124, 1) entity.name.type
#C2A38A RGB(194, 163, 138) RGBA(194, 163, 138, 1) entity.name.type.enum
#C2A38A RGB(194, 163, 138) RGBA(194, 163, 138, 1) entity.name.type.interface
#C2A38A RGB(194, 163, 138) RGBA(194, 163, 138, 1) entity.name.type.struct
#C2A38A RGB(194, 163, 138) RGBA(194, 163, 138, 1) entity.other
#C2A38A RGB(194, 163, 138) RGBA(194, 163, 138, 1) entity.other.attribute-name
#C2A38A RGB(194, 163, 138) RGBA(194, 163, 138, 1) entity.other.inherited-class
#C2A38A RGB(194, 163, 138) RGBA(194, 163, 138, 1) keyword
#A08C7C RGB(160, 140, 124) RGBA(160, 140, 124, 1) keyword.control
#C2A38A RGB(194, 163, 138) RGBA(194, 163, 138, 1) keyword.control.flow
#C2A38A RGB(194, 163, 138) RGBA(194, 163, 138, 1) keyword.operator
#A08C7C RGB(160, 140, 124) RGBA(160, 140, 124, 1) keyword.operator.new
#A08C7C RGB(160, 140, 124) RGBA(160, 140, 124, 1) keyword.operator.assignment
#A08C7C RGB(160, 140, 124) RGBA(160, 140, 124, 1) keyword.operator.arithmetic
#A08C7C RGB(160, 140, 124) RGBA(160, 140, 124, 1) keyword.operator.logical
#A08C7C RGB(160, 140, 124) RGBA(160, 140, 124, 1) keyword.other
#A08C7C RGB(160, 140, 124) RGBA(160, 140, 124, 1) markup
#A08C7C RGB(160, 140, 124) RGBA(160, 140, 124, 1) markup.heading
#E6DFD7 RGB(230, 223, 215) RGBA(230, 223, 215, 1) markup.list
#A08C7C RGB(160, 140, 124) RGBA(160, 140, 124, 1) markup.list.numbered
#A08C7C RGB(160, 140, 124) RGBA(160, 140, 124, 1) markup.list.unnumbered
#A08C7C RGB(160, 140, 124) RGBA(160, 140, 124, 1) meta
#8CAEA7 RGB(140, 174, 167) RGBA(140, 174, 167, 1) punctuation.definition.bracket
#8C7D72 RGB(140, 125, 114) RGBA(140, 125, 114, 1) punctuation.definition.comment
#8C7D72 RGB(140, 125, 114) RGBA(140, 125, 114, 1) punctuation.definition.string.begin
#8C7D72 RGB(140, 125, 114) RGBA(140, 125, 114, 1) punctuation.definition.string.end
#8C7D72 RGB(140, 125, 114) RGBA(140, 125, 114, 1) punctuation.separator
#8C7D72 RGB(140, 125, 114) RGBA(140, 125, 114, 1) punctuation.separator.continuation
#8C7D72 RGB(140, 125, 114) RGBA(140, 125, 114, 1) punctuation.terminator
#8C7D72 RGB(140, 125, 114) RGBA(140, 125, 114, 1) storage
#B89E8A RGB(184, 158, 138) RGBA(184, 158, 138, 1) storage.modifier
#B89E8A RGB(184, 158, 138) RGBA(184, 158, 138, 1) storage.type
#B89E8A RGB(184, 158, 138) RGBA(184, 158, 138, 1) string
#B89E8A RGB(184, 158, 138) RGBA(184, 158, 138, 1) string.interpolated
#B89E8A RGB(184, 158, 138) RGBA(184, 158, 138, 1) string.other
#B89E8A RGB(184, 158, 138) RGBA(184, 158, 138, 1) string.quoted
#B89E8A RGB(184, 158, 138) RGBA(184, 158, 138, 1) string.quoted.double
#B89E8A RGB(184, 158, 138) RGBA(184, 158, 138, 1) string.quoted.other
#B89E8A RGB(184, 158, 138) RGBA(184, 158, 138, 1) string.quoted.single
#A08C7C RGB(160, 140, 124) RGBA(160, 140, 124, 1) string.quoted.triple
#B89E8A RGB(184, 158, 138) RGBA(184, 158, 138, 1) string.regexp
#D49A6F RGB(212, 154, 111) RGBA(212, 154, 111, 1) string.template
#B89E8A RGB(184, 158, 138) RGBA(184, 158, 138, 1) string.unquoted
#B89E8A RGB(184, 158, 138) RGBA(184, 158, 138, 1) support
#A08C7C RGB(160, 140, 124) RGBA(160, 140, 124, 1) support.function
#8CAEA7 RGB(140, 174, 167) RGBA(140, 174, 167, 1) support.type
#A08C7C RGB(160, 140, 124) RGBA(160, 140, 124, 1) support.type.primitive
#A08C7C RGB(160, 140, 124) RGBA(160, 140, 124, 1) support.type.property-name
#A08C7C RGB(160, 140, 124) RGBA(160, 140, 124, 1) variable
#E6DFD7 RGB(230, 223, 215) RGBA(230, 223, 215, 1) variable.function
#E6DFD7 RGB(230, 223, 215) RGBA(230, 223, 215, 1) variable.language
#E6DFD7 RGB(230, 223, 215) RGBA(230, 223, 215, 1) variable.name
#E6DFD7 RGB(230, 223, 215) RGBA(230, 223, 215, 1) variable.other
#E6DFD7 RGB(230, 223, 215) RGBA(230, 223, 215, 1) variable.other.constant
#E6DFD7 RGB(230, 223, 215) RGBA(230, 223, 215, 1) variable.other.property
#A08C7C RGB(160, 140, 124) RGBA(160, 140, 124, 1) variable.other.readwrite
#E6DFD7 RGB(230, 223, 215) RGBA(230, 223, 215, 1) variable.parameter
#C2A38A RGB(194, 163, 138) RGBA(194, 163, 138, 1)