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
Gummy Boogie Theme | 🎉 Party
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#00020D RGB(0, 2, 13) RGBA(0, 2, 13, 1) activityBarBadge.background
#00020D RGB(0, 2, 13) RGBA(0, 2, 13, 1) editor.background
#00020D RGB(0, 2, 13) RGBA(0, 2, 13, 1) editor.foreground
#EDEDED RGB(237, 237, 237) RGBA(237, 237, 237, 1) editor.selectionBackground
#EDEDED1F RGB(237, 237, 237) RGBA(237, 237, 237, 0.122) editor.selectionHighlightBackground
#00020D RGB(0, 2, 13) RGBA(0, 2, 13, 1) editor.wordHighlightBackground
#31334088 RGB(49, 51, 64) RGBA(49, 51, 64, 0.533) editor.wordHighlightStrongBackground
#31334088 RGB(49, 51, 64) RGBA(49, 51, 64, 0.533) editorBracketMatch.background
#D94C76 RGB(217, 76, 118) RGBA(217, 76, 118, 1) editorBracketMatch.border
#00020D RGB(0, 2, 13) RGBA(0, 2, 13, 1) editorCursor.foreground
#EDEDED RGB(237, 237, 237) RGBA(237, 237, 237, 1) editorGroupHeader.border
#00020D RGB(0, 2, 13) RGBA(0, 2, 13, 1) editorGroupHeader.noTabsBackground
#00020D RGB(0, 2, 13) RGBA(0, 2, 13, 1) editorGroupHeader.tabsBackground
#00020D RGB(0, 2, 13) RGBA(0, 2, 13, 1) editorIndentGuide.activeBackground
#EDEDED RGB(237, 237, 237) RGBA(237, 237, 237, 1) editorOverviewRuler.border
#00020D RGB(0, 2, 13) RGBA(0, 2, 13, 1) list.activeSelectionBackground
#31334088 RGB(49, 51, 64) RGBA(49, 51, 64, 0.533) list.hoverBackground
#31334088 RGB(49, 51, 64) RGBA(49, 51, 64, 0.533) list.inactiveSelectionBackground
#00020D RGB(0, 2, 13) RGBA(0, 2, 13, 1) sideBar.background
#00020D RGB(0, 2, 13) RGBA(0, 2, 13, 1) sideBarSectionHeader.background
#00020D RGB(0, 2, 13) RGBA(0, 2, 13, 1) statusBar.background
#00020D RGB(0, 2, 13) RGBA(0, 2, 13, 1) tab.activeBackground
#00020D RGB(0, 2, 13) RGBA(0, 2, 13, 1) tab.border
#00020D RGB(0, 2, 13) RGBA(0, 2, 13, 1) tab.inactiveBackground
#00020D RGB(0, 2, 13) RGBA(0, 2, 13, 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
#C94CD9 RGB(201, 76, 217) RGBA(201, 76, 217, 1) comment.block
#C94CD9 RGB(201, 76, 217) RGBA(201, 76, 217, 1) comment.block.documentation
#C94CD9 RGB(201, 76, 217) RGBA(201, 76, 217, 1) comment.line
#C94CD9 RGB(201, 76, 217) RGBA(201, 76, 217, 1) constant
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.character
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.character.escape
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric.integer
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric.float
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric.hex
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric.octal
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.other
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.other.placeholder
#4CD95F RGB(76, 217, 95) RGBA(76, 217, 95, 1) entity
#FFFD8E RGB(255, 253, 142) RGBA(255, 253, 142, 1) entity.name
#FFFD8E RGB(255, 253, 142) RGBA(255, 253, 142, 1) entity.name.class
#FFFD8E RGB(255, 253, 142) RGBA(255, 253, 142, 1) entity.name.function
#FFFD8E RGB(255, 253, 142) RGBA(255, 253, 142, 1) entity.name.method
#FFFD8E RGB(255, 253, 142) RGBA(255, 253, 142, 1) entity.name.namespace
#FFFD8E RGB(255, 253, 142) RGBA(255, 253, 142, 1) entity.name.section
#FFFD8E RGB(255, 253, 142) RGBA(255, 253, 142, 1) entity.name.selector
#FFFD8E RGB(255, 253, 142) RGBA(255, 253, 142, 1) entity.name.tag
#D94C76 RGB(217, 76, 118) RGBA(217, 76, 118, 1) entity.name.type
#FFFD8E RGB(255, 253, 142) RGBA(255, 253, 142, 1) entity.name.type.enum
#FFFD8E RGB(255, 253, 142) RGBA(255, 253, 142, 1) entity.name.type.interface
#FFFD8E RGB(255, 253, 142) RGBA(255, 253, 142, 1) entity.name.type.struct
#FFFD8E RGB(255, 253, 142) RGBA(255, 253, 142, 1) entity.other
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) entity.other.attribute-name
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) entity.other.inherited-class
#4CD95F RGB(76, 217, 95) RGBA(76, 217, 95, 1) invalid
#D94C76 RGB(217, 76, 118) RGBA(217, 76, 118, 1) invalid.deprecated
#D94C76 RGB(217, 76, 118) RGBA(217, 76, 118, 1) invalid.illegal
#D94C76 RGB(217, 76, 118) RGBA(217, 76, 118, 1) keyword
#D94C76 RGB(217, 76, 118) RGBA(217, 76, 118, 1) keyword.control
#FFFD8E RGB(255, 253, 142) RGBA(255, 253, 142, 1) keyword.control.flow
#FFFD8E RGB(255, 253, 142) RGBA(255, 253, 142, 1) keyword.operator
#D94C76 RGB(217, 76, 118) RGBA(217, 76, 118, 1) keyword.operator.new
#D94C76 RGB(217, 76, 118) RGBA(217, 76, 118, 1) keyword.operator.assignment
#D94C76 RGB(217, 76, 118) RGBA(217, 76, 118, 1) keyword.operator.arithmetic
#D94C76 RGB(217, 76, 118) RGBA(217, 76, 118, 1) keyword.operator.logical
#D94C76 RGB(217, 76, 118) RGBA(217, 76, 118, 1) keyword.other
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) markup
#4CD95F RGB(76, 217, 95) RGBA(76, 217, 95, 1) markup.bold
#D94C76 RGB(217, 76, 118) RGBA(217, 76, 118, 1) markup.changed
#C94CD9 RGB(201, 76, 217) RGBA(201, 76, 217, 1) markup.deleted
#D94C76 RGB(217, 76, 118) RGBA(217, 76, 118, 1) markup.heading
#4CD95F RGB(76, 217, 95) RGBA(76, 217, 95, 1) markup.inline.raw
#C94CD9 RGB(201, 76, 217) RGBA(201, 76, 217, 1) markup.inserted
#FFFD8E RGB(255, 253, 142) RGBA(255, 253, 142, 1) markup.italic
#D94C76 RGB(217, 76, 118) RGBA(217, 76, 118, 1) markup.raw
#4CD95F RGB(76, 217, 95) RGBA(76, 217, 95, 1) markup.underline
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) markup.underline.link
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) meta
#C94CD9 RGB(201, 76, 217) RGBA(201, 76, 217, 1) meta.function-call
#FFFD8E RGB(255, 253, 142) RGBA(255, 253, 142, 1) meta.tag
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) punctuation.definition.comment
#C94CD9 RGB(201, 76, 217) RGBA(201, 76, 217, 1) punctuation.separator
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) storage
#D94C76 RGB(217, 76, 118) RGBA(217, 76, 118, 1) storage.modifier
#D94C76 RGB(217, 76, 118) RGBA(217, 76, 118, 1) storage.type
#D94C76 RGB(217, 76, 118) RGBA(217, 76, 118, 1) string
#D94C76 RGB(217, 76, 118) RGBA(217, 76, 118, 1) string.interpolated
#D94C76 RGB(217, 76, 118) RGBA(217, 76, 118, 1) string.other
#D94C76 RGB(217, 76, 118) RGBA(217, 76, 118, 1) string.quoted
#D94C76 RGB(217, 76, 118) RGBA(217, 76, 118, 1) string.quoted.double
#D94C76 RGB(217, 76, 118) RGBA(217, 76, 118, 1) string.quoted.other
#D94C76 RGB(217, 76, 118) RGBA(217, 76, 118, 1) string.quoted.single
#D94C76 RGB(217, 76, 118) RGBA(217, 76, 118, 1) string.quoted.triple
#D94C76 RGB(217, 76, 118) RGBA(217, 76, 118, 1) string.regexp
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) string.template
#D94C76 RGB(217, 76, 118) RGBA(217, 76, 118, 1) string.unquoted
#D94C76 RGB(217, 76, 118) RGBA(217, 76, 118, 1) support
#FFFD8E RGB(255, 253, 142) RGBA(255, 253, 142, 1) support.class
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) support.constant
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) support.function
#FFFD8E RGB(255, 253, 142) RGBA(255, 253, 142, 1) support.other
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) support.type
#4CD95F RGB(76, 217, 95) RGBA(76, 217, 95, 1) support.type.primitive
#4CD95F RGB(76, 217, 95) RGBA(76, 217, 95, 1) support.type.property-name
#4CD95F RGB(76, 217, 95) RGBA(76, 217, 95, 1) variable
#4CD95F RGB(76, 217, 95) RGBA(76, 217, 95, 1) variable.function
#FFFD8E RGB(255, 253, 142) RGBA(255, 253, 142, 1) variable.language
#D94C76 RGB(217, 76, 118) RGBA(217, 76, 118, 1) variable.name
#4CD95F RGB(76, 217, 95) RGBA(76, 217, 95, 1) variable.other
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) variable.other.constant
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) variable.other.property
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) variable.other.readwrite
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) variable.parameter
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1)