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
Lithium
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#1A383ADA RGB(26, 56, 58) RGBA(26, 56, 58, 0.855) activityBarBadge.background
#8936AA RGB(137, 54, 170) RGBA(137, 54, 170, 1) editor.background
#1A383ADA RGB(26, 56, 58) RGBA(26, 56, 58, 0.855) editor.foreground
#D4D4D4 RGB(212, 212, 212) RGBA(212, 212, 212, 1) panel.background
#1A383ADA RGB(26, 56, 58) RGBA(26, 56, 58, 0.855) sideBar.background
#1A383ADA RGB(26, 56, 58) RGBA(26, 56, 58, 0.855) sideBarSectionHeader.background
#306F74DA RGB(48, 111, 116) RGBA(48, 111, 116, 0.855) sideBarTitle.foreground
#C90FBF RGB(201, 15, 191) RGBA(201, 15, 191, 1) terminal.background
#1A383ADA RGB(26, 56, 58) RGBA(26, 56, 58, 0.855)
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
#099E8A RGB(9, 158, 138) RGBA(9, 158, 138, 1) constant.character
#589E07 RGB(88, 158, 7) RGBA(88, 158, 7, 1) constant.character.escape
#D80020 RGB(216, 0, 32) RGBA(216, 0, 32, 1) constant.numeric
#589E07 RGB(88, 158, 7) RGBA(88, 158, 7, 1) constant.numeric.integer
#589E07 RGB(88, 158, 7) RGBA(88, 158, 7, 1) constant.numeric.float
#589E07 RGB(88, 158, 7) RGBA(88, 158, 7, 1) constant.numeric.hex
#589E07 RGB(88, 158, 7) RGBA(88, 158, 7, 1) constant.numeric.octal
#589E07 RGB(88, 158, 7) RGBA(88, 158, 7, 1) constant.other
#099E8A RGB(9, 158, 138) RGBA(9, 158, 138, 1) constant.other.placeholder
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) entity
#7364A8 RGB(115, 100, 168) RGBA(115, 100, 168, 1) entity.name
#7364A8 RGB(115, 100, 168) RGBA(115, 100, 168, 1) entity.name.class
#7364A8 RGB(115, 100, 168) RGBA(115, 100, 168, 1) entity.name.function
#FF69FF RGB(255, 105, 255) RGBA(255, 105, 255, 1) entity.name.method
#7364A8 RGB(115, 100, 168) RGBA(115, 100, 168, 1) entity.name.namespace
#7364A8 RGB(115, 100, 168) RGBA(115, 100, 168, 1) entity.name.section
#7364A8 RGB(115, 100, 168) RGBA(115, 100, 168, 1) entity.name.selector
#7364A8 RGB(115, 100, 168) RGBA(115, 100, 168, 1) entity.name.tag
#D4000B RGB(212, 0, 11) RGBA(212, 0, 11, 1) entity.name.type
#7364A8 RGB(115, 100, 168) RGBA(115, 100, 168, 1) entity.name.type.enum
#7364A8 RGB(115, 100, 168) RGBA(115, 100, 168, 1) entity.name.type.interface
#7364A8 RGB(115, 100, 168) RGBA(115, 100, 168, 1) entity.name.type.struct
#7364A8 RGB(115, 100, 168) RGBA(115, 100, 168, 1) entity.other
#099E8A RGB(9, 158, 138) RGBA(9, 158, 138, 1) entity.other.attribute-name
#099E8A RGB(9, 158, 138) RGBA(9, 158, 138, 1) entity.other.inherited-class
#8DE8A8 RGB(141, 232, 168) RGBA(141, 232, 168, 1) invalid
#BC41C0 RGB(188, 65, 192) RGBA(188, 65, 192, 1) invalid.deprecated
#BC41C0 RGB(188, 65, 192) RGBA(188, 65, 192, 1) invalid.illegal
#BC41C0 RGB(188, 65, 192) RGBA(188, 65, 192, 1) keyword
#EA9292 RGB(234, 146, 146) RGBA(234, 146, 146, 1) keyword.control
#099E8A RGB(9, 158, 138) RGBA(9, 158, 138, 1) keyword.control.flow
#099E8A RGB(9, 158, 138) RGBA(9, 158, 138, 1) keyword.operator
#EA9292 RGB(234, 146, 146) RGBA(234, 146, 146, 1) keyword.operator.new
#EA9292 RGB(234, 146, 146) RGBA(234, 146, 146, 1) keyword.operator.assignment
#EA9292 RGB(234, 146, 146) RGBA(234, 146, 146, 1) keyword.operator.arithmetic
#EA9292 RGB(234, 146, 146) RGBA(234, 146, 146, 1) keyword.operator.logical
#EA9292 RGB(234, 146, 146) RGBA(234, 146, 146, 1) keyword.other
#589E07 RGB(88, 158, 7) RGBA(88, 158, 7, 1) markup
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.bold
#5E3C58 RGB(94, 60, 88) RGBA(94, 60, 88, 1) markup.changed
#099E8A RGB(9, 158, 138) RGBA(9, 158, 138, 1) markup.deleted
#DD0021 RGB(221, 0, 33) RGBA(221, 0, 33, 1) markup.heading
#8DE8A8 RGB(141, 232, 168) RGBA(141, 232, 168, 1) markup.inline.raw
#099E8A RGB(9, 158, 138) RGBA(9, 158, 138, 1) markup.inserted
#7364A8 RGB(115, 100, 168) RGBA(115, 100, 168, 1) markup.italic
#5E3C58 RGB(94, 60, 88) RGBA(94, 60, 88, 1) markup.quote
#5544EE RGB(85, 68, 238) RGBA(85, 68, 238, 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
#CEAD00 RGB(206, 173, 0) RGBA(206, 173, 0, 1) meta.function-call
#FF69FF RGB(255, 105, 255) RGBA(255, 105, 255, 1) meta.tag
#4596B6 RGB(69, 150, 182) RGBA(69, 150, 182, 1) punctuation.definition.bracket
#4596B6 RGB(69, 150, 182) RGBA(69, 150, 182, 1) punctuation.definition.comment
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) punctuation.definition.string.begin
#4596B6 RGB(69, 150, 182) RGBA(69, 150, 182, 1) punctuation.definition.string.end
#4596B6 RGB(69, 150, 182) RGBA(69, 150, 182, 1) punctuation.separator
#4596B6 RGB(69, 150, 182) RGBA(69, 150, 182, 1) punctuation.separator.continuation
#4596B6 RGB(69, 150, 182) RGBA(69, 150, 182, 1) punctuation.terminator
#4596B6 RGB(69, 150, 182) RGBA(69, 150, 182, 1) storage
#EA9292 RGB(234, 146, 146) RGBA(234, 146, 146, 1) storage.modifier
#EA9292 RGB(234, 146, 146) RGBA(234, 146, 146, 1) storage.type
#EA9292 RGB(234, 146, 146) RGBA(234, 146, 146, 1) string
#5E3C58 RGB(94, 60, 88) RGBA(94, 60, 88, 1) string.interpolated
#5E3C58 RGB(94, 60, 88) RGBA(94, 60, 88, 1) string.other
#5E3C58 RGB(94, 60, 88) RGBA(94, 60, 88, 1) string.quoted
#5E3C58 RGB(94, 60, 88) RGBA(94, 60, 88, 1) string.quoted.double
#5E3C58 RGB(94, 60, 88) RGBA(94, 60, 88, 1) string.quoted.other
#5E3C58 RGB(94, 60, 88) RGBA(94, 60, 88, 1) string.quoted.single
#5E3C58 RGB(94, 60, 88) RGBA(94, 60, 88, 1) string.quoted.triple
#5E3C58 RGB(94, 60, 88) RGBA(94, 60, 88, 1) string.regexp
#D80020 RGB(216, 0, 32) RGBA(216, 0, 32, 1) string.template
#5E3C58 RGB(94, 60, 88) RGBA(94, 60, 88, 1) string.unquoted
#5E3C58 RGB(94, 60, 88) RGBA(94, 60, 88, 1) support
#7364A8 RGB(115, 100, 168) RGBA(115, 100, 168, 1) support.class
#8FAC02 RGB(143, 172, 2) RGBA(143, 172, 2, 1) support.constant
#589E07 RGB(88, 158, 7) RGBA(88, 158, 7, 1) support.function
#FF69FF RGB(255, 105, 255) RGBA(255, 105, 255, 1) support.other
#8FAC02 RGB(143, 172, 2) RGBA(143, 172, 2, 1) support.type
#64A873 RGB(100, 168, 115) RGBA(100, 168, 115, 1) support.type.primitive
#64A873 RGB(100, 168, 115) RGBA(100, 168, 115, 1) support.type.property-name
#64A873 RGB(100, 168, 115) RGBA(100, 168, 115, 1) variable
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) variable.function
#FF69FF RGB(255, 105, 255) RGBA(255, 105, 255, 1) variable.language
#DD0021 RGB(221, 0, 33) RGBA(221, 0, 33, 1) variable.name
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) variable.other
#8F4549 RGB(143, 69, 73) RGBA(143, 69, 73, 1) variable.other.constant
#8F4549 RGB(143, 69, 73) RGBA(143, 69, 73, 1) variable.other.property
#8F4549 RGB(143, 69, 73) RGBA(143, 69, 73, 1) variable.other.readwrite
#8F4549 RGB(143, 69, 73) RGBA(143, 69, 73, 1) variable.parameter
#589E07 RGB(88, 158, 7) RGBA(88, 158, 7, 1)