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
Obel Red Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#050505 RGB(5, 5, 5) RGBA(5, 5, 5, 1) badge.background
#EB4E29 RGB(235, 78, 41) RGBA(235, 78, 41, 1) badge.foreground
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) button.background
#EB4E29 RGB(235, 78, 41) RGBA(235, 78, 41, 1) button.foreground
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) button.hoverBackground
#FF6A47 RGB(255, 106, 71) RGBA(255, 106, 71, 1) button.secondaryBackground
#1A1A1A RGB(26, 26, 26) RGBA(26, 26, 26, 1) button.secondaryForeground
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) button.secondaryHoverBackground
#2A2A2A RGB(42, 42, 42) RGBA(42, 42, 42, 1) editor.background
#0A0A0A RGB(10, 10, 10) RGBA(10, 10, 10, 1) editor.foreground
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) editor.lineHighlightBackground
#111111 RGB(17, 17, 17) RGBA(17, 17, 17, 1) editor.selectionBackground
#2A2A2A RGB(42, 42, 42) RGBA(42, 42, 42, 1) editorBracketHighlight.foreground1
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) editorBracketHighlight.foreground2
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) editorBracketHighlight.foreground3
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) editorBracketHighlight.foreground4
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) editorBracketHighlight.foreground5
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) editorBracketHighlight.foreground6
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) editorBracketHighlight.unexpectedBracket.foreground
#EB4E29 RGB(235, 78, 41) RGBA(235, 78, 41, 1) editorBracketMatch.background
#00000000 RGB(0, 0, 0) RGBA(0, 0, 0, 0) editorBracketMatch.border
#3A3A38 RGB(58, 58, 56) RGBA(58, 58, 56, 1) editorCursor.foreground
#EB4E29 RGB(235, 78, 41) RGBA(235, 78, 41, 1) editorGroup.border
#1A1A1A RGB(26, 26, 26) RGBA(26, 26, 26, 1) editorGroupHeader.tabsBackground
#0A0A0A RGB(10, 10, 10) RGBA(10, 10, 10, 1) editorGutter.background
#0A0A0A RGB(10, 10, 10) RGBA(10, 10, 10, 1) editorIndentGuide.background1
#1A1A1A RGB(26, 26, 26) RGBA(26, 26, 26, 1) editorLineNumber.activeForeground
#BDBDBB RGB(189, 189, 187) RGBA(189, 189, 187, 1) editorLineNumber.foreground
#3A3A38 RGB(58, 58, 56) RGBA(58, 58, 56, 1) editorLink.activeForeground
#EB4E29 RGB(235, 78, 41) RGBA(235, 78, 41, 1) focusBorder
#EB4E29 RGB(235, 78, 41) RGBA(235, 78, 41, 1) panel.background
#0A0A0A RGB(10, 10, 10) RGBA(10, 10, 10, 1) sideBar.background
#0A0A0A RGB(10, 10, 10) RGBA(10, 10, 10, 1) statusBar.background
#0A0A0A RGB(10, 10, 10) RGBA(10, 10, 10, 1) tab.activeBackground
#0A0A0A RGB(10, 10, 10) RGBA(10, 10, 10, 1) tab.inactiveBackground
#0A0A0A RGB(10, 10, 10) RGBA(10, 10, 10, 1) textLink.activeForeground
#FF6A47 RGB(255, 106, 71) RGBA(255, 106, 71, 1) textLink.foreground
#EB4E29 RGB(235, 78, 41) RGBA(235, 78, 41, 1) titleBar.activeBackground
#0A0A0A RGB(10, 10, 10) RGBA(10, 10, 10, 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
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) comment.block
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) comment.block.documentation
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) comment.line
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) constant
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) constant.character
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) constant.numeric
#FF3C05 RGB(255, 60, 5) RGBA(255, 60, 5, 1) constant.numeric.integer
#FF3C05 RGB(255, 60, 5) RGBA(255, 60, 5, 1) constant.numeric.float
#FF3C05 RGB(255, 60, 5) RGBA(255, 60, 5, 1) constant.numeric.hex
#FF3C05 RGB(255, 60, 5) RGBA(255, 60, 5, 1) constant.numeric.octal
#FF3C05 RGB(255, 60, 5) RGBA(255, 60, 5, 1) constant.other
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) constant.other.placeholder
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) entity
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) entity.name
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) entity.name.class
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) entity.name.function
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) entity.name.method
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) entity.name.namespace
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) entity.name.section
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) entity.name.selector
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) entity.name.tag
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) entity.name.type
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) entity.name.type.enum
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) entity.name.type.interface
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) entity.name.type.struct
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) keyword
#FF3C05 RGB(255, 60, 5) RGBA(255, 60, 5, 1) keyword.control
#FF3C05 RGB(255, 60, 5) RGBA(255, 60, 5, 1) keyword.control.flow
#FF3C05 RGB(255, 60, 5) RGBA(255, 60, 5, 1) keyword.operator
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) keyword.operator.new
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) keyword.operator.assignment
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) keyword.operator.arithmetic
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) keyword.operator.logical
#FF3C05 RGB(255, 60, 5) RGBA(255, 60, 5, 1) keyword.other
#FF3C05 RGB(255, 60, 5) RGBA(255, 60, 5, 1) meta
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) meta.function
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) meta.function-call
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) punctuation.definition.bracket
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) punctuation.definition.comment
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) punctuation.definition.string.begin
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) punctuation.definition.string.end
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) punctuation.separator
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) punctuation.separator.continuation
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) punctuation.terminator
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) storage
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) storage.modifier
#FF3C05 RGB(255, 60, 5) RGBA(255, 60, 5, 1) storage.type
#FF3C05 RGB(255, 60, 5) RGBA(255, 60, 5, 1) string
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) string.interpolated
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) string.other
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) string.quoted
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) string.quoted.double
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) string.quoted.other
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) string.quoted.single
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) string.quoted.triple
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) string.regexp
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) string.template
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) string.unquoted
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) support
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) support.class
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) support.constant
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) support.function
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) support.other
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) support.type
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) support.type.primitive
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) support.type.property-name
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) support.variable
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1) variable
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) variable.function
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) variable.language
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) variable.name
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) variable.other
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) variable.other.constant
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) variable.other.property
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) variable.other.readwrite
#F1F1EF RGB(241, 241, 239) RGBA(241, 241, 239, 1) variable.parameter
#8A8A88 RGB(138, 138, 136) RGBA(138, 138, 136, 1)