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
SuperOneDark Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#1C1C1C RGB(28, 28, 28) RGBA(28, 28, 28, 1) activityBar.border
#131313 RGB(19, 19, 19) RGBA(19, 19, 19, 1) banner.background
#1C1C1C RGB(28, 28, 28) RGBA(28, 28, 28, 1) breadcrumb.background
#1C1C1C RGB(28, 28, 28) RGBA(28, 28, 28, 1) editor.background
#1E1E1E RGB(30, 30, 30) RGBA(30, 30, 30, 1) editor.lineHighlightBackground
#2B2B2B RGB(43, 43, 43) RGBA(43, 43, 43, 1) editorCursor.foreground
#D3D3D3 RGB(211, 211, 211) RGBA(211, 211, 211, 1) editorGroup.emptyBackground
#1C1C1C RGB(28, 28, 28) RGBA(28, 28, 28, 1) editorGroupHeader.tabsBackground
#1C1C1C RGB(28, 28, 28) RGBA(28, 28, 28, 1) editorGutter.background
#1E1E1E RGB(30, 30, 30) RGBA(30, 30, 30, 1) editorHoverWidget.background
#1C1C1C RGB(28, 28, 28) RGBA(28, 28, 28, 1) editorSuggestWidget.background
#1C1C1C RGB(28, 28, 28) RGBA(28, 28, 28, 1) editorSuggestWidget.selectedBackground
#3B3B39 RGB(59, 59, 57) RGBA(59, 59, 57, 1) editorWidget.background
#1C1C1C RGB(28, 28, 28) RGBA(28, 28, 28, 1) input.background
#1D1D1D RGB(29, 29, 29) RGBA(29, 29, 29, 1) menu.background
#1C1C1C RGB(28, 28, 28) RGBA(28, 28, 28, 1) panel.background
#1C1C1C RGB(28, 28, 28) RGBA(28, 28, 28, 1) scrollbar.shadow
#131313 RGB(19, 19, 19) RGBA(19, 19, 19, 1) scrollbarSlider.background
#474747A8 RGB(71, 71, 71) RGBA(71, 71, 71, 0.659) sideBar.background
#1C1C1C RGB(28, 28, 28) RGBA(28, 28, 28, 1) sideBar.border
#131313 RGB(19, 19, 19) RGBA(19, 19, 19, 1) sideBarSectionHeader.background
#1C1C1C RGB(28, 28, 28) RGBA(28, 28, 28, 1) sideBarSectionHeader.border
#131313 RGB(19, 19, 19) RGBA(19, 19, 19, 1) statusBar.background
#1C1C1C RGB(28, 28, 28) RGBA(28, 28, 28, 1) statusBar.border
#1C1C1C RGB(28, 28, 28) RGBA(28, 28, 28, 1) statusBar.noFolderBackground
#1C1C1C RGB(28, 28, 28) RGBA(28, 28, 28, 1) statusBarItem.remoteBackground
#474747 RGB(71, 71, 71) RGBA(71, 71, 71, 1) tab.activeBackground
#1E1E1E RGB(30, 30, 30) RGBA(30, 30, 30, 1) tab.activeBorderTop
#474747 RGB(71, 71, 71) RGBA(71, 71, 71, 1) tab.inactiveBackground
#1C1C1C RGB(28, 28, 28) RGBA(28, 28, 28, 1) terminal.background
#1C1C1C RGB(28, 28, 28) RGBA(28, 28, 28, 1) titleBar.activeBackground
#1C1C1C RGB(28, 28, 28) RGBA(28, 28, 28, 1) titleBar.inactiveBackground
#1C1C1C RGB(28, 28, 28) RGBA(28, 28, 28, 1) welcomePage.background
#1C1C1C RGB(28, 28, 28) RGBA(28, 28, 28, 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
#676F7D RGB(103, 111, 125) RGBA(103, 111, 125, 1) comment.block
#676F7D RGB(103, 111, 125) RGBA(103, 111, 125, 1) comment.block.documentation
#676F7D RGB(103, 111, 125) RGBA(103, 111, 125, 1) comment.line
#676F7D RGB(103, 111, 125) RGBA(103, 111, 125, 1) constant
#D19A66 RGB(209, 154, 102) RGBA(209, 154, 102, 1) constant.character
#D19A66 RGB(209, 154, 102) RGBA(209, 154, 102, 1) constant.character.escape
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) constant.numeric
#D19A66 RGB(209, 154, 102) RGBA(209, 154, 102, 1) constant.numeric.integer
#D19A66 RGB(209, 154, 102) RGBA(209, 154, 102, 1) constant.numeric.float
#D19A66 RGB(209, 154, 102) RGBA(209, 154, 102, 1) constant.numeric.hex
#D19A66 RGB(209, 154, 102) RGBA(209, 154, 102, 1) constant.numeric.octal
#D19A66 RGB(209, 154, 102) RGBA(209, 154, 102, 1) constant.other
#D19A66 RGB(209, 154, 102) RGBA(209, 154, 102, 1) constant.other.placeholder
#D19A66 RGB(209, 154, 102) RGBA(209, 154, 102, 1) constant.regexp
#D19A66 RGB(209, 154, 102) RGBA(209, 154, 102, 1) constant.rgb-value
#D19A66 RGB(209, 154, 102) RGBA(209, 154, 102, 1) entity
#61AFEF RGB(97, 175, 239) RGBA(97, 175, 239, 1) entity.name
#61AFEF RGB(97, 175, 239) RGBA(97, 175, 239, 1) entity.name.class
#E5C07B RGB(229, 192, 123) RGBA(229, 192, 123, 1) entity.name.function
#61AFEF RGB(97, 175, 239) RGBA(97, 175, 239, 1) entity.name.method
#61AFEF RGB(97, 175, 239) RGBA(97, 175, 239, 1) entity.name.namespace
#61AFEF RGB(97, 175, 239) RGBA(97, 175, 239, 1) entity.name.section
#61AFEF RGB(97, 175, 239) RGBA(97, 175, 239, 1) entity.name.selector
#61AFEF RGB(97, 175, 239) RGBA(97, 175, 239, 1) entity.name.tag
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) entity.name.type
#E5C07B RGB(229, 192, 123) RGBA(229, 192, 123, 1) entity.name.type.enum
#E5C07B RGB(229, 192, 123) RGBA(229, 192, 123, 1) entity.name.type.interface
#E5C07B RGB(229, 192, 123) RGBA(229, 192, 123, 1) entity.name.type.struct
#E5C07B RGB(229, 192, 123) RGBA(229, 192, 123, 1) entity.other
#61AFEF RGB(97, 175, 239) RGBA(97, 175, 239, 1) entity.other.attribute-name
#D19A66 RGB(209, 154, 102) RGBA(209, 154, 102, 1) entity.other.inherited-class
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) invalid
WHITE — — invalid.deprecated
#523D14 RGB(82, 61, 20) RGBA(82, 61, 20, 1) invalid.illegal
WHITE — — keyword
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) keyword.control
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) keyword.control.flow
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) keyword.operator
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) keyword.operator.new
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) keyword.operator.assignment
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) keyword.operator.arithmetic
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) keyword.operator.logical
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) keyword.other
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) markup
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) markup.bold
#D19A66 RGB(209, 154, 102) RGBA(209, 154, 102, 1) markup.changed
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) markup.deleted
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) markup.heading
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) markup.inline.raw
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) markup.inserted
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) markup.italic
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) markup.quote
#D19A66 RGB(209, 154, 102) RGBA(209, 154, 102, 1) markup.raw
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) markup.underline
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) markup.underline.link
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) meta
#ABB2BF RGB(171, 178, 191) RGBA(171, 178, 191, 1) meta.class
#E5C07B RGB(229, 192, 123) RGBA(229, 192, 123, 1) meta.selector
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) meta.tag
#ABB2BF RGB(171, 178, 191) RGBA(171, 178, 191, 1) punctuation.definition.bracket
#BE5046 RGB(190, 80, 70) RGBA(190, 80, 70, 1) punctuation.definition.comment
#5C6370 RGB(92, 99, 112) RGBA(92, 99, 112, 1) punctuation.definition.string.begin
#BE5046 RGB(190, 80, 70) RGBA(190, 80, 70, 1) punctuation.definition.string.end
#BE5046 RGB(190, 80, 70) RGBA(190, 80, 70, 1) punctuation.separator
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) punctuation.separator.continuation
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) punctuation.terminator
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) storage
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) storage.modifier
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) storage.type
#E5C07B RGB(229, 192, 123) RGBA(229, 192, 123, 1) string
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.interpolated
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.other
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.quoted
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.quoted.double
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.quoted.other
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.quoted.single
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.quoted.triple
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.regexp
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) string.template
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.unquoted
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) support
#ABB2BF RGB(171, 178, 191) RGBA(171, 178, 191, 1) support.class
#E5C07B RGB(229, 192, 123) RGBA(229, 192, 123, 1) support.constant
#D19A66 RGB(209, 154, 102) RGBA(209, 154, 102, 1) support.function
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) support.type
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) support.type.primitive
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) support.type.property-name
#ABB2BF RGB(171, 178, 191) RGBA(171, 178, 191, 1) support.variable
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) variable
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) variable.function
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) variable.language
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) variable.name
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) variable.other
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) variable.other.constant
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) variable.other.property
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) variable.other.readwrite
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) variable.parameter
#D19A66 RGB(209, 154, 102) RGBA(209, 154, 102, 1)