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 | 🟣 NotRed!
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#0E0F15 RGB(14, 15, 21) RGBA(14, 15, 21, 1) activityBarBadge.background
#0E0F15 RGB(14, 15, 21) RGBA(14, 15, 21, 1) editor.background
#0E0F15 RGB(14, 15, 21) RGBA(14, 15, 21, 1) editor.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editor.selectionBackground
#FFFFFF1F RGB(255, 255, 255) RGBA(255, 255, 255, 0.122) editor.selectionHighlightBackground
#0E0F15 RGB(14, 15, 21) RGBA(14, 15, 21, 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
#BB70E3 RGB(187, 112, 227) RGBA(187, 112, 227, 1) editorBracketMatch.border
#0E0F15 RGB(14, 15, 21) RGBA(14, 15, 21, 1) editorCursor.foreground
#DBDBDB RGB(219, 219, 219) RGBA(219, 219, 219, 1) editorGroupHeader.border
#0E0F15 RGB(14, 15, 21) RGBA(14, 15, 21, 1) editorGroupHeader.noTabsBackground
#0E0F15 RGB(14, 15, 21) RGBA(14, 15, 21, 1) editorGroupHeader.tabsBackground
#0E0F15 RGB(14, 15, 21) RGBA(14, 15, 21, 1) editorIndentGuide.activeBackground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editorOverviewRuler.border
#0E0F15 RGB(14, 15, 21) RGBA(14, 15, 21, 1) list.activeSelectionBackground
#FFFFFF1F RGB(255, 255, 255) RGBA(255, 255, 255, 0.122) list.hoverBackground
#FFFFFF1F RGB(255, 255, 255) RGBA(255, 255, 255, 0.122) list.inactiveSelectionBackground
#0E0F15 RGB(14, 15, 21) RGBA(14, 15, 21, 1) sideBar.background
#0E0F15 RGB(14, 15, 21) RGBA(14, 15, 21, 1) sideBarSectionHeader.background
#0E0F15 RGB(14, 15, 21) RGBA(14, 15, 21, 1) statusBar.background
#0E0F15 RGB(14, 15, 21) RGBA(14, 15, 21, 1) tab.activeBackground
#0E0F15 RGB(14, 15, 21) RGBA(14, 15, 21, 1) tab.border
#0E0F15 RGB(14, 15, 21) RGBA(14, 15, 21, 1) tab.inactiveBackground
#0E0F15 RGB(14, 15, 21) RGBA(14, 15, 21, 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
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) comment.block
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) comment.block.documentation
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) comment.line
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) constant
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) constant.character
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) constant.character.escape
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) constant.numeric
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) constant.numeric.integer
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) constant.numeric.float
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) constant.numeric.hex
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) constant.numeric.octal
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) constant.other
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) constant.other.placeholder
#13E47C RGB(19, 228, 124) RGBA(19, 228, 124, 1) entity
#F4F268 RGB(244, 242, 104) RGBA(244, 242, 104, 1) entity.name
#F4F268 RGB(244, 242, 104) RGBA(244, 242, 104, 1) entity.name.class
#F4F268 RGB(244, 242, 104) RGBA(244, 242, 104, 1) entity.name.function
#F4F268 RGB(244, 242, 104) RGBA(244, 242, 104, 1) entity.name.method
#F4F268 RGB(244, 242, 104) RGBA(244, 242, 104, 1) entity.name.namespace
#F4F268 RGB(244, 242, 104) RGBA(244, 242, 104, 1) entity.name.section
#F4F268 RGB(244, 242, 104) RGBA(244, 242, 104, 1) entity.name.selector
#F4F268 RGB(244, 242, 104) RGBA(244, 242, 104, 1) entity.name.tag
#BB70E3 RGB(187, 112, 227) RGBA(187, 112, 227, 1) entity.name.type
#F4F268 RGB(244, 242, 104) RGBA(244, 242, 104, 1) entity.name.type.enum
#F4F268 RGB(244, 242, 104) RGBA(244, 242, 104, 1) entity.name.type.interface
#F4F268 RGB(244, 242, 104) RGBA(244, 242, 104, 1) entity.name.type.struct
#F4F268 RGB(244, 242, 104) RGBA(244, 242, 104, 1) entity.other
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) entity.other.attribute-name
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) entity.other.inherited-class
#13E47C RGB(19, 228, 124) RGBA(19, 228, 124, 1) invalid
#BB70E3 RGB(187, 112, 227) RGBA(187, 112, 227, 1) invalid.deprecated
#BB70E3 RGB(187, 112, 227) RGBA(187, 112, 227, 1) invalid.illegal
#BB70E3 RGB(187, 112, 227) RGBA(187, 112, 227, 1) keyword
#BB70E3 RGB(187, 112, 227) RGBA(187, 112, 227, 1) keyword.control
#F4F268 RGB(244, 242, 104) RGBA(244, 242, 104, 1) keyword.control.flow
#F4F268 RGB(244, 242, 104) RGBA(244, 242, 104, 1) keyword.operator
#BB70E3 RGB(187, 112, 227) RGBA(187, 112, 227, 1) keyword.operator.new
#BB70E3 RGB(187, 112, 227) RGBA(187, 112, 227, 1) keyword.operator.assignment
#BB70E3 RGB(187, 112, 227) RGBA(187, 112, 227, 1) keyword.operator.arithmetic
#BB70E3 RGB(187, 112, 227) RGBA(187, 112, 227, 1) keyword.operator.logical
#BB70E3 RGB(187, 112, 227) RGBA(187, 112, 227, 1) keyword.other
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) markup
#13E47C RGB(19, 228, 124) RGBA(19, 228, 124, 1) markup.bold
#BB70E3 RGB(187, 112, 227) RGBA(187, 112, 227, 1) markup.changed
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) markup.deleted
#BB70E3 RGB(187, 112, 227) RGBA(187, 112, 227, 1) markup.heading
#13E47C RGB(19, 228, 124) RGBA(19, 228, 124, 1) markup.inline.raw
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) markup.inserted
#F4F268 RGB(244, 242, 104) RGBA(244, 242, 104, 1) markup.italic
#BB70E3 RGB(187, 112, 227) RGBA(187, 112, 227, 1) markup.raw
#13E47C RGB(19, 228, 124) RGBA(19, 228, 124, 1) markup.underline
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) markup.underline.link
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) meta
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) meta.function-call
#F4F268 RGB(244, 242, 104) RGBA(244, 242, 104, 1) meta.tag
#DBDBDB RGB(219, 219, 219) RGBA(219, 219, 219, 1) punctuation.definition.comment
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) punctuation.separator
#DBDBDB RGB(219, 219, 219) RGBA(219, 219, 219, 1) storage
#BB70E3 RGB(187, 112, 227) RGBA(187, 112, 227, 1) storage.modifier
#BB70E3 RGB(187, 112, 227) RGBA(187, 112, 227, 1) storage.type
#BB70E3 RGB(187, 112, 227) RGBA(187, 112, 227, 1) string
#BB70E3 RGB(187, 112, 227) RGBA(187, 112, 227, 1) string.interpolated
#BB70E3 RGB(187, 112, 227) RGBA(187, 112, 227, 1) string.other
#BB70E3 RGB(187, 112, 227) RGBA(187, 112, 227, 1) string.quoted
#BB70E3 RGB(187, 112, 227) RGBA(187, 112, 227, 1) string.quoted.double
#BB70E3 RGB(187, 112, 227) RGBA(187, 112, 227, 1) string.quoted.other
#BB70E3 RGB(187, 112, 227) RGBA(187, 112, 227, 1) string.quoted.single
#BB70E3 RGB(187, 112, 227) RGBA(187, 112, 227, 1) string.quoted.triple
#BB70E3 RGB(187, 112, 227) RGBA(187, 112, 227, 1) string.regexp
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) string.template
#BB70E3 RGB(187, 112, 227) RGBA(187, 112, 227, 1) string.unquoted
#BB70E3 RGB(187, 112, 227) RGBA(187, 112, 227, 1) support
#F4F268 RGB(244, 242, 104) RGBA(244, 242, 104, 1) support.class
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) support.constant
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) support.function
#F4F268 RGB(244, 242, 104) RGBA(244, 242, 104, 1) support.other
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) support.type
#11EB7E RGB(17, 235, 126) RGBA(17, 235, 126, 1) support.type.primitive
#11EB7E RGB(17, 235, 126) RGBA(17, 235, 126, 1) support.type.property-name
#13E47C RGB(19, 228, 124) RGBA(19, 228, 124, 1) variable
#13E47C RGB(19, 228, 124) RGBA(19, 228, 124, 1) variable.function
#F4F268 RGB(244, 242, 104) RGBA(244, 242, 104, 1) variable.language
#BB70E3 RGB(187, 112, 227) RGBA(187, 112, 227, 1) variable.name
#13E47C RGB(19, 228, 124) RGBA(19, 228, 124, 1) variable.other
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) variable.other.constant
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) variable.other.property
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) variable.other.readwrite
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1) variable.parameter
#FB8FDD RGB(251, 143, 221) RGBA(251, 143, 221, 1)