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
TwoStones
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
#B87F62 RGB(184, 127, 98) RGBA(184, 127, 98, 1) comment.block
#B87F62 RGB(184, 127, 98) RGBA(184, 127, 98, 1) comment.block.documentation
#B87F62 RGB(184, 127, 98) RGBA(184, 127, 98, 1) comment.line
#B87F62 RGB(184, 127, 98) RGBA(184, 127, 98, 1) constant
#41BC8E RGB(65, 188, 142) RGBA(65, 188, 142, 1) constant.character
#41BC8E RGB(65, 188, 142) RGBA(65, 188, 142, 1) constant.character.escape
#41BC8E RGB(65, 188, 142) RGBA(65, 188, 142, 1) constant.numeric
#00ACF6 RGB(0, 172, 246) RGBA(0, 172, 246, 1) constant.numeric.integer
#00ACF6 RGB(0, 172, 246) RGBA(0, 172, 246, 1) constant.numeric.float
#00ACF6 RGB(0, 172, 246) RGBA(0, 172, 246, 1) constant.numeric.hex
#00ACF6 RGB(0, 172, 246) RGBA(0, 172, 246, 1) constant.numeric.octal
#00ACF6 RGB(0, 172, 246) RGBA(0, 172, 246, 1) constant.other
#41BC8E RGB(65, 188, 142) RGBA(65, 188, 142, 1) constant.other.placeholder
#41BC8E RGB(65, 188, 142) RGBA(65, 188, 142, 1) entity
#FF8E30 RGB(255, 142, 48) RGBA(255, 142, 48, 1) entity.name
#00ACF6 RGB(0, 172, 246) RGBA(0, 172, 246, 1) entity.name.class
#AFE61D RGB(175, 230, 29) RGBA(175, 230, 29, 1) entity.name.function
#27C3CA RGB(39, 195, 202) RGBA(39, 195, 202, 1) entity.name.tag
#00ACF6 RGB(0, 172, 246) RGBA(0, 172, 246, 1) entity.other
#FF8E30 RGB(255, 142, 48) RGBA(255, 142, 48, 1) entity.other.attribute-name
#FF8E30 RGB(255, 142, 48) RGBA(255, 142, 48, 1) entity.other.inherited-class
#AFE61D RGB(175, 230, 29) RGBA(175, 230, 29, 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
#FF8E30 RGB(255, 142, 48) RGBA(255, 142, 48, 1) keyword.control
#FF8E30 RGB(255, 142, 48) RGBA(255, 142, 48, 1) keyword.control.flow
#FF8E30 RGB(255, 142, 48) RGBA(255, 142, 48, 1) keyword.operator
#FF8E30 RGB(255, 142, 48) RGBA(255, 142, 48, 1) keyword.operator.new
#FF8E30 RGB(255, 142, 48) RGBA(255, 142, 48, 1) keyword.operator.assignment
#FF8E30 RGB(255, 142, 48) RGBA(255, 142, 48, 1) keyword.operator.arithmetic
#FF8E30 RGB(255, 142, 48) RGBA(255, 142, 48, 1) keyword.operator.logical
#FF8E30 RGB(255, 142, 48) RGBA(255, 142, 48, 1) keyword.other
#FF8E30 RGB(255, 142, 48) RGBA(255, 142, 48, 1) storage
#ECE41D RGB(236, 228, 29) RGBA(236, 228, 29, 1) storage.modifier
#ECE41D RGB(236, 228, 29) RGBA(236, 228, 29, 1) storage.type
#F2F2F2 RGB(242, 242, 242) RGBA(242, 242, 242, 1) string
#FBCE33 RGB(251, 206, 51) RGBA(251, 206, 51, 1) string.interpolated
#FBCE33 RGB(251, 206, 51) RGBA(251, 206, 51, 1) string.other
#FBCE33 RGB(251, 206, 51) RGBA(251, 206, 51, 1) string.quoted
#FBCE33 RGB(251, 206, 51) RGBA(251, 206, 51, 1) string.quoted.double
#FBCE33 RGB(251, 206, 51) RGBA(251, 206, 51, 1) string.quoted.other
#FBCE33 RGB(251, 206, 51) RGBA(251, 206, 51, 1) string.quoted.single
#FBCE33 RGB(251, 206, 51) RGBA(251, 206, 51, 1) string.quoted.triple
#FBCE33 RGB(251, 206, 51) RGBA(251, 206, 51, 1) string.regexp
#FBCE33 RGB(251, 206, 51) RGBA(251, 206, 51, 1) string.template
#FBCE33 RGB(251, 206, 51) RGBA(251, 206, 51, 1) string.unquoted
#FBCE33 RGB(251, 206, 51) RGBA(251, 206, 51, 1) support
#EABF4D RGB(234, 191, 77) RGBA(234, 191, 77, 1) support.class
#EABF4D RGB(234, 191, 77) RGBA(234, 191, 77, 1) support.constant
#FEFBF6 RGB(254, 251, 246) RGBA(254, 251, 246, 1) support.function
#27C3CA RGB(39, 195, 202) RGBA(39, 195, 202, 1) support.type
#EABF4D RGB(234, 191, 77) RGBA(234, 191, 77, 1) support.type.primitive
#EABF4D RGB(234, 191, 77) RGBA(234, 191, 77, 1) support.type.property-name
#EABF4D RGB(234, 191, 77) RGBA(234, 191, 77, 1) variable
#74D992 RGB(116, 217, 146) RGBA(116, 217, 146, 1) variable.function
#74D992 RGB(116, 217, 146) RGBA(116, 217, 146, 1) variable.language
#74D992 RGB(116, 217, 146) RGBA(116, 217, 146, 1) variable.name
#74D992 RGB(116, 217, 146) RGBA(116, 217, 146, 1) variable.other
#74D992 RGB(116, 217, 146) RGBA(116, 217, 146, 1) variable.other.constant
#74D992 RGB(116, 217, 146) RGBA(116, 217, 146, 1) variable.other.property
#74D992 RGB(116, 217, 146) RGBA(116, 217, 146, 1) variable.other.readwrite
#74D992 RGB(116, 217, 146) RGBA(116, 217, 146, 1) variable.parameter
#FD861F RGB(253, 134, 31) RGBA(253, 134, 31, 1)