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
GoldenDragon
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
#464646 RGB(70, 70, 70) RGBA(70, 70, 70, 1) comment.block
#464646 RGB(70, 70, 70) RGBA(70, 70, 70, 1) comment.block.documentation
#464646 RGB(70, 70, 70) RGBA(70, 70, 70, 1) comment.line
#464646 RGB(70, 70, 70) RGBA(70, 70, 70, 1) constant
#F1B98E RGB(241, 185, 142) RGBA(241, 185, 142, 1) constant.character
#F38630 RGB(243, 134, 48) RGBA(243, 134, 48, 1) constant.character.escape
#66CCCC RGB(102, 204, 204) RGBA(102, 204, 204, 1) constant.numeric
#CCA300 RGB(204, 163, 0) RGBA(204, 163, 0, 1) constant.numeric.integer
#CCA300 RGB(204, 163, 0) RGBA(204, 163, 0, 1) constant.numeric.float
#CCA300 RGB(204, 163, 0) RGBA(204, 163, 0, 1) constant.numeric.hex
#CCA300 RGB(204, 163, 0) RGBA(204, 163, 0, 1) constant.numeric.octal
#CCA300 RGB(204, 163, 0) RGBA(204, 163, 0, 1) constant.other
#F38630 RGB(243, 134, 48) RGBA(243, 134, 48, 1) constant.other.placeholder
#F38630 RGB(243, 134, 48) RGBA(243, 134, 48, 1) entity
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) entity.name
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) entity.name.class
#DFDFDF RGB(223, 223, 223) RGBA(223, 223, 223, 1) entity.name.function
#69D2E7 RGB(105, 210, 231) RGBA(105, 210, 231, 1) entity.name.tag
#F38630 RGB(243, 134, 48) RGBA(243, 134, 48, 1) entity.name.type
#BEBEBE RGB(190, 190, 190) RGBA(190, 190, 190, 1) entity.other
#CCA300 RGB(204, 163, 0) RGBA(204, 163, 0, 1) entity.other.attribute-name
#A7DBD8 RGB(167, 219, 216) RGBA(167, 219, 216, 1) entity.other.inherited-class
#69D2E7 RGB(105, 210, 231) RGBA(105, 210, 231, 1) keyword
#69D2E7 RGB(105, 210, 231) RGBA(105, 210, 231, 1) keyword.control
#69D2E7 RGB(105, 210, 231) RGBA(105, 210, 231, 1) keyword.control.flow
#69D2E7 RGB(105, 210, 231) RGBA(105, 210, 231, 1) keyword.operator
#F38630 RGB(243, 134, 48) RGBA(243, 134, 48, 1) keyword.operator.new
#F38630 RGB(243, 134, 48) RGBA(243, 134, 48, 1) keyword.operator.assignment
#F38630 RGB(243, 134, 48) RGBA(243, 134, 48, 1) keyword.operator.arithmetic
#F38630 RGB(243, 134, 48) RGBA(243, 134, 48, 1) keyword.operator.logical
#F38630 RGB(243, 134, 48) RGBA(243, 134, 48, 1) keyword.other
#69D2E7 RGB(105, 210, 231) RGBA(105, 210, 231, 1) markup
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) markup.changed
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) markup.deleted
#00A8C6 RGB(0, 168, 198) RGBA(0, 168, 198, 1) markup.inserted
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) meta
#75715E RGB(117, 113, 94) RGBA(117, 113, 94, 1) meta.function-call
#2EBF7E RGB(46, 191, 126) RGBA(46, 191, 126, 1) punctuation.definition.string.begin
#CFCFCF RGB(207, 207, 207) RGBA(207, 207, 207, 1) punctuation.definition.string.end
#CFCFCF RGB(207, 207, 207) RGBA(207, 207, 207, 1) punctuation.separator
#69D2E7 RGB(105, 210, 231) RGBA(105, 210, 231, 1) punctuation.terminator
#BEBEBE RGB(190, 190, 190) RGBA(190, 190, 190, 1) storage
#FA6900 RGB(250, 105, 0) RGBA(250, 105, 0, 1) storage.modifier
#FA6900 RGB(250, 105, 0) RGBA(250, 105, 0, 1) storage.type
#F38630 RGB(243, 134, 48) RGBA(243, 134, 48, 1) string
#F3AC9A RGB(243, 172, 154) RGBA(243, 172, 154, 1) string.interpolated
#F3AC9A RGB(243, 172, 154) RGBA(243, 172, 154, 1) string.other
#F3AC9A RGB(243, 172, 154) RGBA(243, 172, 154, 1) string.quoted
#F3AC9A RGB(243, 172, 154) RGBA(243, 172, 154, 1) string.quoted.double
#F3AC9A RGB(243, 172, 154) RGBA(243, 172, 154, 1) string.quoted.other
#F3AC9A RGB(243, 172, 154) RGBA(243, 172, 154, 1) string.quoted.single
#F3AC9A RGB(243, 172, 154) RGBA(243, 172, 154, 1) string.quoted.triple
#F3AC9A RGB(243, 172, 154) RGBA(243, 172, 154, 1) string.regexp
#66CCCC RGB(102, 204, 204) RGBA(102, 204, 204, 1) string.template
#F3AC9A RGB(243, 172, 154) RGBA(243, 172, 154, 1) string.unquoted
#F3AC9A RGB(243, 172, 154) RGBA(243, 172, 154, 1) support
#AEAEAE RGB(174, 174, 174) RGBA(174, 174, 174, 1) support.class
#F38630 RGB(243, 134, 48) RGBA(243, 134, 48, 1) support.constant
#F38630 RGB(243, 134, 48) RGBA(243, 134, 48, 1) support.function
#2EBF7E RGB(46, 191, 126) RGBA(46, 191, 126, 1) support.other
#DFDFDF RGB(223, 223, 223) RGBA(223, 223, 223, 1) support.type
#F38630 RGB(243, 134, 48) RGBA(243, 134, 48, 1) support.type.primitive
#F38630 RGB(243, 134, 48) RGBA(243, 134, 48, 1) support.type.property-name
#F38630 RGB(243, 134, 48) RGBA(243, 134, 48, 1) variable
#DFDFDF RGB(223, 223, 223) RGBA(223, 223, 223, 1) variable.function
#DFDFDF RGB(223, 223, 223) RGBA(223, 223, 223, 1) variable.language
#DFDFDF RGB(223, 223, 223) RGBA(223, 223, 223, 1) variable.name
#DFDFDF RGB(223, 223, 223) RGBA(223, 223, 223, 1) variable.other
#DFDFDF RGB(223, 223, 223) RGBA(223, 223, 223, 1) variable.other.constant
#DFDFDF RGB(223, 223, 223) RGBA(223, 223, 223, 1) variable.other.property
#DFDFDF RGB(223, 223, 223) RGBA(223, 223, 223, 1) variable.other.readwrite
#DFDFDF RGB(223, 223, 223) RGBA(223, 223, 223, 1) variable.parameter
#F38630 RGB(243, 134, 48) RGBA(243, 134, 48, 1)