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
Dark Candy Retro
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#007ACC RGB(0, 122, 204) RGBA(0, 122, 204, 1) editor.background
#202020 RGB(32, 32, 32) RGBA(32, 32, 32, 1) editor.foreground
#D4D4D4 RGB(212, 212, 212) RGBA(212, 212, 212, 1) editor.inactiveSelectionBackground
#3A3D41 RGB(58, 61, 65) RGBA(58, 61, 65, 1) editor.selectionHighlightBackground
#ADD6FF26 RGB(173, 214, 255) RGBA(173, 214, 255, 0.149) editorIndentGuide.background
#404040 RGB(64, 64, 64) RGBA(64, 64, 64, 1) list.dropBackground
#383B3D RGB(56, 59, 61) RGBA(56, 59, 61, 1) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 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
#8C8C8C RGB(140, 140, 140) RGBA(140, 140, 140, 1) comment.block
#8C8C8C RGB(140, 140, 140) RGBA(140, 140, 140, 1) comment.block.documentation
#8C8C8C RGB(140, 140, 140) RGBA(140, 140, 140, 1) comment.line
#8C8C8C RGB(140, 140, 140) RGBA(140, 140, 140, 1) constant
#6EE793 RGB(110, 231, 147) RGBA(110, 231, 147, 1) constant.character
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) constant.character.escape
#D7BA7D RGB(215, 186, 125) RGBA(215, 186, 125, 1) constant.numeric
#6EE793 RGB(110, 231, 147) RGBA(110, 231, 147, 1) constant.numeric.integer
#6EE793 RGB(110, 231, 147) RGBA(110, 231, 147, 1) constant.numeric.float
#6EE793 RGB(110, 231, 147) RGBA(110, 231, 147, 1) constant.numeric.hex
#6EE793 RGB(110, 231, 147) RGBA(110, 231, 147, 1) constant.numeric.octal
#6EE793 RGB(110, 231, 147) RGBA(110, 231, 147, 1) constant.other
#D16969 RGB(209, 105, 105) RGBA(209, 105, 105, 1) constant.regexp
#646695 RGB(100, 102, 149) RGBA(100, 102, 149, 1) entity
#E1D480 RGB(225, 212, 128) RGBA(225, 212, 128, 1) entity.name
#E1D480 RGB(225, 212, 128) RGBA(225, 212, 128, 1) entity.name.class
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) entity.name.function
#E1D480 RGB(225, 212, 128) RGBA(225, 212, 128, 1) entity.name.tag
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) entity.name.type
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) entity.name.type.enum
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) entity.name.type.interface
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) entity.name.type.struct
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) entity.other
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) entity.other.attribute-name
#9CDCFE RGB(156, 220, 254) RGBA(156, 220, 254, 1) entity.other.inherited-class
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) invalid
#F44747 RGB(244, 71, 71) RGBA(244, 71, 71, 1) invalid.deprecated
#F44747 RGB(244, 71, 71) RGBA(244, 71, 71, 1) invalid.illegal
#F44747 RGB(244, 71, 71) RGBA(244, 71, 71, 1) keyword
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) keyword.control
#499AEB RGB(73, 154, 235) RGBA(73, 154, 235, 1) keyword.control.flow
#499AEB RGB(73, 154, 235) RGBA(73, 154, 235, 1) keyword.operator
#FF8373 RGB(255, 131, 115) RGBA(255, 131, 115, 1) keyword.operator.new
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) keyword.operator.assignment
#FF8373 RGB(255, 131, 115) RGBA(255, 131, 115, 1) keyword.operator.arithmetic
#FF8373 RGB(255, 131, 115) RGBA(255, 131, 115, 1) keyword.operator.logical
#FF8373 RGB(255, 131, 115) RGBA(255, 131, 115, 1) keyword.other
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) markup
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) markup.bold
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) markup.changed
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) markup.deleted
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) markup.heading
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) markup.inline.raw
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) markup.inserted
#B5CEA8 RGB(181, 206, 168) RGBA(181, 206, 168, 1) meta
#909090 RGB(144, 144, 144) RGBA(144, 144, 144, 1) meta.function-call
#FDF0C6 RGB(253, 240, 198) RGBA(253, 240, 198, 1) meta.preprocessor
#909090 RGB(144, 144, 144) RGBA(144, 144, 144, 1) meta.return-type
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) meta.selector
#D7BA7D RGB(215, 186, 125) RGBA(215, 186, 125, 1) meta.type
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) punctuation.definition.bracket
#4F4F4F RGB(79, 79, 79) RGBA(79, 79, 79, 1) punctuation.definition.comment
#4F4F4F RGB(79, 79, 79) RGBA(79, 79, 79, 1) punctuation.definition.string.begin
#4F4F4F RGB(79, 79, 79) RGBA(79, 79, 79, 1) punctuation.definition.string.end
#4F4F4F RGB(79, 79, 79) RGBA(79, 79, 79, 1) punctuation.separator
#4F4F4F RGB(79, 79, 79) RGBA(79, 79, 79, 1) punctuation.separator.continuation
#4F4F4F RGB(79, 79, 79) RGBA(79, 79, 79, 1) punctuation.terminator
#4F4F4F RGB(79, 79, 79) RGBA(79, 79, 79, 1) storage
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) storage.modifier
#4C4C4C RGB(76, 76, 76) RGBA(76, 76, 76, 1) storage.type
#46C2BE RGB(70, 194, 190) RGBA(70, 194, 190, 1) string
#FF85C2 RGB(255, 133, 194) RGBA(255, 133, 194, 1) string.interpolated
#FF85C2 RGB(255, 133, 194) RGBA(255, 133, 194, 1) string.other
#FF85C2 RGB(255, 133, 194) RGBA(255, 133, 194, 1) string.quoted
#FF85C2 RGB(255, 133, 194) RGBA(255, 133, 194, 1) string.quoted.double
#FF85C2 RGB(255, 133, 194) RGBA(255, 133, 194, 1) string.quoted.other
#FF85C2 RGB(255, 133, 194) RGBA(255, 133, 194, 1) string.quoted.single
#FF85C2 RGB(255, 133, 194) RGBA(255, 133, 194, 1) string.quoted.triple
#FF85C2 RGB(255, 133, 194) RGBA(255, 133, 194, 1) string.regexp
#D16969 RGB(209, 105, 105) RGBA(209, 105, 105, 1) string.template
#FF85C2 RGB(255, 133, 194) RGBA(255, 133, 194, 1) string.unquoted
#FF85C2 RGB(255, 133, 194) RGBA(255, 133, 194, 1) support
#46C2BE RGB(70, 194, 190) RGBA(70, 194, 190, 1) support.class
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) support.constant
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) support.function
#E7AA81 RGB(231, 170, 129) RGBA(231, 170, 129, 1) support.other
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) support.type
#46C2BE RGB(70, 194, 190) RGBA(70, 194, 190, 1) support.type.primitive
#46C2BE RGB(70, 194, 190) RGBA(70, 194, 190, 1) support.type.property-name
#9CDCFE RGB(156, 220, 254) RGBA(156, 220, 254, 1) support.variable
#9CDCFE RGB(156, 220, 254) RGBA(156, 220, 254, 1) variable
#D0D0D0 RGB(208, 208, 208) RGBA(208, 208, 208, 1) variable.function
#D0D0D0 RGB(208, 208, 208) RGBA(208, 208, 208, 1) variable.language
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) variable.name
#D0D0D0 RGB(208, 208, 208) RGBA(208, 208, 208, 1) variable.other
#D0D0D0 RGB(208, 208, 208) RGBA(208, 208, 208, 1) variable.other.constant
#D0D0D0 RGB(208, 208, 208) RGBA(208, 208, 208, 1) variable.other.property
#D0D0D0 RGB(208, 208, 208) RGBA(208, 208, 208, 1) variable.other.readwrite
#D0D0D0 RGB(208, 208, 208) RGBA(208, 208, 208, 1) variable.parameter
#D0D0D0 RGB(208, 208, 208) RGBA(208, 208, 208, 1)