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
Firefox Quantum Dark
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.activeBorder
#46AFE3 RGB(70, 175, 227) RGBA(70, 175, 227, 1) activityBar.background
#14171A RGB(20, 23, 26) RGBA(20, 23, 26, 1) activityBarBadge.background
#252C33 RGB(37, 44, 51) RGBA(37, 44, 51, 1) badge.background
#343C45 RGB(52, 60, 69) RGBA(52, 60, 69, 1) button.background
#343C45 RGB(52, 60, 69) RGBA(52, 60, 69, 1) button.hoverBackground
#1D4F73 RGB(29, 79, 115) RGBA(29, 79, 115, 1) debugToolBar.background
#181D20 RGB(24, 29, 32) RGBA(24, 29, 32, 1) dropdown.background
#14171A RGB(20, 23, 26) RGBA(20, 23, 26, 1) editor.background
#181D20 RGB(24, 29, 32) RGBA(24, 29, 32, 1) editor.foreground
#B6BABF RGB(182, 186, 191) RGBA(182, 186, 191, 1) editor.lineHighlightBackground
#14171A RGB(20, 23, 26) RGBA(20, 23, 26, 1) editor.selectionBackground
#1D4F73 RGB(29, 79, 115) RGBA(29, 79, 115, 1) editor.wordHighlightBorder
#252C33 RGB(37, 44, 51) RGBA(37, 44, 51, 1) editorBracketMatch.border
#A9BACB RGB(169, 186, 203) RGBA(169, 186, 203, 1) editorCursor.foreground
#FFFFB4 RGB(255, 255, 180) RGBA(255, 255, 180, 1) editorGroupHeader.tabsBackground
#14171A RGB(20, 23, 26) RGBA(20, 23, 26, 1) editorIndentGuide.activeBackground
#252C33AA RGB(37, 44, 51) RGBA(37, 44, 51, 0.667) editorIndentGuide.background
#252C33 RGB(37, 44, 51) RGBA(37, 44, 51, 1) editorWidget.background
#181D20 RGB(24, 29, 32) RGBA(24, 29, 32, 1) focusBorder
#343C45 RGB(52, 60, 69) RGBA(52, 60, 69, 1) input.background
#252C33 RGB(37, 44, 51) RGBA(37, 44, 51, 1) list.activeBackground
#252C33 RGB(37, 44, 51) RGBA(37, 44, 51, 1) list.activeSelectionBackground
#252C33 RGB(37, 44, 51) RGBA(37, 44, 51, 1) list.focusBackground
#252C33 RGB(37, 44, 51) RGBA(37, 44, 51, 1) list.hoverBackground
#252C33 RGB(37, 44, 51) RGBA(37, 44, 51, 1) list.inactiveSelectionBackground
#181D20 RGB(24, 29, 32) RGBA(24, 29, 32, 1) panel.background
#181D20 RGB(24, 29, 32) RGBA(24, 29, 32, 1) scrollbarSlider.background
#252C33AA RGB(37, 44, 51) RGBA(37, 44, 51, 0.667) sideBar.background
#14171A RGB(20, 23, 26) RGBA(20, 23, 26, 1) sideBarSectionHeader.background
#181D20 RGB(24, 29, 32) RGBA(24, 29, 32, 1) sidebarSectionHeader.foreground
#B6BABF RGB(182, 186, 191) RGBA(182, 186, 191, 1) sideBarTitle.foreground
#B6BABF RGB(182, 186, 191) RGBA(182, 186, 191, 1) statusBar.background
#14171A RGB(20, 23, 26) RGBA(20, 23, 26, 1) statusBar.debuggingBackground
#B28025 RGB(178, 128, 37) RGBA(178, 128, 37, 1) statusBar.debuggingForeground
#F5F7FA RGB(245, 247, 250) RGBA(245, 247, 250, 1) statusBar.foreground
#B6BABF RGB(182, 186, 191) RGBA(182, 186, 191, 1) tab.activeModifiedBorder
#6B7ABB RGB(107, 122, 187) RGBA(107, 122, 187, 1) tab.border
#14171A RGB(20, 23, 26) RGBA(20, 23, 26, 1) tab.focusedHoverBackground
#181D20 RGB(24, 29, 32) RGBA(24, 29, 32, 1) tab.inactiveBackground
#14171A RGB(20, 23, 26) RGBA(20, 23, 26, 1) tab.unfocusedHoverBackground
#181D20 RGB(24, 29, 32) RGBA(24, 29, 32, 1) terminal.ansiBlack
#14171A RGB(20, 23, 26) RGBA(20, 23, 26, 1) terminal.ansiBlue
#46AFE3 RGB(70, 175, 227) RGBA(70, 175, 227, 1) terminal.ansiBrightRed
#D96629 RGB(217, 102, 41) RGBA(217, 102, 41, 1) terminal.ansiGreen
#70BF53 RGB(112, 191, 83) RGBA(112, 191, 83, 1) terminal.ansiRed
#EB5368 RGB(235, 83, 104) RGBA(235, 83, 104, 1) terminal.ansiWhite
#B6BABF RGB(182, 186, 191) RGBA(182, 186, 191, 1) terminal.ansiYellow
#FFFFB4 RGB(255, 255, 180) RGBA(255, 255, 180, 1) titleBar.activeBackground
#14171A RGB(20, 23, 26) RGBA(20, 23, 26, 1) titleBar.activeForeground
#B6BABF RGB(182, 186, 191) RGBA(182, 186, 191, 1) titleBar.inactiveBackground
#181D20 RGB(24, 29, 32) RGBA(24, 29, 32, 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
#5C6773 RGB(92, 103, 115) RGBA(92, 103, 115, 1) comment.block
#5C6773 RGB(92, 103, 115) RGBA(92, 103, 115, 1) comment.block.documentation
#5C6773 RGB(92, 103, 115) RGBA(92, 103, 115, 1) comment.line
#5C6773 RGB(92, 103, 115) RGBA(92, 103, 115, 1) constant
#46AFE3 RGB(70, 175, 227) RGBA(70, 175, 227, 1) constant.character
#70BF53 RGB(112, 191, 83) RGBA(112, 191, 83, 1) constant.character.escape
#46AFE3 RGB(70, 175, 227) RGBA(70, 175, 227, 1) constant.numeric
#6B7ABB RGB(107, 122, 187) RGBA(107, 122, 187, 1) constant.numeric.integer
#6B7ABB RGB(107, 122, 187) RGBA(107, 122, 187, 1) constant.numeric.float
#6B7ABB RGB(107, 122, 187) RGBA(107, 122, 187, 1) constant.numeric.hex
#6B7ABB RGB(107, 122, 187) RGBA(107, 122, 187, 1) constant.numeric.octal
#6B7ABB RGB(107, 122, 187) RGBA(107, 122, 187, 1) constant.other
#70BF53 RGB(112, 191, 83) RGBA(112, 191, 83, 1) entity
#FFFFB4 RGB(255, 255, 180) RGBA(255, 255, 180, 1) entity.name
#DF80FF RGB(223, 128, 255) RGBA(223, 128, 255, 1) entity.name.class
#DF80FF RGB(223, 128, 255) RGBA(223, 128, 255, 1) entity.name.function
#70BF53 RGB(112, 191, 83) RGBA(112, 191, 83, 1) entity.name.method
#DF80FF RGB(223, 128, 255) RGBA(223, 128, 255, 1) entity.name.namespace
#DF80FF RGB(223, 128, 255) RGBA(223, 128, 255, 1) entity.name.section
#DF80FF RGB(223, 128, 255) RGBA(223, 128, 255, 1) entity.name.selector
#DF80FF RGB(223, 128, 255) RGBA(223, 128, 255, 1) entity.name.tag
#46AFE3 RGB(70, 175, 227) RGBA(70, 175, 227, 1) entity.name.type
#DF80FF RGB(223, 128, 255) RGBA(223, 128, 255, 1) entity.name.type.enum
#DF80FF RGB(223, 128, 255) RGBA(223, 128, 255, 1) entity.name.type.interface
#DF80FF RGB(223, 128, 255) RGBA(223, 128, 255, 1) entity.name.type.struct
#DF80FF RGB(223, 128, 255) RGBA(223, 128, 255, 1) entity.other
#DF80FF RGB(223, 128, 255) RGBA(223, 128, 255, 1) entity.other.attribute-name
#DF80FF RGB(223, 128, 255) RGBA(223, 128, 255, 1) entity.other.inherited-class
#6B7ABB RGB(107, 122, 187) RGBA(107, 122, 187, 1) invalid
#D96629 RGB(217, 102, 41) RGBA(217, 102, 41, 1) invalid.deprecated
#D96629 RGB(217, 102, 41) RGBA(217, 102, 41, 1) invalid.illegal
#D96629 RGB(217, 102, 41) RGBA(217, 102, 41, 1) keyword
#DF80FF RGB(223, 128, 255) RGBA(223, 128, 255, 1) keyword.control
#46AFE3 RGB(70, 175, 227) RGBA(70, 175, 227, 1) keyword.control.flow
#46AFE3 RGB(70, 175, 227) RGBA(70, 175, 227, 1) keyword.operator
#8FA1B2 RGB(143, 161, 178) RGBA(143, 161, 178, 1) keyword.operator.new
#DF80FF RGB(223, 128, 255) RGBA(223, 128, 255, 1) keyword.operator.assignment
#8FA1B2 RGB(143, 161, 178) RGBA(143, 161, 178, 1) keyword.operator.arithmetic
#8FA1B2 RGB(143, 161, 178) RGBA(143, 161, 178, 1) keyword.operator.logical
#8FA1B2 RGB(143, 161, 178) RGBA(143, 161, 178, 1) keyword.other
#70BF53 RGB(112, 191, 83) RGBA(112, 191, 83, 1) markup
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.bold
#EB5368 RGB(235, 83, 104) RGBA(235, 83, 104, 1) markup.changed
#D96629 RGB(217, 102, 41) RGBA(217, 102, 41, 1) markup.deleted
#EB5368 RGB(235, 83, 104) RGBA(235, 83, 104, 1) markup.heading
#6B7ABB RGB(107, 122, 187) RGBA(107, 122, 187, 1) markup.inline.raw
#D99B28 RGB(217, 155, 40) RGBA(217, 155, 40, 1) markup.inserted
#70BF53 RGB(112, 191, 83) RGBA(112, 191, 83, 1) markup.italic
#EB5368 RGB(235, 83, 104) RGBA(235, 83, 104, 1) markup.quote
#5C6773 RGB(92, 103, 115) RGBA(92, 103, 115, 1) markup.raw
#00000050 RGB(0, 0, 0) RGBA(0, 0, 0, 0.314) markup.underline
#EB5368 RGB(235, 83, 104) RGBA(235, 83, 104, 1) markup.underline.link
#EB5368 RGB(235, 83, 104) RGBA(235, 83, 104, 1) meta
#D96629 RGB(217, 102, 41) RGBA(217, 102, 41, 1) meta.function-call
#70BF53 RGB(112, 191, 83) RGBA(112, 191, 83, 1) meta.tag
#46AFE3 RGB(70, 175, 227) RGBA(70, 175, 227, 1) punctuation.definition.comment
#5C6773 RGB(92, 103, 115) RGBA(92, 103, 115, 1) punctuation.definition.string.begin
#6B7ABB RGB(107, 122, 187) RGBA(107, 122, 187, 1) punctuation.definition.string.end
#6B7ABB RGB(107, 122, 187) RGBA(107, 122, 187, 1) punctuation.separator
#8FA1B2 RGB(143, 161, 178) RGBA(143, 161, 178, 1) storage
#FFFFB4 RGB(255, 255, 180) RGBA(255, 255, 180, 1) storage.modifier
#DF80FF RGB(223, 128, 255) RGBA(223, 128, 255, 1) storage.type
#DF80FF RGB(223, 128, 255) RGBA(223, 128, 255, 1) string
#EB5368 RGB(235, 83, 104) RGBA(235, 83, 104, 1) string.interpolated
#EB5368 RGB(235, 83, 104) RGBA(235, 83, 104, 1) string.other
#EB5368 RGB(235, 83, 104) RGBA(235, 83, 104, 1) string.quoted
#EB5368 RGB(235, 83, 104) RGBA(235, 83, 104, 1) string.quoted.double
#EB5368 RGB(235, 83, 104) RGBA(235, 83, 104, 1) string.quoted.other
#EB5368 RGB(235, 83, 104) RGBA(235, 83, 104, 1) string.quoted.single
#EB5368 RGB(235, 83, 104) RGBA(235, 83, 104, 1) string.quoted.triple
#EB5368 RGB(235, 83, 104) RGBA(235, 83, 104, 1) string.regexp
#46AFE3 RGB(70, 175, 227) RGBA(70, 175, 227, 1) string.template
#EB5368 RGB(235, 83, 104) RGBA(235, 83, 104, 1) string.unquoted
#EB5368 RGB(235, 83, 104) RGBA(235, 83, 104, 1) support
#FFFFB4 RGB(255, 255, 180) RGBA(255, 255, 180, 1) support.class
#DF80FF RGB(223, 128, 255) RGBA(223, 128, 255, 1) support.constant
#5E88B0 RGB(94, 136, 176) RGBA(94, 136, 176, 1) support.function
#70BF53 RGB(112, 191, 83) RGBA(112, 191, 83, 1) support.other
#DF80FF RGB(223, 128, 255) RGBA(223, 128, 255, 1) support.type
#FFFFB4 RGB(255, 255, 180) RGBA(255, 255, 180, 1) support.type.primitive
#FFFFB4 RGB(255, 255, 180) RGBA(255, 255, 180, 1) support.type.property-name
#70BF53 RGB(112, 191, 83) RGBA(112, 191, 83, 1) support.variable
#46AFE3 RGB(70, 175, 227) RGBA(70, 175, 227, 1) variable
#46AFE3 RGB(70, 175, 227) RGBA(70, 175, 227, 1) variable.function
#70BF53 RGB(112, 191, 83) RGBA(112, 191, 83, 1) variable.language
#DF80FF RGB(223, 128, 255) RGBA(223, 128, 255, 1) variable.name
#46AFE3 RGB(70, 175, 227) RGBA(70, 175, 227, 1) variable.other
#46AFE3 RGB(70, 175, 227) RGBA(70, 175, 227, 1) variable.other.constant
#46AFE3 RGB(70, 175, 227) RGBA(70, 175, 227, 1) variable.other.property
#70BF53 RGB(112, 191, 83) RGBA(112, 191, 83, 1) variable.other.readwrite
#46AFE3 RGB(70, 175, 227) RGBA(70, 175, 227, 1) variable.parameter
#46AFE3 RGB(70, 175, 227) RGBA(70, 175, 227, 1)