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
a11yeclipse
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#2E3440 RGB(46, 52, 64) RGBA(46, 52, 64, 1) activityBarTop.background
#2E3440 RGB(46, 52, 64) RGBA(46, 52, 64, 1) editor.background
#2E3440 RGB(46, 52, 64) RGBA(46, 52, 64, 1) editor.foreground
#D8DEE9 RGB(216, 222, 233) RGBA(216, 222, 233, 1) editor.lineHighlightBackground
#3B4252 RGB(59, 66, 82) RGBA(59, 66, 82, 1) editor.selectionBackground
#4C566A RGB(76, 86, 106) RGBA(76, 86, 106, 1) editorBracketMatch.background
#3B4252 RGB(59, 66, 82) RGBA(59, 66, 82, 1) editorCursor.foreground
#FFD700 RGB(255, 215, 0) RGBA(255, 215, 0, 1) editorGroupHeader.tabsBackground
#3B4252 RGB(59, 66, 82) RGBA(59, 66, 82, 1) editorIndentGuide.activeBackground1
#81A1C1 RGB(129, 161, 193) RGBA(129, 161, 193, 1) editorLineNumber.foreground
#A0A8B4 RGB(160, 168, 180) RGBA(160, 168, 180, 1) list.activeSelectionBackground
#2E3440 RGB(46, 52, 64) RGBA(46, 52, 64, 1) list.focusBackground
#2E3440 RGB(46, 52, 64) RGBA(46, 52, 64, 1) list.hoverBackground
#2F343D RGB(47, 52, 61) RGBA(47, 52, 61, 1) menu.background
#2E3440 RGB(46, 52, 64) RGBA(46, 52, 64, 1) menu.selectionBackground
#2E3440 RGB(46, 52, 64) RGBA(46, 52, 64, 1) sideBar.background
#3B4252 RGB(59, 66, 82) RGBA(59, 66, 82, 1) tab.inactiveBackground
#3B4252 RGB(59, 66, 82) RGBA(59, 66, 82, 1) titleBar.activeBackground
#2E3440 RGB(46, 52, 64) RGBA(46, 52, 64, 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
#B0BEC5 RGB(176, 190, 197) RGBA(176, 190, 197, 1) comment.block
#B0BEC5 RGB(176, 190, 197) RGBA(176, 190, 197, 1) comment.block.documentation
#B0BEC5 RGB(176, 190, 197) RGBA(176, 190, 197, 1) comment.line
#B0BEC5 RGB(176, 190, 197) RGBA(176, 190, 197, 1) constant
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) constant.character
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) constant.character.escape
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) constant.numeric
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) constant.numeric.integer
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) constant.numeric.float
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) constant.numeric.hex
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) constant.numeric.octal
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) constant.other
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) constant.other.placeholder
#8FBCBB RGB(143, 188, 187) RGBA(143, 188, 187, 1) entity
#B48EAD RGB(180, 142, 173) RGBA(180, 142, 173, 1) entity.name
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) entity.name.class
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) entity.name.function
#81A1C1 RGB(129, 161, 193) RGBA(129, 161, 193, 1) entity.name.method
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) entity.name.namespace
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) entity.name.section
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) entity.name.selector
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) entity.name.tag
#F2A900 RGB(242, 169, 0) RGBA(242, 169, 0, 1) entity.name.type
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) entity.name.type.enum
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) entity.name.type.interface
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) entity.name.type.struct
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) entity.other
#B48EAD RGB(180, 142, 173) RGBA(180, 142, 173, 1) entity.other.attribute-name
#B48EAD RGB(180, 142, 173) RGBA(180, 142, 173, 1) entity.other.inherited-class
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) invalid
#FF4500 RGB(255, 69, 0) RGBA(255, 69, 0, 1) invalid.deprecated
#FF4500 RGB(255, 69, 0) RGBA(255, 69, 0, 1) invalid.illegal
#FF4500 RGB(255, 69, 0) RGBA(255, 69, 0, 1) keyword
#B48EAD RGB(180, 142, 173) RGBA(180, 142, 173, 1) keyword.control
#88C0D0 RGB(136, 192, 208) RGBA(136, 192, 208, 1) keyword.control.flow
#88C0D0 RGB(136, 192, 208) RGBA(136, 192, 208, 1) keyword.operator
#B48EAD RGB(180, 142, 173) RGBA(180, 142, 173, 1) keyword.operator.new
#B48EAD RGB(180, 142, 173) RGBA(180, 142, 173, 1) keyword.operator.assignment
#B48EAD RGB(180, 142, 173) RGBA(180, 142, 173, 1) keyword.operator.arithmetic
#B48EAD RGB(180, 142, 173) RGBA(180, 142, 173, 1) keyword.operator.logical
#B48EAD RGB(180, 142, 173) RGBA(180, 142, 173, 1) keyword.other
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) markup
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) markup.changed
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) markup.deleted
#F2A900 RGB(242, 169, 0) RGBA(242, 169, 0, 1) markup.heading
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) markup.inserted
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) meta
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) meta.function-call
#81A1C1 RGB(129, 161, 193) RGBA(129, 161, 193, 1) meta.tag
#88C0D0 RGB(136, 192, 208) RGBA(136, 192, 208, 1) punctuation.definition.bracket
#88C0D0 RGB(136, 192, 208) RGBA(136, 192, 208, 1) punctuation.definition.comment
#B0BEC5 RGB(176, 190, 197) RGBA(176, 190, 197, 1) punctuation.definition.string.begin
#88C0D0 RGB(136, 192, 208) RGBA(136, 192, 208, 1) punctuation.definition.string.end
#88C0D0 RGB(136, 192, 208) RGBA(136, 192, 208, 1) punctuation.separator
#88C0D0 RGB(136, 192, 208) RGBA(136, 192, 208, 1) punctuation.separator.continuation
#88C0D0 RGB(136, 192, 208) RGBA(136, 192, 208, 1) punctuation.terminator
#88C0D0 RGB(136, 192, 208) RGBA(136, 192, 208, 1) storage
#B48EAD RGB(180, 142, 173) RGBA(180, 142, 173, 1) storage.modifier
#B48EAD RGB(180, 142, 173) RGBA(180, 142, 173, 1) storage.type
#B48EAD RGB(180, 142, 173) RGBA(180, 142, 173, 1) string
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) string.interpolated
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) string.other
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) string.quoted
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) string.quoted.double
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) string.quoted.other
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) string.quoted.single
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) string.quoted.triple
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) string.regexp
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) string.template
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) string.unquoted
#A3BE8C RGB(163, 190, 140) RGBA(163, 190, 140, 1) support
#A0A8B4 RGB(160, 168, 180) RGBA(160, 168, 180, 1) support.class
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) support.constant
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) support.function
#81A1C1 RGB(129, 161, 193) RGBA(129, 161, 193, 1) support.other
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1) support.type
#A0A8B4 RGB(160, 168, 180) RGBA(160, 168, 180, 1) support.type.primitive
#A0A8B4 RGB(160, 168, 180) RGBA(160, 168, 180, 1) support.type.property-name
#A0A8B4 RGB(160, 168, 180) RGBA(160, 168, 180, 1) variable
#8FBCBB RGB(143, 188, 187) RGBA(143, 188, 187, 1) variable.function
#81A1C1 RGB(129, 161, 193) RGBA(129, 161, 193, 1) variable.language
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.name
#8FBCBB RGB(143, 188, 187) RGBA(143, 188, 187, 1) variable.other
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) variable.other.constant
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) variable.other.property
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) variable.other.readwrite
#D08770 RGB(208, 135, 112) RGBA(208, 135, 112, 1) variable.parameter
#EBCB8B RGB(235, 203, 139) RGBA(235, 203, 139, 1)