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
React Dark Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#1290BA RGB(18, 144, 186) RGBA(18, 144, 186, 1) breadcrumb.background
#16181D RGB(22, 24, 29) RGBA(22, 24, 29, 1) button.background
#0F7799 RGB(15, 119, 153) RGBA(15, 119, 153, 1) button.hoverBackground
#1290BA RGB(18, 144, 186) RGBA(18, 144, 186, 1) editor.background
#16181D RGB(22, 24, 29) RGBA(22, 24, 29, 1) editor.findMatchHighlightBackground
#15A5D555 RGB(21, 165, 213) RGBA(21, 165, 213, 0.333) editor.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editorGutter.background
#16181D RGB(22, 24, 29) RGBA(22, 24, 29, 1) editorLink.activeForeground
#33BDEB RGB(51, 189, 235) RGBA(51, 189, 235, 1) editorSuggestWidget.highlightForeground
#16B0E3 RGB(22, 176, 227) RGBA(22, 176, 227, 1) editorSuggestWidget.selectedBackground
#073A4A RGB(7, 58, 74) RGBA(7, 58, 74, 1) focusBorder
#1397C3 RGB(19, 151, 195) RGBA(19, 151, 195, 1) inputOption.activeBackground
#1397C366 RGB(19, 151, 195) RGBA(19, 151, 195, 0.4) list.activeSelectionBackground
#0B566F RGB(11, 86, 111) RGBA(11, 86, 111, 1) list.focusBackground
#073A4A RGB(7, 58, 74) RGBA(7, 58, 74, 1) list.highlightForeground
#16B0E3 RGB(22, 176, 227) RGBA(22, 176, 227, 1) menu.selectionBackground
#0B566F RGB(11, 86, 111) RGBA(11, 86, 111, 1) peekView.border
#1290BA RGB(18, 144, 186) RGBA(18, 144, 186, 1) peekViewEditor.background
#05242E RGB(5, 36, 46) RGBA(5, 36, 46, 1) peekViewEditorGutter.background
#05242E RGB(5, 36, 46) RGBA(5, 36, 46, 1) pickerGroup.foreground
#4AC4ED RGB(74, 196, 237) RGBA(74, 196, 237, 1) progressBar.background
#1290BA RGB(18, 144, 186) RGBA(18, 144, 186, 1) selection.background
#1290BA RGB(18, 144, 186) RGBA(18, 144, 186, 1) statusBar.background
#252526 RGB(37, 37, 38) RGBA(37, 37, 38, 1) statusBar.debuggingBackground
#252526 RGB(37, 37, 38) RGBA(37, 37, 38, 1) statusBar.noFolderBackground
#252526 RGB(37, 37, 38) RGBA(37, 37, 38, 1) statusBarItem.remoteBackground
#149ECA RGB(20, 158, 202) RGBA(20, 158, 202, 1) tab.activeBackground
#16181D RGB(22, 24, 29) RGBA(22, 24, 29, 1) textLink.foreground
#4AC4ED RGB(74, 196, 237) RGBA(74, 196, 237, 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
#757575 RGB(117, 117, 117) RGBA(117, 117, 117, 1) comment.block
#757575 RGB(117, 117, 117) RGBA(117, 117, 117, 1) comment.block.documentation
#757575 RGB(117, 117, 117) RGBA(117, 117, 117, 1) comment.line
#757575 RGB(117, 117, 117) RGBA(117, 117, 117, 1) constant
#C64640 RGB(198, 70, 64) RGBA(198, 70, 64, 1) constant.character
#C64640 RGB(198, 70, 64) RGBA(198, 70, 64, 1) constant.character.escape
#C64640 RGB(198, 70, 64) RGBA(198, 70, 64, 1) constant.numeric
#C64640 RGB(198, 70, 64) RGBA(198, 70, 64, 1) constant.numeric.integer
#C64640 RGB(198, 70, 64) RGBA(198, 70, 64, 1) constant.numeric.float
#C64640 RGB(198, 70, 64) RGBA(198, 70, 64, 1) constant.numeric.hex
#C64640 RGB(198, 70, 64) RGBA(198, 70, 64, 1) constant.numeric.octal
#C64640 RGB(198, 70, 64) RGBA(198, 70, 64, 1) constant.other
#C64640 RGB(198, 70, 64) RGBA(198, 70, 64, 1) constant.other.placeholder
#C64640 RGB(198, 70, 64) RGBA(198, 70, 64, 1) entity
#86D9CA RGB(134, 217, 202) RGBA(134, 217, 202, 1) entity.name
#86D9CA RGB(134, 217, 202) RGBA(134, 217, 202, 1) entity.name.class
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) entity.name.function
#86D9CA RGB(134, 217, 202) RGBA(134, 217, 202, 1) entity.name.namespace
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) entity.name.tag
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) entity.name.type
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) entity.name.type.enum
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) entity.name.type.interface
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) entity.name.type.struct
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) entity.other
#77B7D7 RGB(119, 183, 215) RGBA(119, 183, 215, 1) entity.other.attribute-name
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) entity.other.inherited-class
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) invalid
#EF4444 RGB(239, 68, 68) RGBA(239, 68, 68, 1) invalid.deprecated
#EF4444 RGB(239, 68, 68) RGBA(239, 68, 68, 1) invalid.illegal
#EF4444 RGB(239, 68, 68) RGBA(239, 68, 68, 1) keyword
#77B7D7 RGB(119, 183, 215) RGBA(119, 183, 215, 1) keyword.control
#77B7D7 RGB(119, 183, 215) RGBA(119, 183, 215, 1) keyword.control.flow
#77B7D7 RGB(119, 183, 215) RGBA(119, 183, 215, 1) keyword.operator
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword.operator.new
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword.operator.assignment
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword.operator.arithmetic
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword.operator.logical
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword.other
#77B7D7 RGB(119, 183, 215) RGBA(119, 183, 215, 1) markup
#DFAB5C RGB(223, 171, 92) RGBA(223, 171, 92, 1) markup.bold
#77B7D7 RGB(119, 183, 215) RGBA(119, 183, 215, 1) markup.deleted
#77B7D7 RGB(119, 183, 215) RGBA(119, 183, 215, 1) markup.heading
#77B7D7 RGB(119, 183, 215) RGBA(119, 183, 215, 1) markup.inline.raw
#DFAB5C RGB(223, 171, 92) RGBA(223, 171, 92, 1) markup.inserted
#77B7D7 RGB(119, 183, 215) RGBA(119, 183, 215, 1) markup.italic
#77B7D7 RGB(119, 183, 215) RGBA(119, 183, 215, 1) markup.list
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) markup.list.numbered
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) markup.list.unnumbered
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) markup.other
#77B7D7 RGB(119, 183, 215) RGBA(119, 183, 215, 1) markup.quote
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) markup.raw
#77B7D7 RGB(119, 183, 215) RGBA(119, 183, 215, 1) markup.underline
#77B7D7 RGB(119, 183, 215) RGBA(119, 183, 215, 1) markup.underline.link
#77B7D7 RGB(119, 183, 215) RGBA(119, 183, 215, 1) punctuation.definition.comment
#757575 RGB(117, 117, 117) RGBA(117, 117, 117, 1) punctuation.definition.string.begin
#977CDC RGB(151, 124, 220) RGBA(151, 124, 220, 1) punctuation.definition.string.end
#977CDC RGB(151, 124, 220) RGBA(151, 124, 220, 1) punctuation.separator
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.separator.continuation
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) punctuation.terminator
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) storage
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) storage.modifier
#77B7D7 RGB(119, 183, 215) RGBA(119, 183, 215, 1) storage.type
#77B7D7 RGB(119, 183, 215) RGBA(119, 183, 215, 1) string
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) string.quoted
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) string.quoted.double
#977CDC RGB(151, 124, 220) RGBA(151, 124, 220, 1) string.quoted.other
#977CDC RGB(151, 124, 220) RGBA(151, 124, 220, 1) string.quoted.single
#977CDC RGB(151, 124, 220) RGBA(151, 124, 220, 1) string.quoted.triple
#977CDC RGB(151, 124, 220) RGBA(151, 124, 220, 1) string.regexp
#977CDC RGB(151, 124, 220) RGBA(151, 124, 220, 1) string.unquoted
#977CDC RGB(151, 124, 220) RGBA(151, 124, 220, 1) support
#77B7D7 RGB(119, 183, 215) RGBA(119, 183, 215, 1) support.class
#86D9CA RGB(134, 217, 202) RGBA(134, 217, 202, 1) support.constant
#C64640 RGB(198, 70, 64) RGBA(198, 70, 64, 1) support.function
#86D9CA RGB(134, 217, 202) RGBA(134, 217, 202, 1) support.type
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) support.type.primitive
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) support.type.property-name
#77B7D7 RGB(119, 183, 215) RGBA(119, 183, 215, 1) variable
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.function
#77B7D7 RGB(119, 183, 215) RGBA(119, 183, 215, 1) variable.language
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.other
#77B7D7 RGB(119, 183, 215) RGBA(119, 183, 215, 1) variable.other.constant
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.other.property
#77B7D7 RGB(119, 183, 215) RGBA(119, 183, 215, 1) variable.other.readwrite
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) variable.parameter
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1)