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
Shopify Theme Purple

colors

Workbench UI color keys from the theme JSON colors map.

keyHEXRGBRGBA
activityBar.background
activityBar.border
activityBarBadge.background
activityBarBadge.foreground
badge.background
badge.foreground
breadcrumb.activeSelectionForeground
breadcrumb.background
breadcrumb.focusForeground
breadcrumb.foreground
button.background
button.border
button.foreground
button.hoverBackground
button.secondaryBackground
button.secondaryForeground
button.secondaryHoverBackground
chat.avatarBackground
chat.avatarForeground
chat.requestBackground
chat.requestBorder
chat.slashCommandBackground
chat.slashCommandForeground
checkbox.background
checkbox.border
checkbox.foreground
dropdown.background
dropdown.border
dropdown.listBackground
editor.background
editor.findMatchBackground
editor.findMatchBorder
editor.findMatchHighlightBackground
editor.findMatchHighlightBorder
editor.findRangeHighlightBackground
editor.foreground
editor.lineHighlightBackground
editor.lineHighlightBorder
editor.selectionBackground
editorGroup.border
editorGroupHeader.border
editorGroupHeader.tabsBackground
editorGroupHeader.tabsBorder
editorHoverWidget.background
editorHoverWidget.border
editorLineNumber.activeForeground
editorLineNumber.foreground
editorSuggestWidget.background
editorSuggestWidget.border
editorWidget.background
editorWidget.border
editorWidget.foreground
editorWidget.resizeBorder
errorForeground
extensionButton.prominentBackground
extensionButton.prominentForeground
extensionButton.prominentHoverBackground
focusBorder
foreground
icon.foreground
inlineChat.background
inlineChat.border
inlineChat.foreground
inlineChatInput.background
inlineChatInput.border
inlineChatInput.focusBorder
inlineChatInput.foreground
inlineChatInput.placeholderForeground
input.background
input.border
input.foreground
inputOption.activeBorder
interactive.activeCodeBorder
interactive.inactiveCodeBorder
list.activeSelectionBackground
list.activeSelectionForeground
list.focusForeground
list.focusOutline
list.hoverBackground
list.hoverForeground
list.inactiveSelectionBackground
menu.background
menubar.selectionBackground
notification.background
notification.border
notification.buttonBackground
notification.buttonBorder
notification.buttonForeground
notification.errorBackground
notification.errorForeground
notification.foreground
notification.infoBackground
notification.infoForeground
notification.warningBackground
notification.warningForeground
panel.background
panel.border
panelTitle.activeBorder
panelTitle.inactiveForeground
pickerGroup.border
pickerGroup.foreground
progressBar.background
quickInput.background
quickInput.foreground
quickInputList.focusBackground
quickInputList.focusForeground
quickInputTitle.background
scrollbar.shadow
scrollbarSlider.activeBackground
scrollbarSlider.background
scrollbarSlider.hoverBackground
searchEditor.findMatchBackground
searchEditor.findMatchBorder
searchEditor.textInputBorder
selection.background
sideBar.background
sideBar.border
sideBar.foreground
sideBarSectionHeader.background
statusBar.background
statusBar.border
statusBar.debuggingBackground
statusBar.noFolderBackground
symbolIcon.colorForeground
tab.activeBackground
tab.activeBorder
tab.activeBorderTop
tab.border
tab.hoverBackground
tab.hoverBorder
tab.inactiveBackground
tab.unfocusedHoverBackground
tab.unfocusedHoverBorder
terminal.background
titleBar.activeBackground
titleBar.inactiveBackground
tree.indentGuidesStroke
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
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
keyword
keyword.control
keyword.control.flow
keyword.other
meta
meta.function-call
meta.tag
punctuation.definition.comment
storage
storage.type
string
string.interpolated
string.quoted
string.quoted.double
string.quoted.single
string.template
support
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