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
BetterJS
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
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) comment.block
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) comment.block.documentation
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) comment.line
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) constant
#B0E658 RGB(176, 230, 88) RGBA(176, 230, 88, 1) constant.character
#DEE090 RGB(222, 224, 144) RGBA(222, 224, 144, 1) constant.character.escape
#E6647C RGB(230, 100, 124) RGBA(230, 100, 124, 1) constant.numeric
#26A673 RGB(38, 166, 115) RGBA(38, 166, 115, 1) constant.numeric.integer
#26A673 RGB(38, 166, 115) RGBA(38, 166, 115, 1) constant.numeric.float
#26A673 RGB(38, 166, 115) RGBA(38, 166, 115, 1) constant.numeric.hex
#26A673 RGB(38, 166, 115) RGBA(38, 166, 115, 1) constant.numeric.octal
#26A673 RGB(38, 166, 115) RGBA(38, 166, 115, 1) constant.other
#3DFF7D RGB(61, 255, 125) RGBA(61, 255, 125, 1) entity
#E67E7E RGB(230, 126, 126) RGBA(230, 126, 126, 1) entity.name
#E67E7E RGB(230, 126, 126) RGBA(230, 126, 126, 1) entity.name.class
#FFFFB3 RGB(255, 255, 179) RGBA(255, 255, 179, 1) entity.name.function
#CCA898 RGB(204, 168, 152) RGBA(204, 168, 152, 1) entity.name.method
#D8DEE9 RGB(216, 222, 233) RGBA(216, 222, 233, 1) entity.name.tag
#EB606B RGB(235, 96, 107) RGBA(235, 96, 107, 1) entity.name.type
#FFFFB3 RGB(255, 255, 179) RGBA(255, 255, 179, 1) entity.other
#E67E7E RGB(230, 126, 126) RGBA(230, 126, 126, 1) entity.other.attribute-name
#D5EBB3 RGB(213, 235, 179) RGBA(213, 235, 179, 1) entity.other.inherited-class
#3DFF7D RGB(61, 255, 125) RGBA(61, 255, 125, 1) keyword
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword.control
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword.control.flow
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword.operator
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword.operator.new
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword.operator.assignment
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword.operator.arithmetic
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword.operator.logical
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword.other
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) markup
#8AD4E6 RGB(138, 212, 230) RGBA(138, 212, 230, 1) markup.changed
#D67E84 RGB(214, 126, 132) RGBA(214, 126, 132, 1) markup.deleted
#EC5F67 RGB(236, 95, 103) RGBA(236, 95, 103, 1) markup.heading
#3DFF7D RGB(61, 255, 125) RGBA(61, 255, 125, 1) markup.inserted
#99C794 RGB(153, 199, 148) RGBA(153, 199, 148, 1) meta
#46ACDB RGB(70, 172, 219) RGBA(70, 172, 219, 1) meta.function-call
#CCA898 RGB(204, 168, 152) RGBA(204, 168, 152, 1) meta.tag
#EB606B RGB(235, 96, 107) RGBA(235, 96, 107, 1) punctuation.definition.comment
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) punctuation.separator
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) storage
#0DCBFF RGB(13, 203, 255) RGBA(13, 203, 255, 1) storage.type
#0DCBFF RGB(13, 203, 255) RGBA(13, 203, 255, 1) string
#3DFF7D RGB(61, 255, 125) RGBA(61, 255, 125, 1) string.interpolated
#3DFF7D RGB(61, 255, 125) RGBA(61, 255, 125, 1) string.other
#3DFF7D RGB(61, 255, 125) RGBA(61, 255, 125, 1) string.quoted
#3DFF7D RGB(61, 255, 125) RGBA(61, 255, 125, 1) string.quoted.double
#3DFF7D RGB(61, 255, 125) RGBA(61, 255, 125, 1) string.quoted.other
#3DFF7D RGB(61, 255, 125) RGBA(61, 255, 125, 1) string.quoted.single
#3DFF7D RGB(61, 255, 125) RGBA(61, 255, 125, 1) string.quoted.triple
#3DFF7D RGB(61, 255, 125) RGBA(61, 255, 125, 1) string.regexp
#C939ED RGB(201, 57, 237) RGBA(201, 57, 237, 1) string.template
#3DFF7D RGB(61, 255, 125) RGBA(61, 255, 125, 1) string.unquoted
#3DFF7D RGB(61, 255, 125) RGBA(61, 255, 125, 1) support
#46ACDB RGB(70, 172, 219) RGBA(70, 172, 219, 1) support.class
#FFFFB3 RGB(255, 255, 179) RGBA(255, 255, 179, 1) support.constant
#DEE090 RGB(222, 224, 144) RGBA(222, 224, 144, 1) support.function
#CCA898 RGB(204, 168, 152) RGBA(204, 168, 152, 1) support.other
#FFFFB3 RGB(255, 255, 179) RGBA(255, 255, 179, 1) support.type
#FFFFB3 RGB(255, 255, 179) RGBA(255, 255, 179, 1) support.type.primitive
#FFFFB3 RGB(255, 255, 179) RGBA(255, 255, 179, 1) support.type.property-name
#FFFFB3 RGB(255, 255, 179) RGBA(255, 255, 179, 1) variable
#E6647C RGB(230, 100, 124) RGBA(230, 100, 124, 1) variable.function
#E6647C RGB(230, 100, 124) RGBA(230, 100, 124, 1) variable.language
#EDE15F RGB(237, 225, 95) RGBA(237, 225, 95, 1) variable.name
#E6647C RGB(230, 100, 124) RGBA(230, 100, 124, 1) variable.other
#E6647C RGB(230, 100, 124) RGBA(230, 100, 124, 1) variable.other.constant
#E6647C RGB(230, 100, 124) RGBA(230, 100, 124, 1) variable.other.property
#E6647C RGB(230, 100, 124) RGBA(230, 100, 124, 1) variable.other.readwrite
#E6647C RGB(230, 100, 124) RGBA(230, 100, 124, 1) variable.parameter
#DEE090 RGB(222, 224, 144) RGBA(222, 224, 144, 1)