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
Blade Runner
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#242C44 RGB(36, 44, 68) RGBA(36, 44, 68, 1) activityBarBadge.background
#202125 RGB(32, 33, 37) RGBA(32, 33, 37, 1) commandCenter.background
#2F3E6B RGB(47, 62, 107) RGBA(47, 62, 107, 1) debugIcon.breakpointForeground
#E1287E RGB(225, 40, 126) RGBA(225, 40, 126, 1) editor.background
#202125 RGB(32, 33, 37) RGBA(32, 33, 37, 1) editor.foldBackground
#46365873 RGB(70, 54, 88) RGBA(70, 54, 88, 0.451) editor.foreground
#19CAA1 RGB(25, 202, 161) RGBA(25, 202, 161, 1) editor.selectionBackground
#E6226359 RGB(230, 34, 99) RGBA(230, 34, 99, 0.349) editorBracketHighlight.foreground1
#F5EB00 RGB(245, 235, 0) RGBA(245, 235, 0, 1) editorBracketHighlight.foreground2
#F34F85 RGB(243, 79, 133) RGBA(243, 79, 133, 1) editorBracketHighlight.foreground3
#FFA004 RGB(255, 160, 4) RGBA(255, 160, 4, 1) editorBracketHighlight.foreground4
#10C2AA RGB(16, 194, 170) RGBA(16, 194, 170, 1) editorBracketHighlight.foreground5
#D614FF RGB(214, 20, 255) RGBA(214, 20, 255, 1) editorBracketHighlight.foreground6
#00B4B3 RGB(0, 180, 179) RGBA(0, 180, 179, 1) editorBracketHighlight.unexpectedBracket.foreground
#FBFF00 RGB(251, 255, 0) RGBA(251, 255, 0, 1) editorError.background
#AEB2BE RGB(174, 178, 190) RGBA(174, 178, 190, 1) editorError.foreground
#FF004C RGB(255, 0, 76) RGBA(255, 0, 76, 1) editorGroupHeader.tabsBackground
#242C44 RGB(36, 44, 68) RGBA(36, 44, 68, 1) editorLineNumber.activeForeground
#E1287E RGB(225, 40, 126) RGBA(225, 40, 126, 1) editorLineNumber.foreground
#745399 RGB(116, 83, 153) RGBA(116, 83, 153, 1) editorWarning.foreground
#FBFF00 RGB(251, 255, 0) RGBA(251, 255, 0, 1) icon.foreground
#FFFBFB RGB(255, 251, 251) RGBA(255, 251, 251, 1) list.activeSelectionBackground
#745399 RGB(116, 83, 153) RGBA(116, 83, 153, 1) list.focusOutline
#745399 RGB(116, 83, 153) RGBA(116, 83, 153, 1) list.hoverBackground
#AD7CE5 RGB(173, 124, 229) RGBA(173, 124, 229, 1) list.inactiveSelectionBackground
#745399 RGB(116, 83, 153) RGBA(116, 83, 153, 1) menu.selectionBackground
#745399 RGB(116, 83, 153) RGBA(116, 83, 153, 1) menubar.selectionBackground
#745399 RGB(116, 83, 153) RGBA(116, 83, 153, 1) panel.background
#202125 RGB(32, 33, 37) RGBA(32, 33, 37, 1) panelTitle.activeBorder
#F34F85 RGB(243, 79, 133) RGBA(243, 79, 133, 1) panelTitle.activeForeground
#F34F85 RGB(243, 79, 133) RGBA(243, 79, 133, 1) scrollbarSlider.activeBackground
#745399 RGB(116, 83, 153) RGBA(116, 83, 153, 1) scrollbarSlider.background
#242C4462 RGB(36, 44, 68) RGBA(36, 44, 68, 0.384) scrollbarSlider.hoverBackground
#7453998F RGB(116, 83, 153) RGBA(116, 83, 153, 0.561) sideBar.background
#242C449C RGB(36, 44, 68) RGBA(36, 44, 68, 0.612) sideBarTitle.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) statusBar.background
#242C44 RGB(36, 44, 68) RGBA(36, 44, 68, 1) tab.activeBackground
#202125 RGB(32, 33, 37) RGBA(32, 33, 37, 1) tab.activeForeground
#F7EDED RGB(247, 237, 237) RGBA(247, 237, 237, 1) tab.inactiveBackground
#2E2F36 RGB(46, 47, 54) RGBA(46, 47, 54, 1) tab.inactiveForeground
#F7EDED RGB(247, 237, 237) RGBA(247, 237, 237, 1) terminal.foreground
#1C8EEB RGB(28, 142, 235) RGBA(28, 142, 235, 1) terminalCursor.foreground
#E1287E RGB(225, 40, 126) RGBA(225, 40, 126, 1) titleBar.activeBackground
#242C44 RGB(36, 44, 68) RGBA(36, 44, 68, 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
#F5EB00 RGB(245, 235, 0) RGBA(245, 235, 0, 1) comment.block
#F5EB00 RGB(245, 235, 0) RGBA(245, 235, 0, 1) comment.block.documentation
#F5EB00 RGB(245, 235, 0) RGBA(245, 235, 0, 1) comment.line
#F5EB00 RGB(245, 235, 0) RGBA(245, 235, 0, 1) constant
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.character
#FF2D80 RGB(255, 45, 128) RGBA(255, 45, 128, 1) constant.character.escape
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric
#FF2D80 RGB(255, 45, 128) RGBA(255, 45, 128, 1) constant.numeric.integer
#FF2D80 RGB(255, 45, 128) RGBA(255, 45, 128, 1) constant.numeric.float
#FF2D80 RGB(255, 45, 128) RGBA(255, 45, 128, 1) constant.numeric.hex
#FF2D80 RGB(255, 45, 128) RGBA(255, 45, 128, 1) constant.numeric.octal
#FF2D80 RGB(255, 45, 128) RGBA(255, 45, 128, 1) constant.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.other.placeholder
#F34F85 RGB(243, 79, 133) RGBA(243, 79, 133, 1) entity
#FFC103 RGB(255, 193, 3) RGBA(255, 193, 3, 1) entity.name
#FFC103 RGB(255, 193, 3) RGBA(255, 193, 3, 1) entity.name.class
#FFC103 RGB(255, 193, 3) RGBA(255, 193, 3, 1) entity.name.function
#00B7FF RGB(0, 183, 255) RGBA(0, 183, 255, 1) entity.name.method
#FFC103 RGB(255, 193, 3) RGBA(255, 193, 3, 1) entity.name.namespace
#FFC103 RGB(255, 193, 3) RGBA(255, 193, 3, 1) entity.name.section
#FFC103 RGB(255, 193, 3) RGBA(255, 193, 3, 1) entity.name.selector
#FFC103 RGB(255, 193, 3) RGBA(255, 193, 3, 1) entity.name.tag
#F352BD RGB(243, 82, 189) RGBA(243, 82, 189, 1) entity.name.type
#FFC103 RGB(255, 193, 3) RGBA(255, 193, 3, 1) entity.name.type.enum
#FFC103 RGB(255, 193, 3) RGBA(255, 193, 3, 1) entity.name.type.interface
#FFC103 RGB(255, 193, 3) RGBA(255, 193, 3, 1) entity.name.type.struct
#FFC103 RGB(255, 193, 3) RGBA(255, 193, 3, 1) entity.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.attribute-name
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.inherited-class
#4176E7 RGB(65, 118, 231) RGBA(65, 118, 231, 1) invalid
#FF004C RGB(255, 0, 76) RGBA(255, 0, 76, 1) invalid.deprecated
#FF004C RGB(255, 0, 76) RGBA(255, 0, 76, 1) invalid.illegal
#FF004C RGB(255, 0, 76) RGBA(255, 0, 76, 1) keyword
#00B4B3 RGB(0, 180, 179) RGBA(0, 180, 179, 1) keyword.control
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) keyword.control.flow
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) keyword.operator
#00B4B3 RGB(0, 180, 179) RGBA(0, 180, 179, 1) keyword.operator.new
#00B4B3 RGB(0, 180, 179) RGBA(0, 180, 179, 1) keyword.operator.assignment
#00B4B3 RGB(0, 180, 179) RGBA(0, 180, 179, 1) keyword.operator.arithmetic
#00B4B3 RGB(0, 180, 179) RGBA(0, 180, 179, 1) keyword.operator.logical
#00B4B3 RGB(0, 180, 179) RGBA(0, 180, 179, 1) keyword.other
#FF2D80 RGB(255, 45, 128) RGBA(255, 45, 128, 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
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.deleted
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.heading
#4176E7 RGB(65, 118, 231) RGBA(65, 118, 231, 1) markup.inline.raw
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.inserted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 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-call
#00B7FF RGB(0, 183, 255) RGBA(0, 183, 255, 1) meta.tag
#A49CA7 RGB(164, 156, 167) RGBA(164, 156, 167, 1) punctuation.definition.bracket
#A49CA7 RGB(164, 156, 167) RGBA(164, 156, 167, 1) punctuation.definition.comment
#F5EB00 RGB(245, 235, 0) RGBA(245, 235, 0, 1) punctuation.definition.string.begin
#A49CA7 RGB(164, 156, 167) RGBA(164, 156, 167, 1) punctuation.definition.string.end
#A49CA7 RGB(164, 156, 167) RGBA(164, 156, 167, 1) punctuation.separator
#A49CA7 RGB(164, 156, 167) RGBA(164, 156, 167, 1) punctuation.separator.continuation
#A49CA7 RGB(164, 156, 167) RGBA(164, 156, 167, 1) punctuation.terminator
#A49CA7 RGB(164, 156, 167) RGBA(164, 156, 167, 1) storage
#00B4B3 RGB(0, 180, 179) RGBA(0, 180, 179, 1) storage.modifier
#00B4B3 RGB(0, 180, 179) RGBA(0, 180, 179, 1) storage.type
#00B4B3 RGB(0, 180, 179) RGBA(0, 180, 179, 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
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) support.class
#19D3A7 RGB(25, 211, 167) RGBA(25, 211, 167, 1) support.constant
#FF2D80 RGB(255, 45, 128) RGBA(255, 45, 128, 1) support.function
#00B7FF RGB(0, 183, 255) RGBA(0, 183, 255, 1) support.other
#19D3A7 RGB(25, 211, 167) RGBA(25, 211, 167, 1) support.type
#FFB104 RGB(255, 177, 4) RGBA(255, 177, 4, 1) support.type.primitive
#FFB104 RGB(255, 177, 4) RGBA(255, 177, 4, 1) support.type.property-name
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) variable
#F34F85 RGB(243, 79, 133) RGBA(243, 79, 133, 1) variable.function
#00B7FF RGB(0, 183, 255) RGBA(0, 183, 255, 1) variable.language
#F740B5 RGB(247, 64, 181) RGBA(247, 64, 181, 1) variable.name
#F34F85 RGB(243, 79, 133) RGBA(243, 79, 133, 1) variable.other
#B43489 RGB(180, 52, 137) RGBA(180, 52, 137, 1) variable.other.constant
#B43489 RGB(180, 52, 137) RGBA(180, 52, 137, 1) variable.other.property
#B43489 RGB(180, 52, 137) RGBA(180, 52, 137, 1) variable.other.readwrite
#B43489 RGB(180, 52, 137) RGBA(180, 52, 137, 1) variable.parameter
#FF2D80 RGB(255, 45, 128) RGBA(255, 45, 128, 1)