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
Pulse Dark Purple
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#0F172A RGB(15, 23, 42) RGBA(15, 23, 42, 1) activityBar.foreground
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) activityBarBadge.background
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) button.background
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) button.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) button.hoverBackground
#A78BFA RGB(167, 139, 250) RGBA(167, 139, 250, 1) dropdown.background
#1E293B RGB(30, 41, 59) RGBA(30, 41, 59, 1) dropdown.border
#334155 RGB(51, 65, 85) RGBA(51, 65, 85, 1) dropdown.foreground
#CBD5E1 RGB(203, 213, 225) RGBA(203, 213, 225, 1) editor.background
#0A0A2E RGB(10, 10, 46) RGBA(10, 10, 46, 1) editor.foreground
#CBD5E1 RGB(203, 213, 225) RGBA(203, 213, 225, 1) editor.lineHighlightBackground
#1E293B RGB(30, 41, 59) RGBA(30, 41, 59, 1) editor.selectionBackground
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) editor.selectionHighlightBackground
#33415550 RGB(51, 65, 85) RGBA(51, 65, 85, 0.314) editor.wordHighlightBackground
#33415550 RGB(51, 65, 85) RGBA(51, 65, 85, 0.314) editorCursor.foreground
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) editorGroupHeader.tabsBackground
#0F172A RGB(15, 23, 42) RGBA(15, 23, 42, 1) editorIndentGuide.activeBackground1
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) editorIndentGuide.background1
#334155 RGB(51, 65, 85) RGBA(51, 65, 85, 1) editorLineNumber.activeForeground
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) editorLineNumber.foreground
#94A3B8 RGB(148, 163, 184) RGBA(148, 163, 184, 1) editorWhitespace.foreground
#334155 RGB(51, 65, 85) RGBA(51, 65, 85, 1) input.background
#1E293B RGB(30, 41, 59) RGBA(30, 41, 59, 1) input.border
#334155 RGB(51, 65, 85) RGBA(51, 65, 85, 1) input.foreground
#CBD5E1 RGB(203, 213, 225) RGBA(203, 213, 225, 1) list.activeSelectionBackground
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) list.activeSelectionForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) list.focusBackground
#334155 RGB(51, 65, 85) RGBA(51, 65, 85, 1) list.hoverBackground
#1E293B RGB(30, 41, 59) RGBA(30, 41, 59, 1) panel.background
#0F172A RGB(15, 23, 42) RGBA(15, 23, 42, 1) panel.border
#334155 RGB(51, 65, 85) RGBA(51, 65, 85, 1) scrollbar.shadow
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) scrollbarSlider.activeBackground
#A78BFA RGB(167, 139, 250) RGBA(167, 139, 250, 1) scrollbarSlider.background
#334155 RGB(51, 65, 85) RGBA(51, 65, 85, 1) scrollbarSlider.hoverBackground
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) sideBar.background
#0F172A RGB(15, 23, 42) RGBA(15, 23, 42, 1) sideBar.foreground
#CBD5E1 RGB(203, 213, 225) RGBA(203, 213, 225, 1) sideBarSectionHeader.background
#1E293B RGB(30, 41, 59) RGBA(30, 41, 59, 1) sideBarSectionHeader.foreground
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) sideBarTitle.foreground
#A78BFA RGB(167, 139, 250) RGBA(167, 139, 250, 1) statusBar.background
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) statusBar.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) statusBar.noFolderBackground
#334155 RGB(51, 65, 85) RGBA(51, 65, 85, 1) tab.activeBackground
#1E293B RGB(30, 41, 59) RGBA(30, 41, 59, 1) tab.activeForeground
#CBD5E1 RGB(203, 213, 225) RGBA(203, 213, 225, 1) tab.border
#334155 RGB(51, 65, 85) RGBA(51, 65, 85, 1) tab.inactiveBackground
#0F172A RGB(15, 23, 42) RGBA(15, 23, 42, 1) tab.inactiveForeground
#94A3B8 RGB(148, 163, 184) RGBA(148, 163, 184, 1) terminal.background
#0A0A2E RGB(10, 10, 46) RGBA(10, 10, 46, 1) terminal.foreground
#CBD5E1 RGB(203, 213, 225) RGBA(203, 213, 225, 1) titleBar.activeBackground
#0F172A RGB(15, 23, 42) RGBA(15, 23, 42, 1) titleBar.activeForeground
#CBD5E1 RGB(203, 213, 225) RGBA(203, 213, 225, 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
#94A3B8 RGB(148, 163, 184) RGBA(148, 163, 184, 1) comment.block
#94A3B8 RGB(148, 163, 184) RGBA(148, 163, 184, 1) comment.block.documentation
#94A3B8 RGB(148, 163, 184) RGBA(148, 163, 184, 1) comment.line
#94A3B8 RGB(148, 163, 184) RGBA(148, 163, 184, 1) constant
#A78BFA RGB(167, 139, 250) RGBA(167, 139, 250, 1) constant.character
#C084FC RGB(192, 132, 252) RGBA(192, 132, 252, 1) constant.character.escape
#A78BFA RGB(167, 139, 250) RGBA(167, 139, 250, 1) constant.numeric
#C084FC RGB(192, 132, 252) RGBA(192, 132, 252, 1) constant.numeric.integer
#C084FC RGB(192, 132, 252) RGBA(192, 132, 252, 1) constant.numeric.float
#C084FC RGB(192, 132, 252) RGBA(192, 132, 252, 1) constant.numeric.hex
#C084FC RGB(192, 132, 252) RGBA(192, 132, 252, 1) constant.numeric.octal
#C084FC RGB(192, 132, 252) RGBA(192, 132, 252, 1) constant.other
#A5B4FC RGB(165, 180, 252) RGBA(165, 180, 252, 1) constant.other.placeholder
#CBD5E1 RGB(203, 213, 225) RGBA(203, 213, 225, 1) entity
#A5B4FC RGB(165, 180, 252) RGBA(165, 180, 252, 1) entity.name
#A5B4FC RGB(165, 180, 252) RGBA(165, 180, 252, 1) entity.name.class
#A5B4FC RGB(165, 180, 252) RGBA(165, 180, 252, 1) entity.name.function
#A78BFA RGB(167, 139, 250) RGBA(167, 139, 250, 1) entity.name.method
#A5B4FC RGB(165, 180, 252) RGBA(165, 180, 252, 1) entity.name.namespace
#A5B4FC RGB(165, 180, 252) RGBA(165, 180, 252, 1) entity.name.section
#A5B4FC RGB(165, 180, 252) RGBA(165, 180, 252, 1) entity.name.selector
#A5B4FC RGB(165, 180, 252) RGBA(165, 180, 252, 1) entity.name.tag
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) entity.name.type
#A5B4FC RGB(165, 180, 252) RGBA(165, 180, 252, 1) entity.name.type.enum
#A5B4FC RGB(165, 180, 252) RGBA(165, 180, 252, 1) entity.name.type.interface
#A5B4FC RGB(165, 180, 252) RGBA(165, 180, 252, 1) entity.name.type.struct
#A5B4FC RGB(165, 180, 252) RGBA(165, 180, 252, 1) entity.other
#C4B5FD RGB(196, 181, 253) RGBA(196, 181, 253, 1) entity.other.attribute-name
#C4B5FD RGB(196, 181, 253) RGBA(196, 181, 253, 1) entity.other.inherited-class
#A5B4FC RGB(165, 180, 252) RGBA(165, 180, 252, 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
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) keyword.control
#A78BFA RGB(167, 139, 250) RGBA(167, 139, 250, 1) keyword.control.flow
#A78BFA RGB(167, 139, 250) RGBA(167, 139, 250, 1) keyword.operator
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) keyword.operator.new
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) keyword.operator.assignment
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) keyword.operator.arithmetic
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) keyword.operator.logical
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) keyword.other
#C084FC RGB(192, 132, 252) RGBA(192, 132, 252, 1) markup
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) markup.bold
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) markup.changed
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) markup.deleted
#EF4444 RGB(239, 68, 68) RGBA(239, 68, 68, 1) markup.heading
#A5B4FC RGB(165, 180, 252) RGBA(165, 180, 252, 1) markup.inline.raw
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) markup.inserted
#A5B4FC RGB(165, 180, 252) RGBA(165, 180, 252, 1) markup.italic
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) meta
#C4B5FD RGB(196, 181, 253) RGBA(196, 181, 253, 1) meta.function-call
#A78BFA RGB(167, 139, 250) RGBA(167, 139, 250, 1) meta.tag
#A78BFA RGB(167, 139, 250) RGBA(167, 139, 250, 1) punctuation.definition.bracket
#A78BFA RGB(167, 139, 250) RGBA(167, 139, 250, 1) punctuation.definition.comment
#94A3B8 RGB(148, 163, 184) RGBA(148, 163, 184, 1) punctuation.definition.string.begin
#A78BFA RGB(167, 139, 250) RGBA(167, 139, 250, 1) punctuation.definition.string.end
#A78BFA RGB(167, 139, 250) RGBA(167, 139, 250, 1) punctuation.separator
#A78BFA RGB(167, 139, 250) RGBA(167, 139, 250, 1) punctuation.separator.continuation
#A78BFA RGB(167, 139, 250) RGBA(167, 139, 250, 1) punctuation.terminator
#A78BFA RGB(167, 139, 250) RGBA(167, 139, 250, 1) storage
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) storage.modifier
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) storage.type
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) string
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) string.interpolated
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) string.other
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) string.quoted
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) string.quoted.double
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) string.quoted.other
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) string.quoted.single
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) string.quoted.triple
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) string.regexp
#A78BFA RGB(167, 139, 250) RGBA(167, 139, 250, 1) string.template
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) string.unquoted
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) support
#A78BFA RGB(167, 139, 250) RGBA(167, 139, 250, 1) support.class
#C4B5FD RGB(196, 181, 253) RGBA(196, 181, 253, 1) support.constant
#C084FC RGB(192, 132, 252) RGBA(192, 132, 252, 1) support.function
#A78BFA RGB(167, 139, 250) RGBA(167, 139, 250, 1) support.other
#C4B5FD RGB(196, 181, 253) RGBA(196, 181, 253, 1) support.type
#CBD5E1 RGB(203, 213, 225) RGBA(203, 213, 225, 1) support.type.primitive
#CBD5E1 RGB(203, 213, 225) RGBA(203, 213, 225, 1) support.type.property-name
#CBD5E1 RGB(203, 213, 225) RGBA(203, 213, 225, 1) variable
#CBD5E1 RGB(203, 213, 225) RGBA(203, 213, 225, 1) variable.function
#A78BFA RGB(167, 139, 250) RGBA(167, 139, 250, 1) variable.language
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) variable.name
#CBD5E1 RGB(203, 213, 225) RGBA(203, 213, 225, 1) variable.other
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) variable.other.constant
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) variable.other.property
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) variable.other.readwrite
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) variable.parameter
#C084FC RGB(192, 132, 252) RGBA(192, 132, 252, 1)