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
x4-alpha
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
#556552 RGB(85, 101, 82) RGBA(85, 101, 82, 1) comment.block
#556552 RGB(85, 101, 82) RGBA(85, 101, 82, 1) comment.block.documentation
#556552 RGB(85, 101, 82) RGBA(85, 101, 82, 1) comment.line
#556552 RGB(85, 101, 82) RGBA(85, 101, 82, 1) constant
#80A3B4 RGB(128, 163, 180) RGBA(128, 163, 180, 1) constant.character
#617CC3 RGB(97, 124, 195) RGBA(97, 124, 195, 1) constant.character.escape
#617CC3 RGB(97, 124, 195) RGBA(97, 124, 195, 1) constant.numeric
#93E5C0 RGB(147, 229, 192) RGBA(147, 229, 192, 1) constant.numeric.integer
#93E5C0 RGB(147, 229, 192) RGBA(147, 229, 192, 1) constant.numeric.float
#93E5C0 RGB(147, 229, 192) RGBA(147, 229, 192, 1) constant.numeric.hex
#93E5C0 RGB(147, 229, 192) RGBA(147, 229, 192, 1) constant.numeric.octal
#93E5C0 RGB(147, 229, 192) RGBA(147, 229, 192, 1) constant.other
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) constant.other.placeholder
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) entity
#D8D482 RGB(216, 212, 130) RGBA(216, 212, 130, 1) entity.name
#D8D482 RGB(216, 212, 130) RGBA(216, 212, 130, 1) entity.name.class
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) entity.name.function
#FFC77E RGB(255, 199, 126) RGBA(255, 199, 126, 1) entity.name.section
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) entity.name.tag
#4E99C9 RGB(78, 153, 201) RGBA(78, 153, 201, 1) entity.name.type
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) entity.other
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) entity.other.attribute-name
#96C2E1 RGB(150, 194, 225) RGBA(150, 194, 225, 1) entity.other.inherited-class
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 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
#58646E RGB(88, 100, 110) RGBA(88, 100, 110, 1) keyword.control
#69A1C8 RGB(105, 161, 200) RGBA(105, 161, 200, 1) keyword.control.flow
#69A1C8 RGB(105, 161, 200) RGBA(105, 161, 200, 1) keyword.operator
#69A1C8 RGB(105, 161, 200) RGBA(105, 161, 200, 1) keyword.operator.new
#69A1C8 RGB(105, 161, 200) RGBA(105, 161, 200, 1) keyword.operator.assignment
#69A1C8 RGB(105, 161, 200) RGBA(105, 161, 200, 1) keyword.operator.arithmetic
#69A1C8 RGB(105, 161, 200) RGBA(105, 161, 200, 1) keyword.operator.logical
#69A1C8 RGB(105, 161, 200) RGBA(105, 161, 200, 1) keyword.other
#58646E RGB(88, 100, 110) RGBA(88, 100, 110, 1) markup
#D8D482 RGB(216, 212, 130) RGBA(216, 212, 130, 1) markup.bold
#267FB5 RGB(38, 127, 181) RGBA(38, 127, 181, 1) markup.changed
#D8D482 RGB(216, 212, 130) RGBA(216, 212, 130, 1) markup.deleted
#00A8C6 RGB(0, 168, 198) RGBA(0, 168, 198, 1) markup.inserted
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) markup.italic
#267FB5 RGB(38, 127, 181) RGBA(38, 127, 181, 1) markup.raw
#00A8C6 RGB(0, 168, 198) RGBA(0, 168, 198, 1) markup.underline
#267FB5 RGB(38, 127, 181) RGBA(38, 127, 181, 1) markup.underline.link
#267FB5 RGB(38, 127, 181) RGBA(38, 127, 181, 1) meta
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) meta.block
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) meta.cast
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) meta.class
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) meta.function
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) meta.function-call
#FFC77E RGB(255, 199, 126) RGBA(255, 199, 126, 1) meta.preprocessor
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) meta.return-type
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) meta.selector
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) meta.tag
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) meta.type.annotation
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) meta.type
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) punctuation.definition.bracket
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) punctuation.definition.comment
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) punctuation.definition.string.begin
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) punctuation.definition.string.end
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) punctuation.separator
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) punctuation.separator.continuation
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) punctuation.terminator
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) storage
#4581AB RGB(69, 129, 171) RGBA(69, 129, 171, 1) storage.modifier
#4581AB RGB(69, 129, 171) RGBA(69, 129, 171, 1) storage.type
#4581AB RGB(69, 129, 171) RGBA(69, 129, 171, 1) string
#93E5C0 RGB(147, 229, 192) RGBA(147, 229, 192, 1) string.interpolated
#93E5C0 RGB(147, 229, 192) RGBA(147, 229, 192, 1) string.other
#93E5C0 RGB(147, 229, 192) RGBA(147, 229, 192, 1) string.quoted
#93E5C0 RGB(147, 229, 192) RGBA(147, 229, 192, 1) string.quoted.double
#93E5C0 RGB(147, 229, 192) RGBA(147, 229, 192, 1) string.quoted.other
#93E5C0 RGB(147, 229, 192) RGBA(147, 229, 192, 1) string.quoted.single
#93E5C0 RGB(147, 229, 192) RGBA(147, 229, 192, 1) string.quoted.triple
#93E5C0 RGB(147, 229, 192) RGBA(147, 229, 192, 1) string.regexp
#93E5C0 RGB(147, 229, 192) RGBA(147, 229, 192, 1) string.template
#93E5C0 RGB(147, 229, 192) RGBA(147, 229, 192, 1) string.unquoted
#93E5C0 RGB(147, 229, 192) RGBA(147, 229, 192, 1) support
#80A3B4 RGB(128, 163, 180) RGBA(128, 163, 180, 1) support.class
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) support.constant
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) support.function
#FFC77E RGB(255, 199, 126) RGBA(255, 199, 126, 1) support.type
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) support.type.primitive
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) support.type.property-name
#8CB5CC RGB(140, 181, 204) RGBA(140, 181, 204, 1) variable
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) variable.function
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) variable.language
#96C2E1 RGB(150, 194, 225) RGBA(150, 194, 225, 1) variable.name
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) variable.other
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) variable.other.constant
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) variable.other.property
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) variable.other.readwrite
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1) variable.parameter
#DDDDDD RGB(221, 221, 221) RGBA(221, 221, 221, 1)