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
Undertone Light
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA editor.background
#F5F5F5 RGB(245, 245, 245) RGBA(245, 245, 245, 1) editor.foreground
#333333 RGB(51, 51, 51) RGBA(51, 51, 51, 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
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) comment.block
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) comment.block.documentation
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) comment.line
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) constant
#386AC3 RGB(56, 106, 195) RGBA(56, 106, 195, 1) constant.character
#386AC3 RGB(56, 106, 195) RGBA(56, 106, 195, 1) constant.character.escape
#386AC3 RGB(56, 106, 195) RGBA(56, 106, 195, 1) constant.numeric
#619AC3 RGB(97, 154, 195) RGBA(97, 154, 195, 1) constant.numeric.integer
#619AC3 RGB(97, 154, 195) RGBA(97, 154, 195, 1) constant.numeric.float
#619AC3 RGB(97, 154, 195) RGBA(97, 154, 195, 1) constant.numeric.hex
#619AC3 RGB(97, 154, 195) RGBA(97, 154, 195, 1) constant.numeric.octal
#619AC3 RGB(97, 154, 195) RGBA(97, 154, 195, 1) constant.other
#386AC3 RGB(56, 106, 195) RGBA(56, 106, 195, 1) constant.other.placeholder
#386AC3 RGB(56, 106, 195) RGBA(56, 106, 195, 1) constant.regexp
#6B8E23 RGB(107, 142, 35) RGBA(107, 142, 35, 1) constant.rgb-value
#386AC3 RGB(56, 106, 195) RGBA(56, 106, 195, 1) entity
#8431C5 RGB(132, 49, 197) RGBA(132, 49, 197, 1) entity.name
#8431C5 RGB(132, 49, 197) RGBA(132, 49, 197, 1) entity.name.class
#8431C5 RGB(132, 49, 197) RGBA(132, 49, 197, 1) entity.name.function
#8431C5 RGB(132, 49, 197) RGBA(132, 49, 197, 1) entity.name.method
#8431C5 RGB(132, 49, 197) RGBA(132, 49, 197, 1) entity.name.namespace
#8431C5 RGB(132, 49, 197) RGBA(132, 49, 197, 1) entity.name.section
#8431C5 RGB(132, 49, 197) RGBA(132, 49, 197, 1) entity.name.selector
#8431C5 RGB(132, 49, 197) RGBA(132, 49, 197, 1) entity.name.tag
#386AC3 RGB(56, 106, 195) RGBA(56, 106, 195, 1) entity.name.type
#CD69C9 RGB(205, 105, 201) RGBA(205, 105, 201, 1) entity.name.type.enum
#CD69C9 RGB(205, 105, 201) RGBA(205, 105, 201, 1) entity.name.type.interface
#CD69C9 RGB(205, 105, 201) RGBA(205, 105, 201, 1) entity.name.type.struct
#CD69C9 RGB(205, 105, 201) RGBA(205, 105, 201, 1) entity.other
#8431C5 RGB(132, 49, 197) RGBA(132, 49, 197, 1) entity.other.attribute-name
#CD6889 RGB(205, 104, 137) RGBA(205, 104, 137, 1) entity.other.inherited-class
#8431C5 RGB(132, 49, 197) RGBA(132, 49, 197, 1) keyword
#386AC3 RGB(56, 106, 195) RGBA(56, 106, 195, 1) keyword.control
#386AC3 RGB(56, 106, 195) RGBA(56, 106, 195, 1) keyword.control.flow
#386AC3 RGB(56, 106, 195) RGBA(56, 106, 195, 1) keyword.operator
#386AC3 RGB(56, 106, 195) RGBA(56, 106, 195, 1) keyword.operator.new
#386AC3 RGB(56, 106, 195) RGBA(56, 106, 195, 1) keyword.operator.assignment
#386AC3 RGB(56, 106, 195) RGBA(56, 106, 195, 1) keyword.operator.arithmetic
#386AC3 RGB(56, 106, 195) RGBA(56, 106, 195, 1) keyword.operator.logical
#386AC3 RGB(56, 106, 195) RGBA(56, 106, 195, 1) keyword.other
#386AC3 RGB(56, 106, 195) RGBA(56, 106, 195, 1) markup
#565656 RGB(86, 86, 86) RGBA(86, 86, 86, 1) markup.changed
#967EFB RGB(150, 126, 251) RGBA(150, 126, 251, 1) markup.deleted
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) markup.inserted
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) meta
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) meta.class
#386AC3 RGB(56, 106, 195) RGBA(56, 106, 195, 1) meta.preprocessor
#386AC3 RGB(56, 106, 195) RGBA(56, 106, 195, 1) meta.tag
#535353 RGB(83, 83, 83) RGBA(83, 83, 83, 1) punctuation.separator
#535353 RGB(83, 83, 83) RGBA(83, 83, 83, 1) punctuation.terminator
#535353 RGB(83, 83, 83) RGBA(83, 83, 83, 1) storage
#386AC3 RGB(56, 106, 195) RGBA(56, 106, 195, 1) storage.modifier
#386AC3 RGB(56, 106, 195) RGBA(56, 106, 195, 1) storage.type
#386AC3 RGB(56, 106, 195) RGBA(56, 106, 195, 1) string
#6B8E23 RGB(107, 142, 35) RGBA(107, 142, 35, 1) string.interpolated
#6B8E23 RGB(107, 142, 35) RGBA(107, 142, 35, 1) string.other
#6B8E23 RGB(107, 142, 35) RGBA(107, 142, 35, 1) string.quoted
#6B8E23 RGB(107, 142, 35) RGBA(107, 142, 35, 1) string.quoted.double
#6B8E23 RGB(107, 142, 35) RGBA(107, 142, 35, 1) string.quoted.other
#6B8E23 RGB(107, 142, 35) RGBA(107, 142, 35, 1) string.quoted.single
#6B8E23 RGB(107, 142, 35) RGBA(107, 142, 35, 1) string.quoted.triple
#6B8E23 RGB(107, 142, 35) RGBA(107, 142, 35, 1) string.regexp
#6B8E23 RGB(107, 142, 35) RGBA(107, 142, 35, 1) string.template
#6B8E23 RGB(107, 142, 35) RGBA(107, 142, 35, 1) string.unquoted
#6B8E23 RGB(107, 142, 35) RGBA(107, 142, 35, 1) support
#12AA9C RGB(18, 170, 156) RGBA(18, 170, 156, 1) support.class
#6D8600 RGB(109, 134, 0) RGBA(109, 134, 0, 1) support.constant
#7B68EE RGB(123, 104, 238) RGBA(123, 104, 238, 1) support.function
#7B68EE RGB(123, 104, 238) RGBA(123, 104, 238, 1) support.type
#12AA9C RGB(18, 170, 156) RGBA(18, 170, 156, 1) support.type.primitive
#12AA9C RGB(18, 170, 156) RGBA(18, 170, 156, 1) support.type.property-name
#8431C5 RGB(132, 49, 197) RGBA(132, 49, 197, 1) variable
#353535 RGB(53, 53, 53) RGBA(53, 53, 53, 1) variable.function
#353535 RGB(53, 53, 53) RGBA(53, 53, 53, 1) variable.language
#353535 RGB(53, 53, 53) RGBA(53, 53, 53, 1) variable.name
#353535 RGB(53, 53, 53) RGBA(53, 53, 53, 1) variable.other
#353535 RGB(53, 53, 53) RGBA(53, 53, 53, 1) variable.other.constant
#353535 RGB(53, 53, 53) RGBA(53, 53, 53, 1) variable.other.property
#353535 RGB(53, 53, 53) RGBA(53, 53, 53, 1) variable.other.readwrite
#353535 RGB(53, 53, 53) RGBA(53, 53, 53, 1) variable.parameter
#C1651A RGB(193, 101, 26) RGBA(193, 101, 26, 1)