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
Custom Accentuation Color Dark High Contrast

colors

Workbench UI color keys from the theme JSON colors map.

keyHEXRGBRGBA
activityBar.activeBorder
activityBar.activeFocusBorder
activityBar.border
activityBar.dropBorder
button.border
checkbox.border
contrastActiveBorder
contrastBorder
debugExceptionWidget.border
debugToolBar.border
diffEditor.border
diffEditor.diagonalFill
diffEditor.insertedLineBackground
diffEditor.insertedTextBackground
diffEditor.insertedTextBorder
diffEditor.removedLineBackground
diffEditor.removedTextBackground
diffEditor.removedTextBorder
diffEditorGutter.insertedLineBackground
diffEditorGutter.removedLineBackground
diffEditorOverview.insertedForeground
diffEditorOverview.removedForeground
dropdown.border
editor.background
editor.findMatchBackground
editor.findMatchBorder
editor.findMatchHighlightBorder
editor.findRangeHighlightBorder
editor.foreground
editor.lineHighlightBorder
editor.rangeHighlightBorder
editor.selectionBackground
editor.selectionHighlightBorder
editor.snippetFinalTabstopHighlightBorder
editor.snippetTabstopHighlightBorder
editor.symbolHighlightBorder
editor.wordHighlightBorder
editor.wordHighlightStrongBorder
editorBracketMatch.border
editorCommentsWidget.resolvedBorder
editorCommentsWidget.unresolvedBorder
editorError.border
editorGhostText.border
editorGroup.border
editorGroup.dropIntoPromptBorder
editorGroup.focusedEmptyBorder
editorGroupHeader.border
editorGroupHeader.tabsBorder
editorHint.border
editorHoverWidget.border
editorIndentGuide.activeBackground
editorIndentGuide.background
editorInfo.border
editorOverviewRuler.border
editorSuggestWidget.border
editorUnicodeHighlight.border
editorUnnecessaryCode.border
editorWarning.border
editorWhitespace.foreground
editorWidget.border
editorWidget.resizeBorder
focusBorder
input.border
inputOption.activeBorder
inputValidation.errorBorder
inputValidation.infoBorder
inputValidation.warningBorder
interactive.activeCodeBorder
interactive.inactiveCodeBorder
keybindingLabel.border
keybindingLabel.bottomBorder
list.filterMatchBorder
menu.border
menu.selectionBorder
menubar.selectionBorder
merge.border
notebook.focusedCellBorder
notebook.focusedEditorBorder
notebook.inactiveFocusedCellBorder
notebook.inactiveSelectedCellBorder
notebook.selectedCellBorder
notificationCenter.border
notifications.border
notificationToast.border
panel.border
panel.dropBorder
panelInput.border
panelSection.border
panelSectionHeader.border
panelTitle.activeBorder
peekView.border
peekViewEditor.matchHighlightBorder
pickerGroup.border
ports.iconRunningProcessForeground
sash.hoverBorder
scm.providerBorder
searchEditor.findMatchBorder
searchEditor.textInputBorder
selection.background
settings.checkboxBorder
settings.dropdownBorder
settings.dropdownListBorder
settings.focusedRowBorder
settings.headerBorder
settings.numberInputBorder
settings.sashBorder
settings.textInputBorder
sideBar.border
sideBarSectionHeader.border
sideBarTitle.foreground
sideBySideEditor.horizontalBorder
sideBySideEditor.verticalBorder
statusBar.background
statusBar.border
statusBar.debuggingBackground
statusBar.debuggingBorder
statusBar.focusBorder
statusBar.noFolderBackground
statusBar.noFolderBorder
statusBarItem.focusBorder
statusBarItem.remoteBackground
tab.activeBorder
tab.activeBorderTop
tab.activeModifiedBorder
tab.border
tab.hoverBorder
tab.inactiveModifiedBorder
tab.lastPinnedBorder
tab.unfocusedActiveBorder
tab.unfocusedActiveModifiedBorder
tab.unfocusedHoverBorder
tab.unfocusedInactiveModifiedBorder
terminal.border
terminal.findMatchBorder
terminal.findMatchHighlightBorder
terminal.tab.activeBorder
testing.peekBorder
textBlockQuote.border
titleBar.activeBackground
titleBar.activeForeground
titleBar.border
titleBar.inactiveForeground
tree.tableColumnsBorder
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.numeric
constant.numeric.integer
constant.numeric.float
constant.numeric.hex
constant.numeric.octal
constant.other
constant.regexp
entity
entity.name
entity.name.class
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
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.changed
markup.deleted
markup.heading
markup.inserted
meta
meta.preprocessor
meta.return-type
meta.selector
meta.type
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.type
support.type.primitive
support.type.property-name
support.variable
variable
variable.function
variable.language
variable.name
variable.other
variable.other.constant
variable.other.property
variable.other.readwrite
variable.parameter