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
Eh's Main Website Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#EEE8D5 RGB(238, 232, 213) RGBA(238, 232, 213, 1) activityBar.foreground
#6F848A RGB(111, 132, 138) RGBA(111, 132, 138, 1) activityBarBadge.background
#6F848A RGB(111, 132, 138) RGBA(111, 132, 138, 1) activityBarBadge.foreground
#EEE8D5 RGB(238, 232, 213) RGBA(238, 232, 213, 1) button.background
#6F848A RGB(111, 132, 138) RGBA(111, 132, 138, 1) button.foreground
#EEE8D5 RGB(238, 232, 213) RGBA(238, 232, 213, 1) button.hoverBackground
#5A7380 RGB(90, 115, 128) RGBA(90, 115, 128, 1) diffEditor.insertedTextBackground
#C8E6C9 RGB(200, 230, 201) RGBA(200, 230, 201, 1) diffEditor.removedTextBackground
#FFCDD2 RGB(255, 205, 210) RGBA(255, 205, 210, 1) editor.background
#EEE8D5 RGB(238, 232, 213) RGBA(238, 232, 213, 1) editor.findMatchBackground
#C5BFA8 RGB(197, 191, 168) RGBA(197, 191, 168, 1) editor.findMatchHighlightBackground
#D4CEBD RGB(212, 206, 189) RGBA(212, 206, 189, 1) editor.foreground
#6F848A RGB(111, 132, 138) RGBA(111, 132, 138, 1) editor.lineHighlightBackground
#E0D9CA RGB(224, 217, 202) RGBA(224, 217, 202, 1) editor.selectionBackground
#D4CEBD RGB(212, 206, 189) RGBA(212, 206, 189, 1) editor.selectionForeground
#6F848A RGB(111, 132, 138) RGBA(111, 132, 138, 1) editor.wordHighlightBackground
#D4CEBD RGB(212, 206, 189) RGBA(212, 206, 189, 1) editorBracketMatch.background
#C5BFA8 RGB(197, 191, 168) RGBA(197, 191, 168, 1) editorCursor.foreground
#6F848A RGB(111, 132, 138) RGBA(111, 132, 138, 1) editorError.foreground
#D32F2F RGB(211, 47, 47) RGBA(211, 47, 47, 1) editorHint.foreground
#6F848A RGB(111, 132, 138) RGBA(111, 132, 138, 1) editorInfo.foreground
#2B63A8 RGB(43, 99, 168) RGBA(43, 99, 168, 1) editorLineNumber.foreground
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) editorWarning.foreground
#F57F17 RGB(245, 127, 23) RGBA(245, 127, 23, 1) input.background
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) input.border
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) input.foreground
#6F848A RGB(111, 132, 138) RGBA(111, 132, 138, 1) list.activeSelectionBackground
#D4CEBD RGB(212, 206, 189) RGBA(212, 206, 189, 1) list.activeSelectionIconForeground
#6F848A RGB(111, 132, 138) RGBA(111, 132, 138, 1) list.hoverBackground
#E0D9CA RGB(224, 217, 202) RGBA(224, 217, 202, 1) notificationCenterHeader.background
#F5EFDE RGB(245, 239, 222) RGBA(245, 239, 222, 1) notificationCenterHeader.foreground
#6F848A RGB(111, 132, 138) RGBA(111, 132, 138, 1) notificationToastBackground
#F5EFDE RGB(245, 239, 222) RGBA(245, 239, 222, 1) sideBar.background
#F5EFDE RGB(245, 239, 222) RGBA(245, 239, 222, 1) sideBar.foreground
#6F848A RGB(111, 132, 138) RGBA(111, 132, 138, 1) statusBar.background
#EEE8D5 RGB(238, 232, 213) RGBA(238, 232, 213, 1) statusBar.debuggingBackground
#D4CEBD RGB(212, 206, 189) RGBA(212, 206, 189, 1) statusBar.debuggingForeground
#6F848A RGB(111, 132, 138) RGBA(111, 132, 138, 1) statusBar.foreground
#6F848A RGB(111, 132, 138) RGBA(111, 132, 138, 1) tab.activeBackground
#EEE8D5 RGB(238, 232, 213) RGBA(238, 232, 213, 1) tab.activeForeground
#6F848A RGB(111, 132, 138) RGBA(111, 132, 138, 1) tab.inactiveBackground
#E0D9CA RGB(224, 217, 202) RGBA(224, 217, 202, 1) tab.inactiveForeground
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) terminal.ansiBlack
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) terminal.ansiBlue
#2B63A8 RGB(43, 99, 168) RGBA(43, 99, 168, 1) terminal.ansiCyan
#0097A7 RGB(0, 151, 167) RGBA(0, 151, 167, 1) terminal.ansiGreen
#5B8C3A RGB(91, 140, 58) RGBA(91, 140, 58, 1) terminal.ansiMagenta
#8B4789 RGB(139, 71, 137) RGBA(139, 71, 137, 1) terminal.ansiRed
#D32F2F RGB(211, 47, 47) RGBA(211, 47, 47, 1) terminal.ansiWhite
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) terminal.ansiYellow
#F57F17 RGB(245, 127, 23) RGBA(245, 127, 23, 1) terminal.background
#EEE8D5 RGB(238, 232, 213) RGBA(238, 232, 213, 1) terminal.foreground
#6F848A RGB(111, 132, 138) RGBA(111, 132, 138, 1) titleBar.activeBackground
#EEE8D5 RGB(238, 232, 213) RGBA(238, 232, 213, 1) titleBar.activeForeground
#6F848A RGB(111, 132, 138) RGBA(111, 132, 138, 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
#888888 RGB(136, 136, 136) RGBA(136, 136, 136, 1) comment.block
#888888 RGB(136, 136, 136) RGBA(136, 136, 136, 1) comment.block.documentation
#5B8C3A RGB(91, 140, 58) RGBA(91, 140, 58, 1) comment.line
#888888 RGB(136, 136, 136) RGBA(136, 136, 136, 1) constant
#8B5A2B RGB(139, 90, 43) RGBA(139, 90, 43, 1) constant.character
#8B5A2B RGB(139, 90, 43) RGBA(139, 90, 43, 1) constant.character.escape
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) constant.numeric
#8B5A2B RGB(139, 90, 43) RGBA(139, 90, 43, 1) constant.numeric.integer
#8B5A2B RGB(139, 90, 43) RGBA(139, 90, 43, 1) constant.numeric.float
#8B5A2B RGB(139, 90, 43) RGBA(139, 90, 43, 1) constant.numeric.hex
#8B5A2B RGB(139, 90, 43) RGBA(139, 90, 43, 1) constant.numeric.octal
#8B5A2B RGB(139, 90, 43) RGBA(139, 90, 43, 1) constant.other
#5B8C3A RGB(91, 140, 58) RGBA(91, 140, 58, 1) constant.other.placeholder
#5B8C3A RGB(91, 140, 58) RGBA(91, 140, 58, 1) constant.regexp
#8B5A2B RGB(139, 90, 43) RGBA(139, 90, 43, 1) constant.rgb-value
#8B5A2B RGB(139, 90, 43) RGBA(139, 90, 43, 1) entity
#6B4E96 RGB(107, 78, 150) RGBA(107, 78, 150, 1) entity.name
#6B4E96 RGB(107, 78, 150) RGBA(107, 78, 150, 1) entity.name.class
#6B4E96 RGB(107, 78, 150) RGBA(107, 78, 150, 1) entity.name.function
#8B5A2B RGB(139, 90, 43) RGBA(139, 90, 43, 1) entity.name.method
#6B4E96 RGB(107, 78, 150) RGBA(107, 78, 150, 1) entity.name.namespace
#6B4E96 RGB(107, 78, 150) RGBA(107, 78, 150, 1) entity.name.section
#6B4E96 RGB(107, 78, 150) RGBA(107, 78, 150, 1) entity.name.selector
#6B4E96 RGB(107, 78, 150) RGBA(107, 78, 150, 1) entity.name.tag
#2B63A8 RGB(43, 99, 168) RGBA(43, 99, 168, 1) entity.name.type
#6B4E96 RGB(107, 78, 150) RGBA(107, 78, 150, 1) entity.name.type.enum
#6B4E96 RGB(107, 78, 150) RGBA(107, 78, 150, 1) entity.name.type.interface
#6B4E96 RGB(107, 78, 150) RGBA(107, 78, 150, 1) entity.name.type.struct
#6B4E96 RGB(107, 78, 150) RGBA(107, 78, 150, 1) entity.other
#6B4E96 RGB(107, 78, 150) RGBA(107, 78, 150, 1) entity.other.attribute-name
#2B63A8 RGB(43, 99, 168) RGBA(43, 99, 168, 1) entity.other.inherited-class
#6B4E96 RGB(107, 78, 150) RGBA(107, 78, 150, 1) invalid
#D32F2F RGB(211, 47, 47) RGBA(211, 47, 47, 1) invalid.illegal
#D32F2F RGB(211, 47, 47) RGBA(211, 47, 47, 1) keyword
#2B63A8 RGB(43, 99, 168) RGBA(43, 99, 168, 1) keyword.control
#2B63A8 RGB(43, 99, 168) RGBA(43, 99, 168, 1) keyword.control.flow
#2B63A8 RGB(43, 99, 168) RGBA(43, 99, 168, 1) keyword.operator
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) keyword.operator.new
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) keyword.operator.assignment
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) keyword.operator.arithmetic
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) keyword.operator.logical
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) keyword.other
#2B63A8 RGB(43, 99, 168) RGBA(43, 99, 168, 1) markup
#8B5A2B RGB(139, 90, 43) RGBA(139, 90, 43, 1) markup.bold
#5B8C3A RGB(91, 140, 58) RGBA(91, 140, 58, 1) markup.changed
#F57F17 RGB(245, 127, 23) RGBA(245, 127, 23, 1) markup.deleted
#D32F2F RGB(211, 47, 47) RGBA(211, 47, 47, 1) markup.heading
#8B5A2B RGB(139, 90, 43) RGBA(139, 90, 43, 1) markup.inline.raw
#8B5A2B RGB(139, 90, 43) RGBA(139, 90, 43, 1) markup.inserted
#5B8C3A RGB(91, 140, 58) RGBA(91, 140, 58, 1) markup.italic
#5B8C3A RGB(91, 140, 58) RGBA(91, 140, 58, 1) markup.list
#2B63A8 RGB(43, 99, 168) RGBA(43, 99, 168, 1) markup.list.numbered
#2B63A8 RGB(43, 99, 168) RGBA(43, 99, 168, 1) markup.list.unnumbered
#2B63A8 RGB(43, 99, 168) RGBA(43, 99, 168, 1) markup.quote
#6B4E96 RGB(107, 78, 150) RGBA(107, 78, 150, 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
#6B4E96 RGB(107, 78, 150) RGBA(107, 78, 150, 1) meta.tag
#2B63A8 RGB(43, 99, 168) RGBA(43, 99, 168, 1) punctuation.definition.bracket
#6B4E96 RGB(107, 78, 150) RGBA(107, 78, 150, 1) punctuation.definition.comment
#888888 RGB(136, 136, 136) RGBA(136, 136, 136, 1) punctuation.definition.string.begin
#6B4E96 RGB(107, 78, 150) RGBA(107, 78, 150, 1) punctuation.definition.string.end
#6B4E96 RGB(107, 78, 150) RGBA(107, 78, 150, 1) punctuation.separator
#6B4E96 RGB(107, 78, 150) RGBA(107, 78, 150, 1) punctuation.separator.continuation
#6B4E96 RGB(107, 78, 150) RGBA(107, 78, 150, 1) punctuation.terminator
#6B4E96 RGB(107, 78, 150) RGBA(107, 78, 150, 1) storage
#2B63A8 RGB(43, 99, 168) RGBA(43, 99, 168, 1) storage.modifier
#2B63A8 RGB(43, 99, 168) RGBA(43, 99, 168, 1) storage.type
#6B4E96 RGB(107, 78, 150) RGBA(107, 78, 150, 1) string
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) string.interpolated
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) string.other
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) string.quoted
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) string.quoted.double
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) string.quoted.other
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) string.quoted.single
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) string.quoted.triple
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) string.regexp
#2B63A8 RGB(43, 99, 168) RGBA(43, 99, 168, 1) string.template
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) string.unquoted
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) support
#5B8C3A RGB(91, 140, 58) RGBA(91, 140, 58, 1) support.class
#6B4E96 RGB(107, 78, 150) RGBA(107, 78, 150, 1) support.constant
#B8860B RGB(184, 134, 11) RGBA(184, 134, 11, 1) support.function
#8B5A2B RGB(139, 90, 43) RGBA(139, 90, 43, 1) support.type
#6B4E96 RGB(107, 78, 150) RGBA(107, 78, 150, 1) support.type.primitive
#6B4E96 RGB(107, 78, 150) RGBA(107, 78, 150, 1) support.type.property-name
#8B5A2B RGB(139, 90, 43) RGBA(139, 90, 43, 1) support.variable
#6B5B95 RGB(107, 91, 149) RGBA(107, 91, 149, 1) variable
#6B5B95 RGB(107, 91, 149) RGBA(107, 91, 149, 1) variable.function
#6B5B95 RGB(107, 91, 149) RGBA(107, 91, 149, 1) variable.language
#B8860B RGB(184, 134, 11) RGBA(184, 134, 11, 1) variable.name
#6B5B95 RGB(107, 91, 149) RGBA(107, 91, 149, 1) variable.other
#6B5B95 RGB(107, 91, 149) RGBA(107, 91, 149, 1) variable.other.constant
#6B5B95 RGB(107, 91, 149) RGBA(107, 91, 149, 1) variable.other.property
#6B5B95 RGB(107, 91, 149) RGBA(107, 91, 149, 1) variable.other.readwrite
#6B5B95 RGB(107, 91, 149) RGBA(107, 91, 149, 1) variable.parameter
#6B5B95 RGB(107, 91, 149) RGBA(107, 91, 149, 1)