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 - sugarFree
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
#5D08E5 RGB(93, 8, 229) RGBA(93, 8, 229, 1) activityBar.background
#F6F6F6 RGB(246, 246, 246) RGBA(246, 246, 246, 1) activityBar.dropBackground
#5D08E5 RGB(93, 8, 229) RGBA(93, 8, 229, 1) activityBar.foreground
#16161D RGB(22, 22, 29) RGBA(22, 22, 29, 1) activityBarBadge.background
#5D08E5 RGB(93, 8, 229) RGBA(93, 8, 229, 1) activityBarBadge.foreground
#F6F6F6 RGB(246, 246, 246) RGBA(246, 246, 246, 1) button.background
#F6F6F6 RGB(246, 246, 246) RGBA(246, 246, 246, 1) button.foreground
#16161D RGB(22, 22, 29) RGBA(22, 22, 29, 1) button.hoverBackground
#DCBAF9A8 RGB(220, 186, 249) RGBA(220, 186, 249, 0.659) editor.background
#F6F6F6 RGB(246, 246, 246) RGBA(246, 246, 246, 1) editor.foreground
#5D08E5 RGB(93, 8, 229) RGBA(93, 8, 229, 1) editor.hoverHighlightBackground
#D5D5D5 RGB(213, 213, 213) RGBA(213, 213, 213, 1) editorCursor.foreground
#5D08E5 RGB(93, 8, 229) RGBA(93, 8, 229, 1) editorGroup.border
#5D08E540 RGB(93, 8, 229) RGBA(93, 8, 229, 0.251) editorGroupHeader.tabsBackground
#D5D5D5 RGB(213, 213, 213) RGBA(213, 213, 213, 1) editorGroupHeader.tabsBorder
#5D08E540 RGB(93, 8, 229) RGBA(93, 8, 229, 0.251) editorLineNumber.activeForeground
#D1006E RGB(209, 0, 110) RGBA(209, 0, 110, 1) editorLineNumber.foreground
#5D08E5 RGB(93, 8, 229) RGBA(93, 8, 229, 1) modernActivityBarItem.activeForeground
#16161D RGB(22, 22, 29) RGBA(22, 22, 29, 1) scrollbarSlider.activeBackground
#5D08E5 RGB(93, 8, 229) RGBA(93, 8, 229, 1) scrollbarSlider.background
#5D08E533 RGB(93, 8, 229) RGBA(93, 8, 229, 0.2) scrollbarSlider.hoverBackground
#5D08E580 RGB(93, 8, 229) RGBA(93, 8, 229, 0.502) sideBar.background
#F6F6F6 RGB(246, 246, 246) RGBA(246, 246, 246, 1) sideBar.border
#5D08E540 RGB(93, 8, 229) RGBA(93, 8, 229, 0.251) sideBarSectionHeader.background
#DCBAF9A8 RGB(220, 186, 249) RGBA(220, 186, 249, 0.659) sideBarSectionHeader.border
#5D08E540 RGB(93, 8, 229) RGBA(93, 8, 229, 0.251) sideBarSectionHeader.foreground
#16161D RGB(22, 22, 29) RGBA(22, 22, 29, 1) sideBarTitle.foreground
#D1006E RGB(209, 0, 110) RGBA(209, 0, 110, 1) tab.activeBackground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) tab.activeForeground
#D1006E RGB(209, 0, 110) RGBA(209, 0, 110, 1) tab.border
#5D08E540 RGB(93, 8, 229) RGBA(93, 8, 229, 0.251) tab.inactiveBackground
#D5D5D5 RGB(213, 213, 213) RGBA(213, 213, 213, 1) tab.inactiveForeground
#5D08E5 RGB(93, 8, 229) RGBA(93, 8, 229, 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
#16161D RGB(22, 22, 29) RGBA(22, 22, 29, 1) comment.block
#16161D RGB(22, 22, 29) RGBA(22, 22, 29, 1) comment.block.documentation
#16161D RGB(22, 22, 29) RGBA(22, 22, 29, 1) comment.line
#16161D RGB(22, 22, 29) RGBA(22, 22, 29, 1) constant
#8A5A00 RGB(138, 90, 0) RGBA(138, 90, 0, 1) constant.character
#D1006E RGB(209, 0, 110) RGBA(209, 0, 110, 1) constant.character.escape
#0A7A55 RGB(10, 122, 85) RGBA(10, 122, 85, 1) constant.numeric
#D1006E RGB(209, 0, 110) RGBA(209, 0, 110, 1) constant.numeric.integer
#D1006E RGB(209, 0, 110) RGBA(209, 0, 110, 1) constant.numeric.float
#D1006E RGB(209, 0, 110) RGBA(209, 0, 110, 1) constant.numeric.hex
#D1006E RGB(209, 0, 110) RGBA(209, 0, 110, 1) constant.numeric.octal
#D1006E RGB(209, 0, 110) RGBA(209, 0, 110, 1) constant.other
#8A5A00 RGB(138, 90, 0) RGBA(138, 90, 0, 1) constant.other.placeholder
#5D08E5 RGB(93, 8, 229) RGBA(93, 8, 229, 1) entity
#3F7A2E RGB(63, 122, 46) RGBA(63, 122, 46, 1) entity.name
#3F7A2E RGB(63, 122, 46) RGBA(63, 122, 46, 1) entity.name.class
#3F7A2E RGB(63, 122, 46) RGBA(63, 122, 46, 1) entity.name.function
#5D08E5 RGB(93, 8, 229) RGBA(93, 8, 229, 1) entity.name.method
#3F7A2E RGB(63, 122, 46) RGBA(63, 122, 46, 1) entity.name.namespace
#3F7A2E RGB(63, 122, 46) RGBA(63, 122, 46, 1) entity.name.section
#3F7A2E RGB(63, 122, 46) RGBA(63, 122, 46, 1) entity.name.selector
#3F7A2E RGB(63, 122, 46) RGBA(63, 122, 46, 1) entity.name.tag
#B01A8A RGB(176, 26, 138) RGBA(176, 26, 138, 1) entity.name.type
#3F7A2E RGB(63, 122, 46) RGBA(63, 122, 46, 1) entity.name.type.enum
#3F7A2E RGB(63, 122, 46) RGBA(63, 122, 46, 1) entity.name.type.interface
#3F7A2E RGB(63, 122, 46) RGBA(63, 122, 46, 1) entity.name.type.struct
#3F7A2E RGB(63, 122, 46) RGBA(63, 122, 46, 1) entity.other
#1A6F95 RGB(26, 111, 149) RGBA(26, 111, 149, 1) entity.other.attribute-name
#1F6A9C RGB(31, 106, 156) RGBA(31, 106, 156, 1) entity.other.inherited-class
#D1006E RGB(209, 0, 110) RGBA(209, 0, 110, 1) invalid
#C8102E RGB(200, 16, 46) RGBA(200, 16, 46, 1) invalid.deprecated
#C8102E RGB(200, 16, 46) RGBA(200, 16, 46, 1) invalid.illegal
#C8102E RGB(200, 16, 46) RGBA(200, 16, 46, 1) keyword
#16161D RGB(22, 22, 29) RGBA(22, 22, 29, 1) keyword.control
#1A6F95 RGB(26, 111, 149) RGBA(26, 111, 149, 1) keyword.control.flow
#1A6F95 RGB(26, 111, 149) RGBA(26, 111, 149, 1) keyword.operator
#16161D RGB(22, 22, 29) RGBA(22, 22, 29, 1) keyword.operator.new
#16161D RGB(22, 22, 29) RGBA(22, 22, 29, 1) keyword.operator.assignment
#16161D RGB(22, 22, 29) RGBA(22, 22, 29, 1) keyword.operator.arithmetic
#16161D RGB(22, 22, 29) RGBA(22, 22, 29, 1) keyword.operator.logical
#16161D RGB(22, 22, 29) RGBA(22, 22, 29, 1) keyword.other
#D1006E RGB(209, 0, 110) RGBA(209, 0, 110, 1) markup
#16161D RGB(22, 22, 29) RGBA(22, 22, 29, 1) markup.bold
#B0334A RGB(176, 51, 74) RGBA(176, 51, 74, 1) markup.changed
#7A6500 RGB(122, 101, 0) RGBA(122, 101, 0, 1) markup.deleted
#C8102E RGB(200, 16, 46) RGBA(200, 16, 46, 1) markup.heading
#D1006E RGB(209, 0, 110) RGBA(209, 0, 110, 1) markup.inline.raw
#7A3FB0 RGB(122, 63, 176) RGBA(122, 63, 176, 1) markup.inserted
#3F7A2E RGB(63, 122, 46) RGBA(63, 122, 46, 1) markup.italic
#B0334A RGB(176, 51, 74) RGBA(176, 51, 74, 1) markup.raw
#16161D RGB(22, 22, 29) RGBA(22, 22, 29, 1) markup.underline
#0A7373 RGB(10, 115, 115) RGBA(10, 115, 115, 1) markup.underline.link
#0A7373 RGB(10, 115, 115) RGBA(10, 115, 115, 1) meta
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) meta.function-call
#5D08E5 RGB(93, 8, 229) RGBA(93, 8, 229, 1) meta.tag
#16161D RGB(22, 22, 29) RGBA(22, 22, 29, 1) punctuation.definition.bracket
#16161D RGB(22, 22, 29) RGBA(22, 22, 29, 1) punctuation.definition.comment
#16161D RGB(22, 22, 29) RGBA(22, 22, 29, 1) punctuation.definition.string.begin
#16161D RGB(22, 22, 29) RGBA(22, 22, 29, 1) punctuation.definition.string.end
#16161D RGB(22, 22, 29) RGBA(22, 22, 29, 1) punctuation.separator
#16161D RGB(22, 22, 29) RGBA(22, 22, 29, 1) punctuation.separator.continuation
#16161D RGB(22, 22, 29) RGBA(22, 22, 29, 1) punctuation.terminator
#16161D RGB(22, 22, 29) RGBA(22, 22, 29, 1) storage
#16161D RGB(22, 22, 29) RGBA(22, 22, 29, 1) storage.modifier
#16161D RGB(22, 22, 29) RGBA(22, 22, 29, 1) storage.type
#16161D RGB(22, 22, 29) RGBA(22, 22, 29, 1) string
#B0334A RGB(176, 51, 74) RGBA(176, 51, 74, 1) string.interpolated
#B0334A RGB(176, 51, 74) RGBA(176, 51, 74, 1) string.other
#B0334A RGB(176, 51, 74) RGBA(176, 51, 74, 1) string.quoted
#B0334A RGB(176, 51, 74) RGBA(176, 51, 74, 1) string.quoted.double
#B0334A RGB(176, 51, 74) RGBA(176, 51, 74, 1) string.quoted.other
#B0334A RGB(176, 51, 74) RGBA(176, 51, 74, 1) string.quoted.single
#B0334A RGB(176, 51, 74) RGBA(176, 51, 74, 1) string.quoted.triple
#B0334A RGB(176, 51, 74) RGBA(176, 51, 74, 1) string.regexp
#0A7A55 RGB(10, 122, 85) RGBA(10, 122, 85, 1) string.template
#B0334A RGB(176, 51, 74) RGBA(176, 51, 74, 1) string.unquoted
#B0334A RGB(176, 51, 74) RGBA(176, 51, 74, 1) support
#3F7A2E RGB(63, 122, 46) RGBA(63, 122, 46, 1) support.class
#4D7A0E RGB(77, 122, 14) RGBA(77, 122, 14, 1) support.constant
#D1006E RGB(209, 0, 110) RGBA(209, 0, 110, 1) support.function
#5D08E5 RGB(93, 8, 229) RGBA(93, 8, 229, 1) support.other
#4D7A0E RGB(77, 122, 14) RGBA(77, 122, 14, 1) support.type
#0A7A55 RGB(10, 122, 85) RGBA(10, 122, 85, 1) support.type.primitive
#0A7A55 RGB(10, 122, 85) RGBA(10, 122, 85, 1) support.type.property-name
#16161D RGB(22, 22, 29) RGBA(22, 22, 29, 1) variable
#5D08E5 RGB(93, 8, 229) RGBA(93, 8, 229, 1) variable.function
#5D08E5 RGB(93, 8, 229) RGBA(93, 8, 229, 1) variable.language
#B0431A RGB(176, 67, 26) RGBA(176, 67, 26, 1) variable.name
#5D08E5 RGB(93, 8, 229) RGBA(93, 8, 229, 1) variable.other
#B0334A RGB(176, 51, 74) RGBA(176, 51, 74, 1) variable.other.constant
#B0334A RGB(176, 51, 74) RGBA(176, 51, 74, 1) variable.other.property
#B0334A RGB(176, 51, 74) RGBA(176, 51, 74, 1) variable.other.readwrite
#B0334A RGB(176, 51, 74) RGBA(176, 51, 74, 1) variable.parameter
#12348F RGB(18, 52, 143) RGBA(18, 52, 143, 1)