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
Halftone Light

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
activityBarTop.activeBorder
activityBarTop.dropBorder
activityBarTop.foreground
activityBarTop.inactiveForeground
badge.background
badge.foreground
breadcrumb.activeSelectionForeground
breadcrumb.background
breadcrumb.foreground
breadcrumbPicker.background
button.background
button.foreground
button.hoverBackground
charts.red
commandCenter.activeBackground
commandCenter.activeBorder
commandCenter.activeForeground
commandCenter.background
commandCenter.border
commandCenter.debuggingBackground
commandCenter.foreground
commandCenter.inactiveBorder
debugConsole.errorForeground
debugConsole.warningForeground
editor.background
editor.findMatchBackground
editor.findMatchBorder
editor.findMatchHighlightBackground
editor.findMatchHighlightBorder
editor.findRangeHighlightBackground
editor.findRangeHighlightBorder
editor.focusedStackFrameHighlightBackground
editor.foreground
editor.hoverHighlightBackground
editor.lineHighlightBackground
editor.lineHighlightBorder
editor.linkedEditingBackground
editor.rangeHighlightBackground
editor.rangeHighlightBorder
editor.selectionBackground
editor.selectionHighlightBackground
editor.selectionHighlightBorder
editor.stackFrameHighlightBackground
editor.symbolHighlightBackground
editor.symbolHighlightBorder
editor.wordHighlightBackground
editor.wordHighlightBorder
editor.wordHighlightStrongBackground
editor.wordHighlightStrongBorder
editor.wordHighlightTextBackground
editor.wordHighlightTextBorder
editorBracketHighlight.foreground1
editorBracketHighlight.foreground2
editorBracketHighlight.foreground3
editorBracketHighlight.foreground4
editorBracketHighlight.foreground5
editorBracketHighlight.foreground6
editorBracketHighlight.unexpectedBracket.foreground
editorBracketMatch.background
editorBracketMatch.border
editorCursor.background
editorCursor.foreground
editorError.background
editorError.foreground
editorGroup.border
editorGroup.dropBackground
editorGroupHeader.border
editorGroupHeader.noTabsBackground
editorGroupHeader.tabsBackground
editorHoverWidget.highlightForeground
editorIndentGuide.activeBackground
editorIndentGuide.background
editorLineNumber.activeForeground
editorLineNumber.foreground
editorLink.activeForeground
editorOverviewRuler.errorForeground
editorOverviewRuler.warningForeground
editorPane.background
editorSuggestWidget.background
editorSuggestWidget.border
editorSuggestWidget.focusHighlightForeground
editorSuggestWidget.foreground
editorSuggestWidget.highlightForeground
editorSuggestWidget.selectedBackground
editorSuggestWidget.selectedForeground
editorSuggestWidget.selectedIconForeground
editorUnicodeHighlight.background
editorUnicodeHighlight.border
editorUnnecessaryCode.opacity
editorWarning.background
editorWarning.foreground
editorWidget.background
editorWidget.foreground
errorForeground
focusBorder
input.background
input.border
inputOption.activeBorder
inputValidation.errorBackground
inputValidation.errorBorder
inputValidation.errorForeground
inputValidation.infoBackground
inputValidation.infoBorder
inputValidation.infoForeground
inputValidation.warningBackground
inputValidation.warningBorder
inputValidation.warningForeground
list.activeSelectionBackground
list.activeSelectionForeground
list.activeSelectionIconForeground
list.errorForeground
list.focusBackground
list.focusForeground
list.focusHighlightForeground
list.focusOutline
list.highlightForeground
list.inactiveFocusBackground
list.inactiveSelectionBackground
list.inactiveSelectionForeground
list.inactiveSelectionIconForeground
list.warningForeground
menu.border
menu.selectionBackground
menu.selectionForeground
minimap.errorHighlight
notebookStatusErrorIcon.foreground
notificationsErrorIcon.foreground
notificationsWarningIcon.foreground
panel.background
panel.border
panelSection.dropBackground
peekView.border
peekViewEditor.background
peekViewEditor.matchHighlightBackground
peekViewEditor.matchHighlightBorder
peekViewResult.background
peekViewResult.lineForeground
peekViewResult.matchHighlightBackground
peekViewResult.selectionBackground
peekViewTitle.background
pickerGroup.border
pickerGroup.foreground
problemsErrorIcon.foreground
problemsWarningIcon.foreground
progressBar.background
quickInput.background
quickInput.foreground
quickInputList.focusBackground
quickInputList.focusForeground
quickInputList.focusIconForeground
quickInputTitle.background
scrollbarSlider.activeBackground
scrollbarSlider.background
scrollbarSlider.hoverBackground
searchEditor.findMatchBackground
searchEditor.findMatchBorder
selection.background
sideBar.background
sideBar.border
sideBar.dropBackground
sideBar.foreground
sideBarSectionHeader.background
sideBarSectionHeader.border
sideBarStickyScroll.background
sideBarStickyScroll.border
sideBarStickyScroll.shadow
sideBarTitle.background
statusBar.background
statusBar.border
statusBar.debuggingBackground
statusBar.debuggingBorder
statusBar.debuggingForeground
statusBar.focusBorder
statusBar.foreground
statusBar.noFolderBackground
statusBar.noFolderBorder
statusBar.noFolderForeground
statusBarItem.errorBackground
statusBarItem.errorForeground
statusBarItem.hoverBackground
statusBarItem.remoteBackground
statusBarItem.remoteForeground
statusBarItem.warningBackground
statusBarItem.warningForeground
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.functionForeground
symbolIcon.interfaceForeground
symbolIcon.keyForeground
symbolIcon.keywordForeground
symbolIcon.methodForeground
symbolIcon.moduleForeground
symbolIcon.namespaceForeground
symbolIcon.nullForeground
symbolIcon.numberForeground
symbolIcon.objectForeground
symbolIcon.operatorForeground
symbolIcon.packageForeground
symbolIcon.propertyForeground
symbolIcon.referenceForeground
symbolIcon.snippetForeground
symbolIcon.stringForeground
symbolIcon.structForeground
symbolIcon.textForeground
symbolIcon.typeParameterForeground
symbolIcon.unitForeground
symbolIcon.variableForeground
tab.activeBackground
tab.activeBorder
tab.activeForeground
tab.border
tab.dragAndDropBorder
tab.hoverBackground
tab.inactiveBackground
tab.inactiveForeground
tab.unfocusedActiveBorder
tab.unfocusedInactiveForeground
terminal.background
terminalCursor.background
terminalCursor.foreground
terminalOverviewRuler.border
textLink.activeForeground
textLink.foreground
titleBar.activeBackground
titleBar.activeForeground
titleBar.border
titleBar.inactiveBackground
titleBar.inactiveForeground
widget.border

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.numeric
constant.numeric.integer
constant.numeric.float
constant.numeric.hex
constant.numeric.octal
entity
entity.name
entity.name.function
entity.name.method
entity.name.tag
entity.name.type
entity.name.type.enum
entity.name.type.interface
entity.name.type.struct
entity.other
entity.other.attribute-name
keyword
keyword.control
keyword.control.flow
keyword.operator
keyword.operator.assignment
keyword.operator.logical
meta
punctuation.definition.bracket
punctuation.definition.comment
punctuation.definition.string.begin
punctuation.definition.string.end
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.function
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