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
Trae Deep Blue
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#252A38 RGB(37, 42, 56) RGBA(37, 42, 56, 1) activityBar.foreground
#DADDE5 RGB(218, 221, 229) RGBA(218, 221, 229, 1) activityBarBadge.background
#007ACC RGB(0, 122, 204) RGBA(0, 122, 204, 1) dropdown.background
#252A38 RGB(37, 42, 56) RGBA(37, 42, 56, 1) editor.background
#171B26 RGB(23, 27, 38) RGBA(23, 27, 38, 1) editor.foreground
#DADDE5 RGB(218, 221, 229) RGBA(218, 221, 229, 1) editor.lineHighlightBackground
#282B3A RGB(40, 43, 58) RGBA(40, 43, 58, 1) editorGroupHeader.tabsBackground
#171B26 RGB(23, 27, 38) RGBA(23, 27, 38, 1) editorIndentGuide.activeBackground
#AABCF23D RGB(170, 188, 242) RGBA(170, 188, 242, 0.239) editorIndentGuide.background
#AABCF214 RGB(170, 188, 242) RGBA(170, 188, 242, 0.078) editorStickyScrollHover.background
#282B3A RGB(40, 43, 58) RGBA(40, 43, 58, 1) editorWidget.background
#252A38 RGB(37, 42, 56) RGBA(37, 42, 56, 1) input.background
#252A38 RGB(37, 42, 56) RGBA(37, 42, 56, 1) list.activeSelectionBackground
#343B4D RGB(52, 59, 77) RGBA(52, 59, 77, 1) list.hoverBackground
#343B4D80 RGB(52, 59, 77) RGBA(52, 59, 77, 0.502) list.inactiveSelectionBackground
#343B4D80 RGB(52, 59, 77) RGBA(52, 59, 77, 0.502) panel.background
#171B26 RGB(23, 27, 38) RGBA(23, 27, 38, 1) sideBar.background
#171B26 RGB(23, 27, 38) RGBA(23, 27, 38, 1) sideBar.foreground
#DADDE5 RGB(218, 221, 229) RGBA(218, 221, 229, 1) sideBarTitle.foreground
#DADDE5 RGB(218, 221, 229) RGBA(218, 221, 229, 1) statusBar.background
#252A38 RGB(37, 42, 56) RGBA(37, 42, 56, 1) statusBar.foreground
#DADDE5 RGB(218, 221, 229) RGBA(218, 221, 229, 1) tab.activeBackground
#252A38 RGB(37, 42, 56) RGBA(37, 42, 56, 1) tab.activeForeground
#DADDE5 RGB(218, 221, 229) RGBA(218, 221, 229, 1) tab.inactiveBackground
#171B26 RGB(23, 27, 38) RGBA(23, 27, 38, 1) tab.inactiveForeground
#9599A6 RGB(149, 153, 166) RGBA(149, 153, 166, 1) terminal.background
#171B26 RGB(23, 27, 38) RGBA(23, 27, 38, 1) terminal.foreground
#DADDE5 RGB(218, 221, 229) RGBA(218, 221, 229, 1) titleBar.activeBackground
#252A38 RGB(37, 42, 56) RGBA(37, 42, 56, 1) titleBar.activeForeground
#DADDE5 RGB(218, 221, 229) RGBA(218, 221, 229, 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
#737780 RGB(115, 119, 128) RGBA(115, 119, 128, 1) comment.block
#737780 RGB(115, 119, 128) RGBA(115, 119, 128, 1) comment.block.documentation
#737780 RGB(115, 119, 128) RGBA(115, 119, 128, 1) comment.line
#737780 RGB(115, 119, 128) RGBA(115, 119, 128, 1) constant
#F0D8FF RGB(240, 216, 255) RGBA(240, 216, 255, 1) constant.character
#80BBFF RGB(128, 187, 255) RGBA(128, 187, 255, 1) constant.character.escape
#80BBFF RGB(128, 187, 255) RGBA(128, 187, 255, 1) constant.numeric
#F48CCA RGB(244, 140, 202) RGBA(244, 140, 202, 1) constant.numeric.integer
#F48CCA RGB(244, 140, 202) RGBA(244, 140, 202, 1) constant.numeric.float
#F48CCA RGB(244, 140, 202) RGBA(244, 140, 202, 1) constant.numeric.hex
#F48CCA RGB(244, 140, 202) RGBA(244, 140, 202, 1) constant.numeric.octal
#F48CCA RGB(244, 140, 202) RGBA(244, 140, 202, 1) constant.other
#F0D8FF RGB(240, 216, 255) RGBA(240, 216, 255, 1) constant.other.placeholder
#DED47E RGB(222, 212, 126) RGBA(222, 212, 126, 1) entity
#82D99F RGB(130, 217, 159) RGBA(130, 217, 159, 1) entity.name
#82D99F RGB(130, 217, 159) RGBA(130, 217, 159, 1) entity.name.class
#F0D8FF RGB(240, 216, 255) RGBA(240, 216, 255, 1) entity.name.function
#F29D79 RGB(242, 157, 121) RGBA(242, 157, 121, 1) entity.name.method
#82D99F RGB(130, 217, 159) RGBA(130, 217, 159, 1) entity.name.namespace
#F0D8FF RGB(240, 216, 255) RGBA(240, 216, 255, 1) entity.name.section
#82D99F RGB(130, 217, 159) RGBA(130, 217, 159, 1) entity.name.selector
#82D99F RGB(130, 217, 159) RGBA(130, 217, 159, 1) entity.name.tag
#F2858C RGB(242, 133, 140) RGBA(242, 133, 140, 1) entity.name.type
#F0D8FF RGB(240, 216, 255) RGBA(240, 216, 255, 1) entity.name.type.enum
#F0D8FF RGB(240, 216, 255) RGBA(240, 216, 255, 1) entity.name.type.interface
#F0D8FF RGB(240, 216, 255) RGBA(240, 216, 255, 1) entity.name.type.struct
#F0D8FF RGB(240, 216, 255) RGBA(240, 216, 255, 1) entity.other
#DED47E RGB(222, 212, 126) RGBA(222, 212, 126, 1) entity.other.attribute-name
#DED47E RGB(222, 212, 126) RGBA(222, 212, 126, 1) invalid
#F2858C RGB(242, 133, 140) RGBA(242, 133, 140, 1) invalid.deprecated
#F2858C RGB(242, 133, 140) RGBA(242, 133, 140, 1) invalid.illegal
#F2858C RGB(242, 133, 140) RGBA(242, 133, 140, 1) keyword
#B38CFF RGB(179, 140, 255) RGBA(179, 140, 255, 1) keyword.control
#F29D79 RGB(242, 157, 121) RGBA(242, 157, 121, 1) keyword.control.flow
#F29D79 RGB(242, 157, 121) RGBA(242, 157, 121, 1) keyword.operator
#B38CFF RGB(179, 140, 255) RGBA(179, 140, 255, 1) keyword.operator.new
#B38CFF RGB(179, 140, 255) RGBA(179, 140, 255, 1) keyword.operator.assignment
#B38CFF RGB(179, 140, 255) RGBA(179, 140, 255, 1) keyword.operator.arithmetic
#B38CFF RGB(179, 140, 255) RGBA(179, 140, 255, 1) keyword.operator.logical
#B38CFF RGB(179, 140, 255) RGBA(179, 140, 255, 1) keyword.other
#B38CFF RGB(179, 140, 255) RGBA(179, 140, 255, 1) markup
#DADDE5 RGB(218, 221, 229) RGBA(218, 221, 229, 1) markup.bold
#F2858C RGB(242, 133, 140) RGBA(242, 133, 140, 1) markup.changed
#B38CFF RGB(179, 140, 255) RGBA(179, 140, 255, 1) markup.deleted
#F2858C RGB(242, 133, 140) RGBA(242, 133, 140, 1) markup.inline.raw
#B38CFF RGB(179, 140, 255) RGBA(179, 140, 255, 1) markup.inserted
#82D99F RGB(130, 217, 159) RGBA(130, 217, 159, 1) markup.italic
#F2858C RGB(242, 133, 140) RGBA(242, 133, 140, 1) markup.raw
#DADDE5 RGB(218, 221, 229) RGBA(218, 221, 229, 1) markup.underline
#F48CCA RGB(244, 140, 202) RGBA(244, 140, 202, 1) markup.underline.link
#F48CCA RGB(244, 140, 202) RGBA(244, 140, 202, 1) meta
#737780 RGB(115, 119, 128) RGBA(115, 119, 128, 1) meta.function-call
#F29D79 RGB(242, 157, 121) RGBA(242, 157, 121, 1) meta.tag
#80BBFF RGB(128, 187, 255) RGBA(128, 187, 255, 1) punctuation.definition.bracket
#80BBFF RGB(128, 187, 255) RGBA(128, 187, 255, 1) punctuation.definition.comment
#737780 RGB(115, 119, 128) RGBA(115, 119, 128, 1) punctuation.definition.string.begin
#80BBFF RGB(128, 187, 255) RGBA(128, 187, 255, 1) punctuation.definition.string.end
#80BBFF RGB(128, 187, 255) RGBA(128, 187, 255, 1) punctuation.separator
#80BBFF RGB(128, 187, 255) RGBA(128, 187, 255, 1) punctuation.separator.continuation
#80BBFF RGB(128, 187, 255) RGBA(128, 187, 255, 1) punctuation.terminator
#80BBFF RGB(128, 187, 255) RGBA(128, 187, 255, 1) storage
#B38CFF RGB(179, 140, 255) RGBA(179, 140, 255, 1) storage.modifier
#B38CFF RGB(179, 140, 255) RGBA(179, 140, 255, 1) storage.type
#B38CFF RGB(179, 140, 255) RGBA(179, 140, 255, 1) string
#F2858C RGB(242, 133, 140) RGBA(242, 133, 140, 1) string.interpolated
#F2858C RGB(242, 133, 140) RGBA(242, 133, 140, 1) string.other
#F2858C RGB(242, 133, 140) RGBA(242, 133, 140, 1) string.quoted
#F2858C RGB(242, 133, 140) RGBA(242, 133, 140, 1) string.quoted.double
#82D99F RGB(130, 217, 159) RGBA(130, 217, 159, 1) string.quoted.other
#F2858C RGB(242, 133, 140) RGBA(242, 133, 140, 1) string.quoted.single
#82D99F RGB(130, 217, 159) RGBA(130, 217, 159, 1) string.quoted.triple
#F2858C RGB(242, 133, 140) RGBA(242, 133, 140, 1) string.regexp
#80BBFF RGB(128, 187, 255) RGBA(128, 187, 255, 1) string.template
#F2858C RGB(242, 133, 140) RGBA(242, 133, 140, 1) string.unquoted
#F2858C RGB(242, 133, 140) RGBA(242, 133, 140, 1) support
#82D99F RGB(130, 217, 159) RGBA(130, 217, 159, 1) support.constant
#80BBFF RGB(128, 187, 255) RGBA(128, 187, 255, 1) support.function
#F29D79 RGB(242, 157, 121) RGBA(242, 157, 121, 1) support.other
#DED47E RGB(222, 212, 126) RGBA(222, 212, 126, 1) support.type
#80BBFF RGB(128, 187, 255) RGBA(128, 187, 255, 1) support.type.primitive
#80BBFF RGB(128, 187, 255) RGBA(128, 187, 255, 1) support.type.property-name
#80BBFF RGB(128, 187, 255) RGBA(128, 187, 255, 1) variable
#DED47E RGB(222, 212, 126) RGBA(222, 212, 126, 1) variable.function
#DED47E RGB(222, 212, 126) RGBA(222, 212, 126, 1) variable.language
#F2858C RGB(242, 133, 140) RGBA(242, 133, 140, 1) variable.name
#DED47E RGB(222, 212, 126) RGBA(222, 212, 126, 1) variable.other
#DED47E RGB(222, 212, 126) RGBA(222, 212, 126, 1) variable.other.constant
#DED47E RGB(222, 212, 126) RGBA(222, 212, 126, 1) variable.other.property
#DED47E RGB(222, 212, 126) RGBA(222, 212, 126, 1) variable.other.readwrite
#DED47E RGB(222, 212, 126) RGBA(222, 212, 126, 1) variable.parameter
#DED47E RGB(222, 212, 126) RGBA(222, 212, 126, 1)