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
Alpenglow - Monokai
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
#797979 RGB(121, 121, 121) RGBA(121, 121, 121, 1) comment.block
#797979 RGB(121, 121, 121) RGBA(121, 121, 121, 1) comment.block.documentation
#797979 RGB(121, 121, 121) RGBA(121, 121, 121, 1) comment.line
#797979 RGB(121, 121, 121) RGBA(121, 121, 121, 1) constant
#9E86C8 RGB(158, 134, 200) RGBA(158, 134, 200, 1) constant.character
#9E86C8 RGB(158, 134, 200) RGBA(158, 134, 200, 1) constant.character.escape
#9E86C8 RGB(158, 134, 200) RGBA(158, 134, 200, 1) constant.numeric
#9E86C8 RGB(158, 134, 200) RGBA(158, 134, 200, 1) constant.numeric.integer
#9E86C8 RGB(158, 134, 200) RGBA(158, 134, 200, 1) constant.numeric.float
#9E86C8 RGB(158, 134, 200) RGBA(158, 134, 200, 1) constant.numeric.hex
#9E86C8 RGB(158, 134, 200) RGBA(158, 134, 200, 1) constant.numeric.octal
#9E86C8 RGB(158, 134, 200) RGBA(158, 134, 200, 1) constant.other
#9E86C8 RGB(158, 134, 200) RGBA(158, 134, 200, 1) constant.other.placeholder
#9E86C8 RGB(158, 134, 200) RGBA(158, 134, 200, 1) entity
#E5B567 RGB(229, 181, 103) RGBA(229, 181, 103, 1) entity.name
#E5B567 RGB(229, 181, 103) RGBA(229, 181, 103, 1) entity.name.class
#B4C973 RGB(180, 201, 115) RGBA(180, 201, 115, 1) entity.name.function
#B4C973 RGB(180, 201, 115) RGBA(180, 201, 115, 1) entity.name.tag
#B05279 RGB(176, 82, 121) RGBA(176, 82, 121, 1) entity.name.type
#B4C973 RGB(180, 201, 115) RGBA(180, 201, 115, 1) entity.other
#B4C973 RGB(180, 201, 115) RGBA(180, 201, 115, 1) entity.other.attribute-name
#B4C973 RGB(180, 201, 115) RGBA(180, 201, 115, 1) entity.other.inherited-class
#B4C973 RGB(180, 201, 115) RGBA(180, 201, 115, 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
#B05279 RGB(176, 82, 121) RGBA(176, 82, 121, 1) keyword.control
#B05279 RGB(176, 82, 121) RGBA(176, 82, 121, 1) keyword.control.flow
#B05279 RGB(176, 82, 121) RGBA(176, 82, 121, 1) keyword.operator
#B05279 RGB(176, 82, 121) RGBA(176, 82, 121, 1) keyword.operator.new
#B05279 RGB(176, 82, 121) RGBA(176, 82, 121, 1) keyword.operator.assignment
#B05279 RGB(176, 82, 121) RGBA(176, 82, 121, 1) keyword.operator.arithmetic
#B05279 RGB(176, 82, 121) RGBA(176, 82, 121, 1) keyword.operator.logical
#B05279 RGB(176, 82, 121) RGBA(176, 82, 121, 1) keyword.other
#B05279 RGB(176, 82, 121) RGBA(176, 82, 121, 1) markup
#EFF1F5 RGB(239, 241, 245) RGBA(239, 241, 245, 1) markup.bold
#E87D3E RGB(232, 125, 62) RGBA(232, 125, 62, 1) markup.changed
#E5B567 RGB(229, 181, 103) RGBA(229, 181, 103, 1) markup.deleted
#B05279 RGB(176, 82, 121) RGBA(176, 82, 121, 1) markup.inserted
#B4C973 RGB(180, 201, 115) RGBA(180, 201, 115, 1) markup.italic
#B05279 RGB(176, 82, 121) RGBA(176, 82, 121, 1) meta
#767676 RGB(118, 118, 118) RGBA(118, 118, 118, 1) storage
#B05279 RGB(176, 82, 121) RGBA(176, 82, 121, 1) storage.modifier
#B05279 RGB(176, 82, 121) RGBA(176, 82, 121, 1) storage.type
#6C99BB RGB(108, 153, 187) RGBA(108, 153, 187, 1) string
#E5B567 RGB(229, 181, 103) RGBA(229, 181, 103, 1) string.interpolated
#E5B567 RGB(229, 181, 103) RGBA(229, 181, 103, 1) string.other
#E5B567 RGB(229, 181, 103) RGBA(229, 181, 103, 1) string.quoted
#E5B567 RGB(229, 181, 103) RGBA(229, 181, 103, 1) string.quoted.double
#E5B567 RGB(229, 181, 103) RGBA(229, 181, 103, 1) string.quoted.other
#E5B567 RGB(229, 181, 103) RGBA(229, 181, 103, 1) string.quoted.single
#E5B567 RGB(229, 181, 103) RGBA(229, 181, 103, 1) string.quoted.triple
#E5B567 RGB(229, 181, 103) RGBA(229, 181, 103, 1) string.regexp
#E5B567 RGB(229, 181, 103) RGBA(229, 181, 103, 1) string.template
#E5B567 RGB(229, 181, 103) RGBA(229, 181, 103, 1) string.unquoted
#E5B567 RGB(229, 181, 103) RGBA(229, 181, 103, 1) support
#6C99BB RGB(108, 153, 187) RGBA(108, 153, 187, 1) support.class
#6C99BB RGB(108, 153, 187) RGBA(108, 153, 187, 1) support.constant
#6C99BB RGB(108, 153, 187) RGBA(108, 153, 187, 1) support.function
#6C99BB RGB(108, 153, 187) RGBA(108, 153, 187, 1) support.type
#6C99BB RGB(108, 153, 187) RGBA(108, 153, 187, 1) support.type.primitive
#6C99BB RGB(108, 153, 187) RGBA(108, 153, 187, 1) support.type.property-name
#6C99BB RGB(108, 153, 187) RGBA(108, 153, 187, 1) variable
#E87D3E RGB(232, 125, 62) RGBA(232, 125, 62, 1) variable.other
#E87D3E RGB(232, 125, 62) RGBA(232, 125, 62, 1) variable.other.readwrite
#E87D3E RGB(232, 125, 62) RGBA(232, 125, 62, 1) variable.parameter
#E87D3E RGB(232, 125, 62) RGBA(232, 125, 62, 1)