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 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
#737C7C RGB(115, 124, 124) RGBA(115, 124, 124, 1) comment.block
#737C7C RGB(115, 124, 124) RGBA(115, 124, 124, 1) comment.block.documentation
#737C7C RGB(115, 124, 124) RGBA(115, 124, 124, 1) comment.line
#737C7C RGB(115, 124, 124) RGBA(115, 124, 124, 1) constant
#F770FD RGB(247, 112, 253) RGBA(247, 112, 253, 1) constant.character
#90CC99 RGB(144, 204, 153) RGBA(144, 204, 153, 1) constant.character.escape
#90CC99 RGB(144, 204, 153) RGBA(144, 204, 153, 1) constant.numeric
#FF73FD RGB(255, 115, 253) RGBA(255, 115, 253, 1) constant.numeric.integer
#FF73FD RGB(255, 115, 253) RGBA(255, 115, 253, 1) constant.numeric.float
#FF73FD RGB(255, 115, 253) RGBA(255, 115, 253, 1) constant.numeric.hex
#FF73FD RGB(255, 115, 253) RGBA(255, 115, 253, 1) constant.numeric.octal
#FF73FD RGB(255, 115, 253) RGBA(255, 115, 253, 1) constant.other
#90CC99 RGB(144, 204, 153) RGBA(144, 204, 153, 1) constant.other.placeholder
#90CC99 RGB(144, 204, 153) RGBA(144, 204, 153, 1) entity
#FFFFB6 RGB(255, 255, 182) RGBA(255, 255, 182, 1) entity.name
#FFFFB6 RGB(255, 255, 182) RGBA(255, 255, 182, 1) entity.name.class
#FFFFAC RGB(255, 255, 172) RGBA(255, 255, 172, 1) entity.name.function
#FFD2A7 RGB(255, 210, 167) RGBA(255, 210, 167, 1) entity.name.tag
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) entity.name.type
#FFFFB6 RGB(255, 255, 182) RGBA(255, 255, 182, 1) entity.other
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) entity.other.attribute-name
#A6E22E RGB(166, 226, 46) RGBA(166, 226, 46, 1) entity.other.inherited-class
#9B5C2E RGB(155, 92, 46) RGBA(155, 92, 46, 1) keyword
#8ECBFE RGB(142, 203, 254) RGBA(142, 203, 254, 1) keyword.control
#8ECBFE RGB(142, 203, 254) RGBA(142, 203, 254, 1) keyword.control.flow
#8ECBFE RGB(142, 203, 254) RGBA(142, 203, 254, 1) keyword.operator
#8ECBFE RGB(142, 203, 254) RGBA(142, 203, 254, 1) keyword.operator.new
#8ECBFE RGB(142, 203, 254) RGBA(142, 203, 254, 1) keyword.operator.assignment
#8ECBFE RGB(142, 203, 254) RGBA(142, 203, 254, 1) keyword.operator.arithmetic
#8ECBFE RGB(142, 203, 254) RGBA(142, 203, 254, 1) keyword.operator.logical
#8ECBFE RGB(142, 203, 254) RGBA(142, 203, 254, 1) keyword.other
#8ECBFE RGB(142, 203, 254) RGBA(142, 203, 254, 1) markup
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) markup.deleted
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) markup.inserted
#9FFF60 RGB(159, 255, 96) RGBA(159, 255, 96, 1) meta
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) storage
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) storage.modifier
#F92672 RGB(249, 38, 114) RGBA(249, 38, 114, 1) storage.type
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) string
#9FFF60 RGB(159, 255, 96) RGBA(159, 255, 96, 1) string.interpolated
#9FFF60 RGB(159, 255, 96) RGBA(159, 255, 96, 1) string.other
#9FFF60 RGB(159, 255, 96) RGBA(159, 255, 96, 1) string.quoted
#9FFF60 RGB(159, 255, 96) RGBA(159, 255, 96, 1) string.quoted.double
#9FFF60 RGB(159, 255, 96) RGBA(159, 255, 96, 1) string.quoted.other
#9FFF60 RGB(159, 255, 96) RGBA(159, 255, 96, 1) string.quoted.single
#9FFF60 RGB(159, 255, 96) RGBA(159, 255, 96, 1) string.quoted.triple
#9FFF60 RGB(159, 255, 96) RGBA(159, 255, 96, 1) string.regexp
#9FFF60 RGB(159, 255, 96) RGBA(159, 255, 96, 1) string.template
#9FFF60 RGB(159, 255, 96) RGBA(159, 255, 96, 1) string.unquoted
#9FFF60 RGB(159, 255, 96) RGBA(159, 255, 96, 1) support
#F7FFB6 RGB(247, 255, 182) RGBA(247, 255, 182, 1) support.class
#F7FFB6 RGB(247, 255, 182) RGBA(247, 255, 182, 1) support.constant
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.function
#66D9EF RGB(102, 217, 239) RGBA(102, 217, 239, 1) support.type
#F7FFB6 RGB(247, 255, 182) RGBA(247, 255, 182, 1) support.type.primitive
#F7FFB6 RGB(247, 255, 182) RGBA(247, 255, 182, 1) support.type.property-name
#F7FFB6 RGB(247, 255, 182) RGBA(247, 255, 182, 1) variable
#C8C5FF RGB(200, 197, 255) RGBA(200, 197, 255, 1) variable.function
#C8C5FF RGB(200, 197, 255) RGBA(200, 197, 255, 1) variable.language
#C8C5FF RGB(200, 197, 255) RGBA(200, 197, 255, 1) variable.name
#C8C5FF RGB(200, 197, 255) RGBA(200, 197, 255, 1) variable.other
#C8C5FF RGB(200, 197, 255) RGBA(200, 197, 255, 1) variable.other.constant
#C8C5FF RGB(200, 197, 255) RGBA(200, 197, 255, 1) variable.other.property
#C8C5FF RGB(200, 197, 255) RGBA(200, 197, 255, 1) variable.other.readwrite
#C8C5FF RGB(200, 197, 255) RGBA(200, 197, 255, 1) variable.parameter
#C0C5FE RGB(192, 197, 254) RGBA(192, 197, 254, 1)