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
Brilliance_Dull
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
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) comment.block
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) comment.block.documentation
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) comment.line
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) constant
#56A5A4 RGB(86, 165, 164) RGBA(86, 165, 164, 1) constant.character
#80A659 RGB(128, 166, 89) RGBA(128, 166, 89, 1) constant.character.escape
#80A659 RGB(128, 166, 89) RGBA(128, 166, 89, 1) constant.numeric
#95A658 RGB(149, 166, 88) RGBA(149, 166, 88, 1) constant.numeric.integer
#95A658 RGB(149, 166, 88) RGBA(149, 166, 88, 1) constant.numeric.float
#95A658 RGB(149, 166, 88) RGBA(149, 166, 88, 1) constant.numeric.hex
#95A658 RGB(149, 166, 88) RGBA(149, 166, 88, 1) constant.numeric.octal
#95A658 RGB(149, 166, 88) RGBA(149, 166, 88, 1) constant.other
#57A57D RGB(87, 165, 125) RGBA(87, 165, 125, 1) constant.other.placeholder
#57A57D RGB(87, 165, 125) RGBA(87, 165, 125, 1) entity
#666666 RGB(102, 102, 102) RGBA(102, 102, 102, 1) entity.name
#A77D58 RGB(167, 125, 88) RGBA(167, 125, 88, 1) entity.name.class
#A7595A RGB(167, 89, 90) RGBA(167, 89, 90, 1) entity.name.function
#A75980 RGB(167, 89, 128) RGBA(167, 89, 128, 1) entity.name.tag
#A7595A RGB(167, 89, 90) RGBA(167, 89, 90, 1) entity.name.type
#A7595A RGB(167, 89, 90) RGBA(167, 89, 90, 1) entity.other
#666666 RGB(102, 102, 102) RGBA(102, 102, 102, 1) entity.other.attribute-name
#FFFFFF33 RGB(255, 255, 255) RGBA(255, 255, 255, 0.2) entity.other.inherited-class
#A75980 RGB(167, 89, 128) RGBA(167, 89, 128, 1) invalid
#211211 RGB(33, 18, 17) RGBA(33, 18, 17, 1) invalid.deprecated
#211211 RGB(33, 18, 17) RGBA(33, 18, 17, 1) invalid.illegal
#211211 RGB(33, 18, 17) RGBA(33, 18, 17, 1) keyword
#A459A5 RGB(164, 89, 165) RGBA(164, 89, 165, 1) keyword.control
#A459A5 RGB(164, 89, 165) RGBA(164, 89, 165, 1) keyword.control.flow
#A459A5 RGB(164, 89, 165) RGBA(164, 89, 165, 1) keyword.operator
#7979B7 RGB(121, 121, 183) RGBA(121, 121, 183, 1) keyword.operator.new
#7979B7 RGB(121, 121, 183) RGBA(121, 121, 183, 1) keyword.operator.assignment
#7979B7 RGB(121, 121, 183) RGBA(121, 121, 183, 1) keyword.operator.arithmetic
#7979B7 RGB(121, 121, 183) RGBA(121, 121, 183, 1) keyword.operator.logical
#7979B7 RGB(121, 121, 183) RGBA(121, 121, 183, 1) keyword.other
#A459A5 RGB(164, 89, 165) RGBA(164, 89, 165, 1) markup
#C3C38F RGB(195, 195, 143) RGBA(195, 195, 143, 1) markup.changed
#C3C38F RGB(195, 195, 143) RGBA(195, 195, 143, 1) markup.deleted
#BC839F RGB(188, 131, 159) RGBA(188, 131, 159, 1) markup.heading
#666666 RGB(102, 102, 102) RGBA(102, 102, 102, 1) markup.inserted
#81BB9E RGB(129, 187, 158) RGBA(129, 187, 158, 1) markup.raw
#999999 RGB(153, 153, 153) RGBA(153, 153, 153, 1) markup.underline
#56A5A4 RGB(86, 165, 164) RGBA(86, 165, 164, 1) markup.underline.link
#56A5A4 RGB(86, 165, 164) RGBA(86, 165, 164, 1) meta
#CDCDCD RGB(205, 205, 205) RGBA(205, 205, 205, 1) meta.block
#CDCDCD RGB(205, 205, 205) RGBA(205, 205, 205, 1) meta.preprocessor
#7979B7 RGB(121, 121, 183) RGBA(121, 121, 183, 1) meta.selector
#666666 RGB(102, 102, 102) RGBA(102, 102, 102, 1) meta.tag
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 1) punctuation.definition.bracket
#262626 RGB(38, 38, 38) RGBA(38, 38, 38, 1) punctuation.definition.comment
#262626 RGB(38, 38, 38) RGBA(38, 38, 38, 1) punctuation.definition.string.begin
#FFFFFF33 RGB(255, 255, 255) RGBA(255, 255, 255, 0.2) punctuation.definition.string.end
#FFFFFF33 RGB(255, 255, 255) RGBA(255, 255, 255, 0.2) punctuation.separator
#262626 RGB(38, 38, 38) RGBA(38, 38, 38, 1) punctuation.separator.continuation
#262626 RGB(38, 38, 38) RGBA(38, 38, 38, 1) punctuation.terminator
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) storage
#533F2C RGB(83, 63, 44) RGBA(83, 63, 44, 1) storage.modifier
#533F2C RGB(83, 63, 44) RGBA(83, 63, 44, 1) string
#D2D1AB RGB(210, 209, 171) RGBA(210, 209, 171, 1) string.interpolated
#D2D1AB RGB(210, 209, 171) RGBA(210, 209, 171, 1) string.other
#D2D1AB RGB(210, 209, 171) RGBA(210, 209, 171, 1) string.quoted
#D2D1AB RGB(210, 209, 171) RGBA(210, 209, 171, 1) string.quoted.double
#D2D1AB RGB(210, 209, 171) RGBA(210, 209, 171, 1) string.quoted.other
#D2D1AB RGB(210, 209, 171) RGBA(210, 209, 171, 1) string.quoted.single
#D2D1AB RGB(210, 209, 171) RGBA(210, 209, 171, 1) string.quoted.triple
#D2D1AB RGB(210, 209, 171) RGBA(210, 209, 171, 1) string.regexp
#A6A458 RGB(166, 164, 88) RGBA(166, 164, 88, 1) string.template
#D2D1AB RGB(210, 209, 171) RGBA(210, 209, 171, 1) string.unquoted
#D2D1AB RGB(210, 209, 171) RGBA(210, 209, 171, 1) support
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) support.class
#A7595A RGB(167, 89, 90) RGBA(167, 89, 90, 1) support.constant
#56A5A4 RGB(86, 165, 164) RGBA(86, 165, 164, 1) support.function
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) support.type
#A7595A RGB(167, 89, 90) RGBA(167, 89, 90, 1) support.type.primitive
#A7595A RGB(167, 89, 90) RGBA(167, 89, 90, 1) support.type.property-name
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) support.variable
#56A5A4 RGB(86, 165, 164) RGBA(86, 165, 164, 1) variable
#634683 RGB(99, 70, 131) RGBA(99, 70, 131, 1) variable.function
#634683 RGB(99, 70, 131) RGBA(99, 70, 131, 1) variable.language
#5E6B6B RGB(94, 107, 107) RGBA(94, 107, 107, 1) variable.name
#634683 RGB(99, 70, 131) RGBA(99, 70, 131, 1) variable.other
#5780A6 RGB(87, 128, 166) RGBA(87, 128, 166, 1) variable.other.constant
#56A5A4 RGB(86, 165, 164) RGBA(86, 165, 164, 1) variable.other.property
#5780A6 RGB(87, 128, 166) RGBA(87, 128, 166, 1) variable.other.readwrite
#5780A6 RGB(87, 128, 166) RGBA(87, 128, 166, 1) variable.parameter
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1)