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
The Hat Maker
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.activeBackground
#36044A RGB(54, 4, 74) RGBA(54, 4, 74, 1) activityBar.background
#13131C RGB(19, 19, 28) RGBA(19, 19, 28, 1) activityBar.foreground
#CD8827 RGB(205, 136, 39) RGBA(205, 136, 39, 1) activityBarBadge.background
#136700 RGB(19, 103, 0) RGBA(19, 103, 0, 1) editor.background
#1D1D23 RGB(29, 29, 35) RGBA(29, 29, 35, 1) editor.foreground
#C9C9C9 RGB(201, 201, 201) RGBA(201, 201, 201, 1) editor.wordHighlightBackground
#83838350 RGB(131, 131, 131) RGBA(131, 131, 131, 0.314) editorBracketMatch.border
#FF00EEB5 RGB(255, 0, 238) RGBA(255, 0, 238, 0.71) editorLineNumber.foreground
#5F5F5F RGB(95, 95, 95) RGBA(95, 95, 95, 1) minimap.background
#1F1F22 RGB(31, 31, 34) RGBA(31, 31, 34, 1) minimap.findMatchHighlight
#F5810400 RGB(245, 129, 4) RGBA(245, 129, 4, 0) sideBar.background
#1F1F22 RGB(31, 31, 34) RGBA(31, 31, 34, 1) sideBar.dropBackground
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) sideBarTitle.foreground
#CACACA RGB(202, 202, 202) RGBA(202, 202, 202, 1) statusBar.background
#13131C RGB(19, 19, 28) RGBA(19, 19, 28, 1) statusBar.foreground
#E9E9E9 RGB(233, 233, 233) RGBA(233, 233, 233, 1) tab.activeBackground
#2F3138 RGB(47, 49, 56) RGBA(47, 49, 56, 1) tab.inactiveBackground
#1B1B1F RGB(27, 27, 31) RGBA(27, 27, 31, 1) titleBar.activeBackground
#222224 RGB(34, 34, 36) RGBA(34, 34, 36, 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
#658A8A RGB(101, 138, 138) RGBA(101, 138, 138, 1) comment.block
#658A8A RGB(101, 138, 138) RGBA(101, 138, 138, 1) comment.block.documentation
#658A8A RGB(101, 138, 138) RGBA(101, 138, 138, 1) comment.line
#658A8A RGB(101, 138, 138) RGBA(101, 138, 138, 1) constant
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.character
#35BBA7 RGB(53, 187, 167) RGBA(53, 187, 167, 1) constant.character.escape
#F84D0E RGB(248, 77, 14) RGBA(248, 77, 14, 1) constant.numeric
#E4DFDA RGB(228, 223, 218) RGBA(228, 223, 218, 1) constant.numeric.integer
#E4DFDA RGB(228, 223, 218) RGBA(228, 223, 218, 1) constant.numeric.float
#E4DFDA RGB(228, 223, 218) RGBA(228, 223, 218, 1) constant.numeric.hex
#E4DFDA RGB(228, 223, 218) RGBA(228, 223, 218, 1) constant.numeric.octal
#E4DFDA RGB(228, 223, 218) RGBA(228, 223, 218, 1) constant.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.other.placeholder
#00FFDD RGB(0, 255, 221) RGBA(0, 255, 221, 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
#C1666B RGB(193, 102, 107) RGBA(193, 102, 107, 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
#43BBC9 RGB(67, 187, 201) RGBA(67, 187, 201, 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
#1D9D21 RGB(29, 157, 33) RGBA(29, 157, 33, 1) entity.other.attribute-name
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) entity.other.inherited-class
#68C154 RGB(104, 193, 84) RGBA(104, 193, 84, 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
#E6C38F RGB(230, 195, 143) RGBA(230, 195, 143, 1) keyword.control
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) keyword.control.flow
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) keyword.operator
#E6C38F RGB(230, 195, 143) RGBA(230, 195, 143, 1) keyword.operator.new
#E6C38F RGB(230, 195, 143) RGBA(230, 195, 143, 1) keyword.operator.assignment
#E6C38F RGB(230, 195, 143) RGBA(230, 195, 143, 1) keyword.operator.arithmetic
#E6C38F RGB(230, 195, 143) RGBA(230, 195, 143, 1) keyword.operator.logical
#E6C38F RGB(230, 195, 143) RGBA(230, 195, 143, 1) keyword.other
#35BBA7 RGB(53, 187, 167) RGBA(53, 187, 167, 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
#88FF00 RGB(136, 255, 0) RGBA(136, 255, 0, 1) markup.deleted
#541721 RGB(84, 23, 33) RGBA(84, 23, 33, 1) markup.heading
#68C154 RGB(104, 193, 84) RGBA(104, 193, 84, 1) markup.inline.raw
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.inserted
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 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
#5EB3D1 RGB(94, 179, 209) RGBA(94, 179, 209, 1) meta.function-call
#C1666B RGB(193, 102, 107) RGBA(193, 102, 107, 1) meta.tag
#E8DFBC RGB(232, 223, 188) RGBA(232, 223, 188, 1) punctuation.definition.bracket
#E8DFBC RGB(232, 223, 188) RGBA(232, 223, 188, 1) punctuation.definition.comment
#658A8A RGB(101, 138, 138) RGBA(101, 138, 138, 1) punctuation.definition.string.begin
#D14F4F RGB(209, 79, 79) RGBA(209, 79, 79, 1) punctuation.definition.string.end
#D14F4F RGB(209, 79, 79) RGBA(209, 79, 79, 1) punctuation.separator
#D14F4F RGB(209, 79, 79) RGBA(209, 79, 79, 1) punctuation.separator.continuation
#D14F4F RGB(209, 79, 79) RGBA(209, 79, 79, 1) punctuation.terminator
#E8DFBC RGB(232, 223, 188) RGBA(232, 223, 188, 1) storage
#B3462E RGB(179, 70, 46) RGBA(179, 70, 46, 1) storage.modifier
#C5B779 RGB(197, 183, 121) RGBA(197, 183, 121, 1) storage.type
#E6C38F RGB(230, 195, 143) RGBA(230, 195, 143, 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
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 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
#E8B98D RGB(232, 185, 141) RGBA(232, 185, 141, 1) support.class
#4281A4 RGB(66, 129, 164) RGBA(66, 129, 164, 1) support.constant
#35BBA7 RGB(53, 187, 167) RGBA(53, 187, 167, 1) support.function
#5EB3D1 RGB(94, 179, 209) RGBA(94, 179, 209, 1) support.other
#4281A4 RGB(66, 129, 164) RGBA(66, 129, 164, 1) support.type
#33667A RGB(51, 102, 122) RGBA(51, 102, 122, 1) support.type.primitive
#33667A RGB(51, 102, 122) RGBA(51, 102, 122, 1) support.type.property-name
#CACACA RGB(202, 202, 202) RGBA(202, 202, 202, 1) variable
#00FFDD RGB(0, 255, 221) RGBA(0, 255, 221, 1) variable.function
#3FCFBC RGB(63, 207, 188) RGBA(63, 207, 188, 1) variable.language
#E4DFDA RGB(228, 223, 218) RGBA(228, 223, 218, 1) variable.name
#00FFDD RGB(0, 255, 221) RGBA(0, 255, 221, 1) variable.other
#D5D5D5 RGB(213, 213, 213) RGBA(213, 213, 213, 1) variable.other.constant
#D5D5D5 RGB(213, 213, 213) RGBA(213, 213, 213, 1) variable.other.property
#D5D5D5 RGB(213, 213, 213) RGBA(213, 213, 213, 1) variable.other.readwrite
#D5D5D5 RGB(213, 213, 213) RGBA(213, 213, 213, 1) variable.parameter
#35BBA7 RGB(53, 187, 167) RGBA(53, 187, 167, 1)