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
One Dark Vivid
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#31343F RGB(49, 52, 63) RGBA(49, 52, 63, 1) activityBarBadge.background
#31343F RGB(49, 52, 63) RGBA(49, 52, 63, 1) debugExceptionWidget.background
#31343F RGB(49, 52, 63) RGBA(49, 52, 63, 1) debugToolBar.background
#31343F RGB(49, 52, 63) RGBA(49, 52, 63, 1) dropdown.background
#31343F RGB(49, 52, 63) RGBA(49, 52, 63, 1) editor.background
#31343F RGB(49, 52, 63) RGBA(49, 52, 63, 1) editor.findMatchBackground
#31343F RGB(49, 52, 63) RGBA(49, 52, 63, 1) editor.findMatchHighlightBackground
#454D6D RGB(69, 77, 109) RGBA(69, 77, 109, 1) editor.findRangeHighlightBackground
#454D6D RGB(69, 77, 109) RGBA(69, 77, 109, 1) editor.foreground
#DEE2F7 RGB(222, 226, 247) RGBA(222, 226, 247, 1) editor.lineHighlightBackground
#353947 RGB(53, 57, 71) RGBA(53, 57, 71, 1) editor.selectionBackground
#484B5B RGB(72, 75, 91) RGBA(72, 75, 91, 1) editorCursor.foreground
#528BFF RGB(82, 139, 255) RGBA(82, 139, 255, 1) editorGroup.background
EDITOR.BACKGSROUND — — editorGroupHeader.tabsBackground
#31343F RGB(49, 52, 63) RGBA(49, 52, 63, 1) editorMarkerNavigation.background
#31343F RGB(49, 52, 63) RGBA(49, 52, 63, 1) editorWhitespace.foreground
#484B5B RGB(72, 75, 91) RGBA(72, 75, 91, 1) editorWidget.background
#31343F RGB(49, 52, 63) RGBA(49, 52, 63, 1) input.backgrouvsce publishnd
#31343F RGB(49, 52, 63) RGBA(49, 52, 63, 1) input.border
#484B5B RGB(72, 75, 91) RGBA(72, 75, 91, 1) panel.background
#31343F RGB(49, 52, 63) RGBA(49, 52, 63, 1) sideBar.background
#31343F RGB(49, 52, 63) RGBA(49, 52, 63, 1) statusBar.background
#31343F RGB(49, 52, 63) RGBA(49, 52, 63, 1) tab.activeBackground
#31343F RGB(49, 52, 63) RGBA(49, 52, 63, 1) tab.inactiveBackground
#31343F RGB(49, 52, 63) RGBA(49, 52, 63, 1) titleBar.activeBackground
#31343F RGB(49, 52, 63) RGBA(49, 52, 63, 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
#63677E RGB(99, 103, 126) RGBA(99, 103, 126, 1) comment.block
#63677E RGB(99, 103, 126) RGBA(99, 103, 126, 1) comment.block.documentation
#63677E RGB(99, 103, 126) RGBA(99, 103, 126, 1) comment.line
#63677E RGB(99, 103, 126) RGBA(99, 103, 126, 1) constant
#DEE2F7 RGB(222, 226, 247) RGBA(222, 226, 247, 1) constant.character
#DEE2F7 RGB(222, 226, 247) RGBA(222, 226, 247, 1) constant.character.escape
#57B6C2 RGB(87, 182, 194) RGBA(87, 182, 194, 1) constant.numeric
#FDCE68 RGB(253, 206, 104) RGBA(253, 206, 104, 1) constant.numeric.integer
#FDCE68 RGB(253, 206, 104) RGBA(253, 206, 104, 1) constant.numeric.float
#FDCE68 RGB(253, 206, 104) RGBA(253, 206, 104, 1) constant.numeric.hex
#FDCE68 RGB(253, 206, 104) RGBA(253, 206, 104, 1) constant.numeric.octal
#FDCE68 RGB(253, 206, 104) RGBA(253, 206, 104, 1) constant.other
#DEE2F7 RGB(222, 226, 247) RGBA(222, 226, 247, 1) constant.other.placeholder
#DEE2F7 RGB(222, 226, 247) RGBA(222, 226, 247, 1) constant.regexp
#DEE2F7 RGB(222, 226, 247) RGBA(222, 226, 247, 1) constant.rgb-value
#DEE2F7 RGB(222, 226, 247) RGBA(222, 226, 247, 1) entity
#F9867B RGB(249, 134, 123) RGBA(249, 134, 123, 1) entity.name
#F9867B RGB(249, 134, 123) RGBA(249, 134, 123, 1) entity.name.class
#FDCE68 RGB(253, 206, 104) RGBA(253, 206, 104, 1) entity.name.function
#80BBFE RGB(128, 187, 254) RGBA(128, 187, 254, 1) entity.name.section
#80BBFE RGB(128, 187, 254) RGBA(128, 187, 254, 1) entity.name.tag
#F9867B RGB(249, 134, 123) RGBA(249, 134, 123, 1) entity.name.type
#EDDC96 RGB(237, 220, 150) RGBA(237, 220, 150, 1) entity.name.type.enum
#EDDC96 RGB(237, 220, 150) RGBA(237, 220, 150, 1) entity.name.type.interface
#EDDC96 RGB(237, 220, 150) RGBA(237, 220, 150, 1) entity.name.type.struct
#EDDC96 RGB(237, 220, 150) RGBA(237, 220, 150, 1) entity.other
#EDDC96 RGB(237, 220, 150) RGBA(237, 220, 150, 1) entity.other.attribute-name
#EDDC96 RGB(237, 220, 150) RGBA(237, 220, 150, 1) entity.other.inherited-class
#A3EEA0 RGB(163, 238, 160) RGBA(163, 238, 160, 1) invalid
#C24E4E RGB(194, 78, 78) RGBA(194, 78, 78, 1) invalid.deprecated
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) invalid.illegal
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword
#E19EF5 RGB(225, 158, 245) RGBA(225, 158, 245, 1) keyword.control
#E19EF5 RGB(225, 158, 245) RGBA(225, 158, 245, 1) keyword.control.flow
#E19EF5 RGB(225, 158, 245) RGBA(225, 158, 245, 1) keyword.operator
#7BE2F9 RGB(123, 226, 249) RGBA(123, 226, 249, 1) keyword.operator.new
#7BE2F9 RGB(123, 226, 249) RGBA(123, 226, 249, 1) keyword.operator.assignment
#7BE2F9 RGB(123, 226, 249) RGBA(123, 226, 249, 1) keyword.operator.arithmetic
#7BE2F9 RGB(123, 226, 249) RGBA(123, 226, 249, 1) keyword.operator.logical
#7BE2F9 RGB(123, 226, 249) RGBA(123, 226, 249, 1) keyword.other
#E19EF5 RGB(225, 158, 245) RGBA(225, 158, 245, 1) markup
#E19EF5 RGB(225, 158, 245) RGBA(225, 158, 245, 1) markup.bold
#FDCE68 RGB(253, 206, 104) RGBA(253, 206, 104, 1) markup.deleted
#F9867B RGB(249, 134, 123) RGBA(249, 134, 123, 1) markup.heading
#F9867B RGB(249, 134, 123) RGBA(249, 134, 123, 1) markup.inline.raw
#A3EEA0 RGB(163, 238, 160) RGBA(163, 238, 160, 1) markup.inserted
#A3EEA0 RGB(163, 238, 160) RGBA(163, 238, 160, 1) markup.italic
#E19EF5 RGB(225, 158, 245) RGBA(225, 158, 245, 1) markup.quote
#63677E RGB(99, 103, 126) RGBA(99, 103, 126, 1) markup.underline
#E19EF5 RGB(225, 158, 245) RGBA(225, 158, 245, 1) markup.underline.link
#E19EF5 RGB(225, 158, 245) RGBA(225, 158, 245, 1) meta
#DEE2F7 RGB(222, 226, 247) RGBA(222, 226, 247, 1) meta.function
#7BE2F9 RGB(123, 226, 249) RGBA(123, 226, 249, 1) meta.function-call
#80BBFE RGB(128, 187, 254) RGBA(128, 187, 254, 1) meta.selector
#E19EF5 RGB(225, 158, 245) RGBA(225, 158, 245, 1) meta.tag
#DEE2F7 RGB(222, 226, 247) RGBA(222, 226, 247, 1) punctuation.definition.bracket
#F9867B RGB(249, 134, 123) RGBA(249, 134, 123, 1) punctuation.definition.comment
#63677E RGB(99, 103, 126) RGBA(99, 103, 126, 1) punctuation.definition.string.begin
#F9867B RGB(249, 134, 123) RGBA(249, 134, 123, 1) punctuation.definition.string.end
#F9867B RGB(249, 134, 123) RGBA(249, 134, 123, 1) punctuation.separator
#F9867B RGB(249, 134, 123) RGBA(249, 134, 123, 1) punctuation.separator.continuation
#F9867B RGB(249, 134, 123) RGBA(249, 134, 123, 1) punctuation.terminator
#F9867B RGB(249, 134, 123) RGBA(249, 134, 123, 1) storage
#E19EF5 RGB(225, 158, 245) RGBA(225, 158, 245, 1) storage.modifier
#E19EF5 RGB(225, 158, 245) RGBA(225, 158, 245, 1) storage.type
#E19EF5 RGB(225, 158, 245) RGBA(225, 158, 245, 1) string
#DEE2F7 RGB(222, 226, 247) RGBA(222, 226, 247, 1) string.interpolated
#DEE2F7 RGB(222, 226, 247) RGBA(222, 226, 247, 1) string.other
#DEE2F7 RGB(222, 226, 247) RGBA(222, 226, 247, 1) string.quoted
#DEE2F7 RGB(222, 226, 247) RGBA(222, 226, 247, 1) string.quoted.double
#DEE2F7 RGB(222, 226, 247) RGBA(222, 226, 247, 1) string.quoted.other
#DEE2F7 RGB(222, 226, 247) RGBA(222, 226, 247, 1) string.quoted.single
#DEE2F7 RGB(222, 226, 247) RGBA(222, 226, 247, 1) string.quoted.triple
#DEE2F7 RGB(222, 226, 247) RGBA(222, 226, 247, 1) string.regexp
#57B6C2 RGB(87, 182, 194) RGBA(87, 182, 194, 1) string.template
#DEE2F7 RGB(222, 226, 247) RGBA(222, 226, 247, 1) string.unquoted
#DEE2F7 RGB(222, 226, 247) RGBA(222, 226, 247, 1) support
#FDCE68 RGB(253, 206, 104) RGBA(253, 206, 104, 1) support.class
#EDDC96 RGB(237, 220, 150) RGBA(237, 220, 150, 1) support.constant
#FDCE68 RGB(253, 206, 104) RGBA(253, 206, 104, 1) support.function
#7BE2F9 RGB(123, 226, 249) RGBA(123, 226, 249, 1) support.other
#EDDC96 RGB(237, 220, 150) RGBA(237, 220, 150, 1) support.type
#F9867B RGB(249, 134, 123) RGBA(249, 134, 123, 1) support.type.property-name
#DEE2F7 RGB(222, 226, 247) RGBA(222, 226, 247, 1) support.variable
#DEE2F7 RGB(222, 226, 247) RGBA(222, 226, 247, 1) variable
#F9867B RGB(249, 134, 123) RGBA(249, 134, 123, 1) variable.function
#F9867B RGB(249, 134, 123) RGBA(249, 134, 123, 1) variable.language
#F9867B RGB(249, 134, 123) RGBA(249, 134, 123, 1) variable.name
#F9867B RGB(249, 134, 123) RGBA(249, 134, 123, 1) variable.other
#F9867B RGB(249, 134, 123) RGBA(249, 134, 123, 1) variable.other.constant
#F9867B RGB(249, 134, 123) RGBA(249, 134, 123, 1) variable.other.property
#F9867B RGB(249, 134, 123) RGBA(249, 134, 123, 1) variable.other.readwrite
#F9867B RGB(249, 134, 123) RGBA(249, 134, 123, 1) variable.parameter
#F9867B RGB(249, 134, 123) RGBA(249, 134, 123, 1)