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
Base16 Spacegray
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) editor.background
#222222 RGB(34, 34, 34) RGBA(34, 34, 34, 1) editor.foreground
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) sideBarTitle.foreground
#99CC99 RGB(153, 204, 153) RGBA(153, 204, 153, 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
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) comment.block
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) comment.block.documentation
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) comment.line
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) constant
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) constant.character
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) constant.character.escape
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) constant.numeric
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) constant.numeric.integer
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) constant.numeric.float
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) constant.numeric.hex
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) constant.numeric.octal
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) constant.other
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) constant.other.placeholder
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) entity
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) entity.name
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) entity.name.class
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) entity.name.function
#8FA1B3 RGB(143, 161, 179) RGBA(143, 161, 179, 1) entity.name.method
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) entity.name.namespace
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) entity.name.section
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) entity.name.selector
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) entity.name.tag
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) entity.name.type
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) entity.name.type.enum
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) entity.name.type.interface
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) entity.name.type.struct
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) entity.other
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) entity.other.attribute-name
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) entity.other.inherited-class
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) invalid
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) invalid.deprecated
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) invalid.illegal
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) keyword
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) keyword.control
#8FA1B3 RGB(143, 161, 179) RGBA(143, 161, 179, 1) keyword.control.flow
#8FA1B3 RGB(143, 161, 179) RGBA(143, 161, 179, 1) keyword.operator
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) keyword.operator.new
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) keyword.operator.assignment
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) keyword.operator.arithmetic
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) keyword.operator.logical
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) keyword.other
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) markup
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) markup.bold
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) markup.changed
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) markup.deleted
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) markup.heading
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) markup.inline.raw
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) markup.inserted
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) markup.italic
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) markup.raw
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) markup.underline
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) markup.underline.link
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) meta
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) meta.tag
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) punctuation.definition.bracket
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) punctuation.definition.comment
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) punctuation.definition.string.begin
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) punctuation.definition.string.end
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) punctuation.separator
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) punctuation.separator.continuation
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) punctuation.terminator
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) storage
#8FA1B3 RGB(143, 161, 179) RGBA(143, 161, 179, 1) storage.modifier
#B48EAD RGB(180, 142, 173) RGBA(180, 142, 173, 1) storage.type
#B48EAD RGB(180, 142, 173) RGBA(180, 142, 173, 1) string
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) string.interpolated
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) string.other
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) string.quoted
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) string.quoted.double
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) string.quoted.other
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) string.quoted.single
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) string.quoted.triple
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) string.regexp
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) string.template
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) string.unquoted
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) support
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) support.class
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) support.constant
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) support.function
#8FA1B3 RGB(143, 161, 179) RGBA(143, 161, 179, 1) support.other
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) support.type
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) support.type.primitive
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) support.type.property-name
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) variable
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) variable.function
#8FA1B3 RGB(143, 161, 179) RGBA(143, 161, 179, 1) variable.language
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) variable.name
#BF616A RGB(191, 97, 106) RGBA(191, 97, 106, 1) variable.other
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) variable.other.constant
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) variable.other.property
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) variable.other.readwrite
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1) variable.parameter
#C0C5CE RGB(192, 197, 206) RGBA(192, 197, 206, 1)