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
Retro Cathode-Ray Minimal Theme

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
badge.background
badge.foreground
breadcrumb.activeSelectionForeground
breadcrumb.background
breadcrumb.foreground
breadcrumbPicker.background
button.background
button.foreground
button.hoverBackground
button.secondaryBackground
button.secondaryForeground
button.secondaryHoverBackground
checkbox.background
checkbox.border
checkbox.foreground
checkbox.selectBackground
checkbox.selectBorder
commandCenter.activeBackground
commandCenter.activeBorder
commandCenter.background
commandCenter.border
commandCenter.foreground
commandCenter.hoverBackground
commandCenter.inactiveBorder
commandCenter.inactiveForeground
debugConsole.background
debugConsole.border
debugConsole.errorForeground
debugConsole.infoForeground
debugConsole.inputForeground
debugConsole.sourceForeground
debugConsole.warningForeground
debugConsoleInputIcon.foreground
debugExceptionWidget.background
debugExceptionWidget.border
debugTokenExpression.array
debugTokenExpression.boolean
debugTokenExpression.error
debugTokenExpression.name
debugTokenExpression.number
debugTokenExpression.object
debugTokenExpression.string
debugTokenExpression.type
debugTokenExpression.value
debugToolBar.background
debugToolBar.border
debugView.exceptionLabelBackground
debugView.exceptionLabelForeground
debugView.stateLabelBackground
debugView.stateLabelForeground
debugView.valueChangedHighlight
diffEditor.border
diffEditor.diagonalFill
diffEditor.insertedTextBackground
diffEditor.insertedTextBorder
diffEditor.movedTextBackground
diffEditor.movedTextBorder
diffEditor.removedTextBackground
diffEditor.removedTextBorder
diffEditor.unchangedRegionBackground
diffEditor.unchangedRegionDimmedForeground
diffEditor.unchangedRegionForeground
diffEditor.wordWrapBackground
dropdown.background
dropdown.border
dropdown.foreground
dropdown.listBackground
editor.background
editor.findMatchBackground
editor.findMatchHighlightBackground
editor.findRangeHighlightBackground
editor.focusedStackFrameHighlightBackground
editor.foldBackground
editor.foreground
editor.hoverHighlightBackground
editor.inactiveSelectionBackground
editor.inlineBreakpointBackground
editor.inlineBreakpointForeground
editor.inlineValuesBackground
editor.inlineValuesForeground
editor.lineHighlightBackground
editor.lineHighlightBorder
editor.rangeHighlightBackground
editor.selectionBackground
editor.selectionHighlightBackground
editor.snippetFinalTabstopHighlightBackground
editor.snippetFinalTabstopHighlightBorder
editor.snippetTabstopHighlightBackground
editor.snippetTabstopHighlightBorder
editor.stackFrameHighlightBackground
editor.stickyScroll.background
editor.stickyScroll.border
editor.stickyScroll.foreground
editor.stickyScrollHover.background
editor.symbolHighlightBackground
editor.wordHighlightBackground
editor.wordHighlightStrongBackground
editorBracketHighlight.foreground1
editorBracketHighlight.foreground2
editorBracketHighlight.foreground3
editorBracketHighlight.foreground4
editorBracketHighlight.foreground5
editorBracketHighlight.foreground6
editorBracketHighlight.unexpectedBracket.foreground
editorBracketMatch.background
editorBracketMatch.border
editorBracketPair.horizontalLineBorder
editorBracketPair.horizontalLineForeground
editorBracketPair.indentGuide.activeBackground1
editorBracketPair.indentGuide.activeBackground2
editorBracketPair.indentGuide.activeBackground3
editorBracketPair.indentGuide.activeBackground4
editorBracketPair.indentGuide.activeBackground5
editorBracketPair.indentGuide.activeBackground6
editorBracketPair.indentGuide.background1
editorBracketPair.indentGuide.background2
editorBracketPair.indentGuide.background3
editorBracketPair.indentGuide.background4
editorBracketPair.indentGuide.background5
editorBracketPair.indentGuide.background6
editorBracketPair.unmatchedBracket.foreground
editorBracketPair.verticalLineBorder
editorBracketPair.verticalLineForeground
editorCursor.foreground
editorError.border
editorError.foreground
editorGroup.dropBackground
editorGroup.emptyBackground
editorGroup.focusedEmptyBorder
editorGroupHeader.noTabsBackground
editorGroupHeader.tabsBackground
editorGroupHeader.tabsBorder
editorGutter.addedBackground
editorGutter.background
editorGutter.commentRangeForeground
editorGutter.deletedBackground
editorGutter.foldingControlForeground
editorGutter.modifiedBackground
editorHint.border
editorHint.foreground
editorHoverWidget.background
editorHoverWidget.border
editorHoverWidget.foreground
editorHoverWidget.statusBarBackground
editorIndentGuide.activeBackground
editorIndentGuide.background
editorInfo.border
editorInfo.foreground
editorLightBulb.foreground
editorLightBulbAutoFix.foreground
editorLineNumber.activeForeground
editorLineNumber.foreground
editorLink.activeForeground
editorMarkerNavigation.background
editorMarkerNavigationError.background
editorMarkerNavigationInfo.background
editorMarkerNavigationWarning.background
editorOverviewRuler.addedForeground
editorOverviewRuler.background
editorOverviewRuler.bracketMatchForeground
editorOverviewRuler.deletedForeground
editorOverviewRuler.errorForeground
editorOverviewRuler.findMatchForeground
editorOverviewRuler.infoForeground
editorOverviewRuler.modifiedForeground
editorOverviewRuler.rangeHighlightForeground
editorOverviewRuler.selectionHighlightForeground
editorOverviewRuler.warningForeground
editorOverviewRuler.wordHighlightForeground
editorOverviewRuler.wordHighlightStrongForeground
editorRuler.foreground
editorSuggestWidget.background
editorSuggestWidget.border
editorSuggestWidget.foreground
editorSuggestWidget.highlightForeground
editorSuggestWidget.selectedBackground
editorSuggestWidget.selectedIconForeground
editorWarning.border
editorWarning.foreground
editorWhitespace.foreground
editorWidget.background
editorWidget.border
editorWidget.foreground
errorForeground
extensionBadge.background
extensionBadge.foreground
extensionButton.background
extensionButton.foreground
extensionButton.hoverBackground
extensionButton.prominentBackground
extensionButton.prominentForeground
extensionButton.prominentHoverBackground
focusBorder
foreground
gitDecoration.addedResourceForeground
gitDecoration.conflictingResourceForeground
gitDecoration.deletedResourceForeground
gitDecoration.ignoredResourceForeground
gitDecoration.modifiedResourceForeground
gitDecoration.renamedResourceForeground
gitDecoration.stageDeletedResourceForeground
gitDecoration.stageModifiedResourceForeground
gitDecoration.submoduleResourceForeground
gitDecoration.untrackedResourceForeground
icon.foreground
input.background
input.border
input.foreground
input.placeholderForeground
inputOption.activeBackground
inputOption.activeBorder
inputOption.activeForeground
inputValidation.errorBackground
inputValidation.errorBorder
inputValidation.errorForeground
inputValidation.infoBackground
inputValidation.infoBorder
inputValidation.infoForeground
inputValidation.warningBackground
inputValidation.warningBorder
inputValidation.warningForeground
interactiveEditor.border
interactiveEditor.editor.background
interactiveEditor.editor.border
interactiveEditor.regionHighlight
interactiveEditor.regionHighlightBorder
interactiveEditorInput.background
interactiveEditorInput.border
interactiveEditorInput.placeholderForeground
keybindingTable.headerBackground
keybindingTable.rowsBackground
list.activeSelectionBackground
list.activeSelectionForeground
list.activeSelectionIconForeground
list.deemphasizedForeground
list.dropBackground
list.errorForeground
list.filterMatchBackground
list.filterMatchBorder
list.focusForeground
list.highlightForeground
list.hoverBackground
list.hoverForeground
list.inactiveSelectionBackground
list.inactiveSelectionForeground
list.inactiveSelectionIconForeground
list.invalidItemForeground
list.warningForeground
listFilterWidget.background
listFilterWidget.noMatchesOutline
listFilterWidget.outline
menu.background
menu.foreground
menu.selectionBackground
menu.selectionBorder
menu.selectionForeground
menu.separatorBackground
menubar.selectionBackground
menubar.selectionForeground
mergeEditor.change.background
mergeEditor.change.base.background
mergeEditor.change.border
mergeEditor.change.inline.background
mergeEditor.conflict.active.background
mergeEditor.conflict.background
mergeEditor.conflict.base.background
mergeEditor.conflict.base.border
mergeEditor.conflict.current.background
mergeEditor.conflict.current.border
mergeEditor.conflict.handled.background
mergeEditor.conflict.handled.border
mergeEditor.conflict.incoming.background
mergeEditor.conflict.incoming.border
mergeEditor.conflict.resolved.background
mergeEditor.conflict.resolved.border
mergeEditor.conflict.unhandled.background
mergeEditor.conflict.unhandled.border
mergeEditor.conflict.unresolved.background
mergeEditor.conflict.unresolved.border
minimap.background
minimap.errorHighlight
minimap.findMatchHighlight
minimap.selectionHighlight
minimap.warningHighlight
minimapGutter.addedBackground
minimapGutter.deletedBackground
minimapGutter.modifiedBackground
minimapSlider.activeBackground
minimapSlider.background
minimapSlider.hoverBackground
multiDiffEditor.background
multiDiffEditor.border
multiDiffEditor.fileBorder
multiDiffEditor.fileHeaderBackground
multiDiffEditor.headerBackground
notebook.cellBorderColor
notebook.cellEditorBackground
notebook.cellHoverBackground
notebook.cellInsertionIndicator
notebook.cellStatusBarItemHoverBackground
notebook.cellToolbarSeparator
notebook.editorBackground
notebook.focusedCellBackground
notebook.focusedCellBorder
notebook.focusedEditorBorder
notebook.outputContainerBackgroundColor
notebook.outputContainerBorderColor
notebook.selectedCellBackground
notebook.splitViewContainerBackground
notebookScrollbarSlider.activeBackground
notebookScrollbarSlider.background
notebookScrollbarSlider.hoverBackground
notebookStatusErrorIcon.foreground
notebookStatusRunningIcon.foreground
notebookStatusSuccessIcon.foreground
notificationCenter.border
notificationCenterHeader.background
notificationCenterHeader.foreground
notificationLink.foreground
notifications.background
notifications.border
notifications.foreground
notificationsErrorIcon.foreground
notificationsInfoIcon.foreground
notificationsWarningIcon.foreground
notificationToast.border
outputView.background
outputViewStickyScroll.background
panel.background
panel.border
panelInput.border
panelSection.background
panelSection.border
panelSectionHeader.background
panelSectionHeader.border
panelSectionHeader.foreground
panelTitle.activeBorder
panelTitle.activeForeground
panelTitle.inactiveForeground
peekView.border
peekViewEditor.background
peekViewEditor.lineHighlightBackground
peekViewEditor.matchHighlightBackground
peekViewResult.background
peekViewResult.fileForeground
peekViewResult.lineForeground
peekViewResult.matchHighlightBackground
peekViewResult.selectionBackground
peekViewResult.selectionForeground
peekViewTitle.background
peekViewTitleDescription.foreground
peekViewTitleLabel.foreground
pickerGroup.border
pickerGroup.foreground
profile.buttonBackground
profile.buttonForeground
profile.buttonHoverBackground
profile.foreground
profile.selectionBackground
progressBar.background
quickInput.background
quickInput.focusBackground
quickInput.foreground
quickInput.selectedIconForeground
quickInputTitle.background
sash.hoverBorder
scm.providerBorder
scrollbar.shadow
scrollbarSlider.activeBackground
scrollbarSlider.background
scrollbarSlider.hoverBackground
searchEditor.findMatchBackground
searchEditor.findMatchBorder
searchEditor.textInputBorder
selection.background
settings.checkboxBackground
settings.checkboxBorder
settings.checkboxForeground
settings.dropdownBackground
settings.dropdownBorder
settings.dropdownForeground
settings.dropdownListBackground
settings.focusedRowBackground
settings.headerBorder
settings.headerForeground
settings.modifiedItemIndicator
settings.numberInputBackground
settings.numberInputBorder
settings.numberInputForeground
settings.rowHoverBackground
settings.sashBorder
settings.sectionHeaderBackground
settings.textInputBackground
settings.textInputBorder
settings.textInputForeground
sideBar.background
sideBar.border
sideBar.foreground
sideBarSectionHeader.background
sideBarSectionHeader.border
sideBarSectionHeader.foreground
sideBarTitle.foreground
statusBar.background
statusBar.border
statusBar.debuggingBackground
statusBar.debuggingForeground
statusBar.foreground
statusBar.noFolderBackground
statusBar.noFolderForeground
statusBarItem.activeBackground
statusBarItem.errorBackground
statusBarItem.errorForeground
statusBarItem.errorHoverBackground
statusBarItem.hoverBackground
statusBarItem.prominentBackground
statusBarItem.prominentHoverBackground
statusBarItem.remoteBackground
statusBarItem.remoteForeground
statusBarItem.remoteHoverBackground
statusBarItem.remoteHoverForeground
statusBarItem.warningBackground
statusBarItem.warningForeground
statusBarItem.warningHoverBackground
tab.activeBackground
tab.activeForeground
tab.activeModifiedBorder
tab.hoverBackground
tab.hoverForeground
tab.inactiveBackground
tab.inactiveForeground
tab.inactiveModifiedBorder
tab.lastPinnedBorder
tab.unfocusedActiveBackground
tab.unfocusedActiveForeground
tab.unfocusedActiveModifiedBorder
tab.unfocusedInactiveBackground
tab.unfocusedInactiveForeground
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.inactiveSelectionBackground
terminal.selectionBackground
terminal.tab.activeBorder
terminalCursor.background
terminalCursor.foreground
terminalOverviewRuler.cursorForeground
terminalOverviewRuler.findMatchForeground
textBlockQuote.background
textBlockQuote.border
textCodeBlock.background
textLink.activeForeground
textLink.foreground
textPreformat.foreground
textSeparator.foreground
timeline.background
timeline.border
timeline.foreground
timeline.textForeground
titleBar.activeBackground
titleBar.activeForeground
titleBar.border
titleBar.inactiveBackground
titleBar.inactiveForeground
tree.tableColumnsBorder
tree.tableHeaderBackground
welcomePage.background
welcomePage.buttonBackground
welcomePage.buttonHoverBackground
welcomePage.progress.background
welcomePage.progress.foreground
welcomePage.tileBackground
welcomePage.tileBorder
welcomePage.tileForeground
welcomePage.tileHoverBackground
widget.shadow
window.activeBorder
window.inactiveBorder
workspace.disconnectedBackground
workspace.pastBackground

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
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
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.inserted
markup.italic
markup.list
markup.list.numbered
markup.list.unnumbered
markup.quote
markup.underline
markup.underline.link
meta
meta.function
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.constant
support.function
support.variable
variable
variable.function
variable.language
variable.name
variable.other
variable.other.constant
variable.other.property
variable.other.readwrite
variable.parameter