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
HLJS-like Dark
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#232323 RGB(35, 35, 35) RGBA(35, 35, 35, 1) activityBar.foreground
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) activityBar.inactiveForeground
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) activityBarBadge.background
#80CBC4 RGB(128, 203, 196) RGBA(128, 203, 196, 1) activityBarBadge.foreground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) button.background
#3A3A3A RGB(58, 58, 58) RGBA(58, 58, 58, 1) button.hoverBackground
#505050 RGB(80, 80, 80) RGBA(80, 80, 80, 1) editor.background
#1A1A1A RGB(26, 26, 26) RGBA(26, 26, 26, 1) editor.foreground
#D4D4D4 RGB(212, 212, 212) RGBA(212, 212, 212, 1) editor.lineHighlightBackground
#2A2A2A66 RGB(42, 42, 42) RGBA(42, 42, 42, 0.4) editor.selectionBackground
#5F6F79 RGB(95, 111, 121) RGBA(95, 111, 121, 1) editorBracketHighlight.foreground1
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) editorBracketHighlight.foreground2
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) editorBracketHighlight.foreground3
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) editorBracketHighlight.foreground4
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) editorBracketHighlight.foreground5
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) editorBracketHighlight.foreground6
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) editorBracketHighlight.unexpectedBracket.foreground
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) editorCursor.foreground
#AEAFAD RGB(174, 175, 173) RGBA(174, 175, 173, 1) input.background
#1F1F1F RGB(31, 31, 31) RGBA(31, 31, 31, 1) input.foreground
#D4D4D4 RGB(212, 212, 212) RGBA(212, 212, 212, 1) list.activeSelectionBackground
#3A3A3A RGB(58, 58, 58) RGBA(58, 58, 58, 1) list.activeSelectionForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) list.hoverBackground
#2F2F2F RGB(47, 47, 47) RGBA(47, 47, 47, 1) list.inactiveSelectionBackground
#2A2A2A RGB(42, 42, 42) RGBA(42, 42, 42, 1) panel.background
#2A2A2A RGB(42, 42, 42) RGBA(42, 42, 42, 1) panel.border
#404040 RGB(64, 64, 64) RGBA(64, 64, 64, 1) panelTitle.activeForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) panelTitle.inactiveForeground
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) sideBar.background
#2A2A2A RGB(42, 42, 42) RGBA(42, 42, 42, 1) sideBar.border
#404040 RGB(64, 64, 64) RGBA(64, 64, 64, 1) sideBar.foreground
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) sideBarSectionHeader.background
#2A2A2A RGB(42, 42, 42) RGBA(42, 42, 42, 1) sideBarSectionHeader.foreground
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) sideBarTitle.foreground
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) statusBar.background
#232323 RGB(35, 35, 35) RGBA(35, 35, 35, 1) statusBar.debuggingBackground
#5F6F79 RGB(95, 111, 121) RGBA(95, 111, 121, 1) statusBar.debuggingForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) statusBar.foreground
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) statusBar.noFolderBackground
#232323 RGB(35, 35, 35) RGBA(35, 35, 35, 1) statusBarItem.hoverBackground
#3A3A3A RGB(58, 58, 58) RGBA(58, 58, 58, 1) tab.activeBackground
#2A2A2A RGB(42, 42, 42) RGBA(42, 42, 42, 1) tab.activeForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) tab.border
#404040 RGB(64, 64, 64) RGBA(64, 64, 64, 1) tab.hoverBackground
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) tab.inactiveBackground
#232323 RGB(35, 35, 35) RGBA(35, 35, 35, 1) tab.inactiveForeground
#AAAAAA RGB(170, 170, 170) RGBA(170, 170, 170, 1) titleBar.activeBackground
#232323 RGB(35, 35, 35) RGBA(35, 35, 35, 1) titleBar.activeForeground
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) titleBar.inactiveBackground
#1A1A1A RGB(26, 26, 26) RGBA(26, 26, 26, 1) titleBar.inactiveForeground
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 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
#9B9B9B RGB(155, 155, 155) RGBA(155, 155, 155, 1) comment.block
#9B9B9B RGB(155, 155, 155) RGBA(155, 155, 155, 1) comment.line
#9B9B9B RGB(155, 155, 155) RGBA(155, 155, 155, 1) constant
#2E95D3 RGB(46, 149, 211) RGBA(46, 149, 211, 1) constant.numeric
#DF3079 RGB(223, 48, 121) RGBA(223, 48, 121, 1) constant.numeric.octal
#DF3079 RGB(223, 48, 121) RGBA(223, 48, 121, 1) constant.other
#DF3079 RGB(223, 48, 121) RGBA(223, 48, 121, 1) entity
#DF3079 RGB(223, 48, 121) RGBA(223, 48, 121, 1) entity.name
#DF3079 RGB(223, 48, 121) RGBA(223, 48, 121, 1) entity.name.function
#E9950C RGB(233, 149, 12) RGBA(233, 149, 12, 1) entity.name.tag
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) entity.name.type
#DF3079 RGB(223, 48, 121) RGBA(223, 48, 121, 1) entity.name.type.enum
#DF3079 RGB(223, 48, 121) RGBA(223, 48, 121, 1) entity.name.type.interface
#DF3079 RGB(223, 48, 121) RGBA(223, 48, 121, 1) entity.name.type.struct
#E9950C RGB(233, 149, 12) RGBA(233, 149, 12, 1) entity.other
#F22C3D RGB(242, 44, 61) RGBA(242, 44, 61, 1) entity.other.attribute-name
#F22C3D RGB(242, 44, 61) RGBA(242, 44, 61, 1) invalid
#E9950C RGB(233, 149, 12) RGBA(233, 149, 12, 1) invalid.deprecated
#E9950C RGB(233, 149, 12) RGBA(233, 149, 12, 1) keyword
#DF3079 RGB(223, 48, 121) RGBA(223, 48, 121, 1) keyword.control
#2E95D3 RGB(46, 149, 211) RGBA(46, 149, 211, 1) keyword.control.flow
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) keyword.operator
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) keyword.operator.assignment
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) keyword.operator.arithmetic
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) keyword.other
#DF3079 RGB(223, 48, 121) RGBA(223, 48, 121, 1) meta
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) meta.block
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) meta.function
#E9950C RGB(233, 149, 12) RGBA(233, 149, 12, 1) meta.preprocessor
#2E95D3 RGB(46, 149, 211) RGBA(46, 149, 211, 1) meta.selector
#DF3079 RGB(223, 48, 121) RGBA(223, 48, 121, 1) meta.tag
#C586C0 RGB(197, 134, 192) RGBA(197, 134, 192, 1) punctuation.definition.comment
#9B9B9B RGB(155, 155, 155) RGBA(155, 155, 155, 1) punctuation.definition.string.begin
#00A67D RGB(0, 166, 125) RGBA(0, 166, 125, 1) punctuation.separator
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) storage
#2E95D3 RGB(46, 149, 211) RGBA(46, 149, 211, 1) storage.modifier
#2E95D3 RGB(46, 149, 211) RGBA(46, 149, 211, 1) storage.type
#2E95D3 RGB(46, 149, 211) RGBA(46, 149, 211, 1) string
#00A67D RGB(0, 166, 125) RGBA(0, 166, 125, 1) string.quoted
#00A67D RGB(0, 166, 125) RGBA(0, 166, 125, 1) string.quoted.double
#00A67D RGB(0, 166, 125) RGBA(0, 166, 125, 1) string.quoted.other
#00A67D RGB(0, 166, 125) RGBA(0, 166, 125, 1) string.quoted.single
#00A67D RGB(0, 166, 125) RGBA(0, 166, 125, 1) string.template
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) string.unquoted
#00A67D RGB(0, 166, 125) RGBA(0, 166, 125, 1) support
#E9950C RGB(233, 149, 12) RGBA(233, 149, 12, 1) support.class
#E9950C RGB(233, 149, 12) RGBA(233, 149, 12, 1) support.function
#E9950C RGB(233, 149, 12) RGBA(233, 149, 12, 1) support.other
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) support.type
#00A67D RGB(0, 166, 125) RGBA(0, 166, 125, 1) support.type.property-name
#00A67D RGB(0, 166, 125) RGBA(0, 166, 125, 1) variable
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) variable.language
#2E95D3 RGB(46, 149, 211) RGBA(46, 149, 211, 1) variable.other
#DF3079 RGB(223, 48, 121) RGBA(223, 48, 121, 1) variable.other.property
#DF3079 RGB(223, 48, 121) RGBA(223, 48, 121, 1)