Skip to main content
Coding Theme

Color themes

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
PhpStorm Dark Islands

colors

Workbench UI color keys from the theme JSON colors map.

keyHEXRGBRGBA
activityBar.activeBackground
activityBar.activeBorder
activityBar.activeFocusBorder
activityBar.background
activityBar.border
activityBar.dropBorder
activityBar.foreground
activityBar.inactiveForeground
activityBarBadge.background
activityBarBadge.foreground
badge.background
badge.foreground
breadcrumb.activeSelectionForeground
breadcrumb.background
breadcrumb.focusForeground
breadcrumb.foreground
breadcrumbPicker.background
button.background
button.border
button.foreground
button.hoverBackground
button.secondaryBackground
button.secondaryForeground
button.secondaryHoverBackground
commandCenter.activeBackground
commandCenter.activeBorder
commandCenter.activeForeground
commandCenter.background
commandCenter.border
commandCenter.foreground
commandCenter.inactiveBorder
debugIcon.breakpointForeground
diffEditor.insertedLineBackground
diffEditor.insertedTextBackground
diffEditor.removedLineBackground
diffEditor.removedTextBackground
diffEditorGutter.insertedLineBackground
diffEditorGutter.removedLineBackground
diffEditorOverview.insertedForeground
diffEditorOverview.removedForeground
dropdown.background
dropdown.border
dropdown.foreground
dropdown.listBackground
editor.background
editor.findMatchBackground
editor.findMatchBorder
editor.findMatchHighlightBackground
editor.findMatchHighlightBorder
editor.findRangeHighlightBackground
editor.foldBackground
editor.foreground
editor.inactiveSelectionBackground
editor.inlineValuesBackground
editor.inlineValuesForeground
editor.lineHighlightBackground
editor.linkedEditingBackground
editor.selectionBackground
editor.selectionHighlightBackground
editor.selectionHighlightBorder
editor.wordHighlightBackground
editor.wordHighlightBorder
editor.wordHighlightStrongBackground
editor.wordHighlightStrongBorder
editorBracketMatch.background
editorBracketMatch.border
editorError.foreground
editorGroup.border
editorGroup.emptyBackground
editorGroupHeader.border
editorGroupHeader.noTabsBackground
editorGroupHeader.tabsBackground
editorGroupHeader.tabsBorder
editorGutter.addedBackground
editorGutter.addedSecondaryBackground
editorGutter.background
editorGutter.deletedBackground
editorGutter.deletedSecondaryBackground
editorGutter.foldingControlForeground
editorGutter.modifiedBackground
editorGutter.modifiedSecondaryBackground
editorHoverWidget.foreground
editorHoverWidget.highlightForeground
editorIndentGuide.activeBackground1
editorIndentGuide.background1
editorInfo.foreground
editorInlayHint.background
editorInlayHint.foreground
editorInlayHint.parameterBackground
editorInlayHint.typeBackground
editorLightBulb.foreground
editorLightBulbAutoFix.foreground
editorLineNumber.activeForeground
editorLineNumber.foreground
editorLink.activeForeground
editorOverviewRuler.addedForeground
editorOverviewRuler.currentContentForeground
editorOverviewRuler.deletedForeground
editorOverviewRuler.errorForeground
editorOverviewRuler.findMatchForeground
editorOverviewRuler.incomingContentForeground
editorOverviewRuler.infoForeground
editorOverviewRuler.modifiedForeground
editorOverviewRuler.selectionHighlightForeground
editorOverviewRuler.warningForeground
editorOverviewRuler.wordHighlightForeground
editorOverviewRuler.wordHighlightStrongForeground
editorRuler.foreground
editorStickyScroll.border
editorStickyScroll.shadow
editorStickyScrollHover.background
editorSuggestWidget.focusHighlightForeground
editorSuggestWidget.highlightForeground
editorSuggestWidget.selectedBackground
editorUnnecessaryCode.opacity
editorWarning.foreground
editorWidget.background
editorWidget.border
editorWidget.foreground
errorForeground
focusBorder
gitDecoration.addedResourceForeground
gitDecoration.conflictingResourceForeground
gitDecoration.deletedResourceForeground
gitDecoration.ignoredResourceForeground
gitDecoration.modifiedResourceForeground
gitDecoration.renamedResourceForeground
gitDecoration.stageDeletedResourceForeground
gitDecoration.stageModifiedResourceForeground
gitDecoration.untrackedResourceForeground
input.background
input.border
input.foreground
inputOption.activeBackground
inputOption.activeBorder
inputOption.activeForeground
list.activeSelectionBackground
list.activeSelectionForeground
list.dropBackground
list.focusAndSelectionOutline
list.focusBackground
list.focusHighlightForeground
list.focusOutline
list.highlightForeground
list.hoverBackground
list.hoverForeground
list.inactiveSelectionBackground
list.inactiveSelectionForeground
menu.background
menu.border
menu.foreground
menu.separatorBackground
menubar.selectionBackground
menubar.selectionForeground
merge.currentContentBackground
merge.currentHeaderBackground
merge.incomingContentBackground
merge.incomingHeaderBackground
mergeEditor.change.background
mergeEditor.change.word.background
minimap.errorHighlight
minimap.findMatchHighlight
minimap.infoHighlight
minimap.selectionHighlight
minimap.selectionOccurrenceHighlight
minimap.warningHighlight
minimapGutter.addedBackground
minimapGutter.deletedBackground
minimapGutter.modifiedBackground
minimapSlider.activeBackground
minimapSlider.background
minimapSlider.hoverBackground
notificationCenterHeader.background
notificationCenterHeader.foreground
notificationLink.foreground
notifications.background
notifications.border
notifications.foreground
notificationsErrorIcon.foreground
notificationsInfoIcon.foreground
notificationsWarningIcon.foreground
notificationToast.border
panel.background
panel.border
panel.dropBorder
panelStickyScroll.background
panelStickyScroll.border
panelStickyScroll.shadow
panelTitle.activeBorder
panelTitle.activeForeground
panelTitle.inactiveForeground
peekView.border
peekViewEditor.background
peekViewEditor.matchHighlightBackground
peekViewResult.background
peekViewResult.fileForeground
peekViewResult.lineForeground
peekViewResult.matchHighlightBackground
peekViewResult.selectionBackground
peekViewResult.selectionForeground
peekViewTitle.background
peekViewTitleDescription.foreground
peekViewTitleLabel.foreground
pickerGroup.border
pickerGroup.foreground
problemsErrorIcon.foreground
problemsInfoIcon.foreground
problemsWarningIcon.foreground
quickInputList.focusBackground
quickInputTitle.background
scrollbarSlider.activeBackground
scrollbarSlider.background
scrollbarSlider.hoverBackground
searchEditor.findMatchBackground
searchEditor.findMatchBorder
settings.checkboxBackground
settings.checkboxBorder
settings.checkboxForeground
settings.dropdownBackground
settings.dropdownBorder
settings.dropdownForeground
settings.modifiedItemIndicator
settings.numberInputBackground
settings.numberInputBorder
settings.numberInputForeground
settings.textInputBackground
settings.textInputBorder
settings.textInputForeground
sideBar.background
sideBar.border
sideBar.foreground
sideBarSectionHeader.background
sideBarSectionHeader.border
sideBarSectionHeader.foreground
sideBarStickyScroll.background
sideBarStickyScroll.border
sideBarStickyScroll.shadow
statusBar.background
statusBar.border
statusBar.debuggingBackground
statusBar.debuggingBorder
statusBar.debuggingForeground
statusBar.focusBorder
statusBar.foreground
statusBar.noFolderBackground
statusBar.noFolderBorder
statusBar.noFolderForeground
statusBarItem.activeBackground
statusBarItem.errorBackground
statusBarItem.errorForeground
statusBarItem.errorHoverForeground
statusBarItem.prominentBackground
statusBarItem.prominentForeground
statusBarItem.prominentHoverBackground
statusBarItem.prominentHoverForeground
statusBarItem.warningBackground
statusBarItem.warningForeground
statusBarItem.warningHoverForeground
tab.activeBackground
tab.activeBorder
tab.activeForeground
tab.activeModifiedBorder
tab.border
tab.dragAndDropBorder
tab.hoverForeground
tab.inactiveBackground
tab.inactiveForeground
tab.inactiveModifiedBorder
tab.unfocusedActiveBackground
tab.unfocusedActiveBorder
tab.unfocusedActiveForeground
tab.unfocusedActiveModifiedBorder
tab.unfocusedHoverForeground
tab.unfocusedInactiveBackground
tab.unfocusedInactiveForeground
tab.unfocusedInactiveModifiedBorder
terminal.ansiBlue
terminal.ansiBrightBlue
terminal.ansiBrightCyan
terminal.ansiBrightGreen
terminal.ansiBrightMagenta
terminal.ansiBrightRed
terminal.ansiBrightWhite
terminal.ansiBrightYellow
terminal.ansiCyan
terminal.ansiGreen
terminal.ansiMagenta
terminal.ansiRed
terminal.ansiWhite
terminal.ansiYellow
terminal.background
terminal.border
terminal.foreground
terminalStickyScroll.background
terminalStickyScroll.border
terminalStickyScrollHover.background
textBlockQuote.background
textBlockQuote.border
textCodeBlock.background
textLink.activeForeground
textLink.foreground
titleBar.activeBackground
titleBar.inactiveBackground
welcomePage.background
welcomePage.tileBackground
welcomePage.tileHoverBackground

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.class
entity.name.function
entity.name.section
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.deprecated
invalid.illegal
keyword
keyword.control
keyword.control.flow
keyword.operator
keyword.operator.new
keyword.operator.assignment
keyword.operator.arithmetic
keyword.operator.logical
keyword.other
markup
markup.heading
markup.inline.raw
markup.quote
markup.underline
markup.underline.link
meta
meta.function-call
meta.selector
meta.tag
punctuation.definition.string.begin
punctuation.definition.string.end
punctuation.separator
punctuation.terminator
storage
storage.modifier
storage.type
string
string.interpolated
string.other
string.quoted
string.quoted.double
string.quoted.other
string.quoted.single
string.quoted.triple
string.regexp
string.template
string.unquoted
support
support.class
support.constant
support.function
support.other
support.type
support.type.primitive
support.type.property-name
support.variable
variable
variable.language
variable.other
variable.other.constant
variable.other.property
variable.other.readwrite
variable.parameter