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
Capo-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
#6A6A6A RGB(106, 106, 106) RGBA(106, 106, 106, 1) comment.block
#6A6A6A RGB(106, 106, 106) RGBA(106, 106, 106, 1) comment.block.documentation
#6A6A6A RGB(106, 106, 106) RGBA(106, 106, 106, 1) comment.line
#6A6A6A RGB(106, 106, 106) RGBA(106, 106, 106, 1) constant
#B294BB RGB(178, 148, 187) RGBA(178, 148, 187, 1) constant.character
#B294BB RGB(178, 148, 187) RGBA(178, 148, 187, 1) constant.character.escape
#B294BB RGB(178, 148, 187) RGBA(178, 148, 187, 1) constant.numeric
#B294BB RGB(178, 148, 187) RGBA(178, 148, 187, 1) constant.numeric.integer
#B294BB RGB(178, 148, 187) RGBA(178, 148, 187, 1) constant.numeric.float
#B294BB RGB(178, 148, 187) RGBA(178, 148, 187, 1) constant.numeric.hex
#B294BB RGB(178, 148, 187) RGBA(178, 148, 187, 1) constant.numeric.octal
#B294BB RGB(178, 148, 187) RGBA(178, 148, 187, 1) constant.other
#B294BB RGB(178, 148, 187) RGBA(178, 148, 187, 1) constant.other.placeholder
#B294BB RGB(178, 148, 187) RGBA(178, 148, 187, 1) entity
#B294BB RGB(178, 148, 187) RGBA(178, 148, 187, 1) entity.name
#B294BB RGB(178, 148, 187) RGBA(178, 148, 187, 1) entity.name.class
#7587A6 RGB(117, 135, 166) RGBA(117, 135, 166, 1) entity.name.function
#8F9D6A RGB(143, 157, 106) RGBA(143, 157, 106, 1) entity.name.tag
#7587A6 RGB(117, 135, 166) RGBA(117, 135, 166, 1) entity.name.type
#7587A6 RGB(117, 135, 166) RGBA(117, 135, 166, 1) entity.other
#CF7777 RGB(207, 119, 119) RGBA(207, 119, 119, 1) entity.other.attribute-name
#7587A6 RGB(117, 135, 166) RGBA(117, 135, 166, 1) entity.other.inherited-class
#CF7777 RGB(207, 119, 119) RGBA(207, 119, 119, 1) invalid
#CED2CF RGB(206, 210, 207) RGBA(206, 210, 207, 1) invalid.deprecated
#CED2CF RGB(206, 210, 207) RGBA(206, 210, 207, 1) invalid.illegal
#CED2CF RGB(206, 210, 207) RGBA(206, 210, 207, 1) keyword
#B294BB RGB(178, 148, 187) RGBA(178, 148, 187, 1) keyword.control
#B294BB RGB(178, 148, 187) RGBA(178, 148, 187, 1) keyword.control.flow
#B294BB RGB(178, 148, 187) RGBA(178, 148, 187, 1) keyword.operator
#969896 RGB(150, 152, 150) RGBA(150, 152, 150, 1) keyword.operator.new
#969896 RGB(150, 152, 150) RGBA(150, 152, 150, 1) keyword.operator.assignment
#969896 RGB(150, 152, 150) RGBA(150, 152, 150, 1) keyword.operator.arithmetic
#969896 RGB(150, 152, 150) RGBA(150, 152, 150, 1) keyword.operator.logical
#969896 RGB(150, 152, 150) RGBA(150, 152, 150, 1) keyword.other
#B294BB RGB(178, 148, 187) RGBA(178, 148, 187, 1) markup
#CF7777 RGB(207, 119, 119) RGBA(207, 119, 119, 1) markup.heading
#CF7777 RGB(207, 119, 119) RGBA(207, 119, 119, 1) meta
#CED2CF RGB(206, 210, 207) RGBA(206, 210, 207, 1) meta.function-call
#8F9D6A RGB(143, 157, 106) RGBA(143, 157, 106, 1) meta.tag
#7587A6 RGB(117, 135, 166) RGBA(117, 135, 166, 1) storage
#B294BB RGB(178, 148, 187) RGBA(178, 148, 187, 1) storage.modifier
#B294BB RGB(178, 148, 187) RGBA(178, 148, 187, 1) storage.type
#B294BB RGB(178, 148, 187) RGBA(178, 148, 187, 1) string
#CF7777 RGB(207, 119, 119) RGBA(207, 119, 119, 1) string.interpolated
#CF7777 RGB(207, 119, 119) RGBA(207, 119, 119, 1) string.other
#CF7777 RGB(207, 119, 119) RGBA(207, 119, 119, 1) string.quoted
#CF7777 RGB(207, 119, 119) RGBA(207, 119, 119, 1) string.quoted.double
#CF7777 RGB(207, 119, 119) RGBA(207, 119, 119, 1) string.quoted.other
#CF7777 RGB(207, 119, 119) RGBA(207, 119, 119, 1) string.quoted.single
#CF7777 RGB(207, 119, 119) RGBA(207, 119, 119, 1) string.quoted.triple
#CF7777 RGB(207, 119, 119) RGBA(207, 119, 119, 1) string.regexp
#7587A6 RGB(117, 135, 166) RGBA(117, 135, 166, 1) string.template
#CF7777 RGB(207, 119, 119) RGBA(207, 119, 119, 1) string.unquoted
#CF7777 RGB(207, 119, 119) RGBA(207, 119, 119, 1) support
#8F9D6A RGB(143, 157, 106) RGBA(143, 157, 106, 1) support.class
#7587A6 RGB(117, 135, 166) RGBA(117, 135, 166, 1) support.constant
#B294BB RGB(178, 148, 187) RGBA(178, 148, 187, 1) support.function
#8F9D6A RGB(143, 157, 106) RGBA(143, 157, 106, 1) support.other
#7587A6 RGB(117, 135, 166) RGBA(117, 135, 166, 1) support.type
#7587A6 RGB(117, 135, 166) RGBA(117, 135, 166, 1) support.type.primitive
#7587A6 RGB(117, 135, 166) RGBA(117, 135, 166, 1) support.type.property-name
#7587A6 RGB(117, 135, 166) RGBA(117, 135, 166, 1) variable
#7587A6 RGB(117, 135, 166) RGBA(117, 135, 166, 1) variable.function
#7587A6 RGB(117, 135, 166) RGBA(117, 135, 166, 1) variable.language
#7587A6 RGB(117, 135, 166) RGBA(117, 135, 166, 1) variable.name
#7587A6 RGB(117, 135, 166) RGBA(117, 135, 166, 1) variable.other
#7587A6 RGB(117, 135, 166) RGBA(117, 135, 166, 1) variable.other.constant
#7587A6 RGB(117, 135, 166) RGBA(117, 135, 166, 1) variable.other.property
#7587A6 RGB(117, 135, 166) RGBA(117, 135, 166, 1) variable.other.readwrite
#7587A6 RGB(117, 135, 166) RGBA(117, 135, 166, 1) variable.parameter
#B294BB RGB(178, 148, 187) RGBA(178, 148, 187, 1)