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
Gloria
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.activeBorder
#00FFFF RGB(0, 255, 255) RGBA(0, 255, 255, 1) activityBar.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) activityBar.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) activityBarTop.activeBorder
#00FFFF RGB(0, 255, 255) RGBA(0, 255, 255, 1) button.background
#000C18 RGB(0, 12, 24) RGBA(0, 12, 24, 1) dropdown.background
#030306 RGB(3, 3, 6) RGBA(3, 3, 6, 1) dropdown.listBackground
#000C18 RGB(0, 12, 24) RGBA(0, 12, 24, 1) editor.background
#000C18 RGB(0, 12, 24) RGBA(0, 12, 24, 1) editor.foreground
#FEFEFE RGB(254, 254, 254) RGBA(254, 254, 254, 1) editor.inactiveSelectionBackground
#00FF41 RGB(0, 255, 65) RGBA(0, 255, 65, 1) editor.selectionBackground
#800000 RGB(128, 0, 0) RGBA(128, 0, 0, 1) editor.selectionForeground
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) editorBracketHighlight.foreground1
#1E90FF RGB(30, 144, 255) RGBA(30, 144, 255, 1) editorBracketHighlight.foreground2
#1E90FF RGB(30, 144, 255) RGBA(30, 144, 255, 1) editorBracketHighlight.foreground3
#1E90FF RGB(30, 144, 255) RGBA(30, 144, 255, 1) editorBracketHighlight.foreground4
#1E90FF RGB(30, 144, 255) RGBA(30, 144, 255, 1) editorBracketHighlight.foreground5
#1E90FF RGB(30, 144, 255) RGBA(30, 144, 255, 1) editorBracketHighlight.foreground6
#1E90FF RGB(30, 144, 255) RGBA(30, 144, 255, 1) editorBracketHighlight.unexpectedBracket.foreground
#FE4450 RGB(254, 68, 80) RGBA(254, 68, 80, 1) editorCursor.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editorGroupHeader.noTabsBackground
#000C18 RGB(0, 12, 24) RGBA(0, 12, 24, 1) editorGroupHeader.tabsBackground
#000C18 RGB(0, 12, 24) RGBA(0, 12, 24, 1) editorGutter.background
#000C18 RGB(0, 12, 24) RGBA(0, 12, 24, 1) editorLineNumber.activeForeground
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) editorLineNumber.foreground
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) editorOverviewRuler.findMatchForeground
#C90077 RGB(201, 0, 119) RGBA(201, 0, 119, 1) editorWidget.background
#030306 RGB(3, 3, 6) RGBA(3, 3, 6, 1) errorForeground
#FE4450 RGB(254, 68, 80) RGBA(254, 68, 80, 1) focusBorder
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) foreground
#FEFEFE RGB(254, 254, 254) RGBA(254, 254, 254, 1) input.background
#030306 RGB(3, 3, 6) RGBA(3, 3, 6, 1) list.activeSelectionBackground
#061F38 RGB(6, 31, 56) RGBA(6, 31, 56, 1) list.focusBackground
#061F38 RGB(6, 31, 56) RGBA(6, 31, 56, 1) list.hoverBackground
#800000 RGB(128, 0, 0) RGBA(128, 0, 0, 1) list.hoverForeground
#FEFEFE RGB(254, 254, 254) RGBA(254, 254, 254, 1) list.inactiveFocusBackground
#061F38 RGB(6, 31, 56) RGBA(6, 31, 56, 1) list.inactiveSelectionBackground
#061F38 RGB(6, 31, 56) RGBA(6, 31, 56, 1) menu.background
#000C18 RGB(0, 12, 24) RGBA(0, 12, 24, 1) scrollbar.shadow
#030306 RGB(3, 3, 6) RGBA(3, 3, 6, 1) selection.background
#800000 RGB(128, 0, 0) RGBA(128, 0, 0, 1) sideBar.background
#000C18 RGB(0, 12, 24) RGBA(0, 12, 24, 1) sideBar.foreground
#FEFEFE99 RGB(254, 254, 254) RGBA(254, 254, 254, 0.6) sideBarSectionHeader.background
#000C18 RGB(0, 12, 24) RGBA(0, 12, 24, 1) statusBar.background
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) statusBar.debuggingBackground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) statusBar.noFolderBackground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) tab.activeBackground
#0A0A0A RGB(10, 10, 10) RGBA(10, 10, 10, 1) tab.activeBorder
#FF4D4D RGB(255, 77, 77) RGBA(255, 77, 77, 1) tab.activeModifiedBorder
#00000000 RGB(0, 0, 0) RGBA(0, 0, 0, 0) tab.inactiveBackground
#030306 RGB(3, 3, 6) RGBA(3, 3, 6, 1) tab.inactiveModifiedBorder
#00000000 RGB(0, 0, 0) RGBA(0, 0, 0, 0) tab.unfocusedActiveBackground
#0A0A0A RGB(10, 10, 10) RGBA(10, 10, 10, 1) tab.unfocusedActiveBorder
#00000000 RGB(0, 0, 0) RGBA(0, 0, 0, 0) tab.unfocusedActiveModifiedBorder
#00000000 RGB(0, 0, 0) RGBA(0, 0, 0, 0) tab.unfocusedInactiveBackground
#030306 RGB(3, 3, 6) RGBA(3, 3, 6, 1) terminal.foreground
#40FF00 RGB(64, 255, 0) RGBA(64, 255, 0, 1) textLink.activeForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) textLink.foreground
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) titleBar.activeBackground
#030306 RGB(3, 3, 6) RGBA(3, 3, 6, 1) titleBar.inactiveBackground
#030306 RGB(3, 3, 6) RGBA(3, 3, 6, 1) widget.shadow
#030306 RGB(3, 3, 6) RGBA(3, 3, 6, 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
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) comment.block
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) comment.block.documentation
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) comment.line
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) constant
#FEFEFE RGB(254, 254, 254) RGBA(254, 254, 254, 1) constant.character
#FEFEFE RGB(254, 254, 254) RGBA(254, 254, 254, 1) constant.character.escape
#D16969 RGB(209, 105, 105) RGBA(209, 105, 105, 1) constant.numeric
#FFFF00 RGB(255, 255, 0) RGBA(255, 255, 0, 1) constant.numeric.integer
#FFFF00 RGB(255, 255, 0) RGBA(255, 255, 0, 1) constant.numeric.float
#FFFF00 RGB(255, 255, 0) RGBA(255, 255, 0, 1) constant.numeric.hex
#FFFF00 RGB(255, 255, 0) RGBA(255, 255, 0, 1) constant.numeric.octal
#FFFF00 RGB(255, 255, 0) RGBA(255, 255, 0, 1) constant.other
#FEFEFE RGB(254, 254, 254) RGBA(254, 254, 254, 1) constant.other.placeholder
#FEFEFE RGB(254, 254, 254) RGBA(254, 254, 254, 1) constant.regexp
#FEFEFE RGB(254, 254, 254) RGBA(254, 254, 254, 1) constant.rgb-value
#FEFEFE RGB(254, 254, 254) RGBA(254, 254, 254, 1) entity
#FF0001 RGB(255, 0, 1) RGBA(255, 0, 1, 1) entity.name
#FF0001 RGB(255, 0, 1) RGBA(255, 0, 1, 1) entity.name.class
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) entity.name.function
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) entity.name.section
#FF0001 RGB(255, 0, 1) RGBA(255, 0, 1, 1) entity.name.tag
#FEFEFE RGB(254, 254, 254) RGBA(254, 254, 254, 1) entity.name.type
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) entity.name.type.enum
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) entity.name.type.interface
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) entity.name.type.struct
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) entity.other
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) entity.other.attribute-name
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) entity.other.inherited-class
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) invalid
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) invalid.deprecated
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) keyword
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) keyword.control
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) keyword.control.flow
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) keyword.operator
#FEFEFE RGB(254, 254, 254) RGBA(254, 254, 254, 1) keyword.operator.new
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) keyword.operator.assignment
#FEFEFE RGB(254, 254, 254) RGBA(254, 254, 254, 1) keyword.operator.arithmetic
#FEFEFE RGB(254, 254, 254) RGBA(254, 254, 254, 1) keyword.operator.logical
#FEFEFE RGB(254, 254, 254) RGBA(254, 254, 254, 1) keyword.other
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) markup
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) markup.heading
#FF0001 RGB(255, 0, 1) RGBA(255, 0, 1, 1) markup.inline.raw
#40FF00 RGB(64, 255, 0) RGBA(64, 255, 0, 1) markup.quote
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) markup.raw
#40FF00 RGB(64, 255, 0) RGBA(64, 255, 0, 1) markup.underline
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) markup.underline.link
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) meta
#FEFEFE RGB(254, 254, 254) RGBA(254, 254, 254, 1) meta.function-call
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) punctuation.definition.bracket
#FEFEFE RGB(254, 254, 254) RGBA(254, 254, 254, 1) punctuation.definition.comment
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) punctuation.definition.string.begin
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) punctuation.definition.string.end
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) punctuation.separator
#FEFEFE RGB(254, 254, 254) RGBA(254, 254, 254, 1) punctuation.separator.continuation
#FEFEFE RGB(254, 254, 254) RGBA(254, 254, 254, 1) punctuation.terminator
#FEFEFE RGB(254, 254, 254) RGBA(254, 254, 254, 1) storage
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) storage.modifier
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) storage.type
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) string
#40FF00 RGB(64, 255, 0) RGBA(64, 255, 0, 1) string.interpolated
#40FF00 RGB(64, 255, 0) RGBA(64, 255, 0, 1) string.other
#40FF00 RGB(64, 255, 0) RGBA(64, 255, 0, 1) string.quoted
#40FF00 RGB(64, 255, 0) RGBA(64, 255, 0, 1) string.quoted.double
#40FF00 RGB(64, 255, 0) RGBA(64, 255, 0, 1) string.quoted.other
#40FF00 RGB(64, 255, 0) RGBA(64, 255, 0, 1) string.quoted.single
#40FF00 RGB(64, 255, 0) RGBA(64, 255, 0, 1) string.quoted.triple
#40FF00 RGB(64, 255, 0) RGBA(64, 255, 0, 1) string.regexp
#D16969 RGB(209, 105, 105) RGBA(209, 105, 105, 1) string.template
#40FF00 RGB(64, 255, 0) RGBA(64, 255, 0, 1) string.unquoted
#40FF00 RGB(64, 255, 0) RGBA(64, 255, 0, 1) support
#40FF00 RGB(64, 255, 0) RGBA(64, 255, 0, 1) support.class
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) support.constant
#40FF00 RGB(64, 255, 0) RGBA(64, 255, 0, 1) support.function
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) support.type
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) support.type.primitive
#4EC9B0 RGB(78, 201, 176) RGBA(78, 201, 176, 1) support.type.property-name
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) support.variable
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) variable
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) variable.function
#FDFDFD RGB(253, 253, 253) RGBA(253, 253, 253, 1) variable.language
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) variable.name
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) variable.other
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) variable.other.constant
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) variable.other.property
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) variable.other.readwrite
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) variable.parameter
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1)