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
monokate
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
#97937F RGB(151, 147, 127) RGBA(151, 147, 127, 1) comment.block
#97937F RGB(151, 147, 127) RGBA(151, 147, 127, 1) comment.block.documentation
#97937F RGB(151, 147, 127) RGBA(151, 147, 127, 1) comment.line
#97937F RGB(151, 147, 127) RGBA(151, 147, 127, 1) constant
#9AA83A RGB(154, 168, 58) RGBA(154, 168, 58, 1) constant.character
#AC58FF RGB(172, 88, 255) RGBA(172, 88, 255, 1) constant.character.escape
#AC58FF RGB(172, 88, 255) RGBA(172, 88, 255, 1) constant.numeric
#AC58FF RGB(172, 88, 255) RGBA(172, 88, 255, 1) constant.numeric.integer
#AC58FF RGB(172, 88, 255) RGBA(172, 88, 255, 1) constant.numeric.float
#AC58FF RGB(172, 88, 255) RGBA(172, 88, 255, 1) constant.numeric.hex
#AC58FF RGB(172, 88, 255) RGBA(172, 88, 255, 1) constant.numeric.octal
#AC58FF RGB(172, 88, 255) RGBA(172, 88, 255, 1) constant.other
#AC58FF RGB(172, 88, 255) RGBA(172, 88, 255, 1) constant.other.placeholder
#AC58FF RGB(172, 88, 255) RGBA(172, 88, 255, 1) entity
#FFFF63 RGB(255, 255, 99) RGBA(255, 255, 99, 1) entity.name
#FFFF63 RGB(255, 255, 99) RGBA(255, 255, 99, 1) entity.name.class
#82C600 RGB(130, 198, 0) RGBA(130, 198, 0, 1) entity.name.function
#E99500 RGB(233, 149, 0) RGBA(233, 149, 0, 1) entity.name.tag
#914BD5 RGB(145, 75, 213) RGBA(145, 75, 213, 1) entity.other
#85AC3A RGB(133, 172, 58) RGBA(133, 172, 58, 1) entity.other.attribute-name
#D5AEFF RGB(213, 174, 255) RGBA(213, 174, 255, 1) entity.other.inherited-class
#82C600 RGB(130, 198, 0) RGBA(130, 198, 0, 1) invalid
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) invalid.deprecated
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword
#E95293 RGB(233, 82, 147) RGBA(233, 82, 147, 1) keyword.control
#E95293 RGB(233, 82, 147) RGBA(233, 82, 147, 1) keyword.control.flow
#E95293 RGB(233, 82, 147) RGBA(233, 82, 147, 1) keyword.operator
#E95293 RGB(233, 82, 147) RGBA(233, 82, 147, 1) keyword.operator.new
#E95293 RGB(233, 82, 147) RGBA(233, 82, 147, 1) keyword.operator.assignment
#E95293 RGB(233, 82, 147) RGBA(233, 82, 147, 1) keyword.operator.arithmetic
#E95293 RGB(233, 82, 147) RGBA(233, 82, 147, 1) keyword.operator.logical
#E95293 RGB(233, 82, 147) RGBA(233, 82, 147, 1) keyword.other
#E95293 RGB(233, 82, 147) RGBA(233, 82, 147, 1) markup
#FFFF63 RGB(255, 255, 99) RGBA(255, 255, 99, 1) markup.changed
#FFFF63 RGB(255, 255, 99) RGBA(255, 255, 99, 1) markup.deleted
#FF5BA2 RGB(255, 91, 162) RGBA(255, 91, 162, 1) markup.inserted
#82C600 RGB(130, 198, 0) RGBA(130, 198, 0, 1) meta
#655C2D RGB(101, 92, 45) RGBA(101, 92, 45, 1) meta.selector
#85AC3A RGB(133, 172, 58) RGBA(133, 172, 58, 1) meta.tag
#D8A2E6 RGB(216, 162, 230) RGBA(216, 162, 230, 1) punctuation.definition.string.begin
#9AA83A RGB(154, 168, 58) RGBA(154, 168, 58, 1) punctuation.definition.string.end
#9AA83A RGB(154, 168, 58) RGBA(154, 168, 58, 1) storage
#FF5BA2 RGB(255, 91, 162) RGBA(255, 91, 162, 1) storage.modifier
#FF5BA2 RGB(255, 91, 162) RGBA(255, 91, 162, 1) storage.type
#83C2DB RGB(131, 194, 219) RGBA(131, 194, 219, 1) string
#F6F6F5 RGB(246, 246, 245) RGBA(246, 246, 245, 1) string.interpolated
#F6F6F5 RGB(246, 246, 245) RGBA(246, 246, 245, 1) string.other
#F6F6F5 RGB(246, 246, 245) RGBA(246, 246, 245, 1) string.quoted
#F6F6F5 RGB(246, 246, 245) RGBA(246, 246, 245, 1) string.quoted.double
#F6F6F5 RGB(246, 246, 245) RGBA(246, 246, 245, 1) string.quoted.other
#F6F6F5 RGB(246, 246, 245) RGBA(246, 246, 245, 1) string.quoted.single
#F6F6F5 RGB(246, 246, 245) RGBA(246, 246, 245, 1) string.quoted.triple
#F6F6F5 RGB(246, 246, 245) RGBA(246, 246, 245, 1) string.regexp
#F6F6F5 RGB(246, 246, 245) RGBA(246, 246, 245, 1) string.template
#F6F6F5 RGB(246, 246, 245) RGBA(246, 246, 245, 1) string.unquoted
#F6F6F5 RGB(246, 246, 245) RGBA(246, 246, 245, 1) support
#4DB1D8 RGB(77, 177, 216) RGBA(77, 177, 216, 1) support.class
#4DB1D8 RGB(77, 177, 216) RGBA(77, 177, 216, 1) support.constant
#4DB1D8 RGB(77, 177, 216) RGBA(77, 177, 216, 1) support.function
#4DB1D8 RGB(77, 177, 216) RGBA(77, 177, 216, 1) support.type
#4DB1D8 RGB(77, 177, 216) RGBA(77, 177, 216, 1) support.type.primitive
#4DB1D8 RGB(77, 177, 216) RGBA(77, 177, 216, 1) support.type.property-name
#4DB1D8 RGB(77, 177, 216) RGBA(77, 177, 216, 1) variable
#B7C6DA RGB(183, 198, 218) RGBA(183, 198, 218, 1) variable.function
#B7C6DA RGB(183, 198, 218) RGBA(183, 198, 218, 1) variable.language
#B7C6DA RGB(183, 198, 218) RGBA(183, 198, 218, 1) variable.name
#B7C6DA RGB(183, 198, 218) RGBA(183, 198, 218, 1) variable.other
#B7C6DA RGB(183, 198, 218) RGBA(183, 198, 218, 1) variable.other.constant
#B7C6DA RGB(183, 198, 218) RGBA(183, 198, 218, 1) variable.other.property
#B7C6DA RGB(183, 198, 218) RGBA(183, 198, 218, 1) variable.other.readwrite
#B7C6DA RGB(183, 198, 218) RGBA(183, 198, 218, 1) variable.parameter
#85AC3A RGB(133, 172, 58) RGBA(133, 172, 58, 1)