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
Legend of Zelda Theme
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.activeBackground
#54A49E RGB(84, 164, 158) RGBA(84, 164, 158, 1) activityBar.activeBorder
#D4CE46 RGB(212, 206, 70) RGBA(212, 206, 70, 1) activityBar.background
#0E5135 RGB(14, 81, 53) RGBA(14, 81, 53, 1) activityBar.border
#54A49E RGB(84, 164, 158) RGBA(84, 164, 158, 1) activityBar.foreground
#C8CB34 RGB(200, 203, 52) RGBA(200, 203, 52, 1) activityBarBadge.background
#D4CE46 RGB(212, 206, 70) RGBA(212, 206, 70, 1) activityBarBadge.foreground
#081D01 RGB(8, 29, 1) RGBA(8, 29, 1, 1) badge.background
#D4CE46 RGB(212, 206, 70) RGBA(212, 206, 70, 1) badge.foreground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) button.background
#D4CE46 RGB(212, 206, 70) RGBA(212, 206, 70, 1) button.foreground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) button.hoverBackground
#54A49E RGB(84, 164, 158) RGBA(84, 164, 158, 1) checkbox.background
#D4CE46 RGB(212, 206, 70) RGBA(212, 206, 70, 1) checkbox.border
#54A49E RGB(84, 164, 158) RGBA(84, 164, 158, 1) checkbox.foreground
#C8CB34 RGB(200, 203, 52) RGBA(200, 203, 52, 1) dropdown.background
#0E5135 RGB(14, 81, 53) RGBA(14, 81, 53, 1) dropdown.foreground
#000000 RGB(0, 0, 0) RGBA(0, 0, 0, 1) dropdown.listBackground
#0E5135 RGB(14, 81, 53) RGBA(14, 81, 53, 1) editor.background
#081D01 RGB(8, 29, 1) RGBA(8, 29, 1, 1) editor.foreground
#C8CB34 RGB(200, 203, 52) RGBA(200, 203, 52, 1) editor.selectionBackground
#BD7DAB RGB(189, 125, 171) RGBA(189, 125, 171, 1) editorBracketMatch.background
#54A49E RGB(84, 164, 158) RGBA(84, 164, 158, 1) editorBracketMatch.border
#D4CE46 RGB(212, 206, 70) RGBA(212, 206, 70, 1) editorGroup.dropBackground
#FFE701 RGB(255, 231, 1) RGBA(255, 231, 1, 1) editorGroupHeader.tabsBackground
#102B12CE RGB(16, 43, 18) RGBA(16, 43, 18, 0.808) editorHoverWidget.background
#27644B RGB(39, 100, 75) RGBA(39, 100, 75, 1) editorLineNumber.activeForeground
#C04207 RGB(192, 66, 7) RGBA(192, 66, 7, 1) editorLineNumber.foreground
#D4CE46 RGB(212, 206, 70) RGBA(212, 206, 70, 1) editorSuggestWidget.background
#0B442C RGB(11, 68, 44) RGBA(11, 68, 44, 1) editorWidget.background
#0B442C RGB(11, 68, 44) RGBA(11, 68, 44, 1) focusBorder
#020700 RGB(2, 7, 0) RGBA(2, 7, 0, 1) foreground
#D4CE46 RGB(212, 206, 70) RGBA(212, 206, 70, 1) input.background
#063A26 RGB(6, 58, 38) RGBA(6, 58, 38, 1) input.foreground
#D4CE46 RGB(212, 206, 70) RGBA(212, 206, 70, 1) menu.background
#062016 RGB(6, 32, 22) RGBA(6, 32, 22, 1) menu.foreground
#D5D836 RGB(213, 216, 54) RGBA(213, 216, 54, 1) peekViewEditor.background
#27644B RGB(39, 100, 75) RGBA(39, 100, 75, 1) searchEditor.findMatchBackground
#0E5135 RGB(14, 81, 53) RGBA(14, 81, 53, 1) sideBar.background
#27664C RGB(39, 102, 76) RGBA(39, 102, 76, 1) sideBar.border
#0C0C05 RGB(12, 12, 5) RGBA(12, 12, 5, 1) sideBar.foreground
#C0AD05 RGB(192, 173, 5) RGBA(192, 173, 5, 1) sideBarSectionHeader.background
#0E5135 RGB(14, 81, 53) RGBA(14, 81, 53, 1) sideBarSectionHeader.border
#D4CE46 RGB(212, 206, 70) RGBA(212, 206, 70, 1) sideBarSectionHeader.foreground
#C8CB34 RGB(200, 203, 52) RGBA(200, 203, 52, 1) sideBarTitle.foreground
#DBDB2D RGB(219, 219, 45) RGBA(219, 219, 45, 1) statusBar.background
#0E5135 RGB(14, 81, 53) RGBA(14, 81, 53, 1) statusBar.border
#D4CE46 RGB(212, 206, 70) RGBA(212, 206, 70, 1) statusBar.debuggingBackground
#0E5135 RGB(14, 81, 53) RGBA(14, 81, 53, 1) statusBar.debuggingBorder
#54A49E RGB(84, 164, 158) RGBA(84, 164, 158, 1) statusBar.debuggingForeground
#D4CE46 RGB(212, 206, 70) RGBA(212, 206, 70, 1) statusBar.foreground
#54A49E RGB(84, 164, 158) RGBA(84, 164, 158, 1) statusBar.noFolderBackground
#0E5135 RGB(14, 81, 53) RGBA(14, 81, 53, 1) statusBar.noFolderBorder
#D4CE46 RGB(212, 206, 70) RGBA(212, 206, 70, 1) statusBar.noFolderForeground
#54A49E RGB(84, 164, 158) RGBA(84, 164, 158, 1) tab.activeBackground
#366951 RGB(54, 105, 81) RGBA(54, 105, 81, 1) tab.activeBorder
#D4CE46 RGB(212, 206, 70) RGBA(212, 206, 70, 1) tab.activeForeground
#D4C535 RGB(212, 197, 53) RGBA(212, 197, 53, 1) tab.inactiveBackground
#0B3B27 RGB(11, 59, 39) RGBA(11, 59, 39, 1) terminal.foreground
#9DD446 RGB(157, 212, 70) RGBA(157, 212, 70, 1) titleBar.activeBackground
#0B3B27 RGB(11, 59, 39) RGBA(11, 59, 39, 1) titleBar.activeForeground
#D4CE46 RGB(212, 206, 70) RGBA(212, 206, 70, 1) widget.shadow
#EC7C00 RGB(236, 124, 0) RGBA(236, 124, 0, 1) window.activeBorder
#54A49E RGB(84, 164, 158) RGBA(84, 164, 158, 1) window.inactiveBorder
#D4CE46 RGB(212, 206, 70) RGBA(212, 206, 70, 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
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) comment.block
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) comment.block.documentation
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) comment.line
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) constant
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.character
#64E02B RGB(100, 224, 43) RGBA(100, 224, 43, 1) constant.character.escape
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric
#64E02B RGB(100, 224, 43) RGBA(100, 224, 43, 1) constant.numeric.integer
#64E02B RGB(100, 224, 43) RGBA(100, 224, 43, 1) constant.numeric.float
#64E02B RGB(100, 224, 43) RGBA(100, 224, 43, 1) constant.numeric.hex
#64E02B RGB(100, 224, 43) RGBA(100, 224, 43, 1) constant.numeric.octal
#64E02B RGB(100, 224, 43) RGBA(100, 224, 43, 1) constant.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) constant.other.placeholder
#D4CE46 RGB(212, 206, 70) RGBA(212, 206, 70, 1) entity
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.class
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.function
#54A49E RGB(84, 164, 158) RGBA(84, 164, 158, 1) entity.name.method
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.namespace
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.section
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.selector
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.tag
#F4AC74 RGB(244, 172, 116) RGBA(244, 172, 116, 1) entity.name.type
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.enum
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.interface
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.name.type.struct
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) entity.other
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.attribute-name
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) entity.other.inherited-class
#F0F4EC RGB(240, 244, 236) RGBA(240, 244, 236, 1) invalid
#BD7DAB RGB(189, 125, 171) RGBA(189, 125, 171, 1) invalid.deprecated
#BD7DAB RGB(189, 125, 171) RGBA(189, 125, 171, 1) invalid.illegal
#BD7DAB RGB(189, 125, 171) RGBA(189, 125, 171, 1) keyword
#FBE2C5 RGB(251, 226, 197) RGBA(251, 226, 197, 1) keyword.control
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) keyword.control.flow
#82AAFF RGB(130, 170, 255) RGBA(130, 170, 255, 1) keyword.operator
#FBE2C5 RGB(251, 226, 197) RGBA(251, 226, 197, 1) keyword.operator.new
#FBE2C5 RGB(251, 226, 197) RGBA(251, 226, 197, 1) keyword.operator.assignment
#FBE2C5 RGB(251, 226, 197) RGBA(251, 226, 197, 1) keyword.operator.arithmetic
#FBE2C5 RGB(251, 226, 197) RGBA(251, 226, 197, 1) keyword.operator.logical
#FBE2C5 RGB(251, 226, 197) RGBA(251, 226, 197, 1) keyword.other
#64E02B RGB(100, 224, 43) RGBA(100, 224, 43, 1) markup
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.bold
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) markup.changed
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.deleted
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) markup.heading
#F0F4EC RGB(240, 244, 236) RGBA(240, 244, 236, 1) markup.inline.raw
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) markup.inserted
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) markup.italic
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) markup.raw
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) markup.underline
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) markup.underline.link
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) meta
#D4CE46 RGB(212, 206, 70) RGBA(212, 206, 70, 1) meta.function-call
#54A49E RGB(84, 164, 158) RGBA(84, 164, 158, 1) meta.tag
#54A49E RGB(84, 164, 158) RGBA(84, 164, 158, 1) punctuation.definition.bracket
#54A49E RGB(84, 164, 158) RGBA(84, 164, 158, 1) punctuation.definition.comment
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) punctuation.definition.string.begin
#54A49E RGB(84, 164, 158) RGBA(84, 164, 158, 1) punctuation.definition.string.end
#54A49E RGB(84, 164, 158) RGBA(84, 164, 158, 1) punctuation.separator
#54A49E RGB(84, 164, 158) RGBA(84, 164, 158, 1) punctuation.separator.continuation
#54A49E RGB(84, 164, 158) RGBA(84, 164, 158, 1) punctuation.terminator
#54A49E RGB(84, 164, 158) RGBA(84, 164, 158, 1) storage
#FBE2C5 RGB(251, 226, 197) RGBA(251, 226, 197, 1) storage.modifier
#FBE2C5 RGB(251, 226, 197) RGBA(251, 226, 197, 1) storage.type
#FBE2C5 RGB(251, 226, 197) RGBA(251, 226, 197, 1) string
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.interpolated
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.double
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.single
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.quoted.triple
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.regexp
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) string.template
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) string.unquoted
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) support
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) support.class
#E7DF3D RGB(231, 223, 61) RGBA(231, 223, 61, 1) support.constant
#64E02B RGB(100, 224, 43) RGBA(100, 224, 43, 1) support.function
#54A49E RGB(84, 164, 158) RGBA(84, 164, 158, 1) support.other
#E7DF3D RGB(231, 223, 61) RGBA(231, 223, 61, 1) support.type
#A7D6D0 RGB(167, 214, 208) RGBA(167, 214, 208, 1) support.type.primitive
#A7D6D0 RGB(167, 214, 208) RGBA(167, 214, 208, 1) support.type.property-name
#54A49E RGB(84, 164, 158) RGBA(84, 164, 158, 1) variable
#D4CE46 RGB(212, 206, 70) RGBA(212, 206, 70, 1) variable.function
#54A49E RGB(84, 164, 158) RGBA(84, 164, 158, 1) variable.language
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.name
#D4CE46 RGB(212, 206, 70) RGBA(212, 206, 70, 1) variable.other
#71F091 RGB(113, 240, 145) RGBA(113, 240, 145, 1) variable.other.constant
#71F091 RGB(113, 240, 145) RGBA(113, 240, 145, 1) variable.other.property
#71F091 RGB(113, 240, 145) RGBA(113, 240, 145, 1) variable.other.readwrite
#71F091 RGB(113, 240, 145) RGBA(113, 240, 145, 1) variable.parameter
#64E02B RGB(100, 224, 43) RGBA(100, 224, 43, 1)