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
Matrix Palette Rainbow
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#000415 RGB(0, 4, 21) RGBA(0, 4, 21, 1) editor.background
#000F00 RGB(0, 15, 0) RGBA(0, 15, 0, 1) editor.foreground
#52FE3F RGB(82, 254, 63) RGBA(82, 254, 63, 1) sideBarTitle.foreground
#DEF7C1 RGB(222, 247, 193) RGBA(222, 247, 193, 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
#657B86 RGB(101, 123, 134) RGBA(101, 123, 134, 1) comment.block
#657B86 RGB(101, 123, 134) RGBA(101, 123, 134, 1) comment.block.documentation
#657B86 RGB(101, 123, 134) RGBA(101, 123, 134, 1) comment.line
#657B86 RGB(101, 123, 134) RGBA(101, 123, 134, 1) constant
#FFFA6B RGB(255, 250, 107) RGBA(255, 250, 107, 1) constant.character
#BEFF3D RGB(190, 255, 61) RGBA(190, 255, 61, 1) constant.character.escape
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric
#BEFF3D RGB(190, 255, 61) RGBA(190, 255, 61, 1) constant.numeric.integer
#BEFF3D RGB(190, 255, 61) RGBA(190, 255, 61, 1) constant.numeric.float
#BEFF3D RGB(190, 255, 61) RGBA(190, 255, 61, 1) constant.numeric.hex
#BEFF3D RGB(190, 255, 61) RGBA(190, 255, 61, 1) constant.numeric.octal
#BEFF3D RGB(190, 255, 61) RGBA(190, 255, 61, 1) constant.other
#FFFA6B RGB(255, 250, 107) RGBA(255, 250, 107, 1) constant.other.placeholder
#5EC986 RGB(94, 201, 134) RGBA(94, 201, 134, 1) entity
#58FFB7 RGB(88, 255, 183) RGBA(88, 255, 183, 1) entity.name
#58FFB7 RGB(88, 255, 183) RGBA(88, 255, 183, 1) entity.name.class
#58FFB7 RGB(88, 255, 183) RGBA(88, 255, 183, 1) entity.name.function
#FFD700 RGB(255, 215, 0) RGBA(255, 215, 0, 1) entity.name.method
#58FFB7 RGB(88, 255, 183) RGBA(88, 255, 183, 1) entity.name.namespace
#58FFB7 RGB(88, 255, 183) RGBA(88, 255, 183, 1) entity.name.section
#58FFB7 RGB(88, 255, 183) RGBA(88, 255, 183, 1) entity.name.selector
#58FFB7 RGB(88, 255, 183) RGBA(88, 255, 183, 1) entity.name.tag
#365890 RGB(54, 88, 144) RGBA(54, 88, 144, 1) entity.name.type
#58FFB7 RGB(88, 255, 183) RGBA(88, 255, 183, 1) entity.name.type.enum
#58FFB7 RGB(88, 255, 183) RGBA(88, 255, 183, 1) entity.name.type.interface
#58FFB7 RGB(88, 255, 183) RGBA(88, 255, 183, 1) entity.name.type.struct
#58FFB7 RGB(88, 255, 183) RGBA(88, 255, 183, 1) entity.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.attribute-name
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.inherited-class
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) invalid
#CB2323 RGB(203, 35, 35) RGBA(203, 35, 35, 1) invalid.deprecated
#CB2323 RGB(203, 35, 35) RGBA(203, 35, 35, 1) invalid.illegal
#CB2323 RGB(203, 35, 35) RGBA(203, 35, 35, 1) keyword
#01B5FC RGB(1, 181, 252) RGBA(1, 181, 252, 1) keyword.control
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) keyword.control.flow
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) keyword.operator
#01B5FC RGB(1, 181, 252) RGBA(1, 181, 252, 1) keyword.operator.new
#01B5FC RGB(1, 181, 252) RGBA(1, 181, 252, 1) keyword.operator.assignment
#01B5FC RGB(1, 181, 252) RGBA(1, 181, 252, 1) keyword.operator.arithmetic
#01B5FC RGB(1, 181, 252) RGBA(1, 181, 252, 1) keyword.operator.logical
#01B5FC RGB(1, 181, 252) RGBA(1, 181, 252, 1) keyword.other
#BEFF3D RGB(190, 255, 61) RGBA(190, 255, 61, 1) markup
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.bold
#00FF91 RGB(0, 255, 145) RGBA(0, 255, 145, 1) markup.changed
#C00000 RGB(192, 0, 0) RGBA(192, 0, 0, 1) markup.deleted
#A6031F RGB(166, 3, 31) RGBA(166, 3, 31, 1) markup.heading
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) markup.inline.raw
#BCFF5E RGB(188, 255, 94) RGBA(188, 255, 94, 1) markup.inserted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) markup.italic
#00FF91 RGB(0, 255, 145) RGBA(0, 255, 145, 1) markup.raw
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.underline
#1CF7B9 RGB(28, 247, 185) RGBA(28, 247, 185, 1) markup.underline.link
#1CF7B9 RGB(28, 247, 185) RGBA(28, 247, 185, 1) meta
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) meta.function-call
#FFD700 RGB(255, 215, 0) RGBA(255, 215, 0, 1) meta.tag
#FBEFAD RGB(251, 239, 173) RGBA(251, 239, 173, 1) punctuation.definition.bracket
#FBEFAD RGB(251, 239, 173) RGBA(251, 239, 173, 1) punctuation.definition.comment
#657B86 RGB(101, 123, 134) RGBA(101, 123, 134, 1) punctuation.definition.string.begin
#FBEFAD RGB(251, 239, 173) RGBA(251, 239, 173, 1) punctuation.definition.string.end
#FBEFAD RGB(251, 239, 173) RGBA(251, 239, 173, 1) punctuation.separator
#FBEFAD RGB(251, 239, 173) RGBA(251, 239, 173, 1) punctuation.separator.continuation
#FBEFAD RGB(251, 239, 173) RGBA(251, 239, 173, 1) punctuation.terminator
#FBEFAD RGB(251, 239, 173) RGBA(251, 239, 173, 1) storage
#01B5FC RGB(1, 181, 252) RGBA(1, 181, 252, 1) storage.modifier
#01B5FC RGB(1, 181, 252) RGBA(1, 181, 252, 1) storage.type
#01B5FC RGB(1, 181, 252) RGBA(1, 181, 252, 1) string
#00FF91 RGB(0, 255, 145) RGBA(0, 255, 145, 1) string.interpolated
#00FF91 RGB(0, 255, 145) RGBA(0, 255, 145, 1) string.other
#00FF91 RGB(0, 255, 145) RGBA(0, 255, 145, 1) string.quoted
#00FF91 RGB(0, 255, 145) RGBA(0, 255, 145, 1) string.quoted.double
#00FF91 RGB(0, 255, 145) RGBA(0, 255, 145, 1) string.quoted.other
#00FF91 RGB(0, 255, 145) RGBA(0, 255, 145, 1) string.quoted.single
#00FF91 RGB(0, 255, 145) RGBA(0, 255, 145, 1) string.quoted.triple
#00FF91 RGB(0, 255, 145) RGBA(0, 255, 145, 1) string.regexp
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) string.template
#00FF91 RGB(0, 255, 145) RGBA(0, 255, 145, 1) string.unquoted
#00FF91 RGB(0, 255, 145) RGBA(0, 255, 145, 1) support
#C1EF09 RGB(193, 239, 9) RGBA(193, 239, 9, 1) support.class
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) support.constant
#BEFF3D RGB(190, 255, 61) RGBA(190, 255, 61, 1) support.function
#FFD700 RGB(255, 215, 0) RGBA(255, 215, 0, 1) support.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) support.type
#DA5858 RGB(218, 88, 88) RGBA(218, 88, 88, 1) support.type.primitive
#DA5858 RGB(218, 88, 88) RGBA(218, 88, 88, 1) support.type.property-name
#F6BE44 RGB(246, 190, 68) RGBA(246, 190, 68, 1) variable
#5EC986 RGB(94, 201, 134) RGBA(94, 201, 134, 1) variable.function
#FFD700 RGB(255, 215, 0) RGBA(255, 215, 0, 1) variable.language
#2FFF00 RGB(47, 255, 0) RGBA(47, 255, 0, 1) variable.name
#5EC986 RGB(94, 201, 134) RGBA(94, 201, 134, 1) variable.other
#2ACC66 RGB(42, 204, 102) RGBA(42, 204, 102, 1) variable.other.constant
#2ACC66 RGB(42, 204, 102) RGBA(42, 204, 102, 1) variable.other.property
#2ACC66 RGB(42, 204, 102) RGBA(42, 204, 102, 1) variable.other.readwrite
#2ACC66 RGB(42, 204, 102) RGBA(42, 204, 102, 1) variable.parameter
#BEFF3D RGB(190, 255, 61) RGBA(190, 255, 61, 1)