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
MatrixMod Neon
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.activeBorder
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) activityBar.background
#050505 RGB(5, 5, 5) RGBA(5, 5, 5, 1) activityBar.foreground
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) activityBarBadge.background
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) activityBarBadge.foreground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) button.background
#1A4A1A RGB(26, 74, 26) RGBA(26, 74, 26, 1) button.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) button.hoverBackground
#256A25 RGB(37, 106, 37) RGBA(37, 106, 37, 1) editor.background
#0A0A0A RGB(10, 10, 10) RGBA(10, 10, 10, 1) editor.foreground
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) editor.lineHighlightBackground
#121212 RGB(18, 18, 18) RGBA(18, 18, 18, 1) editor.selectionBackground
#1E3A1E RGB(30, 58, 30) RGBA(30, 58, 30, 1) editorCursor.foreground
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) editorGroupHeader.tabsBackground
#050505 RGB(5, 5, 5) RGBA(5, 5, 5, 1) editorLineNumber.activeForeground
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) editorLineNumber.foreground
#1A4A1A RGB(26, 74, 26) RGBA(26, 74, 26, 1) list.activeSelectionBackground
#1A3A1A RGB(26, 58, 26) RGBA(26, 58, 26, 1) list.activeSelectionForeground
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) list.hoverBackground
#121212 RGB(18, 18, 18) RGBA(18, 18, 18, 1) sideBar.background
#080808 RGB(8, 8, 8) RGBA(8, 8, 8, 1) sideBar.foreground
#D0D0D0 RGB(208, 208, 208) RGBA(208, 208, 208, 1) sideBarSectionHeader.background
#0A0A0A RGB(10, 10, 10) RGBA(10, 10, 10, 1) sideBarSectionHeader.foreground
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) statusBar.background
#050505 RGB(5, 5, 5) RGBA(5, 5, 5, 1) statusBar.foreground
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) statusBarItem.hoverBackground
#151515 RGB(21, 21, 21) RGBA(21, 21, 21, 1) tab.activeBackground
#0A0A0A RGB(10, 10, 10) RGBA(10, 10, 10, 1) tab.activeBorder
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) tab.activeForeground
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) tab.inactiveBackground
#050505 RGB(5, 5, 5) RGBA(5, 5, 5, 1) tab.inactiveForeground
#808080 RGB(128, 128, 128) RGBA(128, 128, 128, 1) titleBar.activeBackground
#050505 RGB(5, 5, 5) RGBA(5, 5, 5, 1) titleBar.activeForeground
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 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
#4A7A4A RGB(74, 122, 74) RGBA(74, 122, 74, 1) comment.block
#4A7A4A RGB(74, 122, 74) RGBA(74, 122, 74, 1) comment.block.documentation
#4A7A4A RGB(74, 122, 74) RGBA(74, 122, 74, 1) comment.line
#4A7A4A RGB(74, 122, 74) RGBA(74, 122, 74, 1) constant
#ADFF2F RGB(173, 255, 47) RGBA(173, 255, 47, 1) constant.character
#ADFF2F RGB(173, 255, 47) RGBA(173, 255, 47, 1) constant.character.escape
#ADFF2F RGB(173, 255, 47) RGBA(173, 255, 47, 1) constant.numeric
#ADFF2F RGB(173, 255, 47) RGBA(173, 255, 47, 1) constant.numeric.integer
#ADFF2F RGB(173, 255, 47) RGBA(173, 255, 47, 1) constant.numeric.float
#ADFF2F RGB(173, 255, 47) RGBA(173, 255, 47, 1) constant.numeric.hex
#ADFF2F RGB(173, 255, 47) RGBA(173, 255, 47, 1) constant.numeric.octal
#ADFF2F RGB(173, 255, 47) RGBA(173, 255, 47, 1) constant.other
#2EB82E RGB(46, 184, 46) RGBA(46, 184, 46, 1) constant.other.placeholder
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) entity
#ADFF2F RGB(173, 255, 47) RGBA(173, 255, 47, 1) entity.name
#32CD32 RGB(50, 205, 50) RGBA(50, 205, 50, 1) entity.name.class
#32CD32 RGB(50, 205, 50) RGBA(50, 205, 50, 1) entity.name.function
#7CFC00 RGB(124, 252, 0) RGBA(124, 252, 0, 1) entity.name.tag
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) entity.name.type
#32CD32 RGB(50, 205, 50) RGBA(50, 205, 50, 1) entity.name.type.enum
#32CD32 RGB(50, 205, 50) RGBA(50, 205, 50, 1) entity.name.type.interface
#32CD32 RGB(50, 205, 50) RGBA(50, 205, 50, 1) entity.name.type.struct
#32CD32 RGB(50, 205, 50) RGBA(50, 205, 50, 1) entity.other
#ADFF2F RGB(173, 255, 47) RGBA(173, 255, 47, 1) entity.other.attribute-name
#ADFF2F RGB(173, 255, 47) RGBA(173, 255, 47, 1) entity.other.inherited-class
#98FB98 RGB(152, 251, 152) RGBA(152, 251, 152, 1) invalid
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) invalid.deprecated
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) invalid.illegal
#FF0000 RGB(255, 0, 0) RGBA(255, 0, 0, 1) keyword
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) keyword.control
#2EB82E RGB(46, 184, 46) RGBA(46, 184, 46, 1) keyword.control.flow
#2EB82E RGB(46, 184, 46) RGBA(46, 184, 46, 1) keyword.operator
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) keyword.operator.new
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) keyword.operator.assignment
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) keyword.operator.arithmetic
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) keyword.operator.logical
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) keyword.other
#ADFF2F RGB(173, 255, 47) RGBA(173, 255, 47, 1) markup
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) markup.changed
#32CD32 RGB(50, 205, 50) RGBA(50, 205, 50, 1) markup.deleted
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) markup.heading
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) markup.inserted
#98FB98 RGB(152, 251, 152) RGBA(152, 251, 152, 1) markup.underline
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) markup.underline.link
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) meta
#32CD32 RGB(50, 205, 50) RGBA(50, 205, 50, 1) meta.function-call
#7CFC00 RGB(124, 252, 0) RGBA(124, 252, 0, 1) meta.tag
#2EB82E RGB(46, 184, 46) RGBA(46, 184, 46, 1) punctuation.definition.bracket
#2EB82E RGB(46, 184, 46) RGBA(46, 184, 46, 1) punctuation.definition.comment
#4A7A4A RGB(74, 122, 74) RGBA(74, 122, 74, 1) punctuation.definition.string.begin
#2EB82E RGB(46, 184, 46) RGBA(46, 184, 46, 1) punctuation.definition.string.end
#2EB82E RGB(46, 184, 46) RGBA(46, 184, 46, 1) punctuation.separator
#2EB82E RGB(46, 184, 46) RGBA(46, 184, 46, 1) punctuation.separator.continuation
#2EB82E RGB(46, 184, 46) RGBA(46, 184, 46, 1) punctuation.terminator
#2EB82E RGB(46, 184, 46) RGBA(46, 184, 46, 1) storage
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) storage.modifier
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) storage.type
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) string
#98FB98 RGB(152, 251, 152) RGBA(152, 251, 152, 1) string.interpolated
#98FB98 RGB(152, 251, 152) RGBA(152, 251, 152, 1) string.other
#98FB98 RGB(152, 251, 152) RGBA(152, 251, 152, 1) string.quoted
#98FB98 RGB(152, 251, 152) RGBA(152, 251, 152, 1) string.quoted.double
#98FB98 RGB(152, 251, 152) RGBA(152, 251, 152, 1) string.quoted.other
#98FB98 RGB(152, 251, 152) RGBA(152, 251, 152, 1) string.quoted.single
#98FB98 RGB(152, 251, 152) RGBA(152, 251, 152, 1) string.quoted.triple
#98FB98 RGB(152, 251, 152) RGBA(152, 251, 152, 1) string.regexp
#98FB98 RGB(152, 251, 152) RGBA(152, 251, 152, 1) string.template
#98FB98 RGB(152, 251, 152) RGBA(152, 251, 152, 1) string.unquoted
#98FB98 RGB(152, 251, 152) RGBA(152, 251, 152, 1) support
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) support.class
#32CD32 RGB(50, 205, 50) RGBA(50, 205, 50, 1) support.constant
#ADFF2F RGB(173, 255, 47) RGBA(173, 255, 47, 1) support.function
#7CFC00 RGB(124, 252, 0) RGBA(124, 252, 0, 1) support.other
#32CD32 RGB(50, 205, 50) RGBA(50, 205, 50, 1) support.type
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) support.type.primitive
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) support.type.property-name
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) variable
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) variable.function
#7CFC00 RGB(124, 252, 0) RGBA(124, 252, 0, 1) variable.language
#39FF14 RGB(57, 255, 20) RGBA(57, 255, 20, 1) variable.name
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) variable.other
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) variable.other.constant
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) variable.other.property
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) variable.other.readwrite
#E0E0E0 RGB(224, 224, 224) RGBA(224, 224, 224, 1) variable.parameter
#ADFF2F RGB(173, 255, 47) RGBA(173, 255, 47, 1)