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
dimmed-monokai-no-contrast
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
#707070 RGB(112, 112, 112) RGBA(112, 112, 112, 1) comment.block
#707070 RGB(112, 112, 112) RGBA(112, 112, 112, 1) comment.block.documentation
#707070 RGB(112, 112, 112) RGBA(112, 112, 112, 1) comment.line
#707070 RGB(112, 112, 112) RGBA(112, 112, 112, 1) constant
#565C2F RGB(86, 92, 47) RGBA(86, 92, 47, 1) constant.character
#5F7D86 RGB(95, 125, 134) RGBA(95, 125, 134, 1) constant.character.escape
#5F7D86 RGB(95, 125, 134) RGBA(95, 125, 134, 1) constant.numeric
#505F70 RGB(80, 95, 112) RGBA(80, 95, 112, 1) constant.numeric.integer
#505F70 RGB(80, 95, 112) RGBA(80, 95, 112, 1) constant.numeric.float
#505F70 RGB(80, 95, 112) RGBA(80, 95, 112, 1) constant.numeric.hex
#505F70 RGB(80, 95, 112) RGBA(80, 95, 112, 1) constant.numeric.octal
#505F70 RGB(80, 95, 112) RGBA(80, 95, 112, 1) constant.other
#5F7D86 RGB(95, 125, 134) RGBA(95, 125, 134, 1) constant.other.placeholder
#5F7D86 RGB(95, 125, 134) RGBA(95, 125, 134, 1) entity
#5F5F5F RGB(95, 95, 95) RGBA(95, 95, 95, 1) entity.name
#585858 RGB(88, 88, 88) RGBA(88, 88, 88, 1) entity.name.class
#603636 RGB(96, 54, 54) RGBA(96, 54, 54, 1) entity.name.function
#8C5C35 RGB(140, 92, 53) RGBA(140, 92, 53, 1) entity.name.tag
#505F70 RGB(80, 95, 112) RGBA(80, 95, 112, 1) entity.name.type
#603636 RGB(96, 54, 54) RGBA(96, 54, 54, 1) entity.other
#5F5F5F RGB(95, 95, 95) RGBA(95, 95, 95, 1) entity.other.attribute-name
#897836 RGB(137, 120, 54) RGBA(137, 120, 54, 1) entity.other.inherited-class
#7D3A3D RGB(125, 58, 61) RGBA(125, 58, 61, 1) invalid
#603737 RGB(96, 55, 55) RGBA(96, 55, 55, 1) invalid.deprecated
#603737 RGB(96, 55, 55) RGBA(96, 55, 55, 1) invalid.illegal
#603737 RGB(96, 55, 55) RGBA(96, 55, 55, 1) keyword
#868686 RGB(134, 134, 134) RGBA(134, 134, 134, 1) keyword.control
#5F5F5F RGB(95, 95, 95) RGBA(95, 95, 95, 1) keyword.control.flow
#5F5F5F RGB(95, 95, 95) RGBA(95, 95, 95, 1) keyword.operator
#868686 RGB(134, 134, 134) RGBA(134, 134, 134, 1) keyword.operator.new
#868686 RGB(134, 134, 134) RGBA(134, 134, 134, 1) keyword.operator.assignment
#868686 RGB(134, 134, 134) RGBA(134, 134, 134, 1) keyword.operator.arithmetic
#868686 RGB(134, 134, 134) RGBA(134, 134, 134, 1) keyword.operator.logical
#868686 RGB(134, 134, 134) RGBA(134, 134, 134, 1) keyword.other
#868686 RGB(134, 134, 134) RGBA(134, 134, 134, 1) meta
#D79842 RGB(215, 152, 66) RGBA(215, 152, 66, 1) meta.function-call
#505F70 RGB(80, 95, 112) RGBA(80, 95, 112, 1) meta.tag
#897836 RGB(137, 120, 54) RGBA(137, 120, 54, 1) punctuation.definition.string.begin
#897836 RGB(137, 120, 54) RGBA(137, 120, 54, 1) punctuation.definition.string.end
#897836 RGB(137, 120, 54) RGBA(137, 120, 54, 1) punctuation.separator
#505F70 RGB(80, 95, 112) RGBA(80, 95, 112, 1) storage
#5F5F5F RGB(95, 95, 95) RGBA(95, 95, 95, 1) storage.modifier
#5F5F5F RGB(95, 95, 95) RGBA(95, 95, 95, 1) storage.type
#5F5F5F RGB(95, 95, 95) RGBA(95, 95, 95, 1) string
#5A604B RGB(90, 96, 75) RGBA(90, 96, 75, 1) string.interpolated
#5A604B RGB(90, 96, 75) RGBA(90, 96, 75, 1) string.other
#5A604B RGB(90, 96, 75) RGBA(90, 96, 75, 1) string.quoted
#5A604B RGB(90, 96, 75) RGBA(90, 96, 75, 1) string.quoted.double
#5A604B RGB(90, 96, 75) RGBA(90, 96, 75, 1) string.quoted.other
#5A604B RGB(90, 96, 75) RGBA(90, 96, 75, 1) string.quoted.single
#5A604B RGB(90, 96, 75) RGBA(90, 96, 75, 1) string.quoted.triple
#5A604B RGB(90, 96, 75) RGBA(90, 96, 75, 1) string.regexp
#5A604B RGB(90, 96, 75) RGBA(90, 96, 75, 1) string.template
#5A604B RGB(90, 96, 75) RGBA(90, 96, 75, 1) string.unquoted
#5A604B RGB(90, 96, 75) RGBA(90, 96, 75, 1) support
#7D3A3D RGB(125, 58, 61) RGBA(125, 58, 61, 1) support.class
#7D3A3D RGB(125, 58, 61) RGBA(125, 58, 61, 1) support.constant
#7D3A3D RGB(125, 58, 61) RGBA(125, 58, 61, 1) support.function
#5F5F5F RGB(95, 95, 95) RGBA(95, 95, 95, 1) support.other
#7D3A3D RGB(125, 58, 61) RGBA(125, 58, 61, 1) support.type
#7D3A3D RGB(125, 58, 61) RGBA(125, 58, 61, 1) support.type.primitive
#7D3A3D RGB(125, 58, 61) RGBA(125, 58, 61, 1) support.type.property-name
#7D3A3D RGB(125, 58, 61) RGBA(125, 58, 61, 1) support.variable
#7D3A3D RGB(125, 58, 61) RGBA(125, 58, 61, 1) variable
#897836 RGB(137, 120, 54) RGBA(137, 120, 54, 1) variable.language
#897836 RGB(137, 120, 54) RGBA(137, 120, 54, 1) variable.other
#505F70 RGB(80, 95, 112) RGBA(80, 95, 112, 1) variable.other.constant
#505F70 RGB(80, 95, 112) RGBA(80, 95, 112, 1) variable.other.property
#5F5F5F RGB(95, 95, 95) RGBA(95, 95, 95, 1) variable.other.readwrite
#505F70 RGB(80, 95, 112) RGBA(80, 95, 112, 1) variable.parameter
#576B73 RGB(87, 107, 115) RGBA(87, 107, 115, 1)