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
Tropical
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
#B6B8BD RGB(182, 184, 189) RGBA(182, 184, 189, 1) comment.block
#B6B8BD RGB(182, 184, 189) RGBA(182, 184, 189, 1) comment.block.documentation
#B6B8BD RGB(182, 184, 189) RGBA(182, 184, 189, 1) comment.line
#B6B8BD RGB(182, 184, 189) RGBA(182, 184, 189, 1) constant
#5BE9FB RGB(91, 233, 251) RGBA(91, 233, 251, 1) constant.character
#5BE9FB RGB(91, 233, 251) RGBA(91, 233, 251, 1) constant.character.escape
#5BE9FB RGB(91, 233, 251) RGBA(91, 233, 251, 1) constant.numeric
#CDFFA3 RGB(205, 255, 163) RGBA(205, 255, 163, 1) constant.numeric.integer
#CDFFA3 RGB(205, 255, 163) RGBA(205, 255, 163, 1) constant.numeric.float
#CDFFA3 RGB(205, 255, 163) RGBA(205, 255, 163, 1) constant.numeric.hex
#CDFFA3 RGB(205, 255, 163) RGBA(205, 255, 163, 1) constant.numeric.octal
#CDFFA3 RGB(205, 255, 163) RGBA(205, 255, 163, 1) constant.other
#5BE9FB RGB(91, 233, 251) RGBA(91, 233, 251, 1) constant.other.placeholder
#5BE9FB RGB(91, 233, 251) RGBA(91, 233, 251, 1) entity
#E5C07B RGB(229, 192, 123) RGBA(229, 192, 123, 1) entity.name
#E5C07B RGB(229, 192, 123) RGBA(229, 192, 123, 1) entity.name.class
#FF8C69 RGB(255, 140, 105) RGBA(255, 140, 105, 1) entity.name.function
#73F99A RGB(115, 249, 154) RGBA(115, 249, 154, 1) entity.name.tag
#E5848C RGB(229, 132, 140) RGBA(229, 132, 140, 1) entity.name.type
#FF8C69 RGB(255, 140, 105) RGBA(255, 140, 105, 1) entity.name.type.enum
#FF8C69 RGB(255, 140, 105) RGBA(255, 140, 105, 1) entity.name.type.interface
#FF8C69 RGB(255, 140, 105) RGBA(255, 140, 105, 1) entity.name.type.struct
#FF8C69 RGB(255, 140, 105) RGBA(255, 140, 105, 1) entity.other
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) entity.other.attribute-name
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) entity.other.inherited-class
#83E83C RGB(131, 232, 60) RGBA(131, 232, 60, 1) invalid
#B4BAB85A RGB(180, 186, 184) RGBA(180, 186, 184, 0.353) invalid.deprecated
#F8F8F0 RGB(248, 248, 240) RGBA(248, 248, 240, 1) invalid.illegal
#B4BAB85A RGB(180, 186, 184) RGBA(180, 186, 184, 0.353) keyword
#E73844 RGB(231, 56, 68) RGBA(231, 56, 68, 1) keyword.control
#E73844 RGB(231, 56, 68) RGBA(231, 56, 68, 1) keyword.control.flow
#E73844 RGB(231, 56, 68) RGBA(231, 56, 68, 1) keyword.operator
#DF1A29 RGB(223, 26, 41) RGBA(223, 26, 41, 1) keyword.operator.new
#DF1A29 RGB(223, 26, 41) RGBA(223, 26, 41, 1) keyword.operator.assignment
#DF1A29 RGB(223, 26, 41) RGBA(223, 26, 41, 1) keyword.operator.arithmetic
#DF1A29 RGB(223, 26, 41) RGBA(223, 26, 41, 1) keyword.operator.logical
#E73844 RGB(231, 56, 68) RGBA(231, 56, 68, 1) keyword.other
#E73844 RGB(231, 56, 68) RGBA(231, 56, 68, 1) markup
#E5C07B RGB(229, 192, 123) RGBA(229, 192, 123, 1) markup.changed
#E5C07B RGB(229, 192, 123) RGBA(229, 192, 123, 1) markup.deleted
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) markup.inserted
#E5C07B RGB(229, 192, 123) RGBA(229, 192, 123, 1) meta
#75715E RGB(117, 113, 94) RGBA(117, 113, 94, 1) storage
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) storage.modifier
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) storage.type
#FF32D6 RGB(255, 50, 214) RGBA(255, 50, 214, 1) string
#F5F27C RGB(245, 242, 124) RGBA(245, 242, 124, 1) string.interpolated
#F5F27C RGB(245, 242, 124) RGBA(245, 242, 124, 1) string.other
#F5F27C RGB(245, 242, 124) RGBA(245, 242, 124, 1) string.quoted
#F5F27C RGB(245, 242, 124) RGBA(245, 242, 124, 1) string.quoted.double
#F5F27C RGB(245, 242, 124) RGBA(245, 242, 124, 1) string.quoted.other
#F5F27C RGB(245, 242, 124) RGBA(245, 242, 124, 1) string.quoted.single
#F5F27C RGB(245, 242, 124) RGBA(245, 242, 124, 1) string.quoted.triple
#F5F27C RGB(245, 242, 124) RGBA(245, 242, 124, 1) string.regexp
#F5F27C RGB(245, 242, 124) RGBA(245, 242, 124, 1) string.template
#F5F27C RGB(245, 242, 124) RGBA(245, 242, 124, 1) string.unquoted
#F5F27C RGB(245, 242, 124) RGBA(245, 242, 124, 1) support
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) support.class
#FF8C69 RGB(255, 140, 105) RGBA(255, 140, 105, 1) support.constant
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) support.function
#73F99A RGB(115, 249, 154) RGBA(115, 249, 154, 1) support.type
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) support.type.primitive
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) support.type.property-name
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) support.variable
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) variable
#E5C07B RGB(229, 192, 123) RGBA(229, 192, 123, 1) variable.language
#8B5EFE RGB(139, 94, 254) RGBA(139, 94, 254, 1) variable.other
#C5D9FF RGB(197, 217, 255) RGBA(197, 217, 255, 1) variable.other.property
#C5D9FF RGB(197, 217, 255) RGBA(197, 217, 255, 1) variable.parameter
#AAFF53 RGB(170, 255, 83) RGBA(170, 255, 83, 1)