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
Purple Puke: Vibrant Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#2B1F36 RGB(43, 31, 54) RGBA(43, 31, 54, 1) activityBar.foreground
#E4C6FF RGB(228, 198, 255) RGBA(228, 198, 255, 1) activityBarBadge.background
#348FEB RGB(52, 143, 235) RGBA(52, 143, 235, 1) editor.background
#2B1F36 RGB(43, 31, 54) RGBA(43, 31, 54, 1) editor.foreground
#E4C6FF RGB(228, 198, 255) RGBA(228, 198, 255, 1) sideBar.background
#2B1F36 RGB(43, 31, 54) RGBA(43, 31, 54, 1) sideBar.foreground
#E4C6FF RGB(228, 198, 255) RGBA(228, 198, 255, 1) sideBarTitle.foreground
#E4C6FF RGB(228, 198, 255) RGBA(228, 198, 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
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) comment.block
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) comment.block.documentation
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) comment.line
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) constant
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.character
#E0A200 RGB(224, 162, 0) RGBA(224, 162, 0, 1) constant.character.escape
#E4C6FF RGB(228, 198, 255) RGBA(228, 198, 255, 1) constant.numeric
#E0A200 RGB(224, 162, 0) RGBA(224, 162, 0, 1) constant.numeric.integer
#E0A200 RGB(224, 162, 0) RGBA(224, 162, 0, 1) constant.numeric.float
#E0A200 RGB(224, 162, 0) RGBA(224, 162, 0, 1) constant.numeric.hex
#E0A200 RGB(224, 162, 0) RGBA(224, 162, 0, 1) constant.numeric.octal
#E0A200 RGB(224, 162, 0) RGBA(224, 162, 0, 1) constant.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.other.placeholder
#E4C6FF RGB(228, 198, 255) RGBA(228, 198, 255, 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
#348FEB RGB(52, 143, 235) RGBA(52, 143, 235, 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
#F5600A RGB(245, 96, 10) RGBA(245, 96, 10, 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
#E0A200 RGB(224, 162, 0) RGBA(224, 162, 0, 1) entity.other.attribute-name
#E0A200 RGB(224, 162, 0) RGBA(224, 162, 0, 1) entity.other.inherited-class
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) invalid
#F50A0A RGB(245, 10, 10) RGBA(245, 10, 10, 1) invalid.deprecated
#F50A0A RGB(245, 10, 10) RGBA(245, 10, 10, 1) invalid.illegal
#F50A0A RGB(245, 10, 10) RGBA(245, 10, 10, 1) keyword
#C571EC RGB(197, 113, 236) RGBA(197, 113, 236, 1) keyword.control
#348FEB RGB(52, 143, 235) RGBA(52, 143, 235, 1) keyword.control.flow
#348FEB RGB(52, 143, 235) RGBA(52, 143, 235, 1) keyword.operator
#C571EC RGB(197, 113, 236) RGBA(197, 113, 236, 1) keyword.operator.new
#C571EC RGB(197, 113, 236) RGBA(197, 113, 236, 1) keyword.operator.assignment
#C571EC RGB(197, 113, 236) RGBA(197, 113, 236, 1) keyword.operator.arithmetic
#C571EC RGB(197, 113, 236) RGBA(197, 113, 236, 1) keyword.operator.logical
#C571EC RGB(197, 113, 236) RGBA(197, 113, 236, 1) keyword.other
#E0A200 RGB(224, 162, 0) RGBA(224, 162, 0, 1) markup
#E4C6FF RGB(228, 198, 255) RGBA(228, 198, 255, 1) markup.bold
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) markup.changed
#C571EC RGB(197, 113, 236) RGBA(197, 113, 236, 1) markup.deleted
#F50A0A RGB(245, 10, 10) RGBA(245, 10, 10, 1) markup.heading
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) markup.inline.raw
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.inserted
#07BA65 RGB(7, 186, 101) RGBA(7, 186, 101, 1) markup.italic
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) markup.raw
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.underline
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) markup.underline.link
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) meta
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) meta.function-call
#348FEB RGB(52, 143, 235) RGBA(52, 143, 235, 1) meta.tag
#E0ABFF RGB(224, 171, 255) RGBA(224, 171, 255, 1) punctuation.definition.bracket
#E0ABFF RGB(224, 171, 255) RGBA(224, 171, 255, 1) punctuation.definition.comment
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) punctuation.definition.string.begin
#E0ABFF RGB(224, 171, 255) RGBA(224, 171, 255, 1) punctuation.definition.string.end
#E0ABFF RGB(224, 171, 255) RGBA(224, 171, 255, 1) punctuation.separator
#E0ABFF RGB(224, 171, 255) RGBA(224, 171, 255, 1) punctuation.separator.continuation
#E0ABFF RGB(224, 171, 255) RGBA(224, 171, 255, 1) punctuation.terminator
#E0ABFF RGB(224, 171, 255) RGBA(224, 171, 255, 1) storage
#C571EC RGB(197, 113, 236) RGBA(197, 113, 236, 1) storage.modifier
#C571EC RGB(197, 113, 236) RGBA(197, 113, 236, 1) storage.type
#C571EC RGB(197, 113, 236) RGBA(197, 113, 236, 1) string
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) string.interpolated
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) string.other
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) string.quoted
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) string.quoted.double
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) string.quoted.other
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) string.quoted.single
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) string.quoted.triple
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) string.regexp
#E4C6FF RGB(228, 198, 255) RGBA(228, 198, 255, 1) string.template
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) string.unquoted
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) support
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) support.class
#E0A200 RGB(224, 162, 0) RGBA(224, 162, 0, 1) support.constant
#E0A200 RGB(224, 162, 0) RGBA(224, 162, 0, 1) support.function
#348FEB RGB(52, 143, 235) RGBA(52, 143, 235, 1) support.other
#E0A200 RGB(224, 162, 0) RGBA(224, 162, 0, 1) support.type
#348FEB RGB(52, 143, 235) RGBA(52, 143, 235, 1) support.type.primitive
#348FEB RGB(52, 143, 235) RGBA(52, 143, 235, 1) support.type.property-name
#348FEB RGB(52, 143, 235) RGBA(52, 143, 235, 1) variable
#E4C6FF RGB(228, 198, 255) RGBA(228, 198, 255, 1) variable.function
#348FEB RGB(52, 143, 235) RGBA(52, 143, 235, 1) variable.language
#F50A0A RGB(245, 10, 10) RGBA(245, 10, 10, 1) variable.name
#E4C6FF RGB(228, 198, 255) RGBA(228, 198, 255, 1) variable.other
#F5600A RGB(245, 96, 10) RGBA(245, 96, 10, 1) variable.other.constant
#F5600A RGB(245, 96, 10) RGBA(245, 96, 10, 1) variable.other.property
#F5600A RGB(245, 96, 10) RGBA(245, 96, 10, 1) variable.other.readwrite
#F5600A RGB(245, 96, 10) RGBA(245, 96, 10, 1) variable.parameter
#E0A200 RGB(224, 162, 0) RGBA(224, 162, 0, 1)