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
Solarized Obsidian
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
#847D64 RGB(132, 125, 100) RGBA(132, 125, 100, 1) comment.block
#847D64 RGB(132, 125, 100) RGBA(132, 125, 100, 1) comment.block.documentation
#847D64 RGB(132, 125, 100) RGBA(132, 125, 100, 1) comment.line
#847D64 RGB(132, 125, 100) RGBA(132, 125, 100, 1) constant
#58C2E5 RGB(88, 194, 229) RGBA(88, 194, 229, 1) constant.character
#CB4B16 RGB(203, 75, 22) RGBA(203, 75, 22, 1) constant.character.escape
#CB4B16 RGB(203, 75, 22) RGBA(203, 75, 22, 1) constant.numeric
#58C2E5 RGB(88, 194, 229) RGBA(88, 194, 229, 1) constant.numeric.integer
#58C2E5 RGB(88, 194, 229) RGBA(88, 194, 229, 1) constant.numeric.float
#58C2E5 RGB(88, 194, 229) RGBA(88, 194, 229, 1) constant.numeric.hex
#58C2E5 RGB(88, 194, 229) RGBA(88, 194, 229, 1) constant.numeric.octal
#58C2E5 RGB(88, 194, 229) RGBA(88, 194, 229, 1) constant.other
#CB4B16 RGB(203, 75, 22) RGBA(203, 75, 22, 1) constant.other.placeholder
#CB4B16 RGB(203, 75, 22) RGBA(203, 75, 22, 1) entity
#58C2E5 RGB(88, 194, 229) RGBA(88, 194, 229, 1) entity.name
#847D64 RGB(132, 125, 100) RGBA(132, 125, 100, 1) entity.name.class
#58C2E5 RGB(88, 194, 229) RGBA(88, 194, 229, 1) entity.name.function
#268BD2 RGB(38, 139, 210) RGBA(38, 139, 210, 1) entity.name.tag
#847D64 RGB(132, 125, 100) RGBA(132, 125, 100, 1) entity.name.type
#58C2E5 RGB(88, 194, 229) RGBA(88, 194, 229, 1) entity.other
#58C2E5 RGB(88, 194, 229) RGBA(88, 194, 229, 1) entity.other.attribute-name
#58C2E5 RGB(88, 194, 229) RGBA(88, 194, 229, 1) entity.other.inherited-class
#6C71C4 RGB(108, 113, 196) RGBA(108, 113, 196, 1) keyword
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) keyword.control
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) keyword.control.flow
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) keyword.operator
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) keyword.operator.new
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) keyword.operator.assignment
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) keyword.operator.arithmetic
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) keyword.operator.logical
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) keyword.other
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) meta
#FDF6E3 RGB(253, 246, 227) RGBA(253, 246, 227, 1) meta.preprocessor
#268BD2 RGB(38, 139, 210) RGBA(38, 139, 210, 1) meta.selector
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) punctuation.separator
#CB4B16 RGB(203, 75, 22) RGBA(203, 75, 22, 1) punctuation.separator.continuation
#CB4B16 RGB(203, 75, 22) RGBA(203, 75, 22, 1) storage
#58C2E5 RGB(88, 194, 229) RGBA(88, 194, 229, 1) storage.modifier
#58C2E5 RGB(88, 194, 229) RGBA(88, 194, 229, 1) storage.type
#58C2E5 RGB(88, 194, 229) RGBA(88, 194, 229, 1) string
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) string.interpolated
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) string.other
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) string.quoted
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) string.quoted.double
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) string.quoted.other
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) string.quoted.single
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) string.quoted.triple
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) string.regexp
#DC322F RGB(220, 50, 47) RGBA(220, 50, 47, 1) string.template
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) string.unquoted
#839496 RGB(131, 148, 150) RGBA(131, 148, 150, 1) support
#847D64 RGB(132, 125, 100) RGBA(132, 125, 100, 1) support.class
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) support.function
#58C2E5 RGB(88, 194, 229) RGBA(88, 194, 229, 1) support.type
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) support.type.primitive
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) support.type.property-name
#859900 RGB(133, 153, 0) RGBA(133, 153, 0, 1) variable
#FDF6E3 RGB(253, 246, 227) RGBA(253, 246, 227, 1) variable.language
#FDF6E3 RGB(253, 246, 227) RGBA(253, 246, 227, 1) variable.other
#FDF6E3 RGB(253, 246, 227) RGBA(253, 246, 227, 1) variable.other.constant
#FDF6E3 RGB(253, 246, 227) RGBA(253, 246, 227, 1) variable.other.property
#FDF6E3 RGB(253, 246, 227) RGBA(253, 246, 227, 1) variable.other.readwrite
#FDF6E3 RGB(253, 246, 227) RGBA(253, 246, 227, 1)