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
Gradient Nitro Glass Light

colors

Workbench UI color keys from the theme JSON colors map.

keyHEXRGBRGBA
activityBar.activeBackground
activityBar.activeBorder
activityBar.activeFocusBorder
activityBar.background
activityBar.border
activityBar.foreground
activityBar.inactiveForeground
activityBarBadge.background
activityBarBadge.foreground
activityBarTop.activeBackground
activityBarTop.activeBorder
activityBarTop.background
activityBarTop.foreground
activityBarTop.inactiveForeground
badge.background
badge.foreground
breadcrumb.activeSelectionForeground
breadcrumb.background
breadcrumb.focusForeground
breadcrumb.foreground
button.background
button.border
button.foreground
button.hoverBackground
button.secondaryBackground
button.secondaryForeground
button.secondaryHoverBackground
chat.avatarBackground
chat.avatarForeground
chat.requestBackground
chat.requestBorder
descriptionForeground
diffEditor.insertedLineBackground
diffEditor.insertedTextBackground
diffEditor.removedLineBackground
diffEditor.removedTextBackground
disabledForeground
dropdown.background
dropdown.border
dropdown.foreground
editor.background
editor.border
editor.findMatchBackground
editor.findMatchHighlightBackground
editor.foreground
editor.inactiveSelectionBackground
editor.lineHighlightBackground
editor.lineHighlightBorder
editor.selectionBackground
editor.selectionHighlightBackground
editor.wordHighlightBackground
editorCursor.foreground
editorGroup.border
editorGroup.emptyBackground
editorGroupHeader.noTabsBackground
editorGroupHeader.tabsBackground
editorGroupHeader.tabsBorder
editorGutter.background
editorHoverWidget.background
editorHoverWidget.border
editorHoverWidget.foreground
editorHoverWidget.statusBarBackground
editorIndentGuide.activeBackground1
editorIndentGuide.background1
editorLineNumber.activeForeground
editorLineNumber.foreground
editorPane.background
editorStickyScroll.background
editorStickyScroll.shadow
editorSuggestWidget.background
editorSuggestWidget.border
editorSuggestWidget.foreground
editorSuggestWidget.highlightForeground
editorSuggestWidget.selectedBackground
editorSuggestWidget.selectedForeground
editorWidget.background
editorWidget.border
editorWidget.resizeBorder
errorForeground
focusBorder
foreground
gitDecoration.conflictingResourceForeground
gitDecoration.deletedResourceForeground
gitDecoration.modifiedResourceForeground
gitDecoration.stageDeletedResourceForeground
gitDecoration.stageModifiedResourceForeground
gitDecoration.submoduleResourceForeground
gitDecoration.untrackedResourceForeground
gradientNitro.file.application
gradientNitro.file.dart
gradientNitro.file.data
gradientNitro.file.environment
gradientNitro.file.javascript
gradientNitro.file.markdown
gradientNitro.file.markup
gradientNitro.file.python
gradientNitro.file.styles
gradientNitro.file.systems
gradientNitro.file.text
gradientNitro.file.typescript
inlineChat.border
inlineChatInput.background
inlineChatInput.border
inlineChatInput.focusBorder
input.background
input.border
input.foreground
input.placeholderForeground
inputOption.activeBackground
inputOption.activeBorder
interactive.activeCodeBorder
interactive.inactiveCodeBorder
keybindingLabel.background
keybindingLabel.border
keybindingLabel.foreground
list.activeSelectionBackground
list.activeSelectionForeground
list.focusAndSelectionOutline
list.focusBackground
list.focusForeground
list.focusOutline
list.highlightForeground
list.hoverBackground
list.hoverForeground
list.inactiveFocusBackground
list.inactiveFocusOutline
list.inactiveSelectionBackground
list.inactiveSelectionForeground
listFilterWidget.shadow
menu.background
menu.border
menu.foreground
menu.selectionBackground
menu.selectionForeground
minimap.background
modernActivityBar.background
modernActivityBar.border
modernActivityBar.inactiveBackground
modernActivityBarItem.activeBackground
modernActivityBarItem.activeForeground
modernActivityBarItem.hoverBackground
modernActivityBarItem.hoverForeground
modernEditorTab.activeActionBackground
modernEditorTab.activeBackground
modernEditorTab.activeForeground
modernEditorTab.activeHoverActionBackground
modernEditorTab.activeHoverBackground
modernEditorTab.hoverActionBackground
modernEditorTab.hoverBackground
modernEditorTab.hoverForeground
modernEditorTab.inactiveBackground
modernEditorTab.selectedActionBackground
modernTab.activeBackground
modernTab.activeForeground
modernTab.hoverBackground
modernTab.hoverForeground
notificationCenterHeader.background
notifications.background
notifications.border
notifications.foreground
notificationToast.border
panel.background
panel.border
panelTitle.activeBorder
panelTitle.activeForeground
panelTitle.inactiveForeground
peekView.border
peekViewEditor.background
peekViewResult.background
peekViewResult.fileForeground
peekViewResult.lineForeground
peekViewTitle.background
pickerGroup.border
pickerGroup.foreground
progressBar.background
quickInput.background
quickInput.foreground
quickInputList.focusBackground
quickInputList.focusForeground
quickInputTitle.background
scrollbar.shadow
selection.background
sideBar.background
sideBar.border
sideBar.foreground
sideBarSectionHeader.background
sideBarSectionHeader.border
sideBarSectionHeader.foreground
sideBarStickyScroll.background
sideBarTitle.background
sideBarTitle.foreground
statusBar.background
statusBar.border
statusBar.debuggingBackground
statusBar.debuggingForeground
statusBar.foreground
statusBar.noFolderBackground
statusBarItem.hoverBackground
statusBarItem.remoteBackground
statusBarItem.remoteForeground
surface.background
surface.border
surface.foreground
tab.activeBackground
tab.activeBorder
tab.activeBorderTop
tab.activeForeground
tab.activeModifiedBorder
tab.border
tab.hoverBackground
tab.hoverBorder
tab.hoverForeground
tab.inactiveBackground
tab.inactiveForeground
tab.inactiveModifiedBorder
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.ansiBlue
terminal.ansiCyan
terminal.ansiGreen
terminal.ansiMagenta
terminal.ansiRed
terminal.ansiYellow
terminal.background
terminal.foreground
terminalCursor.foreground
textLink.activeForeground
textLink.foreground
titleBar.activeBackground
titleBar.activeForeground
titleBar.border
titleBar.inactiveBackground
titleBar.inactiveForeground
toolbar.activeBackground
toolbar.hoverBackground
tree.inactiveIndentGuidesStroke
tree.indentGuidesStroke
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
constant.other
constant.other.placeholder
entity
entity.name
entity.name.class
entity.name.function
entity.name.namespace
entity.name.section
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
markup
markup.bold
markup.heading
markup.inline.raw
markup.italic
markup.quote
markup.raw
markup.underline
markup.underline.link
meta
punctuation.definition.comment
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.function
support.type
support.type.primitive
support.type.property-name
variable
variable.function
variable.language
variable.other
variable.other.constant
variable.other.property
variable.other.readwrite
variable.parameter