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
raspberryCandy
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.activeBackground
#DCBAF9 RGB(220, 186, 249) RGBA(220, 186, 249, 1) activityBar.activeBorder
#DCBAF9 RGB(220, 186, 249) RGBA(220, 186, 249, 1) activityBar.background
#1E1A26 RGB(30, 26, 38) RGBA(30, 26, 38, 1) activityBar.dropBackground
#DCBAF9 RGB(220, 186, 249) RGBA(220, 186, 249, 1) activityBar.foreground
#1E1A26 RGB(30, 26, 38) RGBA(30, 26, 38, 1) activityBar.inactiveForeground
#00FEFFA8 RGB(0, 254, 255) RGBA(0, 254, 255, 0.659) activityBarBadge.background
#DCBAF9 RGB(220, 186, 249) RGBA(220, 186, 249, 1) activityBarBadge.foreground
#1E1A26 RGB(30, 26, 38) RGBA(30, 26, 38, 1) button.background
#DCBAF9 RGB(220, 186, 249) RGBA(220, 186, 249, 1) button.foreground
#1E1A26 RGB(30, 26, 38) RGBA(30, 26, 38, 1) button.hoverBackground
#DCBAF9A8 RGB(220, 186, 249) RGBA(220, 186, 249, 0.659) editor.background
#1E1A26 RGB(30, 26, 38) RGBA(30, 26, 38, 1) editor.foreground
#00FEFF RGB(0, 254, 255) RGBA(0, 254, 255, 1) editor.hoverHighlightBackground
#00FEFF RGB(0, 254, 255) RGBA(0, 254, 255, 1) editorCursor.foreground
#DCBAF9 RGB(220, 186, 249) RGBA(220, 186, 249, 1) editorGroup.border
#00FEFF40 RGB(0, 254, 255) RGBA(0, 254, 255, 0.251) editorGroupHeader.tabsBackground
#1E1A26 RGB(30, 26, 38) RGBA(30, 26, 38, 1) editorGroupHeader.tabsBorder
#00FEFF40 RGB(0, 254, 255) RGBA(0, 254, 255, 0.251) editorLineNumber.activeForeground
#00FEFF RGB(0, 254, 255) RGBA(0, 254, 255, 1) editorLineNumber.foreground
#DCBAF9A8 RGB(220, 186, 249) RGBA(220, 186, 249, 0.659) modernActivityBarItem.activeForeground
#1E1A26 RGB(30, 26, 38) RGBA(30, 26, 38, 1) scrollbarSlider.activeBackground
#00FEFF RGB(0, 254, 255) RGBA(0, 254, 255, 1) scrollbarSlider.background
#00FEFF33 RGB(0, 254, 255) RGBA(0, 254, 255, 0.2) scrollbarSlider.hoverBackground
#00FEFF80 RGB(0, 254, 255) RGBA(0, 254, 255, 0.502) sideBar.background
#1E1A26 RGB(30, 26, 38) RGBA(30, 26, 38, 1) sideBar.border
#00FEFF40 RGB(0, 254, 255) RGBA(0, 254, 255, 0.251) sideBarSectionHeader.background
#1E1A26 RGB(30, 26, 38) RGBA(30, 26, 38, 1) sideBarSectionHeader.border
#00FEFF40 RGB(0, 254, 255) RGBA(0, 254, 255, 0.251) sideBarSectionHeader.foreground
#DCBAF9 RGB(220, 186, 249) RGBA(220, 186, 249, 1) sideBarTitle.foreground
#DCBAF9 RGB(220, 186, 249) RGBA(220, 186, 249, 1) tab.activeBackground
#DCBAF9 RGB(220, 186, 249) RGBA(220, 186, 249, 1) tab.activeForeground
#1E1A26 RGB(30, 26, 38) RGBA(30, 26, 38, 1) tab.border
#00FEFF40 RGB(0, 254, 255) RGBA(0, 254, 255, 0.251) tab.inactiveBackground
#1E1A26 RGB(30, 26, 38) RGBA(30, 26, 38, 1) tab.inactiveForeground
#00FEFF RGB(0, 254, 255) RGBA(0, 254, 255, 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
#DCBAF9A8 RGB(220, 186, 249) RGBA(220, 186, 249, 0.659) comment.block
#DCBAF9A8 RGB(220, 186, 249) RGBA(220, 186, 249, 0.659) comment.block.documentation
#DCBAF9A8 RGB(220, 186, 249) RGBA(220, 186, 249, 0.659) comment.line
#DCBAF9A8 RGB(220, 186, 249) RGBA(220, 186, 249, 0.659) constant
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.character
#00FEFF RGB(0, 254, 255) RGBA(0, 254, 255, 1) constant.character.escape
#1BFFB9 RGB(27, 255, 185) RGBA(27, 255, 185, 1) constant.numeric
#00FEFF RGB(0, 254, 255) RGBA(0, 254, 255, 1) constant.numeric.integer
#00FEFF RGB(0, 254, 255) RGBA(0, 254, 255, 1) constant.numeric.float
#00FEFF RGB(0, 254, 255) RGBA(0, 254, 255, 1) constant.numeric.hex
#00FEFF RGB(0, 254, 255) RGBA(0, 254, 255, 1) constant.numeric.octal
#00FEFF RGB(0, 254, 255) RGBA(0, 254, 255, 1) constant.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.other.placeholder
#FF60D5 RGB(255, 96, 213) RGBA(255, 96, 213, 1) entity
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.class
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.function
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) entity.name.method
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.namespace
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.section
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.selector
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.tag
#FF60D5 RGB(255, 96, 213) RGBA(255, 96, 213, 1) entity.name.type
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.enum
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.interface
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.struct
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.other
#539CC7 RGB(83, 156, 199) RGBA(83, 156, 199, 1) entity.other.attribute-name
#80C0E5 RGB(128, 192, 229) RGBA(128, 192, 229, 1) entity.other.inherited-class
#1BFFB9 RGB(27, 255, 185) RGBA(27, 255, 185, 1) invalid
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) invalid.deprecated
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) invalid.illegal
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) keyword
#00FEFF RGB(0, 254, 255) RGBA(0, 254, 255, 1) keyword.control
#539CC7 RGB(83, 156, 199) RGBA(83, 156, 199, 1) keyword.control.flow
#539CC7 RGB(83, 156, 199) RGBA(83, 156, 199, 1) keyword.operator
#00FEFF RGB(0, 254, 255) RGBA(0, 254, 255, 1) keyword.operator.new
#00FEFF RGB(0, 254, 255) RGBA(0, 254, 255, 1) keyword.operator.assignment
#00FEFF RGB(0, 254, 255) RGBA(0, 254, 255, 1) keyword.operator.arithmetic
#00FEFF RGB(0, 254, 255) RGBA(0, 254, 255, 1) keyword.operator.logical
#00FEFF RGB(0, 254, 255) RGBA(0, 254, 255, 1) keyword.other
#00FEFF RGB(0, 254, 255) RGBA(0, 254, 255, 1) markup
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.bold
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) markup.changed
#F0E879 RGB(240, 232, 121) RGBA(240, 232, 121, 1) markup.deleted
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.heading
#1BFFB9 RGB(27, 255, 185) RGBA(27, 255, 185, 1) markup.inline.raw
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.inserted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) markup.italic
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) markup.raw
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.underline
#00FEFF RGB(0, 254, 255) RGBA(0, 254, 255, 1) markup.underline.link
#00FEFF RGB(0, 254, 255) RGBA(0, 254, 255, 1) meta
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) meta.function-call
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) meta.tag
#1BFFB9 RGB(27, 255, 185) RGBA(27, 255, 185, 1) punctuation.definition.bracket
#1BFFB9 RGB(27, 255, 185) RGBA(27, 255, 185, 1) punctuation.definition.comment
#DCBAF9A8 RGB(220, 186, 249) RGBA(220, 186, 249, 0.659) punctuation.definition.string.begin
#1BFFB9 RGB(27, 255, 185) RGBA(27, 255, 185, 1) punctuation.definition.string.end
#1BFFB9 RGB(27, 255, 185) RGBA(27, 255, 185, 1) punctuation.separator
#1BFFB9 RGB(27, 255, 185) RGBA(27, 255, 185, 1) punctuation.separator.continuation
#1BFFB9 RGB(27, 255, 185) RGBA(27, 255, 185, 1) punctuation.terminator
#1BFFB9 RGB(27, 255, 185) RGBA(27, 255, 185, 1) storage
#00FEFF RGB(0, 254, 255) RGBA(0, 254, 255, 1) storage.modifier
#00FEFF RGB(0, 254, 255) RGBA(0, 254, 255, 1) storage.type
#00FEFF RGB(0, 254, 255) RGBA(0, 254, 255, 1) string
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.interpolated
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.double
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.single
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.triple
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.regexp
#1BFFB9 RGB(27, 255, 185) RGBA(27, 255, 185, 1) string.template
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.unquoted
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) support
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) support.class
#C7F058 RGB(199, 240, 88) RGBA(199, 240, 88, 1) support.constant
#00FEFF RGB(0, 254, 255) RGBA(0, 254, 255, 1) support.function
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) support.other
#C7F058 RGB(199, 240, 88) RGBA(199, 240, 88, 1) support.type
#1BFFB9 RGB(27, 255, 185) RGBA(27, 255, 185, 1) support.type.primitive
#1BFFB9 RGB(27, 255, 185) RGBA(27, 255, 185, 1) support.type.property-name
#C75BAA RGB(199, 91, 170) RGBA(199, 91, 170, 1) variable
#FF60D5 RGB(255, 96, 213) RGBA(255, 96, 213, 1) variable.function
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) variable.language
#F7713C RGB(247, 113, 60) RGBA(247, 113, 60, 1) variable.name
#FF60D5 RGB(255, 96, 213) RGBA(255, 96, 213, 1) variable.other
#FF60D5 RGB(255, 96, 213) RGBA(255, 96, 213, 1) variable.other.constant
#FF60D5 RGB(255, 96, 213) RGBA(255, 96, 213, 1) variable.other.property
#FF60D5 RGB(255, 96, 213) RGBA(255, 96, 213, 1) variable.other.readwrite
#FF60D5 RGB(255, 96, 213) RGBA(255, 96, 213, 1) variable.parameter
#96FF54 RGB(150, 255, 84) RGBA(150, 255, 84, 1)