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
AeroScript
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#05070A RGB(5, 7, 10) RGBA(5, 7, 10, 1) activityBar.foreground
#00F0FF RGB(0, 240, 255) RGBA(0, 240, 255, 1) button.background
#00F0FFCC RGB(0, 240, 255) RGBA(0, 240, 255, 0.8) button.foreground
#0B0E14 RGB(11, 14, 20) RGBA(11, 14, 20, 1) editor.background
#160101A6 RGB(22, 1, 1) RGBA(22, 1, 1, 0.651) editor.foreground
#E0E6F1 RGB(224, 230, 241) RGBA(224, 230, 241, 1) editor.lineHighlightBackground
#1A1D26 RGB(26, 29, 38) RGBA(26, 29, 38, 1) editor.selectionBackground
#00F0FF33 RGB(0, 240, 255) RGBA(0, 240, 255, 0.2) editor.selectionHighlightBackground
#00F0FF22 RGB(0, 240, 255) RGBA(0, 240, 255, 0.133) editor.wordHighlightBackground
#82AAFF25 RGB(130, 170, 255) RGBA(130, 170, 255, 0.145) editorBracketHighlight.foreground1
#00F0FF RGB(0, 240, 255) RGBA(0, 240, 255, 1) editorBracketHighlight.foreground2
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) editorBracketHighlight.foreground3
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) editorBracketHighlight.unexpectedBracket.foreground
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) editorBracketMatch.background
#00F0FF25 RGB(0, 240, 255) RGBA(0, 240, 255, 0.145) editorBracketMatch.border
#00F0FF RGB(0, 240, 255) RGBA(0, 240, 255, 1) editorCursor.foreground
#00F0FF RGB(0, 240, 255) RGBA(0, 240, 255, 1) editorIndentGuide.activeBackground
#00F0FF66 RGB(0, 240, 255) RGBA(0, 240, 255, 0.4) editorLineNumber.activeForeground
#00F0FF RGB(0, 240, 255) RGBA(0, 240, 255, 1) focusBorder
#00F0FF33 RGB(0, 240, 255) RGBA(0, 240, 255, 0.2) input.background
#1A1D26 RGB(26, 29, 38) RGBA(26, 29, 38, 1) sideBar.background
#080A0F RGB(8, 10, 15) RGBA(8, 10, 15, 1) sideBar.border
#00000000 RGB(0, 0, 0) RGBA(0, 0, 0, 0) statusBar.background
#05070A RGB(5, 7, 10) RGBA(5, 7, 10, 1) statusBar.foreground
#71F0F0 RGB(113, 240, 240) RGBA(113, 240, 240, 1) titleBar.activeBackground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) titleBar.activeForeground
#71F0F0 RGB(113, 240, 240) RGBA(113, 240, 240, 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
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) comment.block
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) comment.block.documentation
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) comment.line
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) constant
#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
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.name
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) entity.name.function
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) entity.name.tag
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) entity.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.attribute-name
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) keyword
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) keyword.control
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) keyword.control.flow
#00F0FF RGB(0, 240, 255) RGBA(0, 240, 255, 1) keyword.operator
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) keyword.operator.new
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) keyword.operator.assignment
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) keyword.operator.arithmetic
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) keyword.operator.logical
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) keyword.other
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) meta
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) meta.function-call
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) meta.tag
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) punctuation.definition.comment
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) storage
#00F0FF RGB(0, 240, 255) RGBA(0, 240, 255, 1) storage.modifier
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) storage.type
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) string
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.interpolated
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.other
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.quoted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.quoted.double
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.quoted.other
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.quoted.single
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.quoted.triple
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.regexp
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.template
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) string.unquoted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) support
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) support.constant
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) support.function
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) support.type
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) support.type.property-name
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1)