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
Boxy Solarized Dark
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#002B36 RGB(0, 43, 54) RGBA(0, 43, 54, 1) activityBar.foreground
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) editor.background
#002B36 RGB(0, 43, 54) RGBA(0, 43, 54, 1) editor.foreground
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) editor.lineHighlightBackground
#FFFFFF10 RGB(255, 255, 255) RGBA(255, 255, 255, 0.063) editor.selectionBackground
#FFFFFF16 RGB(255, 255, 255) RGBA(255, 255, 255, 0.086) editorCursor.foreground
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) editorIndentGuide.background
#FFFFFF25 RGB(255, 255, 255) RGBA(255, 255, 255, 0.145) editorWhitespace.foreground
#586E75 RGB(88, 110, 117) RGBA(88, 110, 117, 1) list.activeSelectionBackground
#004454DD RGB(0, 68, 84) RGBA(0, 68, 84, 0.867) list.dropBackground
#00445488 RGB(0, 68, 84) RGBA(0, 68, 84, 0.533) list.focusBackground
#005A6F RGB(0, 90, 111) RGBA(0, 90, 111, 1) list.highlightForeground
#1EBCC5 RGB(30, 188, 197) RGBA(30, 188, 197, 1) list.hoverBackground
#002B36AA RGB(0, 43, 54) RGBA(0, 43, 54, 0.667) list.inactiveSelectionBackground
#004454AA RGB(0, 68, 84) RGBA(0, 68, 84, 0.667) sideBar.background
#142930 RGB(20, 41, 48) RGBA(20, 41, 48, 1) sideBarTitle.foreground
#B3CACC RGB(179, 202, 204) RGBA(179, 202, 204, 1) statusBar.background
#002B36CC RGB(0, 43, 54) RGBA(0, 43, 54, 0.8) statusBar.foreground
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) statusBar.noFolderBackground
#2A4466 RGB(42, 68, 102) RGBA(42, 68, 102, 1) tab.activeBackground
#002B37 RGB(0, 43, 55) RGBA(0, 43, 55, 1) tab.activeForeground
#D6DBDB RGB(214, 219, 219) RGBA(214, 219, 219, 1) tab.border
#003847 RGB(0, 56, 71) RGBA(0, 56, 71, 1) tab.inactiveBackground
#004052 RGB(0, 64, 82) RGBA(0, 64, 82, 1) tab.inactiveForeground
#93A1A1 RGB(147, 161, 161) RGBA(147, 161, 161, 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
#586E75 RGB(88, 110, 117) RGBA(88, 110, 117, 1) comment.block
#586E75 RGB(88, 110, 117) RGBA(88, 110, 117, 1) comment.block.documentation
#586E75 RGB(88, 110, 117) RGBA(88, 110, 117, 1) comment.line
#586E75 RGB(88, 110, 117) RGBA(88, 110, 117, 1) constant
#85990075 RGB(133, 153, 0) RGBA(133, 153, 0, 0.459) constant.character
#CB4B16 RGB(203, 75, 22) RGBA(203, 75, 22, 1) constant.character.escape
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) constant.numeric
#CB4B16 RGB(203, 75, 22) RGBA(203, 75, 22, 1) constant.numeric.integer
#CB4B16 RGB(203, 75, 22) RGBA(203, 75, 22, 1) constant.numeric.float
#CB4B16 RGB(203, 75, 22) RGBA(203, 75, 22, 1) constant.numeric.hex
#CB4B16 RGB(203, 75, 22) RGBA(203, 75, 22, 1) constant.numeric.octal
#CB4B16 RGB(203, 75, 22) RGBA(203, 75, 22, 1) constant.other
#85990075 RGB(133, 153, 0) RGBA(133, 153, 0, 0.459) constant.other.placeholder
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) entity
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) entity.name
#CF4B56 RGB(207, 75, 86) RGBA(207, 75, 86, 1) entity.name.class
#B58900 RGB(181, 137, 0) RGBA(181, 137, 0, 1) entity.name.function
#268BD2 RGB(38, 139, 210) RGBA(38, 139, 210, 1) entity.name.method
#CF4B56 RGB(207, 75, 86) RGBA(207, 75, 86, 1) entity.name.namespace
#CF4B56 RGB(207, 75, 86) RGBA(207, 75, 86, 1) entity.name.section
#CF4B56 RGB(207, 75, 86) RGBA(207, 75, 86, 1) entity.name.selector
#CF4B56 RGB(207, 75, 86) RGBA(207, 75, 86, 1) entity.name.tag
#CF4B56 RGB(207, 75, 86) RGBA(207, 75, 86, 1) entity.name.type
#CF4B56 RGB(207, 75, 86) RGBA(207, 75, 86, 1) entity.name.type.enum
#CF4B56 RGB(207, 75, 86) RGBA(207, 75, 86, 1) entity.name.type.interface
#CF4B56 RGB(207, 75, 86) RGBA(207, 75, 86, 1) entity.name.type.struct
#CF4B56 RGB(207, 75, 86) RGBA(207, 75, 86, 1) entity.other
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) entity.other.attribute-name
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) entity.other.inherited-class
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) invalid
#DC322F RGB(220, 50, 47) RGBA(220, 50, 47, 1) invalid.deprecated
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) invalid.illegal
#DC322F RGB(220, 50, 47) RGBA(220, 50, 47, 1) keyword
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) keyword.control
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) keyword.control.flow
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) keyword.operator
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) keyword.operator.new
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) keyword.operator.assignment
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) keyword.operator.arithmetic
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) keyword.operator.logical
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) keyword.other
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) markup
#DC322F RGB(220, 50, 47) RGBA(220, 50, 47, 1) markup.changed
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) markup.deleted
#DC322F RGB(220, 50, 47) RGBA(220, 50, 47, 1) markup.heading
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) markup.inline.raw
#839496CC RGB(131, 148, 150) RGBA(131, 148, 150, 0.8) markup.inserted
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) markup.quote
#586E75 RGB(88, 110, 117) RGBA(88, 110, 117, 1) markup.raw
#839496CC RGB(131, 148, 150) RGBA(131, 148, 150, 0.8) markup.underline
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) markup.underline.link
#85990075 RGB(133, 153, 0) RGBA(133, 153, 0, 0.459) meta
#85990075 RGB(133, 153, 0) RGBA(133, 153, 0, 0.459) meta.function-call
#268BD2 RGB(38, 139, 210) RGBA(38, 139, 210, 1) meta.tag
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) punctuation.definition.bracket
#85990075 RGB(133, 153, 0) RGBA(133, 153, 0, 0.459) punctuation.definition.comment
#586E75 RGB(88, 110, 117) RGBA(88, 110, 117, 1) punctuation.definition.string.begin
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) punctuation.definition.string.end
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) punctuation.separator
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) punctuation.separator.continuation
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) punctuation.terminator
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) storage
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) storage.modifier
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) storage.type
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) string
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) string.interpolated
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) string.other
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) string.quoted
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) string.quoted.double
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) string.quoted.other
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) string.quoted.single
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) string.quoted.triple
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) string.regexp
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) string.template
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) string.unquoted
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) support
#B58900 RGB(181, 137, 0) RGBA(181, 137, 0, 1) support.class
#B58900 RGB(181, 137, 0) RGBA(181, 137, 0, 1) support.constant
#CB4B16 RGB(203, 75, 22) RGBA(203, 75, 22, 1) support.function
#268BD2 RGB(38, 139, 210) RGBA(38, 139, 210, 1) support.other
#B58900 RGB(181, 137, 0) RGBA(181, 137, 0, 1) support.type
#B58900 RGB(181, 137, 0) RGBA(181, 137, 0, 1) support.type.primitive
#B58900 RGB(181, 137, 0) RGBA(181, 137, 0, 1) support.type.property-name
#B58900 RGB(181, 137, 0) RGBA(181, 137, 0, 1) variable
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) variable.function
#268BD2 RGB(38, 139, 210) RGBA(38, 139, 210, 1) variable.language
#DC322F RGB(220, 50, 47) RGBA(220, 50, 47, 1) variable.name
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) variable.other
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) variable.other.constant
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) variable.other.property
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) variable.other.readwrite
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) variable.parameter
#CB4B16 RGB(203, 75, 22) RGBA(203, 75, 22, 1)