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
Loyal Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBarBadge.background
#007ACC RGB(0, 122, 204) RGBA(0, 122, 204, 1) editor.background
#25253115 RGB(37, 37, 49) RGBA(37, 37, 49, 0.082) editor.foreground
#ECEFF1 RGB(236, 239, 241) RGBA(236, 239, 241, 1) sideBarTitle.foreground
#BBBBBB RGB(187, 187, 187) RGBA(187, 187, 187, 1)
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
#37474F RGB(55, 71, 79) RGBA(55, 71, 79, 1) comment.block
#37474F RGB(55, 71, 79) RGBA(55, 71, 79, 1) comment.block.documentation
#37474F RGB(55, 71, 79) RGBA(55, 71, 79, 1) comment.line
#37474F RGB(55, 71, 79) RGBA(55, 71, 79, 1) constant
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) constant.character
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) constant.character.escape
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) constant.numeric
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) constant.numeric.integer
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) constant.numeric.float
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) constant.numeric.hex
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) constant.numeric.octal
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) constant.other
#ECEFF1 RGB(236, 239, 241) RGBA(236, 239, 241, 1) constant.other.placeholder
#ECEFF1 RGB(236, 239, 241) RGBA(236, 239, 241, 1) entity
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.name
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.name.class
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.name.function
#80CBC4 RGB(128, 203, 196) RGBA(128, 203, 196, 1) entity.name.method
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.name.namespace
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.name.section
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.name.selector
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.name.tag
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.name.type
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.name.type.enum
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.name.type.interface
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.name.type.struct
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other
#EFD28D RGB(239, 210, 141) RGBA(239, 210, 141, 1) entity.other.inherited-class
#EFD28D RGB(239, 210, 141) RGBA(239, 210, 141, 1) keyword
#FF6600 RGB(255, 102, 0) RGBA(255, 102, 0, 1) keyword.control
#FF6600 RGB(255, 102, 0) RGBA(255, 102, 0, 1) keyword.control.flow
#FF6600 RGB(255, 102, 0) RGBA(255, 102, 0, 1) keyword.operator
#FF6600 RGB(255, 102, 0) RGBA(255, 102, 0, 1) keyword.operator.new
#FF6600 RGB(255, 102, 0) RGBA(255, 102, 0, 1) keyword.operator.assignment
#FF6600 RGB(255, 102, 0) RGBA(255, 102, 0, 1) keyword.operator.arithmetic
#FF6600 RGB(255, 102, 0) RGBA(255, 102, 0, 1) keyword.operator.logical
#FF6600 RGB(255, 102, 0) RGBA(255, 102, 0, 1) keyword.other
#FF6600 RGB(255, 102, 0) RGBA(255, 102, 0, 1) markup
#EFD28D RGB(239, 210, 141) RGBA(239, 210, 141, 1) markup.heading
#EFD28D RGB(239, 210, 141) RGBA(239, 210, 141, 1) markup.inserted
#EFD28D RGB(239, 210, 141) RGBA(239, 210, 141, 1) meta
#80CBC4 RGB(128, 203, 196) RGBA(128, 203, 196, 1) meta.function-call
#80CBC4 RGB(128, 203, 196) RGBA(128, 203, 196, 1) punctuation.definition.comment
#37474F RGB(55, 71, 79) RGBA(55, 71, 79, 1) storage
#FF6600 RGB(255, 102, 0) RGBA(255, 102, 0, 1) storage.modifier
#FF6600 RGB(255, 102, 0) RGBA(255, 102, 0, 1) storage.type
#FF6600 RGB(255, 102, 0) RGBA(255, 102, 0, 1) string
#EFD28D RGB(239, 210, 141) RGBA(239, 210, 141, 1) string.interpolated
#EFD28D RGB(239, 210, 141) RGBA(239, 210, 141, 1) string.other
#EFD28D RGB(239, 210, 141) RGBA(239, 210, 141, 1) string.quoted
#EFD28D RGB(239, 210, 141) RGBA(239, 210, 141, 1) string.quoted.double
#EFD28D RGB(239, 210, 141) RGBA(239, 210, 141, 1) string.quoted.other
#EFD28D RGB(239, 210, 141) RGBA(239, 210, 141, 1) string.quoted.single
#EFD28D RGB(239, 210, 141) RGBA(239, 210, 141, 1) string.quoted.triple
#EFD28D RGB(239, 210, 141) RGBA(239, 210, 141, 1) string.regexp
#EFD28D RGB(239, 210, 141) RGBA(239, 210, 141, 1) string.template
#EFD28D RGB(239, 210, 141) RGBA(239, 210, 141, 1) string.unquoted
#EFD28D RGB(239, 210, 141) RGBA(239, 210, 141, 1) support
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) support.class
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) support.constant
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) support.function
#80CBC4 RGB(128, 203, 196) RGBA(128, 203, 196, 1) support.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) support.type
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) support.type.primitive
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) support.type.property-name
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) variable
#ECEFF1 RGB(236, 239, 241) RGBA(236, 239, 241, 1) variable.function
#80CBC4 RGB(128, 203, 196) RGBA(128, 203, 196, 1) variable.language
#ECEFF1 RGB(236, 239, 241) RGBA(236, 239, 241, 1) variable.name
#ECEFF1 RGB(236, 239, 241) RGBA(236, 239, 241, 1) variable.other
#ECEFF1 RGB(236, 239, 241) RGBA(236, 239, 241, 1) variable.other.constant
#ECEFF1 RGB(236, 239, 241) RGBA(236, 239, 241, 1) variable.other.property
#ECEFF1 RGB(236, 239, 241) RGBA(236, 239, 241, 1) variable.other.readwrite
#ECEFF1 RGB(236, 239, 241) RGBA(236, 239, 241, 1) variable.parameter
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1)