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
feel_good
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
#5B727F RGB(91, 114, 127) RGBA(91, 114, 127, 1) comment.block
#5B727F RGB(91, 114, 127) RGBA(91, 114, 127, 1) comment.block.documentation
#5B727F RGB(91, 114, 127) RGBA(91, 114, 127, 1) comment.line
#5B727F RGB(91, 114, 127) RGBA(91, 114, 127, 1) constant
#8AC7FA RGB(138, 199, 250) RGBA(138, 199, 250, 1) constant.character
#8AC7FA RGB(138, 199, 250) RGBA(138, 199, 250, 1) constant.character.escape
#8AC7FA RGB(138, 199, 250) RGBA(138, 199, 250, 1) constant.numeric
#74B8F9 RGB(116, 184, 249) RGBA(116, 184, 249, 1) constant.numeric.integer
#74B8F9 RGB(116, 184, 249) RGBA(116, 184, 249, 1) constant.numeric.float
#74B8F9 RGB(116, 184, 249) RGBA(116, 184, 249, 1) constant.numeric.hex
#74B8F9 RGB(116, 184, 249) RGBA(116, 184, 249, 1) constant.numeric.octal
#74B8F9 RGB(116, 184, 249) RGBA(116, 184, 249, 1) constant.other
#8AC7FA RGB(138, 199, 250) RGBA(138, 199, 250, 1) constant.other.placeholder
#8AC7FA RGB(138, 199, 250) RGBA(138, 199, 250, 1) entity
#89E99C RGB(137, 233, 156) RGBA(137, 233, 156, 1) entity.name
#FF785F RGB(255, 120, 95) RGBA(255, 120, 95, 1) entity.name.class
#73E286 RGB(115, 226, 134) RGBA(115, 226, 134, 1) entity.name.function
#1DBFA2 RGB(29, 191, 162) RGBA(29, 191, 162, 1) entity.name.tag
#FF785F RGB(255, 120, 95) RGBA(255, 120, 95, 1) entity.other
#89E99C RGB(137, 233, 156) RGBA(137, 233, 156, 1) entity.other.attribute-name
#89E99C RGB(137, 233, 156) RGBA(137, 233, 156, 1) entity.other.inherited-class
#7EE691 RGB(126, 230, 145) RGBA(126, 230, 145, 1) invalid
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) invalid.deprecated
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) invalid.illegal
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) keyword
#FF624A RGB(255, 98, 74) RGBA(255, 98, 74, 1) keyword.control
#FF624A RGB(255, 98, 74) RGBA(255, 98, 74, 1) keyword.control.flow
#FF624A RGB(255, 98, 74) RGBA(255, 98, 74, 1) keyword.operator
#FF624A RGB(255, 98, 74) RGBA(255, 98, 74, 1) keyword.operator.new
#FF624A RGB(255, 98, 74) RGBA(255, 98, 74, 1) keyword.operator.assignment
#FF624A RGB(255, 98, 74) RGBA(255, 98, 74, 1) keyword.operator.arithmetic
#FF624A RGB(255, 98, 74) RGBA(255, 98, 74, 1) keyword.operator.logical
#FF624A RGB(255, 98, 74) RGBA(255, 98, 74, 1) keyword.other
#FF624A RGB(255, 98, 74) RGBA(255, 98, 74, 1) storage
#FF6D54 RGB(255, 109, 84) RGBA(255, 109, 84, 1) storage.modifier
#FF6D54 RGB(255, 109, 84) RGBA(255, 109, 84, 1) storage.type
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) string
#FFAAAA RGB(255, 170, 170) RGBA(255, 170, 170, 1) string.interpolated
#FFAAAA RGB(255, 170, 170) RGBA(255, 170, 170, 1) string.other
#FFAAAA RGB(255, 170, 170) RGBA(255, 170, 170, 1) string.quoted
#FFAAAA RGB(255, 170, 170) RGBA(255, 170, 170, 1) string.quoted.double
#FFAAAA RGB(255, 170, 170) RGBA(255, 170, 170, 1) string.quoted.other
#FFAAAA RGB(255, 170, 170) RGBA(255, 170, 170, 1) string.quoted.single
#FFAAAA RGB(255, 170, 170) RGBA(255, 170, 170, 1) string.quoted.triple
#FFAAAA RGB(255, 170, 170) RGBA(255, 170, 170, 1) string.regexp
#FFAAAA RGB(255, 170, 170) RGBA(255, 170, 170, 1) string.template
#FFAAAA RGB(255, 170, 170) RGBA(255, 170, 170, 1) string.unquoted
#FFAAAA RGB(255, 170, 170) RGBA(255, 170, 170, 1) support
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) support.class
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.constant
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.function
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.other
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) support.type
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.type.primitive
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.type.property-name
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) variable
#1FC6AB RGB(31, 198, 171) RGBA(31, 198, 171, 1) variable.function
#1FC6AB RGB(31, 198, 171) RGBA(31, 198, 171, 1) variable.language
#1FC6AB RGB(31, 198, 171) RGBA(31, 198, 171, 1) variable.name
#1FC6AB RGB(31, 198, 171) RGBA(31, 198, 171, 1) variable.other
#1FC6AB RGB(31, 198, 171) RGBA(31, 198, 171, 1) variable.other.constant
#1FC6AB RGB(31, 198, 171) RGBA(31, 198, 171, 1) variable.other.property
#1FC6AB RGB(31, 198, 171) RGBA(31, 198, 171, 1) variable.other.readwrite
#1FC6AB RGB(31, 198, 171) RGBA(31, 198, 171, 1) variable.parameter
#FCC048 RGB(252, 192, 72) RGBA(252, 192, 72, 1)