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
Proca 2
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#007ACC RGB(0, 122, 204) RGBA(0, 122, 204, 1) editor.background
#2A2D2E RGB(42, 45, 46) RGBA(42, 45, 46, 1) editor.foreground
#FAFAFA RGB(250, 250, 250) RGBA(250, 250, 250, 1) sideBarTitle.foreground
#EF5988 RGB(239, 89, 136) RGBA(239, 89, 136, 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
#52FF58 RGB(82, 255, 88) RGBA(82, 255, 88, 1) comment.block
#52FF58 RGB(82, 255, 88) RGBA(82, 255, 88, 1) comment.block.documentation
#52FF58 RGB(82, 255, 88) RGBA(82, 255, 88, 1) comment.line
#52FF58 RGB(82, 255, 88) RGBA(82, 255, 88, 1) constant
#665522 RGB(102, 85, 34) RGBA(102, 85, 34, 1) constant.character
#7480FF RGB(116, 128, 255) RGBA(116, 128, 255, 1) constant.character.escape
#CACDB0 RGB(202, 205, 176) RGBA(202, 205, 176, 1) constant.numeric
#7480FF RGB(116, 128, 255) RGBA(116, 128, 255, 1) constant.numeric.integer
#7480FF RGB(116, 128, 255) RGBA(116, 128, 255, 1) constant.numeric.float
#7480FF RGB(116, 128, 255) RGBA(116, 128, 255, 1) constant.numeric.hex
#7480FF RGB(116, 128, 255) RGBA(116, 128, 255, 1) constant.numeric.octal
#7480FF RGB(116, 128, 255) RGBA(116, 128, 255, 1) constant.other
#665522 RGB(102, 85, 34) RGBA(102, 85, 34, 1) constant.other.placeholder
#C4787F RGB(196, 120, 127) RGBA(196, 120, 127, 1) entity
#AECB98 RGB(174, 203, 152) RGBA(174, 203, 152, 1) entity.name
#AECB98 RGB(174, 203, 152) RGBA(174, 203, 152, 1) entity.name.class
#AECB98 RGB(174, 203, 152) RGBA(174, 203, 152, 1) entity.name.function
#FFB1FC RGB(255, 177, 252) RGBA(255, 177, 252, 1) entity.name.method
#AECB98 RGB(174, 203, 152) RGBA(174, 203, 152, 1) entity.name.namespace
#AECB98 RGB(174, 203, 152) RGBA(174, 203, 152, 1) entity.name.section
#AECB98 RGB(174, 203, 152) RGBA(174, 203, 152, 1) entity.name.selector
#AECB98 RGB(174, 203, 152) RGBA(174, 203, 152, 1) entity.name.tag
#FFD452 RGB(255, 212, 82) RGBA(255, 212, 82, 1) entity.name.type
#AECB98 RGB(174, 203, 152) RGBA(174, 203, 152, 1) entity.name.type.enum
#AECB98 RGB(174, 203, 152) RGBA(174, 203, 152, 1) entity.name.type.interface
#AECB98 RGB(174, 203, 152) RGBA(174, 203, 152, 1) entity.name.type.struct
#AECB98 RGB(174, 203, 152) RGBA(174, 203, 152, 1) entity.other
#119977 RGB(17, 153, 119) RGBA(17, 153, 119, 1) entity.other.attribute-name
#AADDCC RGB(170, 221, 204) RGBA(170, 221, 204, 1) entity.other.inherited-class
#B6659B RGB(182, 101, 155) RGBA(182, 101, 155, 1) invalid
#60B423 RGB(96, 180, 35) RGBA(96, 180, 35, 1) invalid.deprecated
#60B423 RGB(96, 180, 35) RGBA(96, 180, 35, 1) invalid.illegal
#60B423 RGB(96, 180, 35) RGBA(96, 180, 35, 1) keyword
#E359EF RGB(227, 89, 239) RGBA(227, 89, 239, 1) keyword.control
#C18AD9 RGB(193, 138, 217) RGBA(193, 138, 217, 1) keyword.control.flow
#C18AD9 RGB(193, 138, 217) RGBA(193, 138, 217, 1) keyword.operator
#E359EF RGB(227, 89, 239) RGBA(227, 89, 239, 1) keyword.operator.new
#E359EF RGB(227, 89, 239) RGBA(227, 89, 239, 1) keyword.operator.assignment
#E359EF RGB(227, 89, 239) RGBA(227, 89, 239, 1) keyword.operator.arithmetic
#E359EF RGB(227, 89, 239) RGBA(227, 89, 239, 1) keyword.operator.logical
#E359EF RGB(227, 89, 239) RGBA(227, 89, 239, 1) keyword.other
#7480FF RGB(116, 128, 255) RGBA(116, 128, 255, 1) markup
#6CFFBD RGB(108, 255, 189) RGBA(108, 255, 189, 1) markup.bold
#C4BB78 RGB(196, 187, 120) RGBA(196, 187, 120, 1) markup.changed
#CDB0C3 RGB(205, 176, 195) RGBA(205, 176, 195, 1) markup.deleted
#60B652 RGB(96, 182, 82) RGBA(96, 182, 82, 1) markup.heading
#B6659B RGB(182, 101, 155) RGBA(182, 101, 155, 1) markup.inline.raw
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) markup.inserted
#8A97D9 RGB(138, 151, 217) RGBA(138, 151, 217, 1) markup.italic
#C4BB78 RGB(196, 187, 120) RGBA(196, 187, 120, 1) markup.raw
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) markup.underline
#C478A4 RGB(196, 120, 164) RGBA(196, 120, 164, 1) markup.underline.link
#C478A4 RGB(196, 120, 164) RGBA(196, 120, 164, 1) meta
#FF00AA RGB(255, 0, 170) RGBA(255, 0, 170, 1) meta.function-call
#FFB1FC RGB(255, 177, 252) RGBA(255, 177, 252, 1) meta.tag
#EF9A59 RGB(239, 154, 89) RGBA(239, 154, 89, 1) punctuation.definition.bracket
#EF9A59 RGB(239, 154, 89) RGBA(239, 154, 89, 1) punctuation.definition.comment
#52FF58 RGB(82, 255, 88) RGBA(82, 255, 88, 1) punctuation.definition.string.begin
#EF9A59 RGB(239, 154, 89) RGBA(239, 154, 89, 1) punctuation.definition.string.end
#EF9A59 RGB(239, 154, 89) RGBA(239, 154, 89, 1) punctuation.separator
#EF9A59 RGB(239, 154, 89) RGBA(239, 154, 89, 1) punctuation.separator.continuation
#EF9A59 RGB(239, 154, 89) RGBA(239, 154, 89, 1) punctuation.terminator
#EF9A59 RGB(239, 154, 89) RGBA(239, 154, 89, 1) storage
#E359EF RGB(227, 89, 239) RGBA(227, 89, 239, 1) storage.modifier
#E359EF RGB(227, 89, 239) RGBA(227, 89, 239, 1) storage.type
#E359EF RGB(227, 89, 239) RGBA(227, 89, 239, 1) string
#C4BB78 RGB(196, 187, 120) RGBA(196, 187, 120, 1) string.interpolated
#C4BB78 RGB(196, 187, 120) RGBA(196, 187, 120, 1) string.other
#C4BB78 RGB(196, 187, 120) RGBA(196, 187, 120, 1) string.quoted
#C4BB78 RGB(196, 187, 120) RGBA(196, 187, 120, 1) string.quoted.double
#C4BB78 RGB(196, 187, 120) RGBA(196, 187, 120, 1) string.quoted.other
#C4BB78 RGB(196, 187, 120) RGBA(196, 187, 120, 1) string.quoted.single
#C4BB78 RGB(196, 187, 120) RGBA(196, 187, 120, 1) string.quoted.triple
#C4BB78 RGB(196, 187, 120) RGBA(196, 187, 120, 1) string.regexp
#B0CDB6 RGB(176, 205, 182) RGBA(176, 205, 182, 1) string.template
#C4BB78 RGB(196, 187, 120) RGBA(196, 187, 120, 1) string.unquoted
#C4BB78 RGB(196, 187, 120) RGBA(196, 187, 120, 1) support
#FFF000 RGB(255, 240, 0) RGBA(255, 240, 0, 1) support.class
#65B68A RGB(101, 182, 138) RGBA(101, 182, 138, 1) support.constant
#7480FF RGB(116, 128, 255) RGBA(116, 128, 255, 1) support.function
#FFB1FC RGB(255, 177, 252) RGBA(255, 177, 252, 1) support.other
#65B68A RGB(101, 182, 138) RGBA(101, 182, 138, 1) support.type
#7565B6 RGB(117, 101, 182) RGBA(117, 101, 182, 1) support.type.primitive
#7565B6 RGB(117, 101, 182) RGBA(117, 101, 182, 1) support.type.property-name
#C4C478 RGB(196, 196, 120) RGBA(196, 196, 120, 1) variable
#C4787F RGB(196, 120, 127) RGBA(196, 120, 127, 1) variable.function
#FFB1FC RGB(255, 177, 252) RGBA(255, 177, 252, 1) variable.language
#AA0056 RGB(170, 0, 86) RGBA(170, 0, 86, 1) variable.name
#C4787F RGB(196, 120, 127) RGBA(196, 120, 127, 1) variable.other
#B7FFB1 RGB(183, 255, 177) RGBA(183, 255, 177, 1) variable.other.constant
#B7FFB1 RGB(183, 255, 177) RGBA(183, 255, 177, 1) variable.other.property
#B7FFB1 RGB(183, 255, 177) RGBA(183, 255, 177, 1) variable.other.readwrite
#B7FFB1 RGB(183, 255, 177) RGBA(183, 255, 177, 1) variable.parameter
#7480FF RGB(116, 128, 255) RGBA(116, 128, 255, 1)