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
Lucid
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#1C1D20 RGB(28, 29, 32) RGBA(28, 29, 32, 1) editor.foreground
#CFCFCF RGB(207, 207, 207) RGBA(207, 207, 207, 1)
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
#737373 RGB(115, 115, 115) RGBA(115, 115, 115, 1) comment.block
#737373 RGB(115, 115, 115) RGBA(115, 115, 115, 1) comment.block.documentation
#737373 RGB(115, 115, 115) RGBA(115, 115, 115, 1) comment.line
#737373 RGB(115, 115, 115) RGBA(115, 115, 115, 1) constant
#FFBF69 RGB(255, 191, 105) RGBA(255, 191, 105, 1) constant.character
#FFBF69 RGB(255, 191, 105) RGBA(255, 191, 105, 1) constant.character.escape
#FFBF69 RGB(255, 191, 105) RGBA(255, 191, 105, 1) constant.numeric
#FFBF69 RGB(255, 191, 105) RGBA(255, 191, 105, 1) constant.numeric.integer
#FFBF69 RGB(255, 191, 105) RGBA(255, 191, 105, 1) constant.numeric.float
#FFBF69 RGB(255, 191, 105) RGBA(255, 191, 105, 1) constant.numeric.hex
#FFBF69 RGB(255, 191, 105) RGBA(255, 191, 105, 1) constant.numeric.octal
#FFBF69 RGB(255, 191, 105) RGBA(255, 191, 105, 1) constant.other
#FFBF69 RGB(255, 191, 105) RGBA(255, 191, 105, 1) constant.other.placeholder
#FFBF69 RGB(255, 191, 105) RGBA(255, 191, 105, 1) entity
#FFBF69 RGB(255, 191, 105) RGBA(255, 191, 105, 1) entity.name
#FFBF69 RGB(255, 191, 105) RGBA(255, 191, 105, 1) entity.name.function
#FFBF69 RGB(255, 191, 105) RGBA(255, 191, 105, 1) entity.name.tag
#A49EB1 RGB(164, 158, 177) RGBA(164, 158, 177, 1) entity.name.type
#9EA8F7 RGB(158, 168, 247) RGBA(158, 168, 247, 1) entity.name.type.enum
#9EA8F7 RGB(158, 168, 247) RGBA(158, 168, 247, 1) entity.name.type.interface
#9EA8F7 RGB(158, 168, 247) RGBA(158, 168, 247, 1) entity.name.type.struct
#9EA8F7 RGB(158, 168, 247) RGBA(158, 168, 247, 1) entity.other
#FFBF69 RGB(255, 191, 105) RGBA(255, 191, 105, 1) entity.other.attribute-name
#FFBF69 RGB(255, 191, 105) RGBA(255, 191, 105, 1) entity.other.inherited-class
#FFBF69 RGB(255, 191, 105) RGBA(255, 191, 105, 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
#A49EB1 RGB(164, 158, 177) RGBA(164, 158, 177, 1) keyword.control
#A49EB1 RGB(164, 158, 177) RGBA(164, 158, 177, 1) keyword.control.flow
#A49EB1 RGB(164, 158, 177) RGBA(164, 158, 177, 1) keyword.operator
#A49EB1 RGB(164, 158, 177) RGBA(164, 158, 177, 1) keyword.operator.new
#A49EB1 RGB(164, 158, 177) RGBA(164, 158, 177, 1) keyword.operator.assignment
#A49EB1 RGB(164, 158, 177) RGBA(164, 158, 177, 1) keyword.operator.arithmetic
#A49EB1 RGB(164, 158, 177) RGBA(164, 158, 177, 1) keyword.operator.logical
#A49EB1 RGB(164, 158, 177) RGBA(164, 158, 177, 1) keyword.other
#A49EB1 RGB(164, 158, 177) RGBA(164, 158, 177, 1) markup
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) markup.changed
#00D68E RGB(0, 214, 142) RGBA(0, 214, 142, 1) markup.deleted
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) meta
#75715E RGB(117, 113, 94) RGBA(117, 113, 94, 1) punctuation.definition.bracket
#A49EB1 RGB(164, 158, 177) RGBA(164, 158, 177, 1) punctuation.definition.comment
#737373 RGB(115, 115, 115) RGBA(115, 115, 115, 1) punctuation.definition.string.begin
#00D68E RGB(0, 214, 142) RGBA(0, 214, 142, 1) punctuation.definition.string.end
#00D68E RGB(0, 214, 142) RGBA(0, 214, 142, 1) punctuation.separator
#A49EB1 RGB(164, 158, 177) RGBA(164, 158, 177, 1) punctuation.separator.continuation
#A49EB1 RGB(164, 158, 177) RGBA(164, 158, 177, 1) punctuation.terminator
#A49EB1 RGB(164, 158, 177) RGBA(164, 158, 177, 1) storage
#A49EB1 RGB(164, 158, 177) RGBA(164, 158, 177, 1) storage.modifier
#A49EB1 RGB(164, 158, 177) RGBA(164, 158, 177, 1) storage.type
#A49EB1 RGB(164, 158, 177) RGBA(164, 158, 177, 1) string
#00D68E RGB(0, 214, 142) RGBA(0, 214, 142, 1) string.interpolated
#00D68E RGB(0, 214, 142) RGBA(0, 214, 142, 1) string.other
#00D68E RGB(0, 214, 142) RGBA(0, 214, 142, 1) string.quoted
#00D68E RGB(0, 214, 142) RGBA(0, 214, 142, 1) string.quoted.double
#00D68E RGB(0, 214, 142) RGBA(0, 214, 142, 1) string.quoted.other
#00D68E RGB(0, 214, 142) RGBA(0, 214, 142, 1) string.quoted.single
#00D68E RGB(0, 214, 142) RGBA(0, 214, 142, 1) string.quoted.triple
#00D68E RGB(0, 214, 142) RGBA(0, 214, 142, 1) string.regexp
#00D68E RGB(0, 214, 142) RGBA(0, 214, 142, 1) string.template
#00D68E RGB(0, 214, 142) RGBA(0, 214, 142, 1) string.unquoted
#00D68E RGB(0, 214, 142) RGBA(0, 214, 142, 1) support
#9EA8F7 RGB(158, 168, 247) RGBA(158, 168, 247, 1) support.class
#A49EB1 RGB(164, 158, 177) RGBA(164, 158, 177, 1) support.function
#9EA8F7 RGB(158, 168, 247) RGBA(158, 168, 247, 1) support.type
#A49EB1 RGB(164, 158, 177) RGBA(164, 158, 177, 1) support.type.primitive
#A49EB1 RGB(164, 158, 177) RGBA(164, 158, 177, 1) support.type.property-name
#A49EB1 RGB(164, 158, 177) RGBA(164, 158, 177, 1) variable
#D6788C RGB(214, 120, 140) RGBA(214, 120, 140, 1) variable.function
#D6788C RGB(214, 120, 140) RGBA(214, 120, 140, 1) variable.language
#A49EB1 RGB(164, 158, 177) RGBA(164, 158, 177, 1) variable.name
#D6788C RGB(214, 120, 140) RGBA(214, 120, 140, 1) variable.other
#D6788C RGB(214, 120, 140) RGBA(214, 120, 140, 1) variable.other.constant
#D6788C RGB(214, 120, 140) RGBA(214, 120, 140, 1) variable.other.property
#D6788C RGB(214, 120, 140) RGBA(214, 120, 140, 1) variable.other.readwrite
#D6788C RGB(214, 120, 140) RGBA(214, 120, 140, 1) variable.parameter
#D6788C RGB(214, 120, 140) RGBA(214, 120, 140, 1)