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
Astro Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#33403E RGB(51, 64, 62) RGBA(51, 64, 62, 1) activityBarBadge.background
#0FA3EC RGB(15, 163, 236) RGBA(15, 163, 236, 1) activityBarBadge.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) badge.background
#0FA3EC RGB(15, 163, 236) RGBA(15, 163, 236, 1) button.background
#009578 RGB(0, 149, 120) RGBA(0, 149, 120, 1) dropdown.background
#1D2625 RGB(29, 38, 37) RGBA(29, 38, 37, 1) editor.background
#1F2625 RGB(31, 38, 37) RGBA(31, 38, 37, 1) editor.lineHighlightBackground
#262E2D RGB(38, 46, 45) RGBA(38, 46, 45, 1) editor.selectionBackground
#63A69844 RGB(99, 166, 152) RGBA(99, 166, 152, 0.267) editor.wordHighlightStrongBackground
#63A69844 RGB(99, 166, 152) RGBA(99, 166, 152, 0.267) editorGroupHeader.tabsBackground
#1F2625 RGB(31, 38, 37) RGBA(31, 38, 37, 1) editorSuggestWidget.highlightForeground
#0FA3EC RGB(15, 163, 236) RGBA(15, 163, 236, 1) editorWidget.background
#33403E RGB(51, 64, 62) RGBA(51, 64, 62, 1) focusBorder
#63A698 RGB(99, 166, 152) RGBA(99, 166, 152, 1) input.background
#1F2625 RGB(31, 38, 37) RGBA(31, 38, 37, 1) input.border
#33403E RGB(51, 64, 62) RGBA(51, 64, 62, 1) list.activeSelectionBackground
#33403E RGB(51, 64, 62) RGBA(51, 64, 62, 1) list.dropBackground
#475957 RGB(71, 89, 87) RGBA(71, 89, 87, 1) list.focusBackground
#475957 RGB(71, 89, 87) RGBA(71, 89, 87, 1) list.hoverBackground
#33403E RGB(51, 64, 62) RGBA(51, 64, 62, 1) list.inactiveSelectionBackground
#33403E RGB(51, 64, 62) RGBA(51, 64, 62, 1) menu.background
#1D2625 RGB(29, 38, 37) RGBA(29, 38, 37, 1) pickerGroup.foreground
#CAE0DC RGB(202, 224, 220) RGBA(202, 224, 220, 1) progressBar.background
#FD4B00 RGB(253, 75, 0) RGBA(253, 75, 0, 1) selection.background
#63A69844 RGB(99, 166, 152) RGBA(99, 166, 152, 0.267) sideBar.background
#293331 RGB(41, 51, 49) RGBA(41, 51, 49, 1) sideBarSectionHeader.background
#293331 RGB(41, 51, 49) RGBA(41, 51, 49, 1) statusBar.background
#5F0252 RGB(95, 2, 82) RGBA(95, 2, 82, 1) statusBar.debuggingBackground
#4B8B3B RGB(75, 139, 59) RGBA(75, 139, 59, 1) statusBar.noFolderBackground
#4B8B3B RGB(75, 139, 59) RGBA(75, 139, 59, 1) tab.activeBackground
#33403E RGB(51, 64, 62) RGBA(51, 64, 62, 1) tab.activeBorder
#009578 RGB(0, 149, 120) RGBA(0, 149, 120, 1) tab.inactiveBackground
#1F2625 RGB(31, 38, 37) RGBA(31, 38, 37, 1) textLink.foreground
#CAE0DC RGB(202, 224, 220) RGBA(202, 224, 220, 1) titleBar.activeBackground
#33403E RGB(51, 64, 62) RGBA(51, 64, 62, 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
#7F9993 RGB(127, 153, 147) RGBA(127, 153, 147, 1) comment.block
#7F9993 RGB(127, 153, 147) RGBA(127, 153, 147, 1) comment.block.documentation
#7F9993 RGB(127, 153, 147) RGBA(127, 153, 147, 1) comment.line
#7F9993 RGB(127, 153, 147) RGBA(127, 153, 147, 1) constant
#0FA3EC RGB(15, 163, 236) RGBA(15, 163, 236, 1) constant.character
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) constant.character.escape
#0FA3EC RGB(15, 163, 236) RGBA(15, 163, 236, 1) constant.numeric
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) constant.numeric.integer
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) constant.numeric.float
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) constant.numeric.hex
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) constant.numeric.octal
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) constant.other
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) constant.other.placeholder
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) entity
#0FA3EC RGB(15, 163, 236) RGBA(15, 163, 236, 1) entity.name
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) entity.name.class
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) entity.name.function
#0FA3EC RGB(15, 163, 236) RGBA(15, 163, 236, 1) entity.name.method
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) entity.name.namespace
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) entity.name.section
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) entity.name.selector
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) entity.name.tag
#0FA3EC RGB(15, 163, 236) RGBA(15, 163, 236, 1) entity.name.type
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) entity.name.type.enum
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) entity.name.type.interface
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) entity.name.type.struct
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) entity.other
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) entity.other.attribute-name
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) entity.other.inherited-class
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) invalid
#FD5D78 RGB(253, 93, 120) RGBA(253, 93, 120, 1) invalid.deprecated
#FD5D78 RGB(253, 93, 120) RGBA(253, 93, 120, 1) invalid.illegal
#FD5D78 RGB(253, 93, 120) RGBA(253, 93, 120, 1) keyword
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) keyword.control
#0FA3EC RGB(15, 163, 236) RGBA(15, 163, 236, 1) keyword.control.flow
#0FA3EC RGB(15, 163, 236) RGBA(15, 163, 236, 1) keyword.operator
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) keyword.operator.new
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) keyword.operator.assignment
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) keyword.operator.arithmetic
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) keyword.operator.logical
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) keyword.other
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup
#0FA3EC RGB(15, 163, 236) RGBA(15, 163, 236, 1) markup.changed
#0FA3EC RGB(15, 163, 236) RGBA(15, 163, 236, 1) markup.deleted
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.heading
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) markup.inserted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) meta
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) meta.function-call
#0FA3EC RGB(15, 163, 236) RGBA(15, 163, 236, 1) meta.tag
#FF00DB RGB(255, 0, 219) RGBA(255, 0, 219, 1) punctuation.definition.bracket
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) punctuation.definition.comment
#7F9993 RGB(127, 153, 147) RGBA(127, 153, 147, 1) punctuation.definition.string.begin
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) punctuation.definition.string.end
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) punctuation.separator
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) punctuation.separator.continuation
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) punctuation.terminator
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) storage
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) storage.modifier
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) storage.type
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) string
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) string.interpolated
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) string.other
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) string.quoted
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) string.quoted.double
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) string.quoted.other
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) string.quoted.single
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) string.quoted.triple
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) string.regexp
#0FA3EC RGB(15, 163, 236) RGBA(15, 163, 236, 1) string.template
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) string.unquoted
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) support
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) support.class
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) support.constant
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) support.function
#0FA3EC RGB(15, 163, 236) RGBA(15, 163, 236, 1) support.other
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) support.type
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) support.type.primitive
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) support.type.property-name
#5EAE4A RGB(94, 174, 74) RGBA(94, 174, 74, 1) variable
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) variable.function
#0FA3EC RGB(15, 163, 236) RGBA(15, 163, 236, 1) variable.language
#0FA3EC RGB(15, 163, 236) RGBA(15, 163, 236, 1) variable.name
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) variable.other
#0FA3EC RGB(15, 163, 236) RGBA(15, 163, 236, 1) variable.other.constant
#0FA3EC RGB(15, 163, 236) RGBA(15, 163, 236, 1) variable.other.property
#0FA3EC RGB(15, 163, 236) RGBA(15, 163, 236, 1) variable.other.readwrite
#0FA3EC RGB(15, 163, 236) RGBA(15, 163, 236, 1) variable.parameter
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1)