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
DarkCF
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
#51B6C3 RGB(81, 182, 195) RGBA(81, 182, 195, 1) constant.character
#51B6C3 RGB(81, 182, 195) RGBA(81, 182, 195, 1) constant.character.escape
#51B6C3 RGB(81, 182, 195) RGBA(81, 182, 195, 1) constant.numeric
#FF8000 RGB(255, 128, 0) RGBA(255, 128, 0, 1) constant.numeric.integer
#FF8000 RGB(255, 128, 0) RGBA(255, 128, 0, 1) constant.numeric.float
#FF8000 RGB(255, 128, 0) RGBA(255, 128, 0, 1) constant.numeric.hex
#FF8000 RGB(255, 128, 0) RGBA(255, 128, 0, 1) constant.numeric.octal
#FF8000 RGB(255, 128, 0) RGBA(255, 128, 0, 1) constant.other
#D29B62 RGB(210, 155, 98) RGBA(210, 155, 98, 1) constant.other.placeholder
#D29B62 RGB(210, 155, 98) RGBA(210, 155, 98, 1) constant.regexp
#51B6C3 RGB(81, 182, 195) RGBA(81, 182, 195, 1) constant.rgb-value
#51B6C3 RGB(81, 182, 195) RGBA(81, 182, 195, 1) entity
#51B6C3 RGB(81, 182, 195) RGBA(81, 182, 195, 1) entity.name
#51B6C3 RGB(81, 182, 195) RGBA(81, 182, 195, 1) entity.name.function
#51B6C3 RGB(81, 182, 195) RGBA(81, 182, 195, 1) entity.name.tag
#E06C6E RGB(224, 108, 110) RGBA(224, 108, 110, 1) entity.name.type
#51B6C3 RGB(81, 182, 195) RGBA(81, 182, 195, 1) entity.other
#97C46E RGB(151, 196, 110) RGBA(151, 196, 110, 1) entity.other.attribute-name
#CB9361 RGB(203, 147, 97) RGBA(203, 147, 97, 1) invalid
#EEE8D5 RGB(238, 232, 213) RGBA(238, 232, 213, 1) invalid.deprecated
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) invalid.illegal
#EEE8D5 RGB(238, 232, 213) RGBA(238, 232, 213, 1) keyword
#C775DF RGB(199, 117, 223) RGBA(199, 117, 223, 1) keyword.control
#51B6C3 RGB(81, 182, 195) RGBA(81, 182, 195, 1) keyword.control.flow
#51B6C3 RGB(81, 182, 195) RGBA(81, 182, 195, 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
#C775DF RGB(199, 117, 223) RGBA(199, 117, 223, 1) markup
#00AAFF RGB(0, 170, 255) RGBA(0, 170, 255, 1) markup.bold
#657B83 RGB(101, 123, 131) RGBA(101, 123, 131, 1) markup.heading
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) markup.italic
#657B83 RGB(101, 123, 131) RGBA(101, 123, 131, 1) markup.list
#B58900 RGB(181, 137, 0) RGBA(181, 137, 0, 1) markup.list.numbered
#B58900 RGB(181, 137, 0) RGBA(181, 137, 0, 1) markup.list.unnumbered
#B58900 RGB(181, 137, 0) RGBA(181, 137, 0, 1) markup.quote
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) markup.raw
#2AA198 RGB(42, 161, 152) RGBA(42, 161, 152, 1) markup.underline
#00AAFF RGB(0, 170, 255) RGBA(0, 170, 255, 1) markup.underline.link
#00AAFF RGB(0, 170, 255) RGBA(0, 170, 255, 1) meta
#97C46E RGB(151, 196, 110) RGBA(151, 196, 110, 1) meta.selector
#CC9B62 RGB(204, 155, 98) RGBA(204, 155, 98, 1) meta.tag
#EB4949 RGB(235, 73, 73) RGBA(235, 73, 73, 1) punctuation.definition.comment
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) punctuation.separator
#ABB2C0 RGB(171, 178, 192) RGBA(171, 178, 192, 1) punctuation.terminator
#90A8DB RGB(144, 168, 219) RGBA(144, 168, 219, 1) storage
#C775DF RGB(199, 117, 223) RGBA(199, 117, 223, 1) storage.modifier
#C775DF RGB(199, 117, 223) RGBA(199, 117, 223, 1) storage.type
#C775DF RGB(199, 117, 223) RGBA(199, 117, 223, 1) string
#E26B6F RGB(226, 107, 111) RGBA(226, 107, 111, 1) string.quoted
#E26B6F RGB(226, 107, 111) RGBA(226, 107, 111, 1) string.quoted.double
#E26B6F RGB(226, 107, 111) RGBA(226, 107, 111, 1) string.quoted.single
#97C46E RGB(151, 196, 110) RGBA(151, 196, 110, 1) string.regexp
#97C46E RGB(151, 196, 110) RGBA(151, 196, 110, 1) string.unquoted
#97C46E RGB(151, 196, 110) RGBA(151, 196, 110, 1) support
#ABAD9B RGB(171, 173, 155) RGBA(171, 173, 155, 1) support.constant
#828998 RGB(130, 137, 152) RGBA(130, 137, 152, 1) support.function
#51B6C3 RGB(81, 182, 195) RGBA(81, 182, 195, 1) support.type
#ABAD9B RGB(171, 173, 155) RGBA(171, 173, 155, 1) support.type.property-name
#ABAD9B RGB(171, 173, 155) RGBA(171, 173, 155, 1) variable
#51B6C3 RGB(81, 182, 195) RGBA(81, 182, 195, 1) variable.function
#51B6C3 RGB(81, 182, 195) RGBA(81, 182, 195, 1) variable.language
#51B6C3 RGB(81, 182, 195) RGBA(81, 182, 195, 1) variable.name
#51B6C3 RGB(81, 182, 195) RGBA(81, 182, 195, 1) variable.other
#D29B62 RGB(210, 155, 98) RGBA(210, 155, 98, 1) variable.other.constant
#D29B62 RGB(210, 155, 98) RGBA(210, 155, 98, 1) variable.other.property
#D29B62 RGB(210, 155, 98) RGBA(210, 155, 98, 1) variable.other.readwrite
#D29B62 RGB(210, 155, 98) RGBA(210, 155, 98, 1) variable.parameter
#51B6C3 RGB(81, 182, 195) RGBA(81, 182, 195, 1)