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
Enki 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
#40404F RGB(64, 64, 79) RGBA(64, 64, 79, 1) comment.block
#40404F RGB(64, 64, 79) RGBA(64, 64, 79, 1) comment.block.documentation
#40404F RGB(64, 64, 79) RGBA(64, 64, 79, 1) comment.line
#40404F RGB(64, 64, 79) RGBA(64, 64, 79, 1) constant
#A5BCFF RGB(165, 188, 255) RGBA(165, 188, 255, 1) constant.character
#F9A16F RGB(249, 161, 111) RGBA(249, 161, 111, 1) constant.character.escape
#A5BCFF RGB(165, 188, 255) RGBA(165, 188, 255, 1) constant.numeric
#F9A16F RGB(249, 161, 111) RGBA(249, 161, 111, 1) constant.numeric.integer
#F9A16F RGB(249, 161, 111) RGBA(249, 161, 111, 1) constant.numeric.float
#F9A16F RGB(249, 161, 111) RGBA(249, 161, 111, 1) constant.numeric.hex
#F9A16F RGB(249, 161, 111) RGBA(249, 161, 111, 1) constant.numeric.octal
#F9A16F RGB(249, 161, 111) RGBA(249, 161, 111, 1) constant.other
#F99157 RGB(249, 145, 87) RGBA(249, 145, 87, 1) entity
#A5BCFF RGB(165, 188, 255) RGBA(165, 188, 255, 1) entity.name
#A5BCFF RGB(165, 188, 255) RGBA(165, 188, 255, 1) entity.name.class
#FFA5B2 RGB(255, 165, 178) RGBA(255, 165, 178, 1) entity.name.function
#DED4DD RGB(222, 212, 221) RGBA(222, 212, 221, 1) entity.name.method
#6699CC RGB(102, 153, 204) RGBA(102, 153, 204, 1) entity.name.tag
#FFA5B2 RGB(255, 165, 178) RGBA(255, 165, 178, 1) entity.name.type
#FFA5B2 RGB(255, 165, 178) RGBA(255, 165, 178, 1) entity.other
#F08697 RGB(240, 134, 151) RGBA(240, 134, 151, 1) entity.other.attribute-name
#DED4DD RGB(222, 212, 221) RGBA(222, 212, 221, 1) entity.other.inherited-class
#A5BCFF RGB(165, 188, 255) RGBA(165, 188, 255, 1) invalid
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) invalid.deprecated
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) invalid.illegal
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) keyword
#FFBA54 RGB(255, 186, 84) RGBA(255, 186, 84, 1) keyword.control
#FFBA54 RGB(255, 186, 84) RGBA(255, 186, 84, 1) keyword.control.flow
#FFBA54 RGB(255, 186, 84) RGBA(255, 186, 84, 1) keyword.operator
#50B4DC RGB(80, 180, 220) RGBA(80, 180, 220, 1) keyword.operator.new
#50B4DC RGB(80, 180, 220) RGBA(80, 180, 220, 1) keyword.operator.assignment
#50B4DC RGB(80, 180, 220) RGBA(80, 180, 220, 1) keyword.operator.arithmetic
#50B4DC RGB(80, 180, 220) RGBA(80, 180, 220, 1) keyword.operator.logical
#FAC863 RGB(250, 200, 99) RGBA(250, 200, 99, 1) keyword.other
#FFBA54 RGB(255, 186, 84) RGBA(255, 186, 84, 1) markup
#666666 RGB(102, 102, 102) RGBA(102, 102, 102, 1) markup.bold
#89B3E7 RGB(137, 179, 231) RGBA(137, 179, 231, 1) markup.changed
#A5BCFF RGB(165, 188, 255) RGBA(165, 188, 255, 1) markup.deleted
#F08697 RGB(240, 134, 151) RGBA(240, 134, 151, 1) markup.heading
#F78790 RGB(247, 135, 144) RGBA(247, 135, 144, 1) markup.inserted
#A8DFCE RGB(168, 223, 206) RGBA(168, 223, 206, 1) markup.italic
#89B3E7 RGB(137, 179, 231) RGBA(137, 179, 231, 1) markup.list
#879FD1 RGB(135, 159, 209) RGBA(135, 159, 209, 1) markup.list.numbered
#879FD1 RGB(135, 159, 209) RGBA(135, 159, 209, 1) markup.list.unnumbered
#879FD1 RGB(135, 159, 209) RGBA(135, 159, 209, 1) markup.quote
#89B3E7 RGB(137, 179, 231) RGBA(137, 179, 231, 1) markup.raw
#EB8060 RGB(235, 128, 96) RGBA(235, 128, 96, 1) markup.underline
#34BD90 RGB(52, 189, 144) RGBA(52, 189, 144, 1) markup.underline.link
#34BD90 RGB(52, 189, 144) RGBA(52, 189, 144, 1) meta
#A5BCFF RGB(165, 188, 255) RGBA(165, 188, 255, 1) meta.function-call
#BBD4FF RGB(187, 212, 255) RGBA(187, 212, 255, 1) meta.tag
#FFBA54 RGB(255, 186, 84) RGBA(255, 186, 84, 1) punctuation.definition.comment
#40404F RGB(64, 64, 79) RGBA(64, 64, 79, 1) punctuation.definition.string.begin
#DED4DD RGB(222, 212, 221) RGBA(222, 212, 221, 1) punctuation.definition.string.end
#DED4DD RGB(222, 212, 221) RGBA(222, 212, 221, 1) punctuation.separator
#50B4DC RGB(80, 180, 220) RGBA(80, 180, 220, 1) punctuation.terminator
#9BA4C3 RGB(155, 164, 195) RGBA(155, 164, 195, 1) storage
#DED4DD RGB(222, 212, 221) RGBA(222, 212, 221, 1) storage.modifier
#FFBA54 RGB(255, 186, 84) RGBA(255, 186, 84, 1) storage.type
#34BD90 RGB(52, 189, 144) RGBA(52, 189, 144, 1) string
#A5BCFF RGB(165, 188, 255) RGBA(165, 188, 255, 1) string.interpolated
#A5BCFF RGB(165, 188, 255) RGBA(165, 188, 255, 1) string.other
#A5BCFF RGB(165, 188, 255) RGBA(165, 188, 255, 1) string.quoted
#A5BCFF RGB(165, 188, 255) RGBA(165, 188, 255, 1) string.quoted.double
#A5BCFF RGB(165, 188, 255) RGBA(165, 188, 255, 1) string.quoted.other
#A5BCFF RGB(165, 188, 255) RGBA(165, 188, 255, 1) string.quoted.single
#A5BCFF RGB(165, 188, 255) RGBA(165, 188, 255, 1) string.quoted.triple
#A5BCFF RGB(165, 188, 255) RGBA(165, 188, 255, 1) string.regexp
#A8DFCE RGB(168, 223, 206) RGBA(168, 223, 206, 1) string.template
#A5BCFF RGB(165, 188, 255) RGBA(165, 188, 255, 1) string.unquoted
#A5BCFF RGB(165, 188, 255) RGBA(165, 188, 255, 1) support
#CA9B55 RGB(202, 155, 85) RGBA(202, 155, 85, 1) support.class
#FFA5B2 RGB(255, 165, 178) RGBA(255, 165, 178, 1) support.constant
#F9A16F RGB(249, 161, 111) RGBA(249, 161, 111, 1) support.function
#BBD4FF RGB(187, 212, 255) RGBA(187, 212, 255, 1) support.other
#A5BCFF RGB(165, 188, 255) RGBA(165, 188, 255, 1) support.type
#FFA5B2 RGB(255, 165, 178) RGBA(255, 165, 178, 1) support.type.primitive
#FFA5B2 RGB(255, 165, 178) RGBA(255, 165, 178, 1) support.type.property-name
#A5BCFF RGB(165, 188, 255) RGBA(165, 188, 255, 1) variable
#FFA5B2 RGB(255, 165, 178) RGBA(255, 165, 178, 1) variable.function
#BBD4FF RGB(187, 212, 255) RGBA(187, 212, 255, 1) variable.language
#F78790 RGB(247, 135, 144) RGBA(247, 135, 144, 1) variable.name
#FFA5B2 RGB(255, 165, 178) RGBA(255, 165, 178, 1) variable.other
#FFA5B2 RGB(255, 165, 178) RGBA(255, 165, 178, 1) variable.other.constant
#FFA5B2 RGB(255, 165, 178) RGBA(255, 165, 178, 1) variable.other.property
#FFA5B2 RGB(255, 165, 178) RGBA(255, 165, 178, 1) variable.other.readwrite
#A8DFCE RGB(168, 223, 206) RGBA(168, 223, 206, 1) variable.parameter
#F9A16F RGB(249, 161, 111) RGBA(249, 161, 111, 1)