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
alehns
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#382929 RGB(56, 41, 41) RGBA(56, 41, 41, 1) activityBar.foreground
#858080 RGB(133, 128, 128) RGBA(133, 128, 128, 1) activityBarBadge.background
#A7E4F2 RGB(167, 228, 242) RGBA(167, 228, 242, 1) activityBarBadge.foreground
#3D5358 RGB(61, 83, 88) RGBA(61, 83, 88, 1) badge.background
#A7E4F2 RGB(167, 228, 242) RGBA(167, 228, 242, 1) badge.foreground
#3D5358 RGB(61, 83, 88) RGBA(61, 83, 88, 1) breadcrumb.background
#2C202486 RGB(44, 32, 36) RGBA(44, 32, 36, 0.525) dropdown.background
#2C2020 RGB(44, 32, 32) RGBA(44, 32, 32, 1) editor.background
#36292D RGB(54, 41, 45) RGBA(54, 41, 45, 1) editor.foreground
#D4B1B7 RGB(212, 177, 183) RGBA(212, 177, 183, 1) editor.lineHighlightBackground
#4D3436 RGB(77, 52, 54) RGBA(77, 52, 54, 1) editor.selectionBackground
#FF330022 RGB(255, 51, 0) RGBA(255, 51, 0, 0.133) editor.selectionHighlightBackground
#531907C4 RGB(83, 25, 7) RGBA(83, 25, 7, 0.769) editorGroupHeader.tabsBackground
#2C2020 RGB(44, 32, 32) RGBA(44, 32, 32, 1) editorSuggestWidget.background
#382929 RGB(56, 41, 41) RGBA(56, 41, 41, 1) editorSuggestWidget.highlightForeground
#C9C4FF RGB(201, 196, 255) RGBA(201, 196, 255, 1) editorSuggestWidget.selectedBackground
#323140 RGB(50, 49, 64) RGBA(50, 49, 64, 1) input.background
#382929 RGB(56, 41, 41) RGBA(56, 41, 41, 1) list.hoverBackground
#4D3436 RGB(77, 52, 54) RGBA(77, 52, 54, 1) notifications.background
#382929 RGB(56, 41, 41) RGBA(56, 41, 41, 1) panel.background
#382929 RGB(56, 41, 41) RGBA(56, 41, 41, 1) sideBar.background
#2C2020 RGB(44, 32, 32) RGBA(44, 32, 32, 1) statusBar.background
#332525 RGB(51, 37, 37) RGBA(51, 37, 37, 1) statusBar.noFolderBackground
#332525 RGB(51, 37, 37) RGBA(51, 37, 37, 1) tab.activeBackground
#382929 RGB(56, 41, 41) RGBA(56, 41, 41, 1) tab.activeBorder
#F00064 RGB(240, 0, 100) RGBA(240, 0, 100, 1) tab.inactiveBackground
#2C2020 RGB(44, 32, 32) RGBA(44, 32, 32, 1) terminal.background
#241A1A RGB(36, 26, 26) RGBA(36, 26, 26, 1) textLink.foreground
#00B5FF RGB(0, 181, 255) RGBA(0, 181, 255, 1) welcomePage.background
#4D343622 RGB(77, 52, 54) RGBA(77, 52, 54, 0.133)
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
#F2EBDC44 RGB(242, 235, 220) RGBA(242, 235, 220, 0.267) comment.block
#F2EBDC44 RGB(242, 235, 220) RGBA(242, 235, 220, 0.267) comment.block.documentation
#E2C5B8 RGB(226, 197, 184) RGBA(226, 197, 184, 1) comment.line
#F2EBDC44 RGB(242, 235, 220) RGBA(242, 235, 220, 0.267) constant
#AAF3CF RGB(170, 243, 207) RGBA(170, 243, 207, 1) constant.character
#AAF3CF RGB(170, 243, 207) RGBA(170, 243, 207, 1) constant.character.escape
#05FF97 RGB(5, 255, 151) RGBA(5, 255, 151, 1) constant.numeric
#AAF3CF RGB(170, 243, 207) RGBA(170, 243, 207, 1) constant.numeric.integer
#AAF3CF RGB(170, 243, 207) RGBA(170, 243, 207, 1) constant.numeric.float
#AAF3CF RGB(170, 243, 207) RGBA(170, 243, 207, 1) constant.numeric.hex
#AAF3CF RGB(170, 243, 207) RGBA(170, 243, 207, 1) constant.numeric.octal
#AAF3CF RGB(170, 243, 207) RGBA(170, 243, 207, 1) constant.other
#FA83B4 RGB(250, 131, 180) RGBA(250, 131, 180, 1) constant.other.placeholder
#FA83B4 RGB(250, 131, 180) RGBA(250, 131, 180, 1) constant.regexp
#AAF3CF RGB(170, 243, 207) RGBA(170, 243, 207, 1) constant.rgb-value
#AAF3CF RGB(170, 243, 207) RGBA(170, 243, 207, 1) entity
#6FFFA6 RGB(111, 255, 166) RGBA(111, 255, 166, 1) entity.name
#6FFFA6 RGB(111, 255, 166) RGBA(111, 255, 166, 1) entity.name.class
#6FFFA6 RGB(111, 255, 166) RGBA(111, 255, 166, 1) entity.name.function
#FF759C RGB(255, 117, 156) RGBA(255, 117, 156, 1) entity.name.method
#6FFFA6 RGB(111, 255, 166) RGBA(111, 255, 166, 1) entity.name.namespace
#6FFFA6 RGB(111, 255, 166) RGBA(111, 255, 166, 1) entity.name.section
#6FFFA6 RGB(111, 255, 166) RGBA(111, 255, 166, 1) entity.name.selector
#6FFFA6 RGB(111, 255, 166) RGBA(111, 255, 166, 1) entity.name.tag
#FF2C84 RGB(255, 44, 132) RGBA(255, 44, 132, 1) entity.name.type
#0DFFCB RGB(13, 255, 203) RGBA(13, 255, 203, 1) entity.name.type.enum
#0DFFCB RGB(13, 255, 203) RGBA(13, 255, 203, 1) entity.name.type.interface
#0DFFCB RGB(13, 255, 203) RGBA(13, 255, 203, 1) entity.name.type.struct
#0DFFCB RGB(13, 255, 203) RGBA(13, 255, 203, 1) entity.other
#6FFFA6 RGB(111, 255, 166) RGBA(111, 255, 166, 1) entity.other.attribute-name
#7DE6C3 RGB(125, 230, 195) RGBA(125, 230, 195, 1) entity.other.inherited-class
#0DFFCB RGB(13, 255, 203) RGBA(13, 255, 203, 1) invalid
#FB4B4E RGB(251, 75, 78) RGBA(251, 75, 78, 1) invalid.illegal
#FB4B4E RGB(251, 75, 78) RGBA(251, 75, 78, 1) keyword
#DF1383 RGB(223, 19, 131) RGBA(223, 19, 131, 1) keyword.control
#DF1383 RGB(223, 19, 131) RGBA(223, 19, 131, 1) keyword.control.flow
#DF1383 RGB(223, 19, 131) RGBA(223, 19, 131, 1) keyword.operator
#05FF97 RGB(5, 255, 151) RGBA(5, 255, 151, 1) keyword.operator.new
#05FF97 RGB(5, 255, 151) RGBA(5, 255, 151, 1) keyword.operator.assignment
#05FF97 RGB(5, 255, 151) RGBA(5, 255, 151, 1) keyword.operator.arithmetic
#05FF97 RGB(5, 255, 151) RGBA(5, 255, 151, 1) keyword.operator.logical
#05FF97 RGB(5, 255, 151) RGBA(5, 255, 151, 1) keyword.other
#DF1383 RGB(223, 19, 131) RGBA(223, 19, 131, 1) markup
#E9789A RGB(233, 120, 154) RGBA(233, 120, 154, 1) markup.bold
#8C2727 RGB(140, 39, 39) RGBA(140, 39, 39, 1) markup.changed
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) markup.deleted
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) markup.heading
#D43170 RGB(212, 49, 112) RGBA(212, 49, 112, 1) markup.inline.raw
#E9789A RGB(233, 120, 154) RGBA(233, 120, 154, 1) markup.inserted
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) markup.italic
#8C2727 RGB(140, 39, 39) RGBA(140, 39, 39, 1) markup.list
#C0A1A1 RGB(192, 161, 161) RGBA(192, 161, 161, 1) markup.list.numbered
#C0A1A1 RGB(192, 161, 161) RGBA(192, 161, 161, 1) markup.list.unnumbered
#C0A1A1 RGB(192, 161, 161) RGBA(192, 161, 161, 1) markup.quote
#3E9D98 RGB(62, 157, 152) RGBA(62, 157, 152, 1) markup.raw
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) meta
#434343 RGB(67, 67, 67) RGBA(67, 67, 67, 1) meta.selector
#6FFFA6 RGB(111, 255, 166) RGBA(111, 255, 166, 1) meta.tag
#F384A6 RGB(243, 132, 166) RGBA(243, 132, 166, 1) punctuation.definition.bracket
#6FFFA6 RGB(111, 255, 166) RGBA(111, 255, 166, 1) punctuation.definition.comment
#F2EBDC44 RGB(242, 235, 220) RGBA(242, 235, 220, 0.267) punctuation.definition.string.begin
#6FFFA6 RGB(111, 255, 166) RGBA(111, 255, 166, 1) punctuation.definition.string.end
#6FFFA6 RGB(111, 255, 166) RGBA(111, 255, 166, 1) punctuation.separator
#6FFFA6 RGB(111, 255, 166) RGBA(111, 255, 166, 1) punctuation.separator.continuation
#6FFFA6 RGB(111, 255, 166) RGBA(111, 255, 166, 1) punctuation.terminator
#6FFFA6 RGB(111, 255, 166) RGBA(111, 255, 166, 1) storage
#DF1383 RGB(223, 19, 131) RGBA(223, 19, 131, 1) storage.modifier
#DF1383 RGB(223, 19, 131) RGBA(223, 19, 131, 1) storage.type
#F00064 RGB(240, 0, 100) RGBA(240, 0, 100, 1) string
#B3B5AF RGB(179, 181, 175) RGBA(179, 181, 175, 1) string.interpolated
#B3B5AF RGB(179, 181, 175) RGBA(179, 181, 175, 1) string.other
#B3B5AF RGB(179, 181, 175) RGBA(179, 181, 175, 1) string.quoted
#B3B5AF RGB(179, 181, 175) RGBA(179, 181, 175, 1) string.quoted.double
#B3B5AF RGB(179, 181, 175) RGBA(179, 181, 175, 1) string.quoted.other
#B3B5AF RGB(179, 181, 175) RGBA(179, 181, 175, 1) string.quoted.single
#B3B5AF RGB(179, 181, 175) RGBA(179, 181, 175, 1) string.quoted.triple
#B3B5AF RGB(179, 181, 175) RGBA(179, 181, 175, 1) string.regexp
#B69990 RGB(182, 153, 144) RGBA(182, 153, 144, 1) string.template
#B3B5AF RGB(179, 181, 175) RGBA(179, 181, 175, 1) string.unquoted
#B3B5AF RGB(179, 181, 175) RGBA(179, 181, 175, 1) support
#FA83B4 RGB(250, 131, 180) RGBA(250, 131, 180, 1) support.class
#0DFFCB RGB(13, 255, 203) RGBA(13, 255, 203, 1) support.constant
#9C7676 RGB(156, 118, 118) RGBA(156, 118, 118, 1) support.function
#FF759C RGB(255, 117, 156) RGBA(255, 117, 156, 1) support.type
#F00064 RGB(240, 0, 100) RGBA(240, 0, 100, 1) support.type.primitive
#F00064 RGB(240, 0, 100) RGBA(240, 0, 100, 1) support.type.property-name
#FF2C84 RGB(255, 44, 132) RGBA(255, 44, 132, 1) support.variable
#D4B1B7 RGB(212, 177, 183) RGBA(212, 177, 183, 1) variable
#D4B1B7 RGB(212, 177, 183) RGBA(212, 177, 183, 1) variable.function
#D4B1B7 RGB(212, 177, 183) RGBA(212, 177, 183, 1) variable.language
#9C7676 RGB(156, 118, 118) RGBA(156, 118, 118, 1) variable.name
#D4B1B7 RGB(212, 177, 183) RGBA(212, 177, 183, 1) variable.other
#D4B1B7 RGB(212, 177, 183) RGBA(212, 177, 183, 1) variable.other.constant
#D4B1B7 RGB(212, 177, 183) RGBA(212, 177, 183, 1) variable.other.property
#D4B1B7 RGB(212, 177, 183) RGBA(212, 177, 183, 1) variable.other.readwrite
#D4B1B7 RGB(212, 177, 183) RGBA(212, 177, 183, 1) variable.parameter
#D4B1B7 RGB(212, 177, 183) RGBA(212, 177, 183, 1)