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
HelloSpaceboy

colors

Workbench UI color keys from the theme JSON colors map.

keyHEXRGBRGBA
activityBar.background
activityBar.dropBackground
activityBarBadge.foreground
badge.background
badge.foreground
breadcrumb.activeSelectionForeground
breadcrumb.background
breadcrumb.focusForeground
breadcrumb.foreground
breadcrumbPicker.background
debugToolBar.background
descriptionForeground
diffEditor.insertedTextBackground
diffEditor.removedTextBackground
dropdown.background
dropdown.border
dropdown.foreground
dropdown.listBackground
editor.background
editor.findMatchBackground
editor.findMatchHighlightBackground
editor.findRangeHighlightBackground
editor.foldBackground
editor.foreground
editor.inactiveSelectionBackground
editor.lineHighlightBackground
editor.lineHighlightBorder
editor.selectionBackground
editor.selectionHighlightBackground
editor.snippetTabstopHighlightBackground
editor.stackFrameHighlightBackground
editor.wordHighlightBackground
editor.wordHighlightStrongBackground
editorBracketHighlight.foreground1
editorBracketHighlight.foreground2
editorBracketHighlight.foreground3
editorBracketHighlight.foreground4
editorBracketHighlight.foreground5
editorBracketHighlight.foreground6
editorBracketMatch.background
editorBracketMatch.border
editorCodeLens.foreground
#00044——
editorCursor.foreground
editorError.background
editorError.border
editorError.foreground
editorGroup.border
editorGroup.dropBackground
editorGroup.emptyBackground
editorGroupHeader.noTabsBackground
editorGroupHeader.tabsBackground
editorGroupHeader.tabsBorder
editorGutter.background
editorHoverWidget.background
editorHoverWidget.border
editorIndentGuide.activeBackground
editorLineNumber.foreground
editorLink.activeForeground
editorMarkerNavigation.background
editorOverviewRuler.addedForeground
editorOverviewRuler.background
editorOverviewRuler.border
editorOverviewRuler.bracketMatchForeground
editorOverviewRuler.commonContentForeground
editorOverviewRuler.currentContentForeground
editorOverviewRuler.deletedForeground
editorOverviewRuler.errorForeground
editorOverviewRuler.findMatchForeground
editorOverviewRuler.incomingContentForeground
editorOverviewRuler.infoForeground
editorOverviewRuler.modifiedForeground
editorOverviewRuler.rangeHighlightForeground
editorOverviewRuler.selectionHighlightForeground
editorOverviewRuler.warningForeground
editorOverviewRuler.wordHighlightForeground
editorOverviewRuler.wordHighlightStrongForeground
editorPane.background
editorSuggestWidget.background
editorSuggestWidget.border
editorSuggestWidget.foreground
editorSuggestWidget.highlightForeground
editorSuggestWidget.selectedBackground
editorUnnecessaryCode.border
editorWidget.background
editorWidget.border
errorForeground
focusBorder
foreground
git.color.modified
gitDecoration.addedResourceForeground
gitDecoration.conflictingResourceForeground
gitDecoration.deletedResourceForeground
gitDecoration.ignoredResourceForeground
gitDecoration.modifiedResourceForeground
gitDecoration.stageDeletedResourceForeground
gitDecoration.stageModifiedResourceForeground
gitDecoration.submoduleResourceForeground
gitDecoration.untrackedResourceForeground
input.background
input.border
input.foreground
input.placeholderForeground
#00066——
inputOption.activeForeground
inputValidation.infoBackground
inputValidation.warningBackground
list.activeSelectionBackground
list.activeSelectionForeground
list.dropBackground
list.errorForeground
list.filterMatchBackground
list.filterMatchBorder
list.focusBackground
list.focusForeground
list.highlightForeground
list.hoverBackground
list.hoverForeground
list.inactiveFocusBackground
list.inactiveSelectionBackground
list.inactiveSelectionForeground
list.invalidItemForeground
list.warningForeground
listFilterWidget.background
listFilterWidget.noMatchesOutline
listFilterWidget.outline
menu.background
menu.border
menu.foreground
menu.selectionBackground
menu.selectionForeground
menu.separatorBackground
#00055——
menubar.selectionBackground
menubar.selectionBorder
menubar.selectionForeground
notificationCenter.border
notificationCenterHeader.background
notifications.background
notifications.border
notifications.foreground
notificationToast.border
panel.background
panel.border
panel.dropBackground
peekView.border
peekViewEditor.background
peekViewEditor.matchHighlightBackground
peekViewEditorGutter.background
peekViewResult.background
peekViewResult.fileForeground
peekViewResult.lineForeground
peekViewResult.matchHighlightBackground
peekViewResult.selectionBackground
peekViewResult.selectionForeground
peekViewTitle.background
peekViewTitleDescription.foreground
peekViewTitleLabel.foreground
quickInput.background
quickInput.list.focusBackground
sash.hoverBorder
scrollbar.shadow
scrollbarSlider.background
scrollbarSlider.hoverBackground
selection.background
settings.textInputBackground
sideBar.background
sideBar.border
sideBar.dropBackground
sideBar.foreground
sideBarSectionHeader.background
sideBarSectionHeader.border
sideBarSectionHeader.foreground
sideBarTitle.foreground
statusBar.background
statusBar.debuggingBackground
statusBar.foreground
statusBar.noFolderBackground
statusBarItem.activeBackground
statusBarItem.prominentBackground
statusBarItem.prominentHoverBackground
tab.activeBackground
tab.activeBorder
tab.activeForeground
tab.border
tab.hoverBackground
tab.inactiveBackground
tab.inactiveForeground
#33344——
terminal.background
terminal.selectionBackground
terminalCursor.foreground
textCodeBlock.background
titleBar.activeBackground
titleBar.activeForeground
titleBar.inactiveBackground
titleBar.inactiveForeground
tree.indentGuidesStroke
tree.tableColumnsBorder
tree.tableOddRowsBackground
welcomePage.buttonBackground
welcomePage.buttonHoverBackground
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
constant.regexp
constant.rgb-value
emphasis
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.list
markup.list.numbered
markup.list.unnumbered
markup.other
markup.quote
markup.raw
markup.underline
markup.underline.link
meta
meta.block
meta.cast
meta.class
meta.function
meta.function-call
meta.preprocessor
meta.return-type
meta.selector
meta.tag
meta.type.annotation
meta.type
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
strong
support
support.class
support.constant
support.function
support.other
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