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
Anlici
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#13151A RGB(19, 21, 26) RGBA(19, 21, 26, 1) activityBarBadge.background
#61AFEF RGB(97, 175, 239) RGBA(97, 175, 239, 1) contrastBorder
#1B2025 RGB(27, 32, 37) RGBA(27, 32, 37, 1) editor.background
#272C33 RGB(39, 44, 51) RGBA(39, 44, 51, 1) editor.foreground
#D3D7DC RGB(211, 215, 220) RGBA(211, 215, 220, 1) editorGroupHeader.tabsBackground
#1D2127 RGB(29, 33, 39) RGBA(29, 33, 39, 1) errorForeground
#DF6C75 RGB(223, 108, 117) RGBA(223, 108, 117, 1) focusBorder
#14171B RGB(20, 23, 27) RGBA(20, 23, 27, 1) foreground
#D3D7DC RGB(211, 215, 220) RGBA(211, 215, 220, 1) input.background
#272C33 RGB(39, 44, 51) RGBA(39, 44, 51, 1) list.activeSelectionBackground
#272C33 RGB(39, 44, 51) RGBA(39, 44, 51, 1) list.hoverBackground
#272C33 RGB(39, 44, 51) RGBA(39, 44, 51, 1) list.inactiveSelectionBackground
#272C33 RGB(39, 44, 51) RGBA(39, 44, 51, 1) sideBar.background
#1D2127 RGB(29, 33, 39) RGBA(29, 33, 39, 1) sideBarSectionHeader.background
#272C33 RGB(39, 44, 51) RGBA(39, 44, 51, 1) sideBarTitle.foreground
#D3D7DC RGB(211, 215, 220) RGBA(211, 215, 220, 1) statusBar.background
#13151A RGB(19, 21, 26) RGBA(19, 21, 26, 1) statusBar.debuggingBackground
#DF6C75 RGB(223, 108, 117) RGBA(223, 108, 117, 1) statusBar.foreground
#D3D7DC RGB(211, 215, 220) RGBA(211, 215, 220, 1) tab.activeBackground
#242930 RGB(36, 41, 48) RGBA(36, 41, 48, 1) tab.inactiveBackground
#303740 RGB(48, 55, 64) RGBA(48, 55, 64, 1) titleBar.activeBackground
#13151A RGB(19, 21, 26) RGBA(19, 21, 26, 1) titleBar.inactiveBackground
#0E0F13 RGB(14, 15, 19) RGBA(14, 15, 19, 1) widget.shadow
#1B2025 RGB(27, 32, 37) RGBA(27, 32, 37, 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
#DF6C75 RGB(223, 108, 117) RGBA(223, 108, 117, 1) comment.block
#DF6C75 RGB(223, 108, 117) RGBA(223, 108, 117, 1) comment.block.documentation
#DF6C75 RGB(223, 108, 117) RGBA(223, 108, 117, 1) comment.line
#DF6C75 RGB(223, 108, 117) RGBA(223, 108, 117, 1) constant
#5DB8C4 RGB(93, 184, 196) RGBA(93, 184, 196, 1) constant.character
#5DB8C4 RGB(93, 184, 196) RGBA(93, 184, 196, 1) constant.character.escape
#5DB8C4 RGB(93, 184, 196) RGBA(93, 184, 196, 1) constant.numeric
#5DB8C4 RGB(93, 184, 196) RGBA(93, 184, 196, 1) constant.numeric.integer
#5DB8C4 RGB(93, 184, 196) RGBA(93, 184, 196, 1) constant.numeric.float
#5DB8C4 RGB(93, 184, 196) RGBA(93, 184, 196, 1) constant.numeric.hex
#5DB8C4 RGB(93, 184, 196) RGBA(93, 184, 196, 1) constant.numeric.octal
#5DB8C4 RGB(93, 184, 196) RGBA(93, 184, 196, 1) constant.other
#5DB8C4 RGB(93, 184, 196) RGBA(93, 184, 196, 1) constant.other.placeholder
#5DB8C4 RGB(93, 184, 196) RGBA(93, 184, 196, 1) constant.regexp
#5DB8C4 RGB(93, 184, 196) RGBA(93, 184, 196, 1) constant.rgb-value
#5DB8C4 RGB(93, 184, 196) RGBA(93, 184, 196, 1) entity
#C577DD RGB(197, 119, 221) RGBA(197, 119, 221, 1) entity.name
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) entity.name.class
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) entity.name.function
#E4C07A RGB(228, 192, 122) RGBA(228, 192, 122, 1) entity.name.method
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) entity.name.namespace
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) entity.name.section
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) entity.name.selector
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) entity.name.tag
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) entity.name.type
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) entity.name.type.enum
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) entity.name.type.interface
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) entity.name.type.struct
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) entity.other
#E4C07A RGB(228, 192, 122) RGBA(228, 192, 122, 1) entity.other.attribute-name
#E4C07A RGB(228, 192, 122) RGBA(228, 192, 122, 1) entity.other.inherited-class
#E4C07A RGB(228, 192, 122) RGBA(228, 192, 122, 1) keyword
#61AFEF RGB(97, 175, 239) RGBA(97, 175, 239, 1) keyword.control
#C577DD RGB(197, 119, 221) RGBA(197, 119, 221, 1) keyword.control.flow
#C577DD RGB(197, 119, 221) RGBA(197, 119, 221, 1) keyword.operator
#DF6C75 RGB(223, 108, 117) RGBA(223, 108, 117, 1) keyword.operator.new
#DF6C75 RGB(223, 108, 117) RGBA(223, 108, 117, 1) keyword.operator.assignment
#DF6C75 RGB(223, 108, 117) RGBA(223, 108, 117, 1) keyword.operator.arithmetic
#DF6C75 RGB(223, 108, 117) RGBA(223, 108, 117, 1) keyword.operator.logical
#DF6C75 RGB(223, 108, 117) RGBA(223, 108, 117, 1) keyword.other
#61AFEF RGB(97, 175, 239) RGBA(97, 175, 239, 1) markup
#DF6C75 RGB(223, 108, 117) RGBA(223, 108, 117, 1) markup.heading
#E4C07A RGB(228, 192, 122) RGBA(228, 192, 122, 1) markup.inline.raw
#DF6C75 RGB(223, 108, 117) RGBA(223, 108, 117, 1) meta
#C577DD RGB(197, 119, 221) RGBA(197, 119, 221, 1) meta.tag
#61AFEF RGB(97, 175, 239) RGBA(97, 175, 239, 1) meta.type.annotation
#E4C07A RGB(228, 192, 122) RGBA(228, 192, 122, 1) meta.type
#E4C07A RGB(228, 192, 122) RGBA(228, 192, 122, 1) storage
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) storage.modifier
#61AFEF RGB(97, 175, 239) RGBA(97, 175, 239, 1) storage.type
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) string
#5DB8C4 RGB(93, 184, 196) RGBA(93, 184, 196, 1) string.interpolated
#5DB8C4 RGB(93, 184, 196) RGBA(93, 184, 196, 1) string.other
#5DB8C4 RGB(93, 184, 196) RGBA(93, 184, 196, 1) string.quoted
#5DB8C4 RGB(93, 184, 196) RGBA(93, 184, 196, 1) string.quoted.double
#5DB8C4 RGB(93, 184, 196) RGBA(93, 184, 196, 1) string.quoted.other
#5DB8C4 RGB(93, 184, 196) RGBA(93, 184, 196, 1) string.quoted.single
#5DB8C4 RGB(93, 184, 196) RGBA(93, 184, 196, 1) string.quoted.triple
#5DB8C4 RGB(93, 184, 196) RGBA(93, 184, 196, 1) string.regexp
#5DB8C4 RGB(93, 184, 196) RGBA(93, 184, 196, 1) string.template
#5DB8C4 RGB(93, 184, 196) RGBA(93, 184, 196, 1) string.unquoted
#5DB8C4 RGB(93, 184, 196) RGBA(93, 184, 196, 1) support
#C577DD RGB(197, 119, 221) RGBA(197, 119, 221, 1) support.class
#98C379 RGB(152, 195, 121) RGBA(152, 195, 121, 1) support.function
#C577DD RGB(197, 119, 221) RGBA(197, 119, 221, 1) support.type
#61AFEF RGB(97, 175, 239) RGBA(97, 175, 239, 1) support.type.property-name
#E4C07A RGB(228, 192, 122) RGBA(228, 192, 122, 1) variable
#D3D7DC RGB(211, 215, 220) RGBA(211, 215, 220, 1) variable.function
#D3D7DC RGB(211, 215, 220) RGBA(211, 215, 220, 1) variable.language
#D3D7DC RGB(211, 215, 220) RGBA(211, 215, 220, 1) variable.name
#D3D7DC RGB(211, 215, 220) RGBA(211, 215, 220, 1) variable.other
#D3D7DC RGB(211, 215, 220) RGBA(211, 215, 220, 1) variable.other.constant
#D3D7DC RGB(211, 215, 220) RGBA(211, 215, 220, 1) variable.other.property
#D3D7DC RGB(211, 215, 220) RGBA(211, 215, 220, 1) variable.other.readwrite
#D3D7DC RGB(211, 215, 220) RGBA(211, 215, 220, 1) variable.parameter
#D3D7DC RGB(211, 215, 220) RGBA(211, 215, 220, 1)