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
Beach Day
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#EEE8AA RGB(238, 232, 170) RGBA(238, 232, 170, 1) activityBar.foreground
#5D4E37 RGB(93, 78, 55) RGBA(93, 78, 55, 1) activityBar.inactiveForeground
#8B7355 RGB(139, 115, 85) RGBA(139, 115, 85, 1) button.background
#DDA0DD RGB(221, 160, 221) RGBA(221, 160, 221, 1) button.hoverBackground
#D2691E RGB(210, 105, 30) RGBA(210, 105, 30, 1) editor.background
#FFF8DC RGB(255, 248, 220) RGBA(255, 248, 220, 1) editor.foreground
#5D4E37 RGB(93, 78, 55) RGBA(93, 78, 55, 1) editor.selectionBackground
#F4E4BC RGB(244, 228, 188) RGBA(244, 228, 188, 1) editorCursor.foreground
#4A90A4 RGB(74, 144, 164) RGBA(74, 144, 164, 1) editorLineNumber.foreground
#C7B377 RGB(199, 179, 119) RGBA(199, 179, 119, 1) editorWhitespace.foreground
#F4E4BC RGB(244, 228, 188) RGBA(244, 228, 188, 1) extensionButton.prominentBackground
#DDA0DD RGB(221, 160, 221) RGBA(221, 160, 221, 1) extensionButton.prominentHoverBackground
#D2691E RGB(210, 105, 30) RGBA(210, 105, 30, 1) focusBorder
#DDA0DD RGB(221, 160, 221) RGBA(221, 160, 221, 1) gitDecoration.modifiedResourceForeground
#D2691E RGB(210, 105, 30) RGBA(210, 105, 30, 1) gitDecoration.untrackedResourceForeground
#D2691E RGB(210, 105, 30) RGBA(210, 105, 30, 1) input.background
#FFFACD RGB(255, 250, 205) RGBA(255, 250, 205, 1) input.border
#DDA0DD RGB(221, 160, 221) RGBA(221, 160, 221, 1) input.foreground
#5D4E37 RGB(93, 78, 55) RGBA(93, 78, 55, 1) inputOption.activeBackground
#F0E68C RGB(240, 230, 140) RGBA(240, 230, 140, 1) inputOption.activeBorder
#DDA0DD RGB(221, 160, 221) RGBA(221, 160, 221, 1) list.activeSelectionBackground
#F4E4BC RGB(244, 228, 188) RGBA(244, 228, 188, 1) list.activeSelectionForeground
#5D4E37 RGB(93, 78, 55) RGBA(93, 78, 55, 1) list.activeSelectionIconForeground
#5D4E37 RGB(93, 78, 55) RGBA(93, 78, 55, 1) list.focusBackground
#F4E4BC RGB(244, 228, 188) RGBA(244, 228, 188, 1) list.highlightForeground
#4A90A4 RGB(74, 144, 164) RGBA(74, 144, 164, 1) list.hoverBackground
#F9F5E7 RGB(249, 245, 231) RGBA(249, 245, 231, 1) list.inactiveSelectionBackground
#F0E68C RGB(240, 230, 140) RGBA(240, 230, 140, 1) list.inactiveSelectionForeground
#5D4E37 RGB(93, 78, 55) RGBA(93, 78, 55, 1) sideBar.background
#F5DEB3 RGB(245, 222, 179) RGBA(245, 222, 179, 1) statusBar.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) statusBar.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) statusBar.noFolderBackground
#4A90A4 RGB(74, 144, 164) RGBA(74, 144, 164, 1) statusBarItem.remoteBackground
#4A90A4 RGB(74, 144, 164) RGBA(74, 144, 164, 1) statusBarItem.remoteForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) tab.activeBackground
#FFF8DC RGB(255, 248, 220) RGBA(255, 248, 220, 1) tab.activeModifiedBorder
#D2691E RGB(210, 105, 30) RGBA(210, 105, 30, 1) tab.inactiveBackground
#F5DEB3 RGB(245, 222, 179) RGBA(245, 222, 179, 1) tab.inactiveModifiedBorder
#D2691E RGB(210, 105, 30) RGBA(210, 105, 30, 1) tab.unfocusedActiveBackground
#FFF8DC RGB(255, 248, 220) RGBA(255, 248, 220, 1) tab.unfocusedActiveModifiedBorder
#D2691E RGB(210, 105, 30) RGBA(210, 105, 30, 1) tab.unfocusedInactiveBackground
#F5DEB3 RGB(245, 222, 179) RGBA(245, 222, 179, 1) tab.unfocusedInactiveModifiedBorder
#D2691E RGB(210, 105, 30) RGBA(210, 105, 30, 1) terminal.background
#4A90A4 RGB(74, 144, 164) RGBA(74, 144, 164, 1) terminal.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) titleBar.activeBackground
#F0E68C RGB(240, 230, 140) RGBA(240, 230, 140, 1) titleBar.activeForeground
#5D4E37 RGB(93, 78, 55) RGBA(93, 78, 55, 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
#C7B377 RGB(199, 179, 119) RGBA(199, 179, 119, 1) comment.block
#C7B377 RGB(199, 179, 119) RGBA(199, 179, 119, 1) comment.block.documentation
#A0956B RGB(160, 149, 107) RGBA(160, 149, 107, 1) comment.line
#C7B377 RGB(199, 179, 119) RGBA(199, 179, 119, 1) constant
#CD853F RGB(205, 133, 63) RGBA(205, 133, 63, 1) constant.character
#CD853F RGB(205, 133, 63) RGBA(205, 133, 63, 1) constant.character.escape
#D2691E RGB(210, 105, 30) RGBA(210, 105, 30, 1) constant.numeric
#CD853F RGB(205, 133, 63) RGBA(205, 133, 63, 1) constant.numeric.integer
#CD853F RGB(205, 133, 63) RGBA(205, 133, 63, 1) constant.numeric.float
#CD853F RGB(205, 133, 63) RGBA(205, 133, 63, 1) constant.numeric.hex
#CD853F RGB(205, 133, 63) RGBA(205, 133, 63, 1) constant.numeric.octal
#CD853F RGB(205, 133, 63) RGBA(205, 133, 63, 1) constant.other
#8B4513 RGB(139, 69, 19) RGBA(139, 69, 19, 1) constant.other.placeholder
#8B4513 RGB(139, 69, 19) RGBA(139, 69, 19, 1) constant.regexp
#CD853F RGB(205, 133, 63) RGBA(205, 133, 63, 1) constant.rgb-value
#CD853F RGB(205, 133, 63) RGBA(205, 133, 63, 1) entity
#A0522D RGB(160, 82, 45) RGBA(160, 82, 45, 1) entity.name
#A0522D RGB(160, 82, 45) RGBA(160, 82, 45, 1) entity.name.class
#A0522D RGB(160, 82, 45) RGBA(160, 82, 45, 1) entity.name.function
#CD853F RGB(205, 133, 63) RGBA(205, 133, 63, 1) entity.name.method
#A0522D RGB(160, 82, 45) RGBA(160, 82, 45, 1) entity.name.namespace
#A0522D RGB(160, 82, 45) RGBA(160, 82, 45, 1) entity.name.section
#A0522D RGB(160, 82, 45) RGBA(160, 82, 45, 1) entity.name.selector
#A0522D RGB(160, 82, 45) RGBA(160, 82, 45, 1) entity.name.tag
#CD853F RGB(205, 133, 63) RGBA(205, 133, 63, 1) entity.name.type
#A0522D RGB(160, 82, 45) RGBA(160, 82, 45, 1) entity.name.type.enum
#A0522D RGB(160, 82, 45) RGBA(160, 82, 45, 1) entity.name.type.interface
#A0522D RGB(160, 82, 45) RGBA(160, 82, 45, 1) entity.name.type.struct
#A0522D RGB(160, 82, 45) RGBA(160, 82, 45, 1) entity.other
#A0522D RGB(160, 82, 45) RGBA(160, 82, 45, 1) entity.other.attribute-name
#A0522D RGB(160, 82, 45) RGBA(160, 82, 45, 1) entity.other.inherited-class
#A0522D RGB(160, 82, 45) RGBA(160, 82, 45, 1) invalid
#CD5C5C RGB(205, 92, 92) RGBA(205, 92, 92, 1) invalid.illegal
#CD5C5C RGB(205, 92, 92) RGBA(205, 92, 92, 1) keyword
#4A90A4 RGB(74, 144, 164) RGBA(74, 144, 164, 1) keyword.control
#4A90A4 RGB(74, 144, 164) RGBA(74, 144, 164, 1) keyword.control.flow
#4A90A4 RGB(74, 144, 164) RGBA(74, 144, 164, 1) keyword.operator
#D2691E RGB(210, 105, 30) RGBA(210, 105, 30, 1) keyword.operator.new
#D2691E RGB(210, 105, 30) RGBA(210, 105, 30, 1) keyword.operator.assignment
#D2691E RGB(210, 105, 30) RGBA(210, 105, 30, 1) keyword.operator.arithmetic
#D2691E RGB(210, 105, 30) RGBA(210, 105, 30, 1) keyword.operator.logical
#D2691E RGB(210, 105, 30) RGBA(210, 105, 30, 1) keyword.other
#4A90A4 RGB(74, 144, 164) RGBA(74, 144, 164, 1) markup
#CD853F RGB(205, 133, 63) RGBA(205, 133, 63, 1) markup.bold
#8B4513 RGB(139, 69, 19) RGBA(139, 69, 19, 1) markup.changed
#CD853F RGB(205, 133, 63) RGBA(205, 133, 63, 1) markup.deleted
#4A90A4 RGB(74, 144, 164) RGBA(74, 144, 164, 1) markup.heading
#4A90A4 RGB(74, 144, 164) RGBA(74, 144, 164, 1) markup.inline.raw
#CD853F RGB(205, 133, 63) RGBA(205, 133, 63, 1) markup.inserted
#6B8E23 RGB(107, 142, 35) RGBA(107, 142, 35, 1) markup.italic
#8B4513 RGB(139, 69, 19) RGBA(139, 69, 19, 1) markup.list
#A0522D RGB(160, 82, 45) RGBA(160, 82, 45, 1) markup.list.numbered
#A0522D RGB(160, 82, 45) RGBA(160, 82, 45, 1) markup.list.unnumbered
#A0522D RGB(160, 82, 45) RGBA(160, 82, 45, 1) markup.quote
#A0522D RGB(160, 82, 45) RGBA(160, 82, 45, 1) markup.raw
#D2691E RGB(210, 105, 30) RGBA(210, 105, 30, 1) meta
#A0956B RGB(160, 149, 107) RGBA(160, 149, 107, 1) meta.selector
#A0522D RGB(160, 82, 45) RGBA(160, 82, 45, 1) meta.tag
#A0522D RGB(160, 82, 45) RGBA(160, 82, 45, 1) punctuation.definition.bracket
#A0522D RGB(160, 82, 45) RGBA(160, 82, 45, 1) punctuation.definition.comment
#C7B377 RGB(199, 179, 119) RGBA(199, 179, 119, 1) punctuation.definition.string.begin
#A0522D RGB(160, 82, 45) RGBA(160, 82, 45, 1) punctuation.definition.string.end
#A0522D RGB(160, 82, 45) RGBA(160, 82, 45, 1) punctuation.separator
#A0522D RGB(160, 82, 45) RGBA(160, 82, 45, 1) punctuation.separator.continuation
#A0522D RGB(160, 82, 45) RGBA(160, 82, 45, 1) punctuation.terminator
#A0522D RGB(160, 82, 45) RGBA(160, 82, 45, 1) storage
#4A90A4 RGB(74, 144, 164) RGBA(74, 144, 164, 1) storage.modifier
#4A90A4 RGB(74, 144, 164) RGBA(74, 144, 164, 1) storage.type
#6B8E23 RGB(107, 142, 35) RGBA(107, 142, 35, 1) string
#8B7355 RGB(139, 115, 85) RGBA(139, 115, 85, 1) string.interpolated
#8B7355 RGB(139, 115, 85) RGBA(139, 115, 85, 1) string.other
#8B7355 RGB(139, 115, 85) RGBA(139, 115, 85, 1) string.quoted
#8B7355 RGB(139, 115, 85) RGBA(139, 115, 85, 1) string.quoted.double
#8B7355 RGB(139, 115, 85) RGBA(139, 115, 85, 1) string.quoted.other
#8B7355 RGB(139, 115, 85) RGBA(139, 115, 85, 1) string.quoted.single
#8B7355 RGB(139, 115, 85) RGBA(139, 115, 85, 1) string.quoted.triple
#8B7355 RGB(139, 115, 85) RGBA(139, 115, 85, 1) string.regexp
#A0522D RGB(160, 82, 45) RGBA(160, 82, 45, 1) string.template
#8B7355 RGB(139, 115, 85) RGBA(139, 115, 85, 1) string.unquoted
#8B7355 RGB(139, 115, 85) RGBA(139, 115, 85, 1) support
#8B4513 RGB(139, 69, 19) RGBA(139, 69, 19, 1) support.class
#A0522D RGB(160, 82, 45) RGBA(160, 82, 45, 1) support.constant
#CD853F RGB(205, 133, 63) RGBA(205, 133, 63, 1) support.function
#CD853F RGB(205, 133, 63) RGBA(205, 133, 63, 1) support.type
#6B8E23 RGB(107, 142, 35) RGBA(107, 142, 35, 1) support.type.primitive
#6B8E23 RGB(107, 142, 35) RGBA(107, 142, 35, 1) support.type.property-name
#CD853F RGB(205, 133, 63) RGBA(205, 133, 63, 1) support.variable
#8B4513 RGB(139, 69, 19) RGBA(139, 69, 19, 1) variable
#8B4513 RGB(139, 69, 19) RGBA(139, 69, 19, 1) variable.function
#8B4513 RGB(139, 69, 19) RGBA(139, 69, 19, 1) variable.language
#CD853F RGB(205, 133, 63) RGBA(205, 133, 63, 1) variable.name
#8B4513 RGB(139, 69, 19) RGBA(139, 69, 19, 1) variable.other
#8B4513 RGB(139, 69, 19) RGBA(139, 69, 19, 1) variable.other.constant
#8B4513 RGB(139, 69, 19) RGBA(139, 69, 19, 1) variable.other.property
#8B4513 RGB(139, 69, 19) RGBA(139, 69, 19, 1) variable.other.readwrite
#8B4513 RGB(139, 69, 19) RGBA(139, 69, 19, 1) variable.parameter
#8B4513 RGB(139, 69, 19) RGBA(139, 69, 19, 1)