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
Seafoam-Pastel-Light
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
#888888 RGB(136, 136, 136) RGBA(136, 136, 136, 1) comment.block
#888888 RGB(136, 136, 136) RGBA(136, 136, 136, 1) comment.block.documentation
#888888 RGB(136, 136, 136) RGBA(136, 136, 136, 1) comment.line
#888888 RGB(136, 136, 136) RGBA(136, 136, 136, 1) constant
#AE81FF87 RGB(174, 129, 255) RGBA(174, 129, 255, 0.529) constant.character
#AE81FF87 RGB(174, 129, 255) RGBA(174, 129, 255, 0.529) constant.character.escape
#AE81FF87 RGB(174, 129, 255) RGBA(174, 129, 255, 0.529) constant.numeric
#859B77 RGB(133, 155, 119) RGBA(133, 155, 119, 1) constant.numeric.integer
#859B77 RGB(133, 155, 119) RGBA(133, 155, 119, 1) constant.numeric.float
#859B77 RGB(133, 155, 119) RGBA(133, 155, 119, 1) constant.numeric.hex
#859B77 RGB(133, 155, 119) RGBA(133, 155, 119, 1) constant.numeric.octal
#859B77 RGB(133, 155, 119) RGBA(133, 155, 119, 1) constant.other
#AE81FF87 RGB(174, 129, 255) RGBA(174, 129, 255, 0.529) constant.other.placeholder
#AE81FF87 RGB(174, 129, 255) RGBA(174, 129, 255, 0.529) entity
#E6E6E6 RGB(230, 230, 230) RGBA(230, 230, 230, 1) entity.name
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) entity.name.class
#608D94 RGB(96, 141, 148) RGBA(96, 141, 148, 1) entity.name.function
#608D94 RGB(96, 141, 148) RGBA(96, 141, 148, 1) entity.name.tag
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) entity.other
#E6E6E6 RGB(230, 230, 230) RGBA(230, 230, 230, 1) entity.other.attribute-name
#E6E6E6 RGB(230, 230, 230) RGBA(230, 230, 230, 1) entity.other.inherited-class
#608D94 RGB(96, 141, 148) RGBA(96, 141, 148, 1) invalid
#E6E6E6 RGB(230, 230, 230) RGBA(230, 230, 230, 1) invalid.deprecated
#E6E6E6 RGB(230, 230, 230) RGBA(230, 230, 230, 1) invalid.illegal
#E6E6E6 RGB(230, 230, 230) RGBA(230, 230, 230, 1) keyword
#BBAF82 RGB(187, 175, 130) RGBA(187, 175, 130, 1) keyword.control
#BBAF82 RGB(187, 175, 130) RGBA(187, 175, 130, 1) keyword.control.flow
#BBAF82 RGB(187, 175, 130) RGBA(187, 175, 130, 1) keyword.operator
#BBAF82 RGB(187, 175, 130) RGBA(187, 175, 130, 1) keyword.operator.new
#BBAF82 RGB(187, 175, 130) RGBA(187, 175, 130, 1) keyword.operator.assignment
#BBAF82 RGB(187, 175, 130) RGBA(187, 175, 130, 1) keyword.operator.arithmetic
#BBAF82 RGB(187, 175, 130) RGBA(187, 175, 130, 1) keyword.operator.logical
#BBAF82 RGB(187, 175, 130) RGBA(187, 175, 130, 1) keyword.other
#BBAF82 RGB(187, 175, 130) RGBA(187, 175, 130, 1) storage
#BBAF82 RGB(187, 175, 130) RGBA(187, 175, 130, 1) storage.modifier
#BBAF82 RGB(187, 175, 130) RGBA(187, 175, 130, 1) storage.type
#947061 RGB(148, 112, 97) RGBA(148, 112, 97, 1) string
#2F434582 RGB(47, 67, 69) RGBA(47, 67, 69, 0.51) string.interpolated
#2F434582 RGB(47, 67, 69) RGBA(47, 67, 69, 0.51) string.other
#2F434582 RGB(47, 67, 69) RGBA(47, 67, 69, 0.51) string.quoted
#2F434582 RGB(47, 67, 69) RGBA(47, 67, 69, 0.51) string.quoted.double
#2F434582 RGB(47, 67, 69) RGBA(47, 67, 69, 0.51) string.quoted.other
#2F434582 RGB(47, 67, 69) RGBA(47, 67, 69, 0.51) string.quoted.single
#2F434582 RGB(47, 67, 69) RGBA(47, 67, 69, 0.51) string.quoted.triple
#2F434582 RGB(47, 67, 69) RGBA(47, 67, 69, 0.51) string.regexp
#2F434582 RGB(47, 67, 69) RGBA(47, 67, 69, 0.51) string.template
#2F434582 RGB(47, 67, 69) RGBA(47, 67, 69, 0.51) string.unquoted
#2F434582 RGB(47, 67, 69) RGBA(47, 67, 69, 0.51) support
#947061 RGB(148, 112, 97) RGBA(148, 112, 97, 1) support.class
#608D94 RGB(96, 141, 148) RGBA(96, 141, 148, 1) support.constant
#608D94 RGB(96, 141, 148) RGBA(96, 141, 148, 1) support.function
#608D94 RGB(96, 141, 148) RGBA(96, 141, 148, 1) support.other
#947061 RGB(148, 112, 97) RGBA(148, 112, 97, 1) support.type
#608D94 RGB(96, 141, 148) RGBA(96, 141, 148, 1) support.type.primitive
#608D94 RGB(96, 141, 148) RGBA(96, 141, 148, 1) support.type.property-name
#608D94 RGB(96, 141, 148) RGBA(96, 141, 148, 1) variable
#947061 RGB(148, 112, 97) RGBA(148, 112, 97, 1) variable.function
#947061 RGB(148, 112, 97) RGBA(148, 112, 97, 1) variable.language
#947061 RGB(148, 112, 97) RGBA(148, 112, 97, 1) variable.name
#947061 RGB(148, 112, 97) RGBA(148, 112, 97, 1) variable.other
#947061 RGB(148, 112, 97) RGBA(148, 112, 97, 1) variable.other.constant
#947061 RGB(148, 112, 97) RGBA(148, 112, 97, 1) variable.other.property
#947061 RGB(148, 112, 97) RGBA(148, 112, 97, 1) variable.other.readwrite
#947061 RGB(148, 112, 97) RGBA(148, 112, 97, 1) variable.parameter
#947061 RGB(148, 112, 97) RGBA(148, 112, 97, 1)