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
BBBGarish

colors

Workbench UI color keys from the theme JSON colors map.

keyHEXRGBRGBA
activityBar.background
NULL——
activityBar.border
activityBar.dropBackground
NULL——
activityBar.foreground
NULL——
activityBarBadge.background
NULL——
activityBarBadge.foreground
NULL——
badge.background
NULL——
badge.foreground
breadcrumb.activeSelectionForeground
NULL——
breadcrumb.focusForeground
NULL——
breadcrumb.foreground
NULL——
breadcrumbPicker.background
NULL——
button.background
button.foreground
button.hoverBackground
contrastBorder
debugExceptionWidget.background
NULL——
debugExceptionWidget.border
NULL——
debugToolBar.background
NULL——
diffEditor.insertedTextBackground
NULL23——
diffEditor.insertedTextBorder
NULL33——
diffEditor.removedTextBackground
NULL33——
diffEditor.removedTextBorder
NULL4D——
dropdown.background
dropdown.border
dropdown.foreground
editor.background
editor.findMatchBackground
NULL79——
editor.findMatchHighlightBackground
NULL5D——
editor.findRangeHighlightBackground
NULL——
editor.foreground
editor.hoverHighlightBackground
NULL5A——
editor.inactiveSelectionBackground
NULL5A——
editor.lineHighlightBackground
NULL——
editor.lineHighlightBorder
NULL——
editor.rangeHighlightBackground
NULL5A——
editor.selectionBackground
NULL——
editor.selectionHighlightBackground
NULL79——
editor.wordHighlightBackground
NULL33——
editor.wordHighlightStrongBackground
NULL33——
editorBracketMatch.background
NULL4D——
editorBracketMatch.border
NULL——
editorCodeLens.foreground
NULLB4——
editorCursor.foreground
NULL——
editorError.border
NULL——
editorError.foreground
NULL——
editorGroup.border
NULL——
editorGroup.dropBackground
NULL73——
editorGroup.emptyBackground
editorGroupHeader.noTabsBackground
editorGroupHeader.tabsBackground
editorGroupHeader.tabsBorder
editorGutter.addedBackground
NULL——
editorGutter.background
NULL——
editorGutter.deletedBackground
NULL——
editorGutter.modifiedBackground
NULL——
editorHoverWidget.background
NULL——
editorHoverWidget.border
NULL——
editorIndentGuide.activeBackground
NULL——
editorIndentGuide.background
NULL52——
editorLineNumber.activeForeground
NULL——
editorLineNumber.foreground
editorLink.activeForeground
NULL——
editorMarkerNavigation.background
NULL——
editorMarkerNavigationError.background
NULL——
editorMarkerNavigationWarning.background
NULL——
editorOverviewRuler.commonContentForeground
NULL——
editorOverviewRuler.currentContentForeground
NULL——
editorOverviewRuler.incomingContentForeground
NULL——
editorRuler.foreground
NULL52——
editorSuggestWidget.background
NULL——
editorSuggestWidget.border
NULL——
editorSuggestWidget.foreground
NULL——
editorSuggestWidget.highlightForeground
NULL——
editorSuggestWidget.selectedBackground
NULL——
editorWarning.border
NULL——
editorWarning.foreground
NULL——
editorWhitespace.foreground
NULL——
editorWidget.background
NULL——
editorWidget.border
NULL——
errorForeground
extensionButton.prominentBackground
extensionButton.prominentForeground
extensionButton.prominentHoverBackground
NULL——
focusBorder
foreground
gitDecoration.conflictingResourceForeground
NULL——
gitDecoration.deletedResourceForeground
NULL90——
gitDecoration.ignoredResourceForeground
NULL——
gitDecoration.modifiedResourceForeground
NULL——
gitDecoration.untrackedResourceForeground
NULLFF——
input.background
input.border
input.foreground
NULL——
input.placeholderForeground
inputOption.activeBorder
NULL——
inputValidation.errorBackground
NULL——
inputValidation.errorBorder
NULL——
inputValidation.infoBackground
NULL——
inputValidation.infoBorder
NULL——
inputValidation.warningBackground
NULL——
inputValidation.warningBorder
NULL——
list.activeSelectionBackground
NULL8C——
list.activeSelectionForeground
NULL——
list.dropBackground
NULL——
list.focusBackground
NULL——
list.focusForeground
NULL——
list.highlightForeground
NULL——
list.hoverBackground
NULL——
list.hoverForeground
NULL——
list.inactiveSelectionBackground
NULL——
list.inactiveSelectionForeground
NULL——
list.invalidItemForeground
NULL——
merge.border
NULL——
merge.currentContentBackground
NULL——
merge.currentHeaderBackground
NULL——
merge.incomingContentBackground
NULL——
merge.incomingHeaderBackground
NULL5A——
meta.objectliteral.js
NULL——
notificationCenter.border
NULL——
notificationLink.foreground
NULL——
notifications.background
NULL——
notifications.border
NULL——
notifications.foreground
NULL——
notificationToast.border
panel.background
NULL——
panel.border
NULL——
panelTitle.activeBorder
NULL——
panelTitle.activeForeground
NULL——
panelTitle.inactiveForeground
NULL80——
peekView.border
NULL——
peekViewEditor.background
NULL——
peekViewEditor.matchHighlightBackground
NULL5A——
peekViewResult.background
NULL——
peekViewResult.fileForeground
NULL——
peekViewResult.lineForeground
NULL——
peekViewResult.matchHighlightBackground
NULL——
peekViewResult.selectionBackground
NULL——
peekViewResult.selectionForeground
NULL——
peekViewTitle.background
NULL——
peekViewTitleDescription.foreground
NULL——
peekViewTitleLabel.foreground
NULL——
pickerGroup.border
NULL——
pickerGroup.foreground
NULL——
scrollbar.shadow
NULL——
scrollbarSlider.activeBackground
NULL80——
scrollbarSlider.background
NULL80——
scrollbarSlider.hoverBackground
NULL80——
selection.background
sideBar.background
sideBar.border
NULL——
sideBar.foreground
sideBarSectionHeader.background
sideBarSectionHeader.foreground
NULL——
sideBarTitle.foreground
NULL——
source.elm
NULL——
statusBar.background
statusBar.border
NULL——
statusBar.debuggingBackground
NULL——
statusBar.debuggingBorder
NULL——
statusBar.debuggingForeground
NULL——
statusBar.foreground
statusBar.noFolderBackground
NULL——
statusBar.noFolderBorder
NULL——
statusBar.noFolderForeground
NULL——
statusBarItem.activeBackground
NULL——
statusBarItem.hoverBackground
NULL——
statusBarItem.prominentBackground
NULL——
statusBarItem.prominentHoverBackground
NULL——
string.quoted.single.js
NULL——
tab.activeBackground
tab.activeBorder
NULL——
tab.activeForeground
tab.border
tab.inactiveBackground
NULL——
tab.inactiveForeground
NULL——
tab.unfocusedActiveBorder
NULL——
tab.unfocusedActiveForeground
NULL——
tab.unfocusedInactiveForeground
NULL——
terminal.ansiBlack
NULL——
terminal.ansiBlue
NULL——
terminal.ansiBrightBlack
NULL——
terminal.ansiBrightBlue
NULL——
terminal.ansiBrightCyan
NULL——
terminal.ansiBrightGreen
NULL——
terminal.ansiBrightMagenta
NULL——
terminal.ansiBrightRed
NULL——
terminal.ansiBrightWhite
NULL——
terminal.ansiBrightYellow
NULL——
terminal.ansiCyan
NULL——
terminal.ansiGreen
NULL——
terminal.ansiMagenta
NULL——
terminal.ansiRed
NULL——
terminal.ansiWhite
terminal.ansiYellow
NULL——
terminal.selectionBackground
NULL4D——
terminalCursor.background
NULL——
titleBar.activeBackground
titleBar.activeForeground
titleBar.inactiveBackground
titleBar.inactiveForeground
walkThrough.embeddedEditorBackground
NULL——
welcomePage.buttonBackground
NULL——
welcomePage.buttonHoverBackground
NULL——
widget.shadow

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
constant.other.placeholder
entity
entity.name
entity.name.class
entity.name.function
entity.name.method
entity.name.namespace
entity.name.section
entity.name.selector
entity.name.tag
entity.name.type
entity.name.type.enum
entity.name.type.interface
entity.name.type.struct
entity.other
entity.other.attribute-name
entity.other.inherited-class
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.bold
markup.changed
markup.deleted
markup.heading
markup.inline.raw
markup.inserted
markup.italic
markup.raw
markup.underline
markup.underline.link
meta
meta.function-call
meta.tag
punctuation.definition.bracket
punctuation.definition.comment
punctuation.definition.string.begin
punctuation.definition.string.end
punctuation.separator
punctuation.separator.continuation
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
variable
variable.function
variable.language
variable.name
variable.other
variable.other.constant
variable.other.property
variable.other.readwrite
variable.parameter