Skip to main content
VS Code preview Full workbench mockup using this variant's colors and tokenColors.
colors Workbench UI color keys from the theme JSON colors map.
activityBar.background #000000 activityBar.border #00000060 activityBar.foreground #FFF500 activityBarBadge.background #FFB900 activityBarBadge.foreground #000000 badge.background #00000030 tokenColors TextMate scopes and font styles (syntax highlighting rules).
scope foreground fontStyle variable, string constant.other.placeholder, invalid.deprecated, keyword, storage.type, storage.modifier #FF950E — variable, string constant.other.placeholder, entity.name.function, punctuation.definition.interpolation.end.bracket.curly.scss, punctuation.definition.interpolation.begin.bracket.curly.scss — italic punctuation.definition.interpolation.end.bracket.curly.scss, punctuation.definition.interpolation.begin.bracket.curly.scss #D12D04 — constant.other.php #FF950E —
Shiki preview TypeScript sample highlighted with this variant's colors and tokenColors.
badge.foreground
#D27D00
breadcrumb.activeSelectionForeground #D27D00
breadcrumb.background #000000
breadcrumb.focusForeground #FFF500
breadcrumb.foreground #FFA100
breadcrumbPicker.background #000000
button.background #D27D0050
contrastBorder #D27D0040
debugToolBar.background #000000
diffEditor.insertedTextBackground #D12D0415
diffEditor.removedTextBackground #FF990420
dropdown.background #000000
dropdown.border #FF7F0010
editor.background #000000
editor.findMatchBackground #000000
editor.findMatchBorder #D27D00
editor.findMatchHighlightBackground #D27D0093
editor.findMatchHighlightBorder #FF7F0030
editor.foreground #FFF500
editor.lineHighlightBackground #00000050
editor.selectionBackground #FFB90030
editor.selectionHighlightBackground #D27D006b
editor.selectionHighlightBorder #FFB900f0
editorBracketMatch.background #000000
editorBracketMatch.border #FF950E7f
editorCursor.foreground #FF950E
editorError.foreground #FF990470
editorGroup.border #00000030
editorGroupHeader.tabsBackground #000000
editorGutter.addedBackground #D12D0460
editorGutter.deletedBackground #FF990460
editorGutter.modifiedBackground #FFB90060
editorHoverWidget.background #000000
editorHoverWidget.border #FF7F0010
editorIndentGuide.activeBackground #C99400
editorIndentGuide.background #C9940070
editorInfo.foreground #FFB90070
editorLineNumber.activeForeground #FFB900
editorLineNumber.foreground #D27D00c0
editorLink.activeForeground #FFF500
editorMarkerNavigation.background #FFF50005
editorOverviewRuler.border #000000
editorOverviewRuler.errorForeground #FF990440
editorOverviewRuler.findMatchForeground #D27D00
editorOverviewRuler.infoForeground #FFB90040
editorOverviewRuler.warningForeground #FF950E70
editorRuler.foreground #C99400
editorSuggestWidget.background #000000
editorSuggestWidget.border #FF7F0010
editorSuggestWidget.foreground #FFF500
editorSuggestWidget.highlightForeground #FF950E
editorSuggestWidget.selectedBackground #D27D0020
editorWarning.foreground #D12D04
editorWhitespace.foreground #FFF50040
editorWidget.background #000000
editorWidget.border #FF950E
editorWidget.resizeBorder #D27D00
extensionButton.prominentBackground #D12D0490
extensionButton.prominentHoverBackground #FF9904
focusBorder #FF7F0000
gitDecoration.conflictingResourceForeground #FF950E
gitDecoration.deletedResourceForeground #FF9904
gitDecoration.ignoredResourceForeground #D27D00
gitDecoration.modifiedResourceForeground #FFA100
gitDecoration.untrackedResourceForeground #FFB900
input.background #E59000
input.border #FF7F0010
input.foreground #FFF500
input.placeholderForeground #FFF50060
inputOption.activeBackground #FFF50030
inputOption.activeBorder #FFF50030
inputValidation.errorBorder #FF990450
inputValidation.infoBorder #FFB90050
inputValidation.warningBorder #FF950E50
list.activeSelectionBackground #000000
list.activeSelectionForeground #D27D00
list.focusBackground #E59000
list.focusForeground #FFB900
list.highlightForeground #D27D00
list.hoverBackground #C99400
list.hoverForeground #FF7F00
list.inactiveSelectionBackground #00000030
list.inactiveSelectionForeground #D27D00
list.warningForeground #FF950E
listFilterWidget.background #00000030
listFilterWidget.noMatchesOutline #00000030
listFilterWidget.outline #00000030
menu.background #000000f8
menu.border #D27D0050
menu.foreground #FFF500
menu.selectionBackground #E59000
menu.selectionBorder #00000030
menu.selectionForeground #FFF500
menu.separatorBackground #FFF500
menubar.selectionBackground #E59000
menubar.selectionBorder #D27D0050
menubar.selectionForeground #FFF500
minimap.background #000000
minimapGutter.addedBackground #FF9904
minimapGutter.deletedBackground #FF950E
minimapGutter.modifiedBackground #D12D04
minimapSlider.activeBackground #D12D04b0
minimapSlider.background #D12D0480
minimapSlider.hoverBackground #D12D04a0
notificationLink.foreground #D27D00
notifications.background #000000
notifications.foreground #FFF500
panel.background #000000
panel.border #00000060
panelTitle.activeBorder #D27D00
panelTitle.activeForeground #FF7F00
panelTitle.inactiveForeground #FFF500
peekView.border #00000030
peekViewEditor.background #FFF50005
peekViewEditor.matchHighlightBackground #D27D0050
peekViewEditorGutter.background #FFF50005
peekViewResult.background #FFF50005
peekViewResult.matchHighlightBackground #D27D0050
peekViewResult.selectionBackground #D27D0070
peekViewTitle.background #FFF50005
peekViewTitleDescription.foreground #FFF50060
pickerGroup.foreground #D27D00
progressBar.background #D27D00
scrollbar.shadow #00000000
scrollbarSlider.activeBackground #D27D00cc
scrollbarSlider.background #D27D00bb
scrollbarSlider.hoverBackground #D27D00ee
selection.background #D27D00
settings.checkboxBackground #000000
settings.checkboxForeground #FFF500
settings.dropdownBackground #000000
settings.dropdownForeground #FFF500
settings.headerForeground #D27D00
settings.modifiedItemIndicator #D27D00
settings.numberInputBackground #000000
settings.numberInputForeground #FFF500
settings.textInputBackground #000000
settings.textInputForeground #FFF500
sideBar.background #000000
sideBar.border #D27D0050
sideBar.foreground #FFB900
sideBarSectionHeader.background #000000
sideBarSectionHeader.border #00000060
sideBarSectionHeader.foreground #FFB900
sideBarTitle.foreground #FFF500
statusBar.background #D4A800
statusBar.border #00000060
statusBar.debuggingBackground #FF950E
statusBar.debuggingForeground #FF7F00
statusBar.foreground #470C00
statusBar.noFolderBackground #000000
statusBarItem.hoverBackground #D27D0020
statusBarItem.remoteBackground #D27D00
statusBarItem.remoteForeground #000000
tab.activeBackground #D27D0050
tab.activeBorder #D27D00
tab.activeForeground #FF7F00
tab.activeModifiedBorder #D27D00
tab.border #000000
tab.inactiveBackground #D27D0020
tab.inactiveForeground #FFF500af
tab.unfocusedActiveBackground #D27D0040
tab.unfocusedActiveBorder #D27D00
tab.unfocusedActiveForeground #FFF500
tab.unfocusedInactiveBackground #D27D0010
tab.unfocusedInactiveForeground #FFF5007f
terminal.ansiBlack #000000
terminal.ansiBlue #FFB900
terminal.ansiBrightBlack #D27D00
terminal.ansiBrightBlue #FFB900
terminal.ansiBrightCyan #FFCB00
terminal.ansiBrightGreen #D12D04
terminal.ansiBrightMagenta #FF950E
terminal.ansiBrightRed #FF9904
terminal.ansiBrightWhite #FF7F00
terminal.ansiBrightYellow #FF950E
terminal.ansiCyan #FFCB00
terminal.ansiGreen #D12D04
terminal.ansiMagenta #FF950E
terminal.ansiRed #FF9904
terminal.ansiWhite #FF7F00
terminal.ansiYellow #FF950E
terminalCursor.background #000000
terminalCursor.foreground #FF950E
textLink.activeForeground #FFF500
textLink.foreground #D27D00
titleBar.activeBackground #000000
titleBar.activeForeground #FFF500
titleBar.border #00000060
titleBar.inactiveBackground #000000
titleBar.inactiveForeground #D27D00
tree.indentGuidesStroke #C99400
widget.shadow #00000030 invalid, invalid.illegal #FF9904 —
keyword.control, constant.other.color, punctuation.definition.tag, punctuation, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution, entity.name.tag.reference.scss #A7A8AF —
punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, entity.name.type.module.js #FFA100 —
keyword.control.at-rule, punctuation.terminator.rule.css, keyword.control.operator, punctuation.definition.entity.css, keyword.operator.assignment.js, punctuation.separator.comma.js, punctuation.definition.string.begin.js, punctuation.definition.string.end.js, punctuation.definition.binding-pattern.object.js #FFF500 —
punctuation.definition, string.quoted.single.scss #A7A8AF —
comment.line.scss, comment.line.double-slash.js, punctuation.definition.comment.scss, punctuation.definition.comment.js, punctuation.definition.comment.html, comment.block.html #6D6F7C —
text.html.derivative #A7A8AF —
entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter #FFF500 —
entity.name.tag.html — bold
variable.parameter.js, variable.parameter.keyframe-list.css #FF950E —
variable.other.object.js, storage.type.js, string.other.link.title.markdown, variable.other.readwrite.js, variable.other.property.js #FFA100
string, string.quoted.double.html, variable.other.constant.js, variable.other.object.property.js, string.quoted.double.json, markup.fenced_code.block.markdown, markup.inline.raw.string.markdown, variable.function, keyword.other.special-method, entity.name.function, markup.bold, markup.bold.markdown, markup.italic.markdown, meta.class-method.js entity.name.function.js, variable.function.constructor, entity.name.tag.other.html, entity.name.tag.block.any.html, source.sass keyword.control #FFB900 —
punctuation.definition.string.begin.html, punctuation.definition.string.end.html #FFCB00 —
support.other.variable, string.other.link, markup.table #FFF500 —
constant.numeric, constant.language, constant.character, constant.escape, keyword.other.unit, keyword.other, punctuation.separator.key-value.html #FF950E —
variable.parameter.function.language.special, variable.parameter #FF9904 —
constant.other.symbol, constant.other.key, entity.other.inherited-class, keyword.other.unit, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly, constant.other.object.key.js, string.unquoted.label.js #D12D04
entity.name, support.type, support.class, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types, entity.other.attribute-name.html #FF950E —
source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name #FFA100 —
entity.name.module.js, variable.import.parameter.js, variable.other.class.js #FF9904 —
entity.name.method.js, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js #FFB900 italic
entity.other.attribute-name, support.function #FF950E —
entity.other.attribute-name.id, entity.other.attribute-name.class, entity.other.attribute-name.pseudo-class, entity.name.tag.css, keyword.control.conditional.js, support.constant, entity.other.attribute-name.html, string.quoted.single.js, storage.type.function.js, meta.object-literal.key #FFF500 —
source.scss keyword.control #FF950E —
constant.character.escape #FFCB00 —
*url*, *link*, *uri* — underline
source.js constant.other.object.key.js string.unquoted.label.js #FFF500 italic
support.type.property-name.json #FFF500 —
text.html.markdown, punctuation.definition.list_item.markdown #FFF500 —
text.html.markdown markup.inline.raw.markdown #FF950E —
text.html.markdown markup.inline.raw.markdown, punctuation.definition.raw.markdown #D27D0050 —
text.html.markdown meta.dummy.line-break — —
markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown, entity.name.section.markdown #FFA100 bold
markup.underline #FFB900 underline
markup.quote punctuation.definition.blockquote.markdown #D27D0050 —
string.other.link.description.title.markdown #FF950E —
constant.other.reference.link.markdown #FF950E —
punctuation.definition.raw.markdown, punctuation.definition.markdown #FFCB00 —
variable.language.fenced.markdown #D27D00 —
meta.separator #A7A8AF bold
token.error-token #FF293B —
token.debug-token #FFCB00 —
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 } ! ` ;
}
fetchUser.ts
index.ts
README.md
src
components
fetchUser.ts
src
components
fetchUser.ts
fetchUser 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
Problems1
Output
Debug Console
Terminal
Ports
~/my-project $ pnpm dev
▲ Next.js ready on http://localhost:3000
✓ compiled client and server successfully in 412ms
wait - compiling /theme/vscode...
main*
Meow Dark | Coding Theme Button.tsx
31
~/my-project
$
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 } ! ` ;
}