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
Gossamer Faded

colors

Workbench UI color keys from the theme JSON colors map.

keyHEXRGBRGBA
activityBar.activeBackground
DEFAULT——
activityBar.background
activityBar.border
DEFAULT——
activityBar.foreground
activityBarBadge.background
activityBarBadge.foreground
activityBarTop.background
activityBarTop.foreground
activityErrorBadge.background
activityErrorBadge.foreground
activityWarningBadge.background
badge.background
badge.foreground
banner.background
banner.foreground
breadcrumb.background
breadcrumb.foreground
button.background
button.border
button.foreground
button.hoverBackground
charts.foreground
chat.avatarBackground
chat.avatarForeground
chat.linesAddedForeground
chat.linesRemovedForeground
chat.requestBackground
chat.requestBorder
checkbox.background
checkbox.border
checkbox.foreground
checkbox.selectBackground
commandCenter.background
DEFAULT——
commandCenter.foreground
contrastBorder
debugConsole.errorForeground
debugToolBar.background
debugToolBar.border
DEFAULT——
descriptionForeground
diffEditor.border
DEFAULT——
diffEditor.insertedLineBackground
diffEditor.insertedTextBackground
diffEditor.removedLineBackground
diffEditor.removedTextBackground
diffEditor.removedTextBorder
diffEditor.unchangedRegionShadow
diffEditorGutter.insertedLineBackground
diffEditorGutter.removedLineBackground
disabledForeground
dropdown.background
dropdown.border
dropdown.foreground
dropdown.listBackground
editor.background
editor.findMatchBackground
editor.findMatchHighlightBackground
editor.findRangeHighlightBackground
editor.foldBackground
editor.foreground
editor.hoverHighlightBackground
editor.inactiveSelectionBackground
editor.lineHighlightBackground
editor.rangeHighlightBackground
editor.selectionBackground
editor.selectionHighlightBackground
editor.symbolHighlightBackground
editor.wordHighlightBackground
editor.wordHighlightStrongBackground
editor.wordHighlightTextBackground
editorActionList.background
editorBracketHighlight.foreground1
editorBracketHighlight.foreground2
editorBracketHighlight.foreground3
editorBracketHighlight.foreground4
editorBracketHighlight.foreground5
editorBracketHighlight.foreground6
editorBracketMatch.background
editorBracketMatch.border
editorBracketPairGuide.activeBackground1
editorCursor.background
editorCursor.foreground
editorError.background
DEFAULT——
editorError.border
DEFAULT——
editorError.foreground
editorGhostText.background
DEFAULT——
editorGroup.border
DEFAULT——
editorGroup.dropBackground
editorGroupHeader.tabsBackground
editorGutter.addedBackground
editorGutter.addedSecondaryBackground
editorGutter.background
editorGutter.deletedBackground
editorGutter.deletedSecondaryBackground
editorGutter.itemBackground
editorGutter.modifiedBackground
editorHint.border
DEFAULT——
editorHint.foreground
editorInfo.background
editorInfo.border
DEFAULT——
editorInfo.foreground
editorInlayHint.background
DEFAULT——
editorLineNumber.activeForeground
editorLineNumber.dimmedForeground
editorLineNumber.foreground
editorMinimap.inlineChatInserted
editorOverviewRuler.addedForeground
editorOverviewRuler.inlineChatRemoved
editorPane.background
editorRuler.foreground
editorStickyScroll.shadow
editorStickyScrollGutter.background
editorStickyScrollHover.background
editorSuggestWidget.focusHighlightForeground
editorSuggestWidget.highlightForeground
editorWarning.background
editorWidget.background
editorWidget.border
editorWidget.foreground
errorForeground
extensionButton.background
DEFAULT——
focusBorder
foreground
gauge.background
gauge.border
gauge.errorBackground
gauge.errorForeground
gauge.foreground
gauge.warningBackground
gitDecoration.addedResourceForeground
icon.foreground
inlineChat.background
inlineChat.border
inlineChat.foreground
inlineChat.shadow
inlineChatDiff.removed
inlineChatInput.background
DEFAULT——
inlineEdit.gutterIndicator.background
input.background
input.border
input.foreground
inputValidation.errorBackground
inputValidation.errorForeground
keybindingLabel.background
list.activeSelectionBackground
list.activeSelectionForeground
list.dropBackground
list.dropBetweenBackground
list.errorForeground
list.filterMatchBackground
list.focusBackground
list.focusForeground
list.focusHighlightForeground
list.highlightForeground
list.hoverBackground
list.hoverForeground
list.inactiveFocusBackground
list.inactiveSelectionBackground
listFilterWidget.background
listFilterWidget.shadow
menu.background
menu.border
menu.foreground
menu.selectionBackground
menu.selectionForeground
menu.separatorBackground
menubar.selectionBackground
merge.border
mergeEditor.conflict.handled.minimapOverViewRuler
mergeEditor.conflict.unhandled.minimapOverViewRuler
minimap.background
minimap.chatEditHighlight
minimap.errorHighlight
minimap.findMatchHighlight
minimap.foregroundOpacity
DEFAULT——
minimap.infoHighlight
minimap.selectionHighlight
minimap.selectionOccurrenceHighlight
minimap.warningHighlight
minimapGutter.addedBackground
minimapGutter.deletedBackground
minimapGutter.modifiedBackground
minimapSlider.activeBackground
minimapSlider.background
minimapSlider.hoverBackground
multiDiffEditor.background
DEFAULT——
notebook.cellBorderColor
DEFAULT——
notebook.editorBackground
DEFAULT——
notebookStatusErrorIcon.foreground
notifications.background
notifications.foreground
notificationsErrorIcon.foreground
outputView.background
panel.background
panel.border
panel.dropBorder
DEFAULT——
panelInput.border
DEFAULT——
panelSection.border
DEFAULT——
panelStickyScroll.shadow
panelTitle.border
DEFAULT——
panelTitleBadge.background
panelTitleBadge.foreground
peekView.border
peekViewEditor.background
peekViewEditor.matchHighlightBackground
peekViewEditorGutter.background
peekViewResult.background
peekViewResult.selectionBackground
peekViewTitle.background
pickerGroup.border
DEFAULT——
pickerGroup.foreground
problemsErrorIcon.foreground
profileBadge.background
profileBadge.foreground
profiles.sashBorder
DEFAULT——
progressBar.background
quickInput.background
quickInput.foreground
radio.activeBackground
radio.activeBorder
DEFAULT——
radio.activeForeground
radio.inactiveBackground
radio.inactiveForeground
sash.hoverBorder
DEFAULT——
scmGraph.foreground1
scmGraph.foreground2
scmGraph.foreground3
scmGraph.foreground4
scmGraph.foreground5
scmGraph.historyItemHoverDefaultLabelBackground
scrollbar.shadow
selection.background
settings.sashBorder
DEFAULT——
sideBar.background
sideBar.border
sideBar.dropBackground
sideBar.foreground
sideBarSectionHeader.background
sideBarStickyScroll.shadow
sideBarTitle.background
sideBarTitle.border
DEFAULT——
sideBarTitle.foreground
statusBar.background
statusBar.border
DEFAULT——
statusBar.debuggingBackground
statusBar.foreground
statusBarItem.errorBackground
statusBarItem.errorForeground
statusBarItem.errorHoverForeground
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.variableForeground
tab.activeBackground
tab.activeBorder
DEFAULT——
tab.activeBorderTop
DEFAULT——
tab.activeForeground
tab.border
tab.hoverBackground
tab.hoverBorder
DEFAULT——
tab.hoverForeground
tab.inactiveBackground
tab.inactiveForeground
tab.selectedBackground
tab.selectedBorderTop
DEFAULT——
tab.selectedForeground
terminal.background
terminal.border
DEFAULT——
terminal.dropBackground
terminal.findMatchHighlightBackground
terminal.foreground
terminal.inactiveSelectionBackground
terminal.selectionBackground
terminalCursor.background
testing.coverCountBadgeBackground
testing.coveredBackground
testing.coveredGutterBackground
testing.peekBorder
DEFAULT——
textBlockQuote.background
DEFAULT——
textCodeBlock.background
DEFAULT——
textLink.foreground
textPreformat.background
DEFAULT——
titleBar.activeBackground
titleBar.border
titleBar.inactiveBackground
toolbar.activeBackground
DEFAULT——
toolbar.hoverBackground
welcomePage.background
widget.border
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.numeric
constant.numeric.integer
constant.numeric.float
constant.numeric.hex
constant.numeric.octal
entity
entity.name
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.new
keyword.operator.assignment
keyword.operator.arithmetic
keyword.operator.logical
keyword.other
meta
meta.function
meta.function-call
meta.tag
punctuation.definition.string.begin
punctuation.definition.string.end
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.type
support.type.property-name
variable
variable.function
variable.language
variable.name
variable.other
variable.other.constant
variable.other.property
variable.other.readwrite
variable.parameter