Skip to main content
Coding Theme

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
Astigmatism Theme

colors

Workbench UI color keys from the theme JSON colors map.

keyHEXRGBRGBA
actionBar.toggledBackground
activityBar.activeBorder
activityBar.background
activityBar.foreground
activityBarBadge.background
activityBarBadge.foreground
banner.background
breadcrumb.activeSelectionForeground
breadcrumb.background
breadcrumb.foreground
button.background
button.border
button.foreground
button.hoverBackground
button.secondaryBackground
button.secondaryForeground
button.secondaryHoverBackground
checkbox.background
checkbox.foreground
commandCenter.activeBackground
commandCenter.background
commandCenter.border
commandCenter.inactiveBorder
dropdown.background
dropdown.border
dropdown.foreground
dropdown.listBackground
editor.background
editor.findMatchBackground
editor.findMatchForeground
editor.findMatchHighlightBackground
editor.findMatchHighlightForeground
editor.foreground
editor.lineHighlightBackground
editor.linkedEditingBackground
editor.selectionBackground
editor.selectionHighlightBackground
editor.selectionHighlightBorder
editor.wordHighlightBackground
editor.wordHighlightBorder
editor.wordHighlightStrongBackground
editor.wordHighlightStrongBorder
editorBracketHighlight.foreground1
editorBracketHighlight.foreground2
editorBracketHighlight.foreground3
editorBracketHighlight.foreground4
editorBracketHighlight.foreground5
editorBracketHighlight.foreground6
editorBracketHighlight.unexpectedBracket.foreground
editorBracketPairGuide.activeBackground1
editorBracketPairGuide.activeBackground2
editorBracketPairGuide.background1
editorBracketPairGuide.background2
editorCursor.foreground
editorGroupHeader.border
editorGroupHeader.noTabsBackground
editorGroupHeader.tabsBackground
editorGutter.addedBackground
editorGutter.deletedBackground
editorGutter.modifiedBackground
editorHoverWidget.background
editorHoverWidget.border
editorHoverWidget.foreground
editorIndentGuide.activeBackground1
editorIndentGuide.activeBackground2
editorIndentGuide.activeBackground3
editorIndentGuide.activeBackground4
editorIndentGuide.activeBackground5
editorIndentGuide.activeBackground6
editorIndentGuide.background1
editorIndentGuide.background2
editorIndentGuide.background3
editorIndentGuide.background4
editorIndentGuide.background5
editorIndentGuide.background6
editorLink.activeForeground
editorOverviewRuler.findMatchForeground
editorOverviewRuler.wordHighlightForeground
editorRuler.foreground
editorSuggestWidget.background
editorSuggestWidget.border
editorSuggestWidget.foreground
editorSuggestWidget.highlightForeground
editorSuggestWidget.selectedBackground
editorSuggestWidget.selectedForeground
editorSuggestWidgetStatus.foreground
editorWidget.background
editorWidget.border
editorWidget.foreground
focusBorder
icon.foreground
input.background
input.border
input.foreground
keybindingLabel.background
list.activeSelectionBackground
list.activeSelectionForeground
list.deemphasizedForeground
list.dropBackground
list.errorForeground
list.focusBackground
list.focusForeground
list.highlightForeground
list.hoverBackground
list.hoverForeground
list.inactiveSelectionBackground
list.inactiveSelectionForeground
list.warningForeground
listFilterWidget.background
listFilterWidget.noMatchesOutline
listFilterWidget.shadow
menu.background
menu.border
menu.foreground
menu.selectionBackground
menu.selectionBorder
menu.selectionForeground
menu.separatorBackground
menubar.selectionForeground
notebookScrollbarSlider.activeBackground
notebookScrollbarSlider.background
notificationCenterHeader.background
notifications.background
notifications.foreground
notificationsErrorIcon.foreground
notificationsInfoIcon.foreground
notificationsWarningIcon.foreground
notificationToast.border
panel.background
panel.border
panel.dropBorder
panelInput.border
panelSection.border
panelSection.dropBackground
panelSectionHeader.background
panelSectionHeader.border
panelStickyScroll.background
panelStickyScroll.border
panelStickyScroll.shadow
panelTitle.activeBorder
panelTitle.border
problemsErrorIcon.foreground
problemsInfoIcon.foreground
problemsWarningIcon.foreground
quickInput.background
quickInput.foreground
quickInputList.focusBackground
quickInputList.focusForeground
quickInputList.focusIconForeground
scrollbarSlider.activeBackground
scrollbarSlider.background
scrollbarSlider.hoverBackground
search.resultsInfoForeground
searchEditor.findMatchBackground
searchEditor.findMatchBorder
searchEditor.textInputBorder
settings.dropdownBackground
sideBar.background
sideBar.border
sideBar.dropBackground
sideBar.foreground
sideBarSectionHeader.background
sideBarSectionHeader.foreground
sideBarStickyScroll.background
sideBarStickyScroll.border
sideBarStickyScroll.shadow
statusBar.background
statusBar.debuggingBackground
statusBar.debuggingForeground
statusBar.focusBorder
statusBar.foreground
statusBar.noFolderBackground
statusBarItem.errorBackground
statusBarItem.errorForeground
statusBarItem.errorHoverBackground
statusBarItem.remoteBackground
statusBarItem.remoteForeground
statusBarItem.warningBackground
statusBarItem.warningForeground
tab.activeBackground
tab.activeBorderTop
tab.activeForeground
tab.border
tab.hoverBackground
tab.hoverForeground
tab.inactiveBackground
tab.inactiveForeground
tab.unfocusedActiveBackground
terminal.ansiBlack
terminal.ansiBlue
terminal.ansiBrightBlack
terminal.ansiBrightBlue
terminal.ansiBrightCyan
terminal.ansiBrightGreen
terminal.ansiBrightMagenta
terminal.ansiBrightRed
terminal.ansiBrightWhite
terminal.ansiBrightYellow
terminal.ansiCyan
terminal.ansiGreen
terminal.ansiMagenta
terminal.ansiRed
terminal.ansiWhite
terminal.ansiYellow
terminal.background
terminal.border
terminal.dropBackground
terminal.foreground
terminal.hoverHighlightBackground
terminal.initialHintForeground
terminal.selectionBackground
terminal.tab.activeBorder
textLink.activeForeground
textLink.foreground
textPreformat.foreground
tree.indentGuidesStroke
tree.tableColumnsBorder
tree.tableOddRowsBackground
welcomePage.progress.foreground
welcomePage.tileBackground

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.other.placeholder
entity
entity.name
entity.name.function
entity.name.section
entity.name.tag
entity.name.type
entity.name.type.interface
entity.other
entity.other.attribute-name
entity.other.inherited-class
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
meta
meta.tag
punctuation.separator
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.constant
support.function
support.other
support.type
support.type.primitive
support.type.property-name
variable
variable.language
variable.other
variable.other.constant
variable.other.property
variable.other.readwrite
variable.parameter