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
Laravel Dark Professional
colors Workbench UI color keys from the theme JSON colors map.
key HEX RGB RGBA activityBar.background
#1E1214 RGB(30, 18, 20) RGBA(30, 18, 20, 1) activityBar.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) activityBarBadge.background
#FF2D20 RGB(255, 45, 32) RGBA(255, 45, 32, 1) activityBarBadge.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) button.background
#7A1A1A RGB(122, 26, 26) RGBA(122, 26, 26, 1) button.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) button.hoverBackground
#9B2424 RGB(155, 36, 36) RGBA(155, 36, 36, 1) dropdown.background
#1E1214 RGB(30, 18, 20) RGBA(30, 18, 20, 1) dropdown.border
#321A1A RGB(50, 26, 26) RGBA(50, 26, 26, 1) dropdown.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) editor.background
#161010 RGB(22, 16, 16) RGBA(22, 16, 16, 1) editor.foreground
#E0D0D0 RGB(224, 208, 208) RGBA(224, 208, 208, 1) editor.inactiveSelectionBackground
#5A1A1A30 RGB(90, 26, 26) RGBA(90, 26, 26, 0.188) editor.lineHighlightBackground
#2A1A1A RGB(42, 26, 26) RGBA(42, 26, 26, 1) editor.selectionBackground
#7A1A1A40 RGB(122, 26, 26) RGBA(122, 26, 26, 0.251) editorCursor.foreground
#FF5252 RGB(255, 82, 82) RGBA(255, 82, 82, 1) editorGroupHeader.tabsBackground
#1E1214 RGB(30, 18, 20) RGBA(30, 18, 20, 1) editorWhitespace.foreground
#351B1B RGB(53, 27, 27) RGBA(53, 27, 27, 1) input.background
#1E1214 RGB(30, 18, 20) RGBA(30, 18, 20, 1) input.border
#321A1A RGB(50, 26, 26) RGBA(50, 26, 26, 1) input.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) inputOption.activeBorder
#FF5252 RGB(255, 82, 82) RGBA(255, 82, 82, 1) minimap.background
#16101080 RGB(22, 16, 16) RGBA(22, 16, 16, 0.502) minimapSlider.activeBackground
#7A1A1A60 RGB(122, 26, 26) RGBA(122, 26, 26, 0.376) minimapSlider.background
#2A1A1A40 RGB(42, 26, 26) RGBA(42, 26, 26, 0.251) minimapSlider.hoverBackground
#2A1A1A60 RGB(42, 26, 26) RGBA(42, 26, 26, 0.376) panel.background
#161010 RGB(22, 16, 16) RGBA(22, 16, 16, 1) panelTitle.activeForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) panelTitle.inactiveForeground
#FFFFFF80 RGB(255, 255, 255) RGBA(255, 255, 255, 0.502) scrollbarSlider.activeBackground
#9B242460 RGB(155, 36, 36) RGBA(155, 36, 36, 0.376) scrollbarSlider.background
#2A1A1A70 RGB(42, 26, 26) RGBA(42, 26, 26, 0.439) scrollbarSlider.hoverBackground
#7A1A1A40 RGB(122, 26, 26) RGBA(122, 26, 26, 0.251) sideBar.background
#221618 RGB(34, 22, 24) RGBA(34, 22, 24, 1) sideBar.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) sideBarSectionHeader.background
#1E1214 RGB(30, 18, 20) RGBA(30, 18, 20, 1) sideBarTitle.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) statusBar.background
#7A1A1A RGB(122, 26, 26) RGBA(122, 26, 26, 1) statusBar.foreground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) statusBarItem.hoverBackground
#9B2424 RGB(155, 36, 36) RGBA(155, 36, 36, 1) statusBarItem.remoteBackground
#1E1214 RGB(30, 18, 20) RGBA(30, 18, 20, 1) tab.activeBackground
#161010 RGB(22, 16, 16) RGBA(22, 16, 16, 1) tab.activeForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) tab.border
#1E1214 RGB(30, 18, 20) RGBA(30, 18, 20, 1) tab.inactiveBackground
#1E1214 RGB(30, 18, 20) RGBA(30, 18, 20, 1) tab.inactiveForeground
#FFFFFF80 RGB(255, 255, 255) RGBA(255, 255, 255, 0.502) terminal.ansiBlue
#CD5C5C RGB(205, 92, 92) RGBA(205, 92, 92, 1) terminal.ansiBrightBlue
#FA8072 RGB(250, 128, 114) RGBA(250, 128, 114, 1) terminal.ansiBrightCyan
#FF6347 RGB(255, 99, 71) RGBA(255, 99, 71, 1) terminal.ansiBrightGreen
#FF7F50 RGB(255, 127, 80) RGBA(255, 127, 80, 1) terminal.ansiBrightMagenta
#DC143C RGB(220, 20, 60) RGBA(220, 20, 60, 1) terminal.ansiBrightRed
#FF5252 RGB(255, 82, 82) RGBA(255, 82, 82, 1) terminal.ansiBrightWhite
#FFE4E1 RGB(255, 228, 225) RGBA(255, 228, 225, 1) terminal.ansiBrightYellow
#FFA07A RGB(255, 160, 122) RGBA(255, 160, 122, 1) terminal.ansiCyan
#FF7256 RGB(255, 114, 86) RGBA(255, 114, 86, 1) terminal.ansiGreen
#B85A44 RGB(184, 90, 68) RGBA(184, 90, 68, 1) terminal.ansiMagenta
#B22222 RGB(178, 34, 34) RGBA(178, 34, 34, 1) terminal.ansiRed
#FF2D20 RGB(255, 45, 32) RGBA(255, 45, 32, 1) terminal.ansiYellow
#E9967A RGB(233, 150, 122) RGBA(233, 150, 122, 1) terminal.background
#161010 RGB(22, 16, 16) RGBA(22, 16, 16, 1) terminal.foreground
#E0D0D0 RGB(224, 208, 208) RGBA(224, 208, 208, 1) titleBar.activeBackground
#1A1012 RGB(26, 16, 18) RGBA(26, 16, 18, 1) titleBar.activeForeground
#FFFFFF RGB(255, 255, 255) RGBA(255, 255, 255, 1) titleBar.inactiveBackground
#1A101299 RGB(26, 16, 18) RGBA(26, 16, 18, 0.6) titleBar.inactiveForeground
#FFFFFF99 RGB(255, 255, 255) RGBA(255, 255, 255, 0.6)
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
#FF5722 RGB(255, 87, 34) RGBA(255, 87, 34, 1) constant.character
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) constant.character.escape
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) constant.numeric
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) constant.numeric.integer
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) constant.numeric.float
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) constant.numeric.hex
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) constant.numeric.octal
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) constant.other
#FF5722 RGB(255, 87, 34) RGBA(255, 87, 34, 1) constant.other.placeholder
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) entity
#FF7043 RGB(255, 112, 67) RGBA(255, 112, 67, 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
#FF7043 RGB(255, 112, 67) RGBA(255, 112, 67, 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
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 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
#FFAB91 RGB(255, 171, 145) RGBA(255, 171, 145, 1) entity.other.inherited-class
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 1) invalid
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) invalid.deprecated
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) invalid.illegal
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) keyword
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 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
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) keyword.operator.new
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) keyword.operator.assignment
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) keyword.operator.arithmetic
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) keyword.operator.logical
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) keyword.other
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 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
#C3E88D RGB(195, 232, 141) RGBA(195, 232, 141, 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
#65737E RGB(101, 115, 126) RGBA(101, 115, 126, 1) meta.function-call
#FF7043 RGB(255, 112, 67) RGBA(255, 112, 67, 1) meta.tag
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) punctuation.definition.bracket
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) punctuation.definition.comment
#546E7A RGB(84, 110, 122) RGBA(84, 110, 122, 1) punctuation.definition.string.begin
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) punctuation.definition.string.end
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) punctuation.separator
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) punctuation.separator.continuation
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) punctuation.terminator
#89DDFF RGB(137, 221, 255) RGBA(137, 221, 255, 1) storage
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) storage.modifier
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 1) storage.type
#C792EA RGB(199, 146, 234) RGBA(199, 146, 234, 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
#FFAB91 RGB(255, 171, 145) RGBA(255, 171, 145, 1) support.class
#FFCB6B RGB(255, 203, 107) RGBA(255, 203, 107, 1) support.constant
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1) support.function
#FF7043 RGB(255, 112, 67) RGBA(255, 112, 67, 1) support.other
#FFAB91 RGB(255, 171, 145) RGBA(255, 171, 145, 1) support.type
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) support.type.primitive
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) support.type.property-name
#B2CCD6 RGB(178, 204, 214) RGBA(178, 204, 214, 1) variable
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) variable.function
#FF7043 RGB(255, 112, 67) RGBA(255, 112, 67, 1) variable.language
#FF5370 RGB(255, 83, 112) RGBA(255, 83, 112, 1) variable.name
#EEFFFF RGB(238, 255, 255) RGBA(238, 255, 255, 1) variable.other
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.other.constant
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.other.property
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.other.readwrite
#F07178 RGB(240, 113, 120) RGBA(240, 113, 120, 1) variable.parameter
#F78C6C RGB(247, 140, 108) RGBA(247, 140, 108, 1)