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
Tomorrow Night Bright Operator Mono
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
#969896 RGB(150, 152, 150) RGBA(150, 152, 150, 1) comment.block
#969896 RGB(150, 152, 150) RGBA(150, 152, 150, 1) comment.block.documentation
#969896 RGB(150, 152, 150) RGBA(150, 152, 150, 1) comment.line
#969896 RGB(150, 152, 150) RGBA(150, 152, 150, 1) constant
#70C0B1 RGB(112, 192, 177) RGBA(112, 192, 177, 1) constant.character
#E78C45 RGB(231, 140, 69) RGBA(231, 140, 69, 1) constant.character.escape
#E78C45 RGB(231, 140, 69) RGBA(231, 140, 69, 1) constant.numeric
#E78C45 RGB(231, 140, 69) RGBA(231, 140, 69, 1) constant.numeric.integer
#E78C45 RGB(231, 140, 69) RGBA(231, 140, 69, 1) constant.numeric.float
#E78C45 RGB(231, 140, 69) RGBA(231, 140, 69, 1) constant.numeric.hex
#E78C45 RGB(231, 140, 69) RGBA(231, 140, 69, 1) constant.numeric.octal
#E78C45 RGB(231, 140, 69) RGBA(231, 140, 69, 1) constant.other
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) constant.other.placeholder
#EEEEEE RGB(238, 238, 238) RGBA(238, 238, 238, 1) entity
#C397D8 RGB(195, 151, 216) RGBA(195, 151, 216, 1) entity.name
#C397D8 RGB(195, 151, 216) RGBA(195, 151, 216, 1) entity.name.class
#E7C547 RGB(231, 197, 71) RGBA(231, 197, 71, 1) entity.name.function
#7AA6DA RGB(122, 166, 218) RGBA(122, 166, 218, 1) entity.name.tag
#D54E53 RGB(213, 78, 83) RGBA(213, 78, 83, 1) entity.name.type
#E7C547 RGB(231, 197, 71) RGBA(231, 197, 71, 1) entity.other
#C397D8 RGB(195, 151, 216) RGBA(195, 151, 216, 1) entity.other.attribute-name
#C397D8 RGB(195, 151, 216) RGBA(195, 151, 216, 1) entity.other.inherited-class
#B9CA4A RGB(185, 202, 74) RGBA(185, 202, 74, 1) invalid
#CED2CF RGB(206, 210, 207) RGBA(206, 210, 207, 1) invalid.deprecated
#CED2CF RGB(206, 210, 207) RGBA(206, 210, 207, 1) invalid.illegal
#CED2CF RGB(206, 210, 207) RGBA(206, 210, 207, 1) keyword
#C397D8 RGB(195, 151, 216) RGBA(195, 151, 216, 1) keyword.control
#C397D8 RGB(195, 151, 216) RGBA(195, 151, 216, 1) keyword.control.flow
#C397D8 RGB(195, 151, 216) RGBA(195, 151, 216, 1) keyword.operator
#70C0B1 RGB(112, 192, 177) RGBA(112, 192, 177, 1) keyword.operator.new
#70C0B1 RGB(112, 192, 177) RGBA(112, 192, 177, 1) keyword.operator.assignment
#70C0B1 RGB(112, 192, 177) RGBA(112, 192, 177, 1) keyword.operator.arithmetic
#70C0B1 RGB(112, 192, 177) RGBA(112, 192, 177, 1) keyword.operator.logical
#70C0B1 RGB(112, 192, 177) RGBA(112, 192, 177, 1) keyword.other
#C397D8 RGB(195, 151, 216) RGBA(195, 151, 216, 1) markup
#B9CA4A RGB(185, 202, 74) RGBA(185, 202, 74, 1) markup.heading
#B9CA4A RGB(185, 202, 74) RGBA(185, 202, 74, 1) meta
#CED2CF RGB(206, 210, 207) RGBA(206, 210, 207, 1) meta.function-call
#7AA6DA RGB(122, 166, 218) RGBA(122, 166, 218, 1) meta.tag
#D54E53 RGB(213, 78, 83) RGBA(213, 78, 83, 1) storage
#C397D8 RGB(195, 151, 216) RGBA(195, 151, 216, 1) storage.modifier
#C397D8 RGB(195, 151, 216) RGBA(195, 151, 216, 1) storage.type
#C397D8 RGB(195, 151, 216) RGBA(195, 151, 216, 1) string
#B9CA4A RGB(185, 202, 74) RGBA(185, 202, 74, 1) string.interpolated
#B9CA4A RGB(185, 202, 74) RGBA(185, 202, 74, 1) string.other
#B9CA4A RGB(185, 202, 74) RGBA(185, 202, 74, 1) string.quoted
#B9CA4A RGB(185, 202, 74) RGBA(185, 202, 74, 1) string.quoted.double
#B9CA4A RGB(185, 202, 74) RGBA(185, 202, 74, 1) string.quoted.other
#B9CA4A RGB(185, 202, 74) RGBA(185, 202, 74, 1) string.quoted.single
#B9CA4A RGB(185, 202, 74) RGBA(185, 202, 74, 1) string.quoted.triple
#B9CA4A RGB(185, 202, 74) RGBA(185, 202, 74, 1) string.regexp
#D54E53 RGB(213, 78, 83) RGBA(213, 78, 83, 1) string.template
#B9CA4A RGB(185, 202, 74) RGBA(185, 202, 74, 1) string.unquoted
#B9CA4A RGB(185, 202, 74) RGBA(185, 202, 74, 1) support
#7AA6DA RGB(122, 166, 218) RGBA(122, 166, 218, 1) support.class
#E7C547 RGB(231, 197, 71) RGBA(231, 197, 71, 1) support.constant
#E78C45 RGB(231, 140, 69) RGBA(231, 140, 69, 1) support.function
#7AA6DA RGB(122, 166, 218) RGBA(122, 166, 218, 1) support.other
#D54E53 RGB(213, 78, 83) RGBA(213, 78, 83, 1) support.type
#E7C547 RGB(231, 197, 71) RGBA(231, 197, 71, 1) support.type.primitive
#E7C547 RGB(231, 197, 71) RGBA(231, 197, 71, 1) support.type.property-name
#E7C547 RGB(231, 197, 71) RGBA(231, 197, 71, 1) variable
#D54E53 RGB(213, 78, 83) RGBA(213, 78, 83, 1) variable.function
#D54E53 RGB(213, 78, 83) RGBA(213, 78, 83, 1) variable.language
#D54E53 RGB(213, 78, 83) RGBA(213, 78, 83, 1) variable.name
#D54E53 RGB(213, 78, 83) RGBA(213, 78, 83, 1) variable.other
#D54E53 RGB(213, 78, 83) RGBA(213, 78, 83, 1) variable.other.constant
#D54E53 RGB(213, 78, 83) RGBA(213, 78, 83, 1) variable.other.property
#D54E53 RGB(213, 78, 83) RGBA(213, 78, 83, 1) variable.other.readwrite
#D54E53 RGB(213, 78, 83) RGBA(213, 78, 83, 1) variable.parameter
#E78C45 RGB(231, 140, 69) RGBA(231, 140, 69, 1)