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
Aussie
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
#1E1E1E RGB(30, 30, 30) RGBA(30, 30, 30, 1) editor.foreground
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) editor.inactiveSelectionBackground
#3A3D41 RGB(58, 61, 65) RGBA(58, 61, 65, 1) editor.selectionHighlightBackground
#ADD6FF26 RGB(173, 214, 255) RGBA(173, 214, 255, 0.149) editorIndentGuide.activeBackground
#707070 RGB(112, 112, 112) RGBA(112, 112, 112, 1) editorIndentGuide.background
#404040 RGB(64, 64, 64) RGBA(64, 64, 64, 1) input.placeholderForeground
#A6A6A6 RGB(166, 166, 166) RGBA(166, 166, 166, 1) list.dropBackground
#383B3D RGB(56, 59, 61) RGBA(56, 59, 61, 1) menu.background
#252526 RGB(37, 37, 38) RGBA(37, 37, 38, 1) menu.foreground
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) settings.numberInputBackground
#292929 RGB(41, 41, 41) RGBA(41, 41, 41, 1) settings.textInputBackground
#292929 RGB(41, 41, 41) RGBA(41, 41, 41, 1) sideBarTitle.foreground
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 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
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) comment.block
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) comment.block.documentation
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) comment.line
#777777 RGB(119, 119, 119) RGBA(119, 119, 119, 1) constant
#00CC99 RGB(0, 204, 153) RGBA(0, 204, 153, 1) constant.character
#00CC99 RGB(0, 204, 153) RGBA(0, 204, 153, 1) constant.character.escape
#00CC99 RGB(0, 204, 153) RGBA(0, 204, 153, 1) constant.numeric
#FFCC77 RGB(255, 204, 119) RGBA(255, 204, 119, 1) constant.numeric.integer
#FFCC77 RGB(255, 204, 119) RGBA(255, 204, 119, 1) constant.numeric.float
#FFCC77 RGB(255, 204, 119) RGBA(255, 204, 119, 1) constant.numeric.hex
#FFCC77 RGB(255, 204, 119) RGBA(255, 204, 119, 1) constant.numeric.octal
#FFCC77 RGB(255, 204, 119) RGBA(255, 204, 119, 1) constant.other
#D16969 RGB(209, 105, 105) RGBA(209, 105, 105, 1) constant.regexp
#646695 RGB(100, 102, 149) RGBA(100, 102, 149, 1) entity
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) entity.name
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) entity.name.class
#00CCFF RGB(0, 204, 255) RGBA(0, 204, 255, 1) entity.name.function
#AAAAFF RGB(170, 170, 255) RGBA(170, 170, 255, 1) entity.name.tag
#00CC99 RGB(0, 204, 153) RGBA(0, 204, 153, 1) entity.name.type
#00CCFF RGB(0, 204, 255) RGBA(0, 204, 255, 1) entity.name.type.enum
#00CCFF RGB(0, 204, 255) RGBA(0, 204, 255, 1) entity.name.type.interface
#00CCFF RGB(0, 204, 255) RGBA(0, 204, 255, 1) entity.name.type.struct
#00CCFF RGB(0, 204, 255) RGBA(0, 204, 255, 1) entity.other
#00CCFF RGB(0, 204, 255) RGBA(0, 204, 255, 1) entity.other.attribute-name
#FF9966 RGB(255, 153, 102) RGBA(255, 153, 102, 1) entity.other.inherited-class
#00CCFF RGB(0, 204, 255) RGBA(0, 204, 255, 1) invalid
#F44747 RGB(244, 71, 71) RGBA(244, 71, 71, 1) invalid.deprecated
#F44747 RGB(244, 71, 71) RGBA(244, 71, 71, 1) invalid.illegal
#F44747 RGB(244, 71, 71) RGBA(244, 71, 71, 1) keyword
#00CC99 RGB(0, 204, 153) RGBA(0, 204, 153, 1) keyword.control
#CC88CC RGB(204, 136, 204) RGBA(204, 136, 204, 1) keyword.control.flow
#CC88CC RGB(204, 136, 204) RGBA(204, 136, 204, 1) keyword.operator
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) keyword.operator.new
#00CC99 RGB(0, 204, 153) RGBA(0, 204, 153, 1) keyword.operator.assignment
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) keyword.operator.arithmetic
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) keyword.operator.logical
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) keyword.other
#00CC99 RGB(0, 204, 153) RGBA(0, 204, 153, 1) markup
#FFCC77 RGB(255, 204, 119) RGBA(255, 204, 119, 1) markup.bold
#00CC99 RGB(0, 204, 153) RGBA(0, 204, 153, 1) markup.changed
#00CC99 RGB(0, 204, 153) RGBA(0, 204, 153, 1) markup.deleted
#FFCC77 RGB(255, 204, 119) RGBA(255, 204, 119, 1) markup.heading
#00CC99 RGB(0, 204, 153) RGBA(0, 204, 153, 1) markup.inline.raw
#FFCC77 RGB(255, 204, 119) RGBA(255, 204, 119, 1) markup.inserted
#FFCC77 RGB(255, 204, 119) RGBA(255, 204, 119, 1) meta
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) meta.preprocessor
#00CC99 RGB(0, 204, 153) RGBA(0, 204, 153, 1) meta.return-type
#00CCFF RGB(0, 204, 255) RGBA(0, 204, 255, 1) meta.type
#00CCFF RGB(0, 204, 255) RGBA(0, 204, 255, 1) storage
#00CC99 RGB(0, 204, 153) RGBA(0, 204, 153, 1) storage.modifier
#00CC99 RGB(0, 204, 153) RGBA(0, 204, 153, 1) storage.type
#00CC99 RGB(0, 204, 153) RGBA(0, 204, 153, 1) string
#FFCC77 RGB(255, 204, 119) RGBA(255, 204, 119, 1) string.interpolated
#FFCC77 RGB(255, 204, 119) RGBA(255, 204, 119, 1) string.other
#FFCC77 RGB(255, 204, 119) RGBA(255, 204, 119, 1) string.quoted
#FFCC77 RGB(255, 204, 119) RGBA(255, 204, 119, 1) string.quoted.double
#FFCC77 RGB(255, 204, 119) RGBA(255, 204, 119, 1) string.quoted.other
#FFCC77 RGB(255, 204, 119) RGBA(255, 204, 119, 1) string.quoted.single
#FFCC77 RGB(255, 204, 119) RGBA(255, 204, 119, 1) string.quoted.triple
#FFCC77 RGB(255, 204, 119) RGBA(255, 204, 119, 1) string.regexp
#D16969 RGB(209, 105, 105) RGBA(209, 105, 105, 1) string.template
#FFCC77 RGB(255, 204, 119) RGBA(255, 204, 119, 1) string.unquoted
#FFCC77 RGB(255, 204, 119) RGBA(255, 204, 119, 1) support
#FFCC77 RGB(255, 204, 119) RGBA(255, 204, 119, 1) support.class
#00CCFF RGB(0, 204, 255) RGBA(0, 204, 255, 1) support.constant
#FFCC77 RGB(255, 204, 119) RGBA(255, 204, 119, 1) support.function
#AAAAFF RGB(170, 170, 255) RGBA(170, 170, 255, 1) support.other
#FFCC77 RGB(255, 204, 119) RGBA(255, 204, 119, 1) support.type
#00CCFF RGB(0, 204, 255) RGBA(0, 204, 255, 1) support.type.primitive
#00CCFF RGB(0, 204, 255) RGBA(0, 204, 255, 1) support.type.property-name
#FF9966 RGB(255, 153, 102) RGBA(255, 153, 102, 1) support.variable
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) variable
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) variable.function
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) variable.language
#00CC99 RGB(0, 204, 153) RGBA(0, 204, 153, 1) variable.name
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) variable.other
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) variable.other.constant
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) variable.other.property
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) variable.other.readwrite
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1) variable.parameter
#CCCCCC RGB(204, 204, 204) RGBA(204, 204, 204, 1)