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
Nexus Dark (Beta)

colors

Workbench UI color keys from the theme JSON colors map.

keyHEXRGBRGBA
activityBar.activeBackground
activityBar.activeBorder
activityBar.activeFocusBorder
activityBar.background
activityBar.border
activityBar.dropBorder
activityBar.foreground
activityBar.inactiveForeground
activityBarBadge.background
activityBarBadge.foreground
activityBarTop.activeBackground
activityBarTop.activeBorder
activityBarTop.background
activityBarTop.dropBorder
activityBarTop.foreground
activityBarTop.inactiveForeground
activityErrorBadge.background
activityErrorBadge.foreground
activityWarningBadge.background
activityWarningBadge.foreground
badge.background
badge.foreground
banner.background
banner.foreground
banner.iconForeground
breadcrumb.activeSelectionForeground
breadcrumb.background
breadcrumb.focusForeground
breadcrumb.foreground
breadcrumbPicker.background
button.background
button.border
button.foreground
button.hoverBackground
button.secondaryBackground
button.secondaryForeground
button.secondaryHoverBackground
button.separator
chat.avatarBackground
chat.avatarForeground
chat.checkpointSeparator
chat.editedFileForeground
chat.linesAddedForeground
chat.linesRemovedForeground
chat.requestBackground
chat.requestBorder
chat.requestBubbleBackground
chat.requestBubbleHoverBackground
chat.requestCodeBorder
chat.slashCommandBackground
chat.slashCommandForeground
chatManagement.sashBorder
checkbox.background
checkbox.border
checkbox.disabled.background
checkbox.disabled.foreground
checkbox.foreground
checkbox.selectBackground
checkbox.selectBorder
contrastActiveBorder
contrastBorder
descriptionForeground
diffEditor.border
diffEditor.diagonalFill
diffEditor.insertedLineBackground
diffEditor.insertedTextBackground
diffEditor.insertedTextBorder
diffEditor.move.border
diffEditor.moveActive.border
diffEditor.removedLineBackground
diffEditor.removedTextBackground
diffEditor.removedTextBorder
diffEditor.unchangedCodeBackground
diffEditor.unchangedRegionBackground
diffEditor.unchangedRegionForeground
diffEditor.unchangedRegionShadow
diffEditorGutter.insertedLineBackground
diffEditorGutter.removedLineBackground
diffEditorOverview.insertedForeground
diffEditorOverview.removedForeground
disabledForeground
dropdown.background
dropdown.border
dropdown.foreground
dropdown.listBackground
editor.background
editor.findMatchBackground
editor.findMatchBorder
editor.findMatchForeground
editor.findMatchHighlightBackground
editor.findMatchHighlightBorder
editor.findMatchHighlightForeground
editor.findRangeHighlightBackground
editor.findRangeHighlightBorder
editor.foldBackground
editor.foldPlaceholderForeground
editor.foreground
editor.hoverHighlightBackground
editor.inactiveLineHighlightBackground
editor.inactiveSelectionBackground
editor.lineHighlightBackground
editor.lineHighlightBorder
editor.linkedEditingBackground
editor.rangeHighlightBackground
editor.rangeHighlightBorder
editor.selectionBackground
editor.selectionForeground
editor.selectionHighlightBackground
editor.selectionHighlightBorder
editor.symbolHighlightBackground
editor.symbolHighlightBorder
editor.wordHighlightBackground
editor.wordHighlightBorder
editor.wordHighlightStrongBackground
editor.wordHighlightStrongBorder
editor.wordHighlightTextBackground
editor.wordHighlightTextBorder
editorActionList.background
editorActionList.focusBackground
editorActionList.focusForeground
editorActionList.foreground
editorBracketHighlight.foreground1
editorBracketHighlight.foreground2
editorBracketHighlight.foreground3
editorBracketHighlight.foreground4
editorBracketHighlight.foreground5
editorBracketHighlight.foreground6
editorBracketHighlight.unexpectedBracket.foreground
editorBracketMatch.background
editorBracketMatch.border
editorCodeLens.foreground
editorCommentsWidget.rangeActiveBackground
editorCommentsWidget.rangeBackground
editorCommentsWidget.replyInputBackground
editorCommentsWidget.resolvedBorder
editorCommentsWidget.unresolvedBorder
editorCursor.background
editorCursor.foreground
editorError.foreground
editorGroup.border
editorGroup.dropBackground
editorGroup.dropIntoPromptBackground
editorGroup.dropIntoPromptBorder
editorGroup.dropIntoPromptForeground
editorGroup.emptyBackground
editorGroup.focusedEmptyBorder
editorGroupHeader.border
editorGroupHeader.noTabsBackground
editorGroupHeader.tabsBackground
editorGroupHeader.tabsBorder
editorGutter.addedBackground
editorGutter.addedSecondaryBackground
editorGutter.background
editorGutter.commentDraftGlyphForeground
editorGutter.commentGlyphForeground
editorGutter.commentRangeForeground
editorGutter.commentUnresolvedGlyphForeground
editorGutter.deletedBackground
editorGutter.deletedSecondaryBackground
editorGutter.foldingControlForeground
editorGutter.itemBackground
editorGutter.itemGlyphForeground
editorGutter.modifiedBackground
editorGutter.modifiedSecondaryBackground
editorHint.foreground
editorHoverWidget.background
editorHoverWidget.border
editorHoverWidget.foreground
editorHoverWidget.highlightForeground
editorHoverWidget.statusBarBackground
editorIndentGuide.activeBackground
editorIndentGuide.background
editorInfo.foreground
editorInlayHint.background
editorInlayHint.foreground
editorInlayHint.parameterBackground
editorInlayHint.parameterForeground
editorInlayHint.typeBackground
editorInlayHint.typeForeground
editorLightBulb.foreground
editorLightBulbAi.foreground
editorLightBulbAutoFix.foreground
editorLineNumber.activeForeground
editorLineNumber.dimmedForeground
editorLineNumber.foreground
editorLink.activeForeground
editorMinimap.inlineChatInserted
editorOverviewRuler.addedForeground
editorOverviewRuler.background
editorOverviewRuler.border
editorOverviewRuler.bracketMatchForeground
editorOverviewRuler.deletedForeground
editorOverviewRuler.errorForeground
editorOverviewRuler.findMatchForeground
editorOverviewRuler.infoForeground
editorOverviewRuler.modifiedForeground
editorOverviewRuler.rangeHighlightForeground
editorOverviewRuler.selectionHighlightForeground
editorOverviewRuler.warningForeground
editorOverviewRuler.wordHighlightForeground
editorOverviewRuler.wordHighlightStrongForeground
editorOverviewRuler.wordHighlightTextForeground
editorPane.background
editorRuler.foreground
editorSuggestWidget.background
editorSuggestWidget.border
editorSuggestWidget.focusHighlightForeground
editorSuggestWidget.foreground
editorSuggestWidget.highlightForeground
editorSuggestWidget.selectedBackground
editorSuggestWidget.selectedForeground
editorSuggestWidget.selectedIconForeground
editorSuggestWidgetStatus.foreground
editorUnicodeHighlight.background
editorUnicodeHighlight.border
editorUnnecessaryCode.opacity
editorWarning.foreground
editorWhitespace.foreground
editorWidget.background
editorWidget.border
editorWidget.foreground
editorWidget.resizeBorder
errorForeground
focusBorder
foreground
icon.foreground
inlineChat.background
inlineChat.border
inlineChat.foreground
inlineChat.shadow
inlineChatDiff.inserted
inlineChatDiff.removed
inlineChatInput.background
inlineChatInput.border
inlineChatInput.focusBorder
inlineChatInput.placeholderForeground
inlineEdit.gutterIndicator.background
inlineEdit.gutterIndicator.primaryBackground
inlineEdit.gutterIndicator.primaryBorder
inlineEdit.gutterIndicator.primaryForeground
inlineEdit.gutterIndicator.secondaryBackground
inlineEdit.gutterIndicator.secondaryBorder
inlineEdit.gutterIndicator.secondaryForeground
inlineEdit.gutterIndicator.successfulBackground
inlineEdit.gutterIndicator.successfulBorder
inlineEdit.gutterIndicator.successfulForeground
inlineEdit.modifiedBackground
inlineEdit.modifiedBorder
inlineEdit.modifiedChangedLineBackground
inlineEdit.modifiedChangedTextBackground
inlineEdit.originalBackground
inlineEdit.originalBorder
inlineEdit.originalChangedLineBackground
inlineEdit.originalChangedTextBackground
inlineEdit.tabWillAcceptModifiedBorder
inlineEdit.tabWillAcceptOriginalBorder
input.background
input.border
input.foreground
input.placeholderForeground
inputOption.activeBackground
inputOption.activeBorder
inputOption.activeForeground
inputOption.hoverBackground
inputValidation.errorBackground
inputValidation.errorBorder
inputValidation.errorForeground
inputValidation.infoBackground
inputValidation.infoBorder
inputValidation.infoForeground
inputValidation.warningBackground
inputValidation.warningBorder
inputValidation.warningForeground
interactive.activeCodeBorder
interactive.inactiveCodeBorder
list.activeSelectionBackground
list.activeSelectionForeground
list.activeSelectionIconForeground
list.deemphasizedForeground
list.dropBackground
list.dropBetweenBackground
list.errorForeground
list.filterMatchBackground
list.filterMatchBorder
list.focusAndSelectionOutline
list.focusBackground
list.focusForeground
list.focusHighlightForeground
list.focusOutline
list.highlightForeground
list.hoverBackground
list.hoverForeground
list.inactiveFocusBackground
list.inactiveFocusOutline
list.inactiveSelectionBackground
list.inactiveSelectionForeground
list.inactiveSelectionIconForeground
list.invalidItemForeground
list.warningForeground
listFilterWidget.background
listFilterWidget.noMatchesOutline
listFilterWidget.outline
listFilterWidget.shadow
menu.background
menu.border
menu.foreground
menu.selectionBackground
menu.selectionBorder
menu.selectionForeground
menu.separatorBackground
menubar.selectionBackground
menubar.selectionBorder
menubar.selectionForeground
minimap.background
minimap.chatEditHighlight
minimap.errorHighlight
minimap.findMatchHighlight
minimap.foregroundOpacity
minimap.infoHighlight
minimap.selectionHighlight
minimap.selectionOccurrenceHighlight
minimap.warningHighlight
minimapGutter.addedBackground
minimapGutter.deletedBackground
minimapGutter.modifiedBackground
minimapSlider.activeBackground
minimapSlider.background
minimapSlider.hoverBackground
multiDiffEditor.background
multiDiffEditor.border
multiDiffEditor.headerBackground
notificationCenterHeader.background
notificationCenterHeader.foreground
notifications.background
notifications.border
notifications.foreground
notificationsErrorIcon.foreground
notificationsInfoIcon.foreground
notificationsWarningIcon.foreground
notificationToast.border
panel.background
panel.border
panel.dropBorder
panelInput.border
panelTitle.activeBorder
panelTitle.activeForeground
panelTitle.inactiveForeground
problemsErrorIcon.foreground
problemsInfoIcon.foreground
problemsWarningIcon.foreground
profileBadge.background
profileBadge.foreground
profiles.sashBorder
progressBar.background
radio.activeBackground
radio.activeBorder
radio.activeForeground
radio.inactiveBackground
radio.inactiveBorder
radio.inactiveForeground
radio.inactiveHoverBackground
sash.hoverBorder
scrollbar.background
scrollbar.shadow
scrollbarSlider.activeBackground
scrollbarSlider.background
scrollbarSlider.hoverBackground
search.resultsInfoForeground
searchEditor.findMatchBackground
searchEditor.findMatchBorder
searchEditor.textInputBorder
selection.background
sideBar.background
sideBar.border
sideBar.dropBackground
sideBar.foreground
sideBarSectionHeader.background
sideBarSectionHeader.border
sideBarSectionHeader.foreground
sideBarStickyScroll.background
sideBarStickyScroll.border
sideBarStickyScroll.shadow
sideBarTitle.foreground
sideBySideEditor.horizontalBorder
sideBySideEditor.verticalBorder
statusBar.background
statusBar.border
statusBar.debuggingBackground
statusBar.debuggingBorder
statusBar.debuggingForeground
statusBar.foreground
statusBar.noFolderBackground
statusBar.noFolderBorder
statusBar.noFolderForeground
statusBarItem.activeBackground
statusBarItem.errorBackground
statusBarItem.errorForeground
statusBarItem.hoverBackground
statusBarItem.prominentBackground
statusBarItem.prominentForeground
statusBarItem.prominentHoverBackground
statusBarItem.remoteBackground
statusBarItem.remoteForeground
statusBarItem.warningBackground
statusBarItem.warningForeground
tab.activeBackground
tab.activeBorder
tab.activeBorderTop
tab.activeForeground
tab.activeModifiedBorder
tab.border
tab.dragAndDropBorder
tab.hoverBackground
tab.hoverBorder
tab.hoverForeground
tab.inactiveBackground
tab.inactiveForeground
tab.inactiveModifiedBorder
tab.lastPinnedBorder
tab.selectedBackground
tab.selectedBorderTop
tab.selectedForeground
tab.unfocusedActiveBackground
tab.unfocusedActiveBorder
tab.unfocusedActiveBorderTop
tab.unfocusedActiveForeground
tab.unfocusedActiveModifiedBorder
tab.unfocusedHoverBackground
tab.unfocusedHoverBorder
tab.unfocusedHoverForeground
tab.unfocusedInactiveBackground
tab.unfocusedInactiveForeground
tab.unfocusedInactiveModifiedBorder
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.foreground
terminal.selectionBackground
terminalCursor.background
terminalCursor.foreground
textBlockQuote.background
textBlockQuote.border
textCodeBlock.background
textLink.activeForeground
textLink.foreground
textPreformat.background
textPreformat.foreground
textSeparator.foreground
titleBar.activeBackground
titleBar.activeForeground
titleBar.border
titleBar.inactiveBackground
titleBar.inactiveForeground
toolbar.activeBackground
toolbar.hoverBackground
toolbar.hoverOutline
tree.inactiveIndentGuidesStroke
tree.indentGuidesStroke
tree.tableColumnsBorder
tree.tableOddRowsBackground
widget.border
widget.shadow
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.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
entity
entity.name
entity.name.class
entity.name.function
entity.name.namespace
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.heading
markup.inline.raw
markup.raw
markup.underline
markup.underline.link
meta
meta.function-call
meta.tag
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
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.other
variable.other.constant
variable.other.property
variable.other.readwrite
variable.parameter