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
Neon
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
#7F817E RGB(127, 129, 126) RGBA(127, 129, 126, 1) comment.block
#7F817E RGB(127, 129, 126) RGBA(127, 129, 126, 1) comment.block.documentation
#7F817E RGB(127, 129, 126) RGBA(127, 129, 126, 1) comment.line
#7F817E RGB(127, 129, 126) RGBA(127, 129, 126, 1) constant
#FFF203 RGB(255, 242, 3) RGBA(255, 242, 3, 1) constant.character
#FFF203 RGB(255, 242, 3) RGBA(255, 242, 3, 1) constant.character.escape
#AF35FF RGB(175, 53, 255) RGBA(175, 53, 255, 1) constant.numeric
#FF0604 RGB(255, 6, 4) RGBA(255, 6, 4, 1) constant.numeric.integer
#FF0604 RGB(255, 6, 4) RGBA(255, 6, 4, 1) constant.numeric.float
#FF0604 RGB(255, 6, 4) RGBA(255, 6, 4, 1) constant.numeric.hex
#FF0604 RGB(255, 6, 4) RGBA(255, 6, 4, 1) constant.numeric.octal
#FF0604 RGB(255, 6, 4) RGBA(255, 6, 4, 1) constant.other
#FFA325 RGB(255, 163, 37) RGBA(255, 163, 37, 1) constant.other.placeholder
#FFA325 RGB(255, 163, 37) RGBA(255, 163, 37, 1) constant.regexp
#FFF203 RGB(255, 242, 3) RGBA(255, 242, 3, 1) constant.rgb-value
#FFF203 RGB(255, 242, 3) RGBA(255, 242, 3, 1) entity
#FF6803 RGB(255, 104, 3) RGBA(255, 104, 3, 1) entity.name
#FF6803 RGB(255, 104, 3) RGBA(255, 104, 3, 1) entity.name.class
#CFFF01 RGB(207, 255, 1) RGBA(207, 255, 1, 1) entity.name.function
#10FF07 RGB(16, 255, 7) RGBA(16, 255, 7, 1) entity.name.method
#FF6803 RGB(255, 104, 3) RGBA(255, 104, 3, 1) entity.name.namespace
#FF6803 RGB(255, 104, 3) RGBA(255, 104, 3, 1) entity.name.section
#FF6803 RGB(255, 104, 3) RGBA(255, 104, 3, 1) entity.name.selector
#FF6803 RGB(255, 104, 3) RGBA(255, 104, 3, 1) entity.name.tag
#FF6803 RGB(255, 104, 3) RGBA(255, 104, 3, 1) entity.name.type
#FF6803 RGB(255, 104, 3) RGBA(255, 104, 3, 1) entity.name.type.enum
#FF6803 RGB(255, 104, 3) RGBA(255, 104, 3, 1) entity.name.type.interface
#FF6803 RGB(255, 104, 3) RGBA(255, 104, 3, 1) entity.name.type.struct
#FF6803 RGB(255, 104, 3) RGBA(255, 104, 3, 1) entity.other
#04FFD7 RGB(4, 255, 215) RGBA(4, 255, 215, 1) entity.other.attribute-name
#FF88F9 RGB(255, 136, 249) RGBA(255, 136, 249, 1) entity.other.inherited-class
#80FCFF RGB(128, 252, 255) RGBA(128, 252, 255, 1) invalid
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) invalid.deprecated
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) invalid.illegal
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword
#8189FF RGB(129, 137, 255) RGBA(129, 137, 255, 1) keyword.control
#8189FF RGB(129, 137, 255) RGBA(129, 137, 255, 1) keyword.control.flow
#8189FF RGB(129, 137, 255) RGBA(129, 137, 255, 1) keyword.operator
#8189FF RGB(129, 137, 255) RGBA(129, 137, 255, 1) keyword.operator.new
#8189FF RGB(129, 137, 255) RGBA(129, 137, 255, 1) keyword.operator.assignment
#FF6106 RGB(255, 97, 6) RGBA(255, 97, 6, 1) keyword.operator.arithmetic
#8189FF RGB(129, 137, 255) RGBA(129, 137, 255, 1) keyword.operator.logical
#8189FF RGB(129, 137, 255) RGBA(129, 137, 255, 1) keyword.other
#FF026A RGB(255, 2, 106) RGBA(255, 2, 106, 1) markup
#FFFF00 RGB(255, 255, 0) RGBA(255, 255, 0, 1) markup.bold
#FF9303 RGB(255, 147, 3) RGBA(255, 147, 3, 1) markup.changed
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) markup.deleted
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) markup.heading
#FDF503 RGB(253, 245, 3) RGBA(253, 245, 3, 1) markup.inserted
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) markup.italic
#FFF103 RGB(255, 241, 3) RGBA(255, 241, 3, 1) markup.raw
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) markup.underline
#8080FF RGB(128, 128, 255) RGBA(128, 128, 255, 1) markup.underline.link
#8080FF RGB(128, 128, 255) RGBA(128, 128, 255, 1) meta
#84F6C3 RGB(132, 246, 195) RGBA(132, 246, 195, 1) meta.class
#CFFF01 RGB(207, 255, 1) RGBA(207, 255, 1, 1) meta.function-call
#10FF02 RGB(16, 255, 2) RGBA(16, 255, 2, 1) meta.preprocessor
#A85E3D RGB(168, 94, 61) RGBA(168, 94, 61, 1) meta.selector
#84F6C3 RGB(132, 246, 195) RGBA(132, 246, 195, 1) meta.tag
#FF6803 RGB(255, 104, 3) RGBA(255, 104, 3, 1) punctuation.definition.bracket
#FF50F0 RGB(255, 80, 240) RGBA(255, 80, 240, 1) punctuation.definition.comment
#7F817E RGB(127, 129, 126) RGBA(127, 129, 126, 1) punctuation.definition.string.begin
#FF07A2 RGB(255, 7, 162) RGBA(255, 7, 162, 1) punctuation.definition.string.end
#FF07A2 RGB(255, 7, 162) RGBA(255, 7, 162, 1) punctuation.separator
#FF50F0 RGB(255, 80, 240) RGBA(255, 80, 240, 1) punctuation.separator.continuation
#FF50F0 RGB(255, 80, 240) RGBA(255, 80, 240, 1) punctuation.terminator
#FF50F0 RGB(255, 80, 240) RGBA(255, 80, 240, 1) storage
#05B4FF RGB(5, 180, 255) RGBA(5, 180, 255, 1) storage.modifier
#276AFF RGB(39, 106, 255) RGBA(39, 106, 255, 1) storage.type
#FF4101 RGB(255, 65, 1) RGBA(255, 65, 1, 1) string
#FF82EC RGB(255, 130, 236) RGBA(255, 130, 236, 1) string.interpolated
#FF82EC RGB(255, 130, 236) RGBA(255, 130, 236, 1) string.other
#FF82EC RGB(255, 130, 236) RGBA(255, 130, 236, 1) string.quoted
#FF82EC RGB(255, 130, 236) RGBA(255, 130, 236, 1) string.quoted.double
#FF82EC RGB(255, 130, 236) RGBA(255, 130, 236, 1) string.quoted.other
#FF82EC RGB(255, 130, 236) RGBA(255, 130, 236, 1) string.quoted.single
#FF82EC RGB(255, 130, 236) RGBA(255, 130, 236, 1) string.quoted.triple
#FF82EC RGB(255, 130, 236) RGBA(255, 130, 236, 1) string.regexp
#FFE4A6 RGB(255, 228, 166) RGBA(255, 228, 166, 1) string.template
#FF82EC RGB(255, 130, 236) RGBA(255, 130, 236, 1) string.unquoted
#FF82EC RGB(255, 130, 236) RGBA(255, 130, 236, 1) support
#F57C0E RGB(245, 124, 14) RGBA(245, 124, 14, 1) support.class
#CFFF01 RGB(207, 255, 1) RGBA(207, 255, 1, 1) support.constant
#EB939A RGB(235, 147, 154) RGBA(235, 147, 154, 1) support.function
#E5A5FF RGB(229, 165, 255) RGBA(229, 165, 255, 1) support.other
#82C537 RGB(130, 197, 55) RGBA(130, 197, 55, 1) support.type
#F57C0E RGB(245, 124, 14) RGBA(245, 124, 14, 1) support.type.primitive
#F57C0E RGB(245, 124, 14) RGBA(245, 124, 14, 1) support.type.property-name
#F57C0E RGB(245, 124, 14) RGBA(245, 124, 14, 1) support.variable
#0A4AFF RGB(10, 74, 255) RGBA(10, 74, 255, 1) variable
#EF9975 RGB(239, 153, 117) RGBA(239, 153, 117, 1) variable.function
#EF9975 RGB(239, 153, 117) RGBA(239, 153, 117, 1) variable.language
#0AEDFF RGB(10, 237, 255) RGBA(10, 237, 255, 1) variable.name
#EF9975 RGB(239, 153, 117) RGBA(239, 153, 117, 1) variable.other
#D285CC RGB(210, 133, 204) RGBA(210, 133, 204, 1) variable.other.constant
#FFA325 RGB(255, 163, 37) RGBA(255, 163, 37, 1) variable.other.property
#AA00AA RGB(170, 0, 170) RGBA(170, 0, 170, 1) variable.other.readwrite
#D285CC RGB(210, 133, 204) RGBA(210, 133, 204, 1) variable.parameter
#EF9975 RGB(239, 153, 117) RGBA(239, 153, 117, 1)