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
Alien Camo
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
#7D7D69 RGB(125, 125, 105) RGBA(125, 125, 105, 1) comment.block
#7D7D69 RGB(125, 125, 105) RGBA(125, 125, 105, 1) comment.block.documentation
#7D7D69 RGB(125, 125, 105) RGBA(125, 125, 105, 1) comment.line
#7D7D69 RGB(125, 125, 105) RGBA(125, 125, 105, 1) constant
#31B042 RGB(49, 176, 66) RGBA(49, 176, 66, 1) constant.character
#31B042 RGB(49, 176, 66) RGBA(49, 176, 66, 1) constant.character.escape
#31B042 RGB(49, 176, 66) RGBA(49, 176, 66, 1) constant.numeric
#37D6CB RGB(55, 214, 203) RGBA(55, 214, 203, 1) constant.numeric.integer
#37D6CB RGB(55, 214, 203) RGBA(55, 214, 203, 1) constant.numeric.float
#37D6CB RGB(55, 214, 203) RGBA(55, 214, 203, 1) constant.numeric.hex
#37D6CB RGB(55, 214, 203) RGBA(55, 214, 203, 1) constant.numeric.octal
#37D6CB RGB(55, 214, 203) RGBA(55, 214, 203, 1) constant.other
#31B042 RGB(49, 176, 66) RGBA(49, 176, 66, 1) constant.other.placeholder
#31B042 RGB(49, 176, 66) RGBA(49, 176, 66, 1) entity
#74F246 RGB(116, 242, 70) RGBA(116, 242, 70, 1) entity.name
#7A3A58 RGB(122, 58, 88) RGBA(122, 58, 88, 1) entity.name.class
#2AD4A7 RGB(42, 212, 167) RGBA(42, 212, 167, 1) entity.name.function
#337275 RGB(51, 114, 117) RGBA(51, 114, 117, 1) entity.name.tag
#7A3A58 RGB(122, 58, 88) RGBA(122, 58, 88, 1) entity.name.type
#2AD4A7 RGB(42, 212, 167) RGBA(42, 212, 167, 1) entity.other
#74F246 RGB(116, 242, 70) RGBA(116, 242, 70, 1) entity.other.attribute-name
#74F246 RGB(116, 242, 70) RGBA(116, 242, 70, 1) entity.other.inherited-class
#945391 RGB(148, 83, 145) RGBA(148, 83, 145, 1) invalid
#CC7E7E RGB(204, 126, 126) RGBA(204, 126, 126, 1) invalid.deprecated
#CC7E7E RGB(204, 126, 126) RGBA(204, 126, 126, 1) invalid.illegal
#CC7E7E RGB(204, 126, 126) RGBA(204, 126, 126, 1) keyword
#54814E RGB(84, 129, 78) RGBA(84, 129, 78, 1) keyword.control
#54814E RGB(84, 129, 78) RGBA(84, 129, 78, 1) keyword.control.flow
#54814E RGB(84, 129, 78) RGBA(84, 129, 78, 1) keyword.operator
#54814E RGB(84, 129, 78) RGBA(84, 129, 78, 1) keyword.operator.new
#54814E RGB(84, 129, 78) RGBA(84, 129, 78, 1) keyword.operator.assignment
#54814E RGB(84, 129, 78) RGBA(84, 129, 78, 1) keyword.operator.arithmetic
#54814E RGB(84, 129, 78) RGBA(84, 129, 78, 1) keyword.operator.logical
#54814E RGB(84, 129, 78) RGBA(84, 129, 78, 1) keyword.other
#54814E RGB(84, 129, 78) RGBA(84, 129, 78, 1) markup
#519449 RGB(81, 148, 73) RGBA(81, 148, 73, 1) markup.bold
#519B49 RGB(81, 155, 73) RGBA(81, 155, 73, 1) markup.heading
#7A3A58 RGB(122, 58, 88) RGBA(122, 58, 88, 1) markup.inline.raw
#54814E RGB(84, 129, 78) RGBA(84, 129, 78, 1) markup.italic
#519B49 RGB(81, 155, 73) RGBA(81, 155, 73, 1) markup.list
#439C7D RGB(67, 156, 125) RGBA(67, 156, 125, 1) markup.list.numbered
#439C7D RGB(67, 156, 125) RGBA(67, 156, 125, 1) markup.list.unnumbered
#439C7D RGB(67, 156, 125) RGBA(67, 156, 125, 1) markup.quote
#68AD1F RGB(104, 173, 31) RGBA(104, 173, 31, 1) meta
#07A85D RGB(7, 168, 93) RGBA(7, 168, 93, 1) meta.preprocessor
#07A85D RGB(7, 168, 93) RGBA(7, 168, 93, 1) punctuation.separator
#54814E RGB(84, 129, 78) RGBA(84, 129, 78, 1) punctuation.separator.continuation
#54814E RGB(84, 129, 78) RGBA(84, 129, 78, 1) storage
#66354A RGB(102, 53, 74) RGBA(102, 53, 74, 1) storage.modifier
#66354A RGB(102, 53, 74) RGBA(102, 53, 74, 1) storage.type
#66354A RGB(102, 53, 74) RGBA(102, 53, 74, 1) string
#C7D156 RGB(199, 209, 86) RGBA(199, 209, 86, 1) string.interpolated
#C7D156 RGB(199, 209, 86) RGBA(199, 209, 86, 1) string.other
#C7D156 RGB(199, 209, 86) RGBA(199, 209, 86, 1) string.quoted
#C7D156 RGB(199, 209, 86) RGBA(199, 209, 86, 1) string.quoted.double
#C7D156 RGB(199, 209, 86) RGBA(199, 209, 86, 1) string.quoted.other
#C7D156 RGB(199, 209, 86) RGBA(199, 209, 86, 1) string.quoted.single
#C7D156 RGB(199, 209, 86) RGBA(199, 209, 86, 1) string.quoted.triple
#C7D156 RGB(199, 209, 86) RGBA(199, 209, 86, 1) string.regexp
#804073 RGB(128, 64, 115) RGBA(128, 64, 115, 1) string.template
#C7D156 RGB(199, 209, 86) RGBA(199, 209, 86, 1) string.unquoted
#C7D156 RGB(199, 209, 86) RGBA(199, 209, 86, 1) support
#46B08B RGB(70, 176, 139) RGBA(70, 176, 139, 1) support.class
#54814E RGB(84, 129, 78) RGBA(84, 129, 78, 1) support.constant
#967687 RGB(150, 118, 135) RGBA(150, 118, 135, 1) support.function
#519449 RGB(81, 148, 73) RGBA(81, 148, 73, 1) support.other
#46B08B RGB(70, 176, 139) RGBA(70, 176, 139, 1) support.type
#54814E RGB(84, 129, 78) RGBA(84, 129, 78, 1) support.type.primitive
#54814E RGB(84, 129, 78) RGBA(84, 129, 78, 1) support.type.property-name
#54814E RGB(84, 129, 78) RGBA(84, 129, 78, 1) variable
#2AD4A7 RGB(42, 212, 167) RGBA(42, 212, 167, 1) variable.language
#1BDE3B RGB(27, 222, 59) RGBA(27, 222, 59, 1) variable.other
#1BDE3B RGB(27, 222, 59) RGBA(27, 222, 59, 1) variable.other.constant
#1BDE3B RGB(27, 222, 59) RGBA(27, 222, 59, 1) variable.other.property
#1BDE3B RGB(27, 222, 59) RGBA(27, 222, 59, 1) variable.other.readwrite
#1BDE3B RGB(27, 222, 59) RGBA(27, 222, 59, 1) variable.parameter
#C2809F RGB(194, 128, 159) RGBA(194, 128, 159, 1)