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
Monokai Gravity
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
#696969 RGB(105, 105, 105) RGBA(105, 105, 105, 1) comment.block
#696969 RGB(105, 105, 105) RGBA(105, 105, 105, 1) comment.block.documentation
#696969 RGB(105, 105, 105) RGBA(105, 105, 105, 1) comment.line
#696969 RGB(105, 105, 105) RGBA(105, 105, 105, 1) constant
#67A9B5 RGB(103, 169, 181) RGBA(103, 169, 181, 1) constant.character
#BE84FF RGB(190, 132, 255) RGBA(190, 132, 255, 1) constant.character.escape
#BE84FF RGB(190, 132, 255) RGBA(190, 132, 255, 1) constant.numeric
#BE84FF RGB(190, 132, 255) RGBA(190, 132, 255, 1) constant.numeric.integer
#BE84FF RGB(190, 132, 255) RGBA(190, 132, 255, 1) constant.numeric.float
#BE84FF RGB(190, 132, 255) RGBA(190, 132, 255, 1) constant.numeric.hex
#BE84FF RGB(190, 132, 255) RGBA(190, 132, 255, 1) constant.numeric.octal
#BE84FF RGB(190, 132, 255) RGBA(190, 132, 255, 1) constant.other
#BE84FF RGB(190, 132, 255) RGBA(190, 132, 255, 1) constant.other.placeholder
#BE84FF RGB(190, 132, 255) RGBA(190, 132, 255, 1) constant.regexp
#67A9B5 RGB(103, 169, 181) RGBA(103, 169, 181, 1) constant.rgb-value
#67A9B5 RGB(103, 169, 181) RGBA(103, 169, 181, 1) entity
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) entity.name
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 1) entity.name.class
#A4C267 RGB(164, 194, 103) RGBA(164, 194, 103, 1) entity.name.function
#A4C267 RGB(164, 194, 103) RGBA(164, 194, 103, 1) entity.name.method
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 1) entity.name.namespace
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 1) entity.name.section
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 1) entity.name.selector
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 1) entity.name.tag
#E13E79 RGB(225, 62, 121) RGBA(225, 62, 121, 1) entity.name.type
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 1) entity.name.type.enum
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 1) entity.name.type.interface
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 1) entity.name.type.struct
#FD971F RGB(253, 151, 31) RGBA(253, 151, 31, 1) entity.other
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) entity.other.attribute-name
#A4C267 RGB(164, 194, 103) RGBA(164, 194, 103, 1) entity.other.inherited-class
#A4C267 RGB(164, 194, 103) RGBA(164, 194, 103, 1) invalid
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) invalid.deprecated
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) keyword
#E13E79 RGB(225, 62, 121) RGBA(225, 62, 121, 1) keyword.control
#E13E79 RGB(225, 62, 121) RGBA(225, 62, 121, 1) keyword.control.flow
#E13E79 RGB(225, 62, 121) RGBA(225, 62, 121, 1) keyword.operator
#E13E79 RGB(225, 62, 121) RGBA(225, 62, 121, 1) keyword.operator.new
#E13E79 RGB(225, 62, 121) RGBA(225, 62, 121, 1) keyword.operator.assignment
#E13E79 RGB(225, 62, 121) RGBA(225, 62, 121, 1) keyword.operator.arithmetic
#E13E79 RGB(225, 62, 121) RGBA(225, 62, 121, 1) keyword.operator.logical
#E13E79 RGB(225, 62, 121) RGBA(225, 62, 121, 1) keyword.other
#E13E79 RGB(225, 62, 121) RGBA(225, 62, 121, 1) markup
#565656 RGB(86, 86, 86) RGBA(86, 86, 86, 1) markup.bold
#E13E79 RGB(225, 62, 121) RGBA(225, 62, 121, 1) markup.changed
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) markup.deleted
#E13E79 RGB(225, 62, 121) RGBA(225, 62, 121, 1) markup.inserted
#A4C267 RGB(164, 194, 103) RGBA(164, 194, 103, 1) markup.italic
#E42E70 RGB(228, 46, 112) RGBA(228, 46, 112, 1) markup.quote
#67A9B5 RGB(103, 169, 181) RGBA(103, 169, 181, 1) markup.raw
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) markup.underline
#A4C267 RGB(164, 194, 103) RGBA(164, 194, 103, 1) markup.underline.link
#A4C267 RGB(164, 194, 103) RGBA(164, 194, 103, 1) meta
#67A9B5 RGB(103, 169, 181) RGBA(103, 169, 181, 1) meta.class
#A4C267 RGB(164, 194, 103) RGBA(164, 194, 103, 1) meta.function
#67A9B5 RGB(103, 169, 181) RGBA(103, 169, 181, 1) meta.function-call
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) meta.preprocessor
#BE84FF RGB(190, 132, 255) RGBA(190, 132, 255, 1) meta.tag
#A4C267 RGB(164, 194, 103) RGBA(164, 194, 103, 1) punctuation.definition.comment
#696969 RGB(105, 105, 105) RGBA(105, 105, 105, 1) punctuation.definition.string.begin
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) punctuation.definition.string.end
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) punctuation.separator
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) punctuation.terminator
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) storage
#E13E79 RGB(225, 62, 121) RGBA(225, 62, 121, 1) storage.modifier
#E13E79 RGB(225, 62, 121) RGBA(225, 62, 121, 1) storage.type
#67A9B5 RGB(103, 169, 181) RGBA(103, 169, 181, 1) string
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) string.interpolated
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) string.other
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) string.quoted
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) string.quoted.double
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) string.quoted.other
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) string.quoted.single
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) string.quoted.triple
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) string.regexp
#F6AA11 RGB(246, 170, 17) RGBA(246, 170, 17, 1) string.template
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) string.unquoted
#C8CECC RGB(200, 206, 204) RGBA(200, 206, 204, 1) support
#A4C267 RGB(164, 194, 103) RGBA(164, 194, 103, 1) support.class
#67A9B5 RGB(103, 169, 181) RGBA(103, 169, 181, 1) support.constant
#67A9B5 RGB(103, 169, 181) RGBA(103, 169, 181, 1) support.function
#67A9B5 RGB(103, 169, 181) RGBA(103, 169, 181, 1) support.type
#67A9B5 RGB(103, 169, 181) RGBA(103, 169, 181, 1) support.type.primitive
#67A9B5 RGB(103, 169, 181) RGBA(103, 169, 181, 1) support.type.property-name
#67A9B5 RGB(103, 169, 181) RGBA(103, 169, 181, 1) variable
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) variable.function
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) variable.language
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) variable.name
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) variable.other
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) variable.other.constant
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) variable.other.property
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) variable.other.readwrite
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) variable.parameter
#DC9138 RGB(220, 145, 56) RGBA(220, 145, 56, 1)