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 Purple Light
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#F3E8FF RGB(243, 232, 255) RGBA(243, 232, 255, 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
#7C3AED RGB(124, 58, 237) RGBA(124, 58, 237, 1) dropdown.background
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) dropdown.border
#C4B5FD RGB(196, 181, 253) RGBA(196, 181, 253, 1) dropdown.foreground
#1E293B RGB(30, 41, 59) RGBA(30, 41, 59, 1) editor.background
#FAF5FF RGB(250, 245, 255) RGBA(250, 245, 255, 1) editor.foreground
#1E293B RGB(30, 41, 59) RGBA(30, 41, 59, 1) editor.lineHighlightBackground
#EDE9FE RGB(237, 233, 254) RGBA(237, 233, 254, 1) editor.selectionBackground
#C4B5FD RGB(196, 181, 253) RGBA(196, 181, 253, 1) editor.selectionHighlightBackground
#DDD6FE60 RGB(221, 214, 254) RGBA(221, 214, 254, 0.376) editor.wordHighlightBackground
#DDD6FE60 RGB(221, 214, 254) RGBA(221, 214, 254, 0.376) editorCursor.foreground
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) editorGroupHeader.tabsBackground
#F3E8FF RGB(243, 232, 255) RGBA(243, 232, 255, 1) editorIndentGuide.activeBackground1
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) editorIndentGuide.background1
#C4B5FD RGB(196, 181, 253) RGBA(196, 181, 253, 1) editorLineNumber.activeForeground
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) editorLineNumber.foreground
#64748B RGB(100, 116, 139) RGBA(100, 116, 139, 1) editorWhitespace.foreground
#C4B5FD RGB(196, 181, 253) RGBA(196, 181, 253, 1) input.background
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) input.border
#C4B5FD RGB(196, 181, 253) RGBA(196, 181, 253, 1) input.foreground
#1E293B RGB(30, 41, 59) RGBA(30, 41, 59, 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
#DDD6FE RGB(221, 214, 254) RGBA(221, 214, 254, 1) list.hoverBackground
#E9D5FF RGB(233, 213, 255) RGBA(233, 213, 255, 1) panel.background
#F3E8FF RGB(243, 232, 255) RGBA(243, 232, 255, 1) panel.border
#C4B5FD RGB(196, 181, 253) RGBA(196, 181, 253, 1) scrollbar.shadow
#8B5CF620 RGB(139, 92, 246) RGBA(139, 92, 246, 0.125) scrollbarSlider.activeBackground
#7C3AED RGB(124, 58, 237) RGBA(124, 58, 237, 1) scrollbarSlider.background
#C4B5FD RGB(196, 181, 253) RGBA(196, 181, 253, 1) scrollbarSlider.hoverBackground
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) sideBar.background
#F3E8FF RGB(243, 232, 255) RGBA(243, 232, 255, 1) sideBar.foreground
#0F172A RGB(15, 23, 42) RGBA(15, 23, 42, 1) sideBarSectionHeader.background
#E9D5FF RGB(233, 213, 255) RGBA(233, 213, 255, 1) sideBarSectionHeader.foreground
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) sideBarTitle.foreground
#6D28D9 RGB(109, 40, 217) RGBA(109, 40, 217, 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
#DDD6FE RGB(221, 214, 254) RGBA(221, 214, 254, 1) tab.activeBackground
#FAF5FF RGB(250, 245, 255) RGBA(250, 245, 255, 1) tab.activeForeground
#0F172A RGB(15, 23, 42) RGBA(15, 23, 42, 1) tab.border
#C4B5FD RGB(196, 181, 253) RGBA(196, 181, 253, 1) tab.inactiveBackground
#E9D5FF RGB(233, 213, 255) RGBA(233, 213, 255, 1) tab.inactiveForeground
#334155 RGB(51, 65, 85) RGBA(51, 65, 85, 1) terminal.background
#FAF5FF RGB(250, 245, 255) RGBA(250, 245, 255, 1) terminal.foreground
#1E293B RGB(30, 41, 59) RGBA(30, 41, 59, 1) titleBar.activeBackground
#F3E8FF RGB(243, 232, 255) RGBA(243, 232, 255, 1) titleBar.activeForeground
#1E293B RGB(30, 41, 59) RGBA(30, 41, 59, 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
#64748B RGB(100, 116, 139) RGBA(100, 116, 139, 1) comment.block
#64748B RGB(100, 116, 139) RGBA(100, 116, 139, 1) comment.block.documentation
#64748B RGB(100, 116, 139) RGBA(100, 116, 139, 1) comment.line
#64748B RGB(100, 116, 139) RGBA(100, 116, 139, 1) constant
#7C3AED RGB(124, 58, 237) RGBA(124, 58, 237, 1) constant.character
#A855F7 RGB(168, 85, 247) RGBA(168, 85, 247, 1) constant.character.escape
#7C3AED RGB(124, 58, 237) RGBA(124, 58, 237, 1) constant.numeric
#A855F7 RGB(168, 85, 247) RGBA(168, 85, 247, 1) constant.numeric.integer
#A855F7 RGB(168, 85, 247) RGBA(168, 85, 247, 1) constant.numeric.float
#A855F7 RGB(168, 85, 247) RGBA(168, 85, 247, 1) constant.numeric.hex
#A855F7 RGB(168, 85, 247) RGBA(168, 85, 247, 1) constant.numeric.octal
#A855F7 RGB(168, 85, 247) RGBA(168, 85, 247, 1) constant.other
#6D28D9 RGB(109, 40, 217) RGBA(109, 40, 217, 1) constant.other.placeholder
#1E293B RGB(30, 41, 59) RGBA(30, 41, 59, 1) entity
#6D28D9 RGB(109, 40, 217) RGBA(109, 40, 217, 1) entity.name
#6D28D9 RGB(109, 40, 217) RGBA(109, 40, 217, 1) entity.name.class
#6D28D9 RGB(109, 40, 217) RGBA(109, 40, 217, 1) entity.name.function
#7C3AED RGB(124, 58, 237) RGBA(124, 58, 237, 1) entity.name.method
#6D28D9 RGB(109, 40, 217) RGBA(109, 40, 217, 1) entity.name.namespace
#6D28D9 RGB(109, 40, 217) RGBA(109, 40, 217, 1) entity.name.section
#6D28D9 RGB(109, 40, 217) RGBA(109, 40, 217, 1) entity.name.selector
#6D28D9 RGB(109, 40, 217) RGBA(109, 40, 217, 1) entity.name.tag
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) entity.name.type
#6D28D9 RGB(109, 40, 217) RGBA(109, 40, 217, 1) entity.name.type.enum
#6D28D9 RGB(109, 40, 217) RGBA(109, 40, 217, 1) entity.name.type.interface
#6D28D9 RGB(109, 40, 217) RGBA(109, 40, 217, 1) entity.name.type.struct
#6D28D9 RGB(109, 40, 217) RGBA(109, 40, 217, 1) entity.other
#7C3AED RGB(124, 58, 237) RGBA(124, 58, 237, 1) entity.other.attribute-name
#7C3AED RGB(124, 58, 237) RGBA(124, 58, 237, 1) entity.other.inherited-class
#6D28D9 RGB(109, 40, 217) RGBA(109, 40, 217, 1) invalid
#DC2626 RGB(220, 38, 38) RGBA(220, 38, 38, 1) invalid.deprecated
#DC2626 RGB(220, 38, 38) RGBA(220, 38, 38, 1) invalid.illegal
#DC2626 RGB(220, 38, 38) RGBA(220, 38, 38, 1) keyword
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) keyword.control
#7C3AED RGB(124, 58, 237) RGBA(124, 58, 237, 1) keyword.control.flow
#7C3AED RGB(124, 58, 237) RGBA(124, 58, 237, 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
#A855F7 RGB(168, 85, 247) RGBA(168, 85, 247, 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
#DC2626 RGB(220, 38, 38) RGBA(220, 38, 38, 1) markup.heading
#6D28D9 RGB(109, 40, 217) RGBA(109, 40, 217, 1) markup.inline.raw
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) markup.inserted
#6D28D9 RGB(109, 40, 217) RGBA(109, 40, 217, 1) markup.italic
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) meta
#7C3AED RGB(124, 58, 237) RGBA(124, 58, 237, 1) meta.function-call
#7C3AED RGB(124, 58, 237) RGBA(124, 58, 237, 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
#64748B RGB(100, 116, 139) RGBA(100, 116, 139, 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
#7C3AED RGB(124, 58, 237) RGBA(124, 58, 237, 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
#7C3AED RGB(124, 58, 237) RGBA(124, 58, 237, 1) support.class
#7C3AED RGB(124, 58, 237) RGBA(124, 58, 237, 1) support.constant
#A855F7 RGB(168, 85, 247) RGBA(168, 85, 247, 1) support.function
#7C3AED RGB(124, 58, 237) RGBA(124, 58, 237, 1) support.other
#7C3AED RGB(124, 58, 237) RGBA(124, 58, 237, 1) support.type
#1E293B RGB(30, 41, 59) RGBA(30, 41, 59, 1) support.type.primitive
#1E293B RGB(30, 41, 59) RGBA(30, 41, 59, 1) support.type.property-name
#1E293B RGB(30, 41, 59) RGBA(30, 41, 59, 1) variable
#1E293B RGB(30, 41, 59) RGBA(30, 41, 59, 1) variable.function
#7C3AED RGB(124, 58, 237) RGBA(124, 58, 237, 1) variable.language
#8B5CF6 RGB(139, 92, 246) RGBA(139, 92, 246, 1) variable.name
#1E293B RGB(30, 41, 59) RGBA(30, 41, 59, 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
#A855F7 RGB(168, 85, 247) RGBA(168, 85, 247, 1)