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
Azus dark theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.activeBackground
#00594F RGB(0, 89, 79) RGBA(0, 89, 79, 1) activityBar.background
#220A2C RGB(34, 10, 44) RGBA(34, 10, 44, 1) activityBar.foreground
#C44FFE RGB(196, 79, 254) RGBA(196, 79, 254, 1) activityBar.inactiveForeground
#EC9E9E RGB(236, 158, 158) RGBA(236, 158, 158, 1) activityBarBadge.background
#FF81B6 RGB(255, 129, 182) RGBA(255, 129, 182, 1) button.background
#FF2365 RGB(255, 35, 101) RGBA(255, 35, 101, 1) editor.background
#200021F8 RGB(32, 0, 33) RGBA(32, 0, 33, 0.973) editor.lineHighlightBackground
#AF72915C RGB(175, 114, 145) RGBA(175, 114, 145, 0.361) editor.wordHighlightBackground
#9F782AD0 RGB(159, 120, 42) RGBA(159, 120, 42, 0.816) editorGroupHeader.tabsBackground
#9331464F RGB(147, 49, 70) RGBA(147, 49, 70, 0.31) editorIndentGuide.activeBackground
#925B9A RGB(146, 91, 154) RGBA(146, 91, 154, 1) editorLineNumber.activeForeground
#FF009D RGB(255, 0, 157) RGBA(255, 0, 157, 1) foreground
#FBA6FA RGB(251, 166, 250) RGBA(251, 166, 250, 1) gitlens.decorations.worktreeView.hasUncommittedChangesForegroundColor
#A03030 RGB(160, 48, 48) RGBA(160, 48, 48, 1) scrollbarSlider.background
#902149 RGB(144, 33, 73) RGBA(144, 33, 73, 1) sideBar.background
#190419 RGB(25, 4, 25) RGBA(25, 4, 25, 1) sideBar.foreground
#C94C84 RGB(201, 76, 132) RGBA(201, 76, 132, 1) sideBarSectionHeader.background
#29042F RGB(41, 4, 47) RGBA(41, 4, 47, 1) sideBarSectionHeader.foreground
#D85E5E RGB(216, 94, 94) RGBA(216, 94, 94, 1) sideBarTitle.foreground
#E08484 RGB(224, 132, 132) RGBA(224, 132, 132, 1) statusBar.background
#711268 RGB(113, 18, 104) RGBA(113, 18, 104, 1) tab.activeBackground
#51074B RGB(81, 7, 75) RGBA(81, 7, 75, 1) tab.activeBorder
#848345 RGB(132, 131, 69) RGBA(132, 131, 69, 1) tab.activeBorderTop
#B775E7 RGB(183, 117, 231) RGBA(183, 117, 231, 1) tab.activeForeground
#68F974 RGB(104, 249, 116) RGBA(104, 249, 116, 1) tab.hoverBackground
#741335 RGB(116, 19, 53) RGBA(116, 19, 53, 1) tab.hoverBorder
#7A3B08 RGB(122, 59, 8) RGBA(122, 59, 8, 1) tab.inactiveBackground
#1F033ACB RGB(31, 3, 58) RGBA(31, 3, 58, 0.796) titleBar.activeBackground
#4F0350 RGB(79, 3, 80) RGBA(79, 3, 80, 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 entity
#B732FF RGB(183, 50, 255) RGBA(183, 50, 255, 1) entity.name
#B732FF RGB(183, 50, 255) RGBA(183, 50, 255, 1) entity.name.function
#FF53E8 RGB(255, 83, 232) RGBA(255, 83, 232, 1) entity.name.tag
#B732FF RGB(183, 50, 255) RGBA(183, 50, 255, 1) entity.other
#9772FD RGB(151, 114, 253) RGBA(151, 114, 253, 1) entity.other.attribute-name
#9772FD RGB(151, 114, 253) RGBA(151, 114, 253, 1) keyword
#78AEFF RGB(120, 174, 255) RGBA(120, 174, 255, 1) keyword.control
#78AEFF RGB(120, 174, 255) RGBA(120, 174, 255, 1) keyword.control.flow
#78AEFF RGB(120, 174, 255) RGBA(120, 174, 255, 1) keyword.operator
#00FFF2 RGB(0, 255, 242) RGBA(0, 255, 242, 1) keyword.operator.new
#00FFF2 RGB(0, 255, 242) RGBA(0, 255, 242, 1) keyword.operator.assignment
#00FFF2 RGB(0, 255, 242) RGBA(0, 255, 242, 1) keyword.operator.arithmetic
#00FFF2 RGB(0, 255, 242) RGBA(0, 255, 242, 1) keyword.operator.logical
#00FFF2 RGB(0, 255, 242) RGBA(0, 255, 242, 1) meta
#BDFF84 RGB(189, 255, 132) RGBA(189, 255, 132, 1) storage
#DB9C4A RGB(219, 156, 74) RGBA(219, 156, 74, 1) storage.modifier
#DB9C4A RGB(219, 156, 74) RGBA(219, 156, 74, 1) storage.type
#DB9C4A RGB(219, 156, 74) RGBA(219, 156, 74, 1) string
#F296D3 RGB(242, 150, 211) RGBA(242, 150, 211, 1) string.interpolated
#F296D3 RGB(242, 150, 211) RGBA(242, 150, 211, 1) string.other
#F296D3 RGB(242, 150, 211) RGBA(242, 150, 211, 1) string.quoted
#F296D3 RGB(242, 150, 211) RGBA(242, 150, 211, 1) string.quoted.double
#F296D3 RGB(242, 150, 211) RGBA(242, 150, 211, 1) string.quoted.other
#F296D3 RGB(242, 150, 211) RGBA(242, 150, 211, 1) string.quoted.single
#F296D3 RGB(242, 150, 211) RGBA(242, 150, 211, 1) string.quoted.triple
#F296D3 RGB(242, 150, 211) RGBA(242, 150, 211, 1) string.regexp
#F296D3 RGB(242, 150, 211) RGBA(242, 150, 211, 1) string.template
#F296D3 RGB(242, 150, 211) RGBA(242, 150, 211, 1) string.unquoted
#F296D3 RGB(242, 150, 211) RGBA(242, 150, 211, 1) variable
#4FFFBC RGB(79, 255, 188) RGBA(79, 255, 188, 1) variable.function
#4FFFBC RGB(79, 255, 188) RGBA(79, 255, 188, 1) variable.language
#4FFFBC RGB(79, 255, 188) RGBA(79, 255, 188, 1) variable.name
#4FFFBC RGB(79, 255, 188) RGBA(79, 255, 188, 1) variable.other
#4FFFBC RGB(79, 255, 188) RGBA(79, 255, 188, 1) variable.other.constant
#FFD900 RGB(255, 217, 0) RGBA(255, 217, 0, 1) variable.other.property
#4FFFBC RGB(79, 255, 188) RGBA(79, 255, 188, 1) variable.other.readwrite
#4FFFBC RGB(79, 255, 188) RGBA(79, 255, 188, 1) variable.parameter
#4FFFBC RGB(79, 255, 188) RGBA(79, 255, 188, 1)