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
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
#676767 RGB(103, 103, 103) RGBA(103, 103, 103, 1) comment.block
#676767 RGB(103, 103, 103) RGBA(103, 103, 103, 1) comment.block.documentation
#676767 RGB(103, 103, 103) RGBA(103, 103, 103, 1) comment.line
#676767 RGB(103, 103, 103) RGBA(103, 103, 103, 1) constant
#6CFF9A RGB(108, 255, 154) RGBA(108, 255, 154, 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
#6CFF9A RGB(108, 255, 154) RGBA(108, 255, 154, 1) constant.numeric.integer
#6CFF9A RGB(108, 255, 154) RGBA(108, 255, 154, 1) constant.numeric.float
#6CFF9A RGB(108, 255, 154) RGBA(108, 255, 154, 1) constant.numeric.hex
#6CFF9A RGB(108, 255, 154) RGBA(108, 255, 154, 1) constant.numeric.octal
#6CFF9A RGB(108, 255, 154) RGBA(108, 255, 154, 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
#AD5ADA RGB(173, 90, 218) RGBA(173, 90, 218, 1) keyword.control.flow
#AD5ADA RGB(173, 90, 218) RGBA(173, 90, 218, 1) keyword.operator
#FFA57C RGB(255, 165, 124) RGBA(255, 165, 124, 1) keyword.operator.new
#569CD6 RGB(86, 156, 214) RGBA(86, 156, 214, 1) keyword.operator.assignment
#FFA57C RGB(255, 165, 124) RGBA(255, 165, 124, 1) keyword.operator.arithmetic
#FFA57C RGB(255, 165, 124) RGBA(255, 165, 124, 1) keyword.operator.logical
#FFA57C RGB(255, 165, 124) RGBA(255, 165, 124, 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
#95D2F0 RGB(149, 210, 240) RGBA(149, 210, 240, 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
#6C6C6C RGB(108, 108, 108) RGBA(108, 108, 108, 1) storage.type
#FF85C2 RGB(255, 133, 194) RGBA(255, 133, 194, 1) string
#F7BB9F RGB(247, 187, 159) RGBA(247, 187, 159, 1) string.interpolated
#F7BB9F RGB(247, 187, 159) RGBA(247, 187, 159, 1) string.other
#F7BB9F RGB(247, 187, 159) RGBA(247, 187, 159, 1) string.quoted
#F7BB9F RGB(247, 187, 159) RGBA(247, 187, 159, 1) string.quoted.double
#F7BB9F RGB(247, 187, 159) RGBA(247, 187, 159, 1) string.quoted.other
#F7BB9F RGB(247, 187, 159) RGBA(247, 187, 159, 1) string.quoted.single
#F7BB9F RGB(247, 187, 159) RGBA(247, 187, 159, 1) string.quoted.triple
#F7BB9F RGB(247, 187, 159) RGBA(247, 187, 159, 1) string.regexp
#D16969 RGB(209, 105, 105) RGBA(209, 105, 105, 1) string.template
#F7BB9F RGB(247, 187, 159) RGBA(247, 187, 159, 1) string.unquoted
#F7BB9F RGB(247, 187, 159) RGBA(247, 187, 159, 1) support
#FF85C2 RGB(255, 133, 194) RGBA(255, 133, 194, 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
#E1D480 RGB(225, 212, 128) RGBA(225, 212, 128, 1) support.other
#CE9178 RGB(206, 145, 120) RGBA(206, 145, 120, 1) support.type
#FF85C2 RGB(255, 133, 194) RGBA(255, 133, 194, 1) support.type.primitive
#FF85C2 RGB(255, 133, 194) RGBA(255, 133, 194, 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)