Skip to main content
Coding Theme

VS Code preview

Full workbench mockup using this variant's colors and tokenColors.

src
components
fetchUser.ts
User
tags
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}!`;
}
WSL
1 1
main*
Copilot
Ln 5, Col 12
Spaces: 2
UTF-8
LF
TypeScript
Ash Sharp

colors

Workbench UI color keys from the theme JSON colors map.

keyHEXRGBRGBA
actionBar.toggledBackground
activityBar.activeBackground
activityBar.activeBorder
activityBar.activeFocusBorder
activityBar.background
activityBar.border
activityBar.dropBorder
activityBar.foreground
activityBar.inactiveForeground
activityBarBadge.background
activityBarBadge.foreground
activityBarTop.activeBackground
activityBarTop.activeBorder
activityBarTop.background
activityBarTop.dropBorder
activityBarTop.foreground
activityBarTop.inactiveForeground
badge.background
badge.foreground
banner.background
banner.foreground
banner.iconForeground
breadcrumb.activeSelectionForeground
breadcrumb.background
breadcrumb.focusForeground
breadcrumb.foreground
breadcrumbPicker.background
button.background
button.border
button.foreground
button.hoverBackground
button.secondaryBackground
button.secondaryForeground
button.secondaryHoverBackground
button.separator
charts.blue
charts.foreground
charts.green
charts.lines
charts.orange
charts.purple
charts.red
charts.yellow
chat.avatarBackground
chat.avatarForeground
chat.requestBackground
chat.requestBorder
chat.slashCommandBackground
chat.slashCommandForeground
checkbox.background
checkbox.border
checkbox.foreground
checkbox.selectBackground
checkbox.selectBorder
commandCenter.activeBackground
commandCenter.activeBorder
commandCenter.activeForeground
commandCenter.background
commandCenter.border
commandCenter.debuggingBackground
commandCenter.foreground
commandCenter.inactiveBorder
commandCenter.inactiveForeground
commentsView.resolvedIcon
commentsView.unresolvedIcon
contrastActiveBorder
contrastBorder
debugConsole.errorForeground
debugConsole.infoForeground
debugConsole.sourceForeground
debugConsole.warningForeground
debugConsoleInputIcon.foreground
debugIcon.breakpointCurrentStackframeForeground
debugIcon.breakpointDisabledForeground
debugIcon.breakpointForeground
debugIcon.breakpointUnverifiedForeground
debugIcon.continueForeground
debugIcon.disconnectForeground
debugIcon.pauseForeground
debugIcon.restartForeground
debugIcon.startForeground
debugIcon.stepBackForeground
debugIcon.stepIntoForeground
debugIcon.stepOutForeground
debugIcon.stepOverForeground
debugIcon.stopForeground
debugTokenExpression.boolean
debugTokenExpression.value
debugToolBar.background
debugToolBar.border
debugView.valueChangedHighlight
descriptionForeground
diffEditor.diagonalFill
diffEditor.insertedTextBackground
diffEditor.insertedTextBorder
diffEditor.removedTextBackground
diffEditor.removedTextBorder
dropdown.background
dropdown.border
dropdown.foreground
dropdown.listBackground
editor.background
editor.findMatchBackground
editor.findMatchBorder
editor.findMatchForeground
editor.findMatchHighlightBackground
editor.findMatchHighlightBorder
editor.findMatchHighlightForeground
editor.findRangeHighlightBackground
editor.findRangeHighlightBorder
editor.foldBackground
editor.foldPlaceholderForeground
editor.foreground
editor.hoverHighlightBackground
editor.inactiveSelectionBackground
editor.inlineValuesBackground
editor.lineHighlightBackground
editor.lineHighlightBorder
editor.selectionBackground
editor.selectionForeground
editor.selectionHighlightBackground
editor.selectionHighlightBorder
editor.snippetFinalTabstopHighlightBackground
editor.snippetFinalTabstopHighlightBorder
editor.snippetTabstopHighlightBackground
editor.snippetTabstopHighlightBorder
editor.stackFrameHighlightBackground
editor.symbolHighlightBackground
editor.wordHighlightBackground
editor.wordHighlightBorder
editor.wordHighlightStrongBackground
editor.wordHighlightStrongBorder
editor.wordHighlightTextBackground
editor.wordHighlightTextBorder
editorBracketMatch.background
editorBracketMatch.border
editorCodeLens.foreground
editorCursor.background
editorCursor.foreground
editorError.background
editorError.foreground
editorGhostText.background
editorGhostText.border
editorGhostText.foreground
editorGroup.border
editorGroupHeader.border
editorGroupHeader.noTabsBackground
editorGroupHeader.tabsBackground
editorGroupHeader.tabsBorder
editorGutter.addedBackground
editorGutter.background
editorGutter.commentGlyphForeground
editorGutter.commentRangeForeground
editorGutter.commentUnresolvedGlyphForeground
editorGutter.deletedBackground
editorGutter.foldingControlForeground
editorGutter.modifiedBackground
editorIndentGuide.activeBackground1
editorIndentGuide.activeBackground2
editorIndentGuide.activeBackground3
editorIndentGuide.background1
editorIndentGuide.background2
editorIndentGuide.background3
editorLightBulb.foreground
editorLightBulbAutoFix.foreground
editorLineNumber.activeForeground
editorLineNumber.foreground
editorLink.activeForeground
editorMarkerNavigation.background
editorMarkerNavigationError.background
editorMarkerNavigationError.headerBackground
editorMarkerNavigationInfo.background
editorMarkerNavigationInfo.headerBackground
editorMarkerNavigationWarning.background
editorMarkerNavigationWarning.headerBackground
editorMultiCursor.secondary.background
editorMultiCursor.secondary.foreground
editorOverviewRuler.addedForeground
editorOverviewRuler.deletedForeground
editorOverviewRuler.errorForeground
editorOverviewRuler.findMatchForeground
editorOverviewRuler.modifiedForeground
editorOverviewRuler.selectionHighlightForeground
editorOverviewRuler.wordHighlightForeground
editorOverviewRuler.wordHighlightStrongForeground
editorPane.background
editorRuler.foreground
editorStickyScroll.background
editorStickyScroll.border
editorStickyScroll.shadow
editorStickyScrollHover.background
editorSuggestWidget.background
editorSuggestWidget.border
editorSuggestWidget.focusHighlightForeground
editorSuggestWidget.foreground
editorSuggestWidget.highlightForeground
editorSuggestWidget.selectedBackground
editorSuggestWidget.selectedForeground
editorSuggestWidget.selectedIconForeground
editorWhitespace.foreground
editorWidget.resizeBorder
errorForeground
extensionBadge.remoteBackground
extensionBadge.remoteForeground
extensionButton.background
extensionButton.prominentBackground
extensionButton.prominentForeground
extensionButton.prominentHoverBackground
extensionIcon.preReleaseForeground
extensionIcon.sponsorForeground
extensionIcon.starForeground
extensionIcon.verifiedForeground
focusBorder
icon.foreground
inlineChatInput.placeholderForeground
input.background
input.border
input.foreground
input.placeholderForeground
inputOption.activeBackground
inputOption.activeBorder
inputOption.activeForeground
inputValidation.errorBackground
list.activeSelectionBackground
list.activeSelectionForeground
list.activeSelectionIconForeground
list.deemphasizedForeground
list.dropBackground
list.dropBetweenBackground
list.errorForeground
list.filterMatchBackground
list.filterMatchBorder
list.focusAndSelectionOutline
list.focusBackground
list.focusForeground
list.focusHighlightForeground
list.focusOutline
list.highlightForeground
list.hoverBackground
list.hoverForeground
list.inactiveFocusBackground
list.inactiveFocusOutline
list.inactiveSelectionBackground
list.inactiveSelectionForeground
list.inactiveSelectionIconForeground
list.invalidItemForeground
list.warningForeground
listFilterWidget.background
listFilterWidget.noMatchesOutline
listFilterWidget.outline
listFilterWidget.shadow
menu.background
menu.border
menu.foreground
menu.selectionBackground
menu.selectionBorder
menu.selectionForeground
menu.separatorBackground
menubar.selectionBackground
menubar.selectionBorder
menubar.selectionForeground
minimap.background
minimap.errorHighlight
minimap.findMatchHighlight
minimap.foregroundOpacity
minimap.infoHighlight
minimap.selectionHighlight
minimap.selectionOccurrenceHighlight
minimap.warningHighlight
minimapGutter.addedBackground
minimapGutter.deletedBackground
minimapGutter.modifiedBackground
minimapSlider.activeBackground
minimapSlider.background
notebook.cellBorderColor
notebook.cellToolbarSeparator
notebook.focusedCellBackground
notebook.focusedCellBorder
notebook.focusedEditorBorder
notebook.inactiveFocusedCellBorder
notebook.inactiveSelectedCellBorder
notebook.selectedCellBackground
notebook.selectedCellBorder
outputView.background
outputViewStickyScroll.background
panel.background
panel.border
panel.dropBorder
panelInput.border
panelSection.border
panelSection.dropBackground
panelSectionHeader.background
panelSectionHeader.border
panelSectionHeader.foreground
panelStickyScroll.background
panelStickyScroll.border
panelStickyScroll.shadow
panelTitle.activeBorder
panelTitle.activeForeground
panelTitle.inactiveForeground
peekView.border
peekViewEditor.background
peekViewEditor.matchHighlightBackground
peekViewEditor.matchHighlightBorder
peekViewEditorGutter.background
peekViewEditorStickyScroll.background
peekViewResult.background
peekViewResult.fileForeground
peekViewResult.lineForeground
peekViewResult.matchHighlightBackground
peekViewResult.selectionBackground
peekViewResult.selectionForeground
peekViewTitle.background
peekViewTitleDescription.foreground
peekViewTitleLabel.foreground
pickerGroup.border
pickerGroup.foreground
ports.iconRunningProcessForeground
problemsErrorIcon.foreground
problemsInfoIcon.foreground
problemsWarningIcon.foreground
profileBadge.background
profileBadge.foreground
profiles.sashBorder
progressBar.background
sash.hoverBorder
scrollbar.shadow
scrollbarSlider.activeBackground
scrollbarSlider.background
scrollbarSlider.hoverBackground
search.resultsInfoForeground
searchEditor.findMatchBackground
searchEditor.findMatchBorder
searchEditor.textInputBorder
selection.background
settings.checkboxBackground
settings.dropdownBackground
settings.dropdownBorder
settings.dropdownListBorder
settings.headerBorder
settings.modifiedItemIndicator
settings.numberInputBackground
settings.numberInputBorder
settings.numberInputForeground
settings.textInputBackground
settings.textInputBorder
settings.textInputForeground
sideBar.background
sideBar.border
sideBar.dropBackground
sideBar.foreground
sideBarActivityBarTop.border
sideBarSectionHeader.background
sideBarSectionHeader.border
sideBarSectionHeader.foreground
sideBarStickyScroll.background
sideBarStickyScroll.border
sideBarStickyScroll.shadow
sideBarTitle.background
sideBarTitle.foreground
sideBySideEditor.horizontalBorder
sideBySideEditor.verticalBorder
simpleFindWidget.sashBorder
statusBar.background
statusBar.border
statusBar.foreground
statusBar.noFolderBackground
statusBarItem.offlineHoverBackground
statusBarItem.warningHoverBackground
symbolIcon.arrayForeground
symbolIcon.booleanForeground
symbolIcon.classForeground
symbolIcon.colorForeground
symbolIcon.constantForeground
symbolIcon.constructorForeground
symbolIcon.enumeratorForeground
symbolIcon.enumeratorMemberForeground
symbolIcon.eventForeground
symbolIcon.fieldForeground
symbolIcon.fileForeground
symbolIcon.folderForeground
symbolIcon.packageForeground
symbolIcon.propertyForeground
symbolIcon.textForeground
tab.activeBackground
tab.activeBorder
tab.activeForeground
tab.border
tab.hoverBackground
tab.hoverForeground
tab.inactiveBackground
tab.inactiveForeground
tab.inactiveModifiedBorder
tab.lastPinnedBorder
tab.selectedBackground
tab.selectedBorderTop
tab.selectedForeground
tab.unfocusedActiveBackground
tab.unfocusedActiveBorder
tab.unfocusedActiveForeground
tab.unfocusedHoverBackground
terminal.background
terminal.border
terminal.dropBackground
terminal.findMatchBackground
terminal.findMatchBorder
terminal.findMatchHighlightBackground
terminal.findMatchHighlightBorder
terminal.foreground
terminal.hoverHighlightBackground
terminal.inactiveSelectionBackground
terminal.selectionBackground
terminal.selectionForeground
terminal.tab.activeBorder
terminalCommandDecoration.defaultBackground
terminalCursor.background
terminalCursor.foreground
terminalOverviewRuler.findMatchForeground
terminalStickyScroll.background
terminalStickyScroll.border
terminalStickyScrollHover.background
testing.iconErrored
testing.iconFailed
testing.iconFailed.retired
testing.iconPassed
testing.iconQueued
testing.iconSkipped
testing.iconUnset
testing.peekBorder
testing.runAction
textBlockQuote.background
textBlockQuote.border
textCodeBlock.background
textLink.activeForeground
textLink.foreground
textPreformat.background
textPreformat.foreground
textSeparator.foreground
titleBar.activeBackground
titleBar.activeForeground
titleBar.border
titleBar.inactiveBackground
titleBar.inactiveForeground
toolbar.activeBackground
toolbar.hoverBackground
toolbar.hoverOutline
tree.inactiveIndentGuidesStroke
tree.indentGuidesStroke
tree.tableColumnsBorder
tree.tableOddRowsBackground
welcomePage.background
welcomePage.progress.background
welcomePage.progress.foreground
welcomePage.tileBackground
welcomePage.tileBorder
welcomePage.tileHoverBackground
widget.border
widget.shadow
window.activeBorder
window.inactiveBorder

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.

scopeHEXRGBRGBA
comment
comment.block
comment.block.documentation
comment.line
constant
constant.character
constant.character.escape
constant.numeric
constant.numeric.integer
constant.numeric.float
constant.numeric.hex
constant.numeric.octal
constant.other
entity
entity.name
entity.name.function
entity.name.tag
entity.name.type
entity.name.type.enum
entity.name.type.interface
entity.name.type.struct
entity.other
entity.other.attribute-name
invalid
invalid.illegal
keyword
keyword.control
keyword.control.flow
keyword.operator
keyword.operator.new
keyword.operator.assignment
keyword.operator.arithmetic
keyword.operator.logical
keyword.other
meta
meta.function
meta.preprocessor
meta.tag
punctuation.definition.string.begin
punctuation.definition.string.end
punctuation.separator
punctuation.terminator
storage
storage.modifier
storage.type
string
string.quoted
string.quoted.double
string.quoted.single
string.template
string.unquoted
support
support.constant
support.function
support.type
support.type.property-name
variable
variable.function
variable.language
variable.name
variable.other
variable.other.constant
variable.other.property
variable.other.readwrite
variable.parameter