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
Magie Obscure
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#272233 RGB(39, 34, 51) RGBA(39, 34, 51, 1) activityBarBadge.background
#CC008F RGB(204, 0, 143) RGBA(204, 0, 143, 1) editor.background
#23202B RGB(35, 32, 43) RGBA(35, 32, 43, 1) editor.foreground
#ECDFF5 RGB(236, 223, 245) RGBA(236, 223, 245, 1) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1) tab.activeBackground
#2D3844 RGB(45, 56, 68) RGBA(45, 56, 68, 1) tab.activeForeground
#D1E5E9 RGB(209, 229, 233) RGBA(209, 229, 233, 1) tab.inactiveBackground
#2B2730 RGB(43, 39, 48) RGBA(43, 39, 48, 1) tab.inactiveForeground
#DBD0BF RGB(219, 208, 191) RGBA(219, 208, 191, 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
#D39FF5 RGB(211, 159, 245) RGBA(211, 159, 245, 1) constant.character
#D39FF5 RGB(211, 159, 245) RGBA(211, 159, 245, 1) constant.character.escape
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) constant.numeric
#D39FF5 RGB(211, 159, 245) RGBA(211, 159, 245, 1) constant.numeric.integer
#D39FF5 RGB(211, 159, 245) RGBA(211, 159, 245, 1) constant.numeric.float
#D39FF5 RGB(211, 159, 245) RGBA(211, 159, 245, 1) constant.numeric.hex
#D39FF5 RGB(211, 159, 245) RGBA(211, 159, 245, 1) constant.numeric.octal
#D39FF5 RGB(211, 159, 245) RGBA(211, 159, 245, 1) constant.other
#D39FF5 RGB(211, 159, 245) RGBA(211, 159, 245, 1) constant.other.placeholder
#D39FF5 RGB(211, 159, 245) RGBA(211, 159, 245, 1) constant.regexp
#D39FF5 RGB(211, 159, 245) RGBA(211, 159, 245, 1) constant.rgb-value
#D39FF5 RGB(211, 159, 245) RGBA(211, 159, 245, 1) entity
#DD4545 RGB(221, 69, 69) RGBA(221, 69, 69, 1) entity.name
#DD4545 RGB(221, 69, 69) RGBA(221, 69, 69, 1) entity.name.function
#C3E9BE RGB(195, 233, 190) RGBA(195, 233, 190, 1) entity.name.type
#7ED0E9 RGB(126, 208, 233) RGBA(126, 208, 233, 1) entity.name.type.enum
#7ED0E9 RGB(126, 208, 233) RGBA(126, 208, 233, 1) entity.name.type.interface
#7ED0E9 RGB(126, 208, 233) RGBA(126, 208, 233, 1) entity.name.type.struct
#7ED0E9 RGB(126, 208, 233) RGBA(126, 208, 233, 1) entity.other
#7ED0E9 RGB(126, 208, 233) RGBA(126, 208, 233, 1) entity.other.inherited-class
#7ED0E9 RGB(126, 208, 233) RGBA(126, 208, 233, 1) invalid
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) invalid.deprecated
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) invalid.illegal
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) keyword
#73DB92 RGB(115, 219, 146) RGBA(115, 219, 146, 1) keyword.control
#73DB92 RGB(115, 219, 146) RGBA(115, 219, 146, 1) keyword.control.flow
#73DB92 RGB(115, 219, 146) RGBA(115, 219, 146, 1) keyword.operator
#B1B5D8 RGB(177, 181, 216) RGBA(177, 181, 216, 1) keyword.operator.new
#B1B5D8 RGB(177, 181, 216) RGBA(177, 181, 216, 1) keyword.operator.assignment
#B1B5D8 RGB(177, 181, 216) RGBA(177, 181, 216, 1) keyword.operator.arithmetic
#B1B5D8 RGB(177, 181, 216) RGBA(177, 181, 216, 1) keyword.operator.logical
#B1B5D8 RGB(177, 181, 216) RGBA(177, 181, 216, 1) keyword.other
#73DB92 RGB(115, 219, 146) RGBA(115, 219, 146, 1) meta
#C3E9BE RGB(195, 233, 190) RGBA(195, 233, 190, 1) meta.function-call
#C3E9BE RGB(195, 233, 190) RGBA(195, 233, 190, 1) punctuation.definition.bracket
#B1B5D8 RGB(177, 181, 216) RGBA(177, 181, 216, 1) punctuation.definition.comment
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) punctuation.definition.string.begin
#B1B5D8 RGB(177, 181, 216) RGBA(177, 181, 216, 1) punctuation.definition.string.end
#B1B5D8 RGB(177, 181, 216) RGBA(177, 181, 216, 1) punctuation.separator
#B1B5D8 RGB(177, 181, 216) RGBA(177, 181, 216, 1) punctuation.separator.continuation
#B1B5D8 RGB(177, 181, 216) RGBA(177, 181, 216, 1) punctuation.terminator
#B1B5D8 RGB(177, 181, 216) RGBA(177, 181, 216, 1) storage
#73DB92 RGB(115, 219, 146) RGBA(115, 219, 146, 1) storage.modifier
#A1A3FF RGB(161, 163, 255) RGBA(161, 163, 255, 1) storage.type
#A1A3FF RGB(161, 163, 255) RGBA(161, 163, 255, 1) string
#ECAD90 RGB(236, 173, 144) RGBA(236, 173, 144, 1) string.interpolated
#ECAD90 RGB(236, 173, 144) RGBA(236, 173, 144, 1) string.other
#ECAD90 RGB(236, 173, 144) RGBA(236, 173, 144, 1) string.quoted
#ECAD90 RGB(236, 173, 144) RGBA(236, 173, 144, 1) string.quoted.double
#ECAD90 RGB(236, 173, 144) RGBA(236, 173, 144, 1) string.quoted.other
#ECAD90 RGB(236, 173, 144) RGBA(236, 173, 144, 1) string.quoted.single
#ECAD90 RGB(236, 173, 144) RGBA(236, 173, 144, 1) string.quoted.triple
#ECAD90 RGB(236, 173, 144) RGBA(236, 173, 144, 1) string.regexp
#4B83CD RGB(75, 131, 205) RGBA(75, 131, 205, 1) string.template
#ECAD90 RGB(236, 173, 144) RGBA(236, 173, 144, 1) string.unquoted
#ECAD90 RGB(236, 173, 144) RGBA(236, 173, 144, 1) support
#7ED0E9 RGB(126, 208, 233) RGBA(126, 208, 233, 1) support.class
#7ED0E9 RGB(126, 208, 233) RGBA(126, 208, 233, 1) support.constant
#E7DE8E RGB(231, 222, 142) RGBA(231, 222, 142, 1) support.function
#C3E9BE RGB(195, 233, 190) RGBA(195, 233, 190, 1) support.type
#7ED0E9 RGB(126, 208, 233) RGBA(126, 208, 233, 1) support.type.primitive
#7ED0E9 RGB(126, 208, 233) RGBA(126, 208, 233, 1) support.type.property-name
#7ED0E9 RGB(126, 208, 233) RGBA(126, 208, 233, 1) support.variable
#F1FDFD RGB(241, 253, 253) RGBA(241, 253, 253, 1) variable
#F1FDFD RGB(241, 253, 253) RGBA(241, 253, 253, 1) variable.function
#C3E9BE RGB(195, 233, 190) RGBA(195, 233, 190, 1) variable.language
#E7DE8E RGB(231, 222, 142) RGBA(231, 222, 142, 1) variable.name
#F1FDFD RGB(241, 253, 253) RGBA(241, 253, 253, 1) variable.other
#FFE6C1 RGB(255, 230, 193) RGBA(255, 230, 193, 1) variable.other.constant
#FFE6C1 RGB(255, 230, 193) RGBA(255, 230, 193, 1) variable.other.property
#FFE6C1 RGB(255, 230, 193) RGBA(255, 230, 193, 1) variable.other.readwrite
#FFE6C1 RGB(255, 230, 193) RGBA(255, 230, 193, 1) variable.parameter
#F1FDFD RGB(241, 253, 253) RGBA(241, 253, 253, 1)