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
Atom One Dark
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
#5C6370 RGB(92, 99, 112) RGBA(92, 99, 112, 1) comment.block
#5C6370 RGB(92, 99, 112) RGBA(92, 99, 112, 1) comment.block.documentation
#5C6370 RGB(92, 99, 112) RGBA(92, 99, 112, 1) comment.line
#5C6370 RGB(92, 99, 112) RGBA(92, 99, 112, 1) constant
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) constant.character
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) constant.character.escape
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) constant.numeric
#D19A66 RGB(209, 154, 102) RGBA(209, 154, 102, 1) constant.numeric.integer
#D19A66 RGB(209, 154, 102) RGBA(209, 154, 102, 1) constant.numeric.float
#D19A66 RGB(209, 154, 102) RGBA(209, 154, 102, 1) constant.numeric.hex
#D19A66 RGB(209, 154, 102) RGBA(209, 154, 102, 1) constant.numeric.octal
#D19A66 RGB(209, 154, 102) RGBA(209, 154, 102, 1) constant.other
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) constant.other.placeholder
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) entity
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) entity.name
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) entity.name.class
#E5C07B RGB(229, 192, 123) RGBA(229, 192, 123, 1) entity.name.function
#61AFEF RGB(97, 175, 239) RGBA(97, 175, 239, 1) entity.name.tag
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) entity.other
#D19A66 RGB(209, 154, 102) RGBA(209, 154, 102, 1) entity.other.attribute-name
#D19A66 RGB(209, 154, 102) RGBA(209, 154, 102, 1) entity.other.inherited-class
#E5C07B RGB(229, 192, 123) RGBA(229, 192, 123, 1) invalid
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) invalid.deprecated
#523D14 RGB(82, 61, 20) RGBA(82, 61, 20, 1) invalid.illegal
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) keyword.control
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) keyword.control.flow
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) keyword.operator
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) keyword.operator.new
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) keyword.operator.assignment
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) keyword.operator.arithmetic
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) keyword.operator.logical
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) keyword.other
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) markup
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 1) markup.changed
#E6DB74 RGB(230, 219, 116) RGBA(230, 219, 116, 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
#75715E RGB(117, 113, 94) RGBA(117, 113, 94, 1) storage
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) storage.modifier
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) storage.type
#C678DD RGB(198, 120, 221) RGBA(198, 120, 221, 1) string
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.interpolated
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.other
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.quoted
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.quoted.double
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.quoted.other
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.quoted.single
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.quoted.triple
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.regexp
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.template
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string.unquoted
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) support
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) support.class
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) support.constant
#D19A66 RGB(209, 154, 102) RGBA(209, 154, 102, 1) support.function
#56B6C2 RGB(86, 182, 194) RGBA(86, 182, 194, 1) support.type
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) support.type.primitive
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) support.type.property-name
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) variable
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) variable.function
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) variable.language
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) variable.name
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) variable.other
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) variable.other.constant
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) variable.other.property
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) variable.other.readwrite
#E06C75 RGB(224, 108, 117) RGBA(224, 108, 117, 1) variable.parameter
#ABB2BF RGB(171, 178, 191) RGBA(171, 178, 191, 1)