vscode-docs/api/references/theme-color.md

960 строки
64 KiB
Markdown
Исходник Обычный вид История

2019-03-11 23:57:10 +03:00
---
# DO NOT TOUCH — Managed by doc writer
ContentId: 8e03996d-35e9-4e9f-a60e-50d0962231b8
2021-11-04 19:19:11 +03:00
DateApproved: 11/4/2021
2019-03-11 23:57:10 +03:00
# Summarize the whole topic in less than 300 characters for SEO purpose
MetaDescription: Theme Color reference that lists all themable colors in Visual Studio Code.
---
# Theme Color
You can customize your active Visual Studio Code [color theme](/docs/getstarted/themes) with the `workbench.colorCustomizations` user [setting](/docs/getstarted/settings).
```json
{
"workbench.colorCustomizations": {
"activityBar.background": "#00AA00"
}
}
```
**Note**: If you want to use an existing color theme, see [Color Themes](/docs/getstarted/themes) where you'll learn how to set the active color theme through the **Preferences: Color Theme** dropdown (`kb(workbench.action.selectTheme)`).
2020-11-04 00:02:01 +03:00
Theme colors are available as CSS variables in [webviews](/api/extension-guides/webview), and [an extension](https://marketplace.visualstudio.com/items?itemName=connor4312.css-theme-completions) is available which provides IntelliSense for them.
2019-03-11 23:57:10 +03:00
## Color formats
Color values can be defined in the RGB color model with an alpha channel for transparency. As format, the following hexadecimal notations are supported: `#RGB`, `#RGBA`, `#RRGGBB` and `#RRGGBBAA`. R (red), G (green), B (blue), and A (alpha) are hexadecimal characters (0-9, a-f or A-F). The three-digit notation (`#RGB`) is a shorter version of the six-digit form (`#RRGGBB`) and the four-digit RGB notation (`#RGBA`) is a shorter version of the eight-digit form (`#RRGGBBAA`). For example `#e35f` is the same color as `#ee3355ff`.
If no alpha value is defined, it defaults to `ff` (opaque, no transparency). If alpha is set to `00`, the color is fully transparent.
Some colors should not be opaque in order to not cover other annotations. Check the color descriptions to see to which colors this applies.
## Contrast colors
The contrast colors are typically only set for high contrast themes. If set, they add an additional border around items across the UI to increase the contrast.
- `contrastActiveBorder`: An extra border around active elements to separate them from others for greater contrast.
- `contrastBorder`: An extra border around elements to separate them from others for greater contrast.
## Base colors
- `focusBorder`: Overall border color for focused elements. This color is only used if not overridden by a component.
- `foreground`: Overall foreground color. This color is only used if not overridden by a component.
- `widget.shadow`: Shadow color of widgets such as Find/Replace inside the editor.
- `selection.background`: Background color of text selections in the workbench (for input fields or text areas, does not apply to selections within the editor and the terminal).
- `descriptionForeground`: Foreground color for description text providing additional information, for example for a label.
- `errorForeground`: Overall foreground color for error messages (this color is only used if not overridden by a component).
2019-10-09 21:09:23 +03:00
- `icon.foreground`: The default color for icons in the workbench.
2020-11-11 13:11:14 +03:00
- `sash.hoverBorder`: The hover border color for draggable sashes.
2019-03-11 23:57:10 +03:00
2019-11-11 21:28:52 +03:00
## Window border
The theme colors for VS Code window border.
- `window.activeBorder`: Border color for the active (focused) window.
- `window.inactiveBorder`: Border color for the inactive (unfocused) windows.
2019-03-11 23:57:10 +03:00
## Text colors
Colors inside a text document, such as the welcome page.
- `textBlockQuote.background`: Background color for block quotes in text.
- `textBlockQuote.border`: Border color for block quotes in text.
- `textCodeBlock.background`: Background color for code blocks in text.
- `textLink.activeForeground`: Foreground color for links in text when clicked on and on mouse hover.
- `textLink.foreground`: Foreground color for links in text.
- `textPreformat.foreground`: Foreground color for preformatted text segments.
- `textSeparator.foreground`: Color for text separators.
2021-05-04 14:55:13 +03:00
## Action colors
A set of colors to control the interactions with actions across the workbench.
- `toolbar.hoverBackground`: Toolbar background when hovering over actions using the mouse
- `toolbar.hoverOutline`: Toolbar outline when hovering over actions using the mouse
- `toolbar.activeBackground`: Toolbar background when holding the mouse over actions
2019-03-11 23:57:10 +03:00
## Button control
A set of colors for button widgets such as **Open Folder** button in the Explorer of a new window.
![button control](images/theme-color/button.png)
- `button.background`: Button background color.
- `button.foreground`: Button foreground color.
2021-05-05 17:53:29 +03:00
- `button.border`: Button border color.
2019-03-11 23:57:10 +03:00
- `button.hoverBackground`: Button background color when hovering.
2020-07-09 21:19:13 +03:00
- `button.secondaryForeground`: Secondary button foreground color.
- `button.secondaryBackground`: Secondary button background color.
- `button.secondaryHoverBackground`: Secondary button background color when hovering.
2019-09-02 17:54:17 +03:00
- `checkbox.background`: Background color of checkbox widget.
- `checkbox.foreground`: Foreground color of checkbox widget.
- `checkbox.border`: Border color of checkbox widget.
2019-03-11 23:57:10 +03:00
## Dropdown control
A set of colors for all Dropdown widgets such as in the Integrated Terminal or the Output panel. Note that the
Dropdown control is not used on macOS currently.
2021-08-02 18:48:23 +03:00
![dropdown control](images/theme-color/dropdown.png)
2019-03-11 23:57:10 +03:00
- `dropdown.background`: Dropdown background.
- `dropdown.listBackground`: Dropdown list background.
- `dropdown.border`: Dropdown border.
- `dropdown.foreground`: Dropdown foreground.
## Input control
Colors for input controls such as in the Search view or the Find/Replace dialog.
![input control](images/theme-color/input.png)
- `input.background`: Input box background.
- `input.border`: Input box border.
- `input.foreground`: Input box foreground.
- `input.placeholderForeground`: Input box foreground color for placeholder text.
- `inputOption.activeBackground`: Background color of activated options in input fields.
2019-03-11 23:57:10 +03:00
- `inputOption.activeBorder`: Border color of activated options in input fields.
2020-06-08 16:19:30 +03:00
- `inputOption.activeForeground`: Foreground color of activated options in input fields.
2019-03-11 23:57:10 +03:00
- `inputValidation.errorBackground`: Input validation background color for error severity.
- `inputValidation.errorForeground`: Input validation foreground color for error severity.
- `inputValidation.errorBorder`: Input validation border color for error severity.
- `inputValidation.infoBackground`: Input validation background color for information severity.
- `inputValidation.infoForeground`: Input validation foreground color for information severity.
- `inputValidation.infoBorder`: Input validation border color for information severity.
- `inputValidation.warningBackground`: Input validation background color for information warning.
- `inputValidation.warningForeground`: Input validation foreground color for warning severity.
- `inputValidation.warningBorder`: Input validation border color for warning severity.
## Scrollbar control
- `scrollbar.shadow`: Scrollbar slider shadow to indicate that the view is scrolled.
- `scrollbarSlider.activeBackground`: Scrollbar slider background color when clicked on.
- `scrollbarSlider.background`: Scrollbar slider background color.
- `scrollbarSlider.hoverBackground`: Scrollbar slider background color when hovering.
## Badge
Badges are small information labels, for example, search results count.
- `badge.foreground`: Badge foreground color.
- `badge.background`: Badge background color.
## Progress bar
- `progressBar.background`: Background color of the progress bar shown for long running operations.
## Lists and trees
Colors for list and trees like the File Explorer. An active list/tree has keyboard focus, an inactive does not.
- `list.activeSelectionBackground`: List/Tree background color for the selected item when the list/tree is active.
- `list.activeSelectionForeground`: List/Tree foreground color for the selected item when the list/tree is active.
- `list.activeSelectionIconForeground`: List/Tree icon foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.
2019-03-11 23:57:10 +03:00
- `list.dropBackground`: List/Tree drag and drop background when moving items around using the mouse.
- `list.focusBackground`: List/Tree background color for the focused item when the list/tree is active.
- `list.focusForeground`: List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.
2021-06-10 02:07:01 +03:00
- `list.focusHighlightForeground`: List/Tree foreground color of the match highlights on actively focused items when searching inside the list/tree.
2021-03-31 02:07:27 +03:00
- `list.focusOutline`: List/Tree outline color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.
2019-03-11 23:57:10 +03:00
- `list.highlightForeground`: List/Tree foreground color of the match highlights when searching inside the list/tree.
- `list.hoverBackground`: List/Tree background when hovering over items using the mouse.
- `list.hoverForeground`: List/Tree foreground when hovering over items using the mouse.
- `list.inactiveSelectionBackground`: List/Tree background color for the selected item when the list/tree is inactive.
- `list.inactiveSelectionForeground`: List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.
- `list.inactiveSelectionIconForeground`: List/Tree icon foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.
2019-03-11 23:57:10 +03:00
- `list.inactiveFocusBackground`: List background color for the focused item when the list is inactive. An active list has keyboard focus, an inactive does not. Currently only supported in lists.
2021-03-31 02:07:27 +03:00
- `list.inactiveFocusOutline`: List/Tree outline color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.
2019-03-11 23:57:10 +03:00
- `list.invalidItemForeground`: List/Tree foreground color for invalid items, for example an unresolved root in explorer.
- `list.errorForeground`: Foreground color of list items containing errors.
- `list.warningForeground`: Foreground color of list items containing warnings.
- `listFilterWidget.background`: List/Tree Filter background color of typed text when searching inside the list/tree.
- `listFilterWidget.outline`: List/Tree Filter Widget's outline color of typed text when searching inside the list/tree.
- `listFilterWidget.noMatchesOutline`: List/Tree Filter Widget's outline color when no match is found of typed text when searching inside the list/tree.
2019-10-21 18:10:51 +03:00
- `list.filterMatchBackground`: Background color of the filtered matches in lists and trees.
- `list.filterMatchBorder`: Border color of the filtered matches in lists and trees.
2020-04-07 17:47:33 +03:00
- `list.deemphasizedForeground`: List/Tree foreground color for items that are deemphasized.
2021-03-31 02:07:27 +03:00
- `tree.indentGuidesStroke`: Tree Widget's stroke color for indent guides.
- `tree.tableColumnsBorder`: Tree stroke color for the indentation guides.
2019-03-11 23:57:10 +03:00
## Activity Bar
The Activity Bar is displayed either on the far left or right of the workbench and allows fast switching between views of the Side Bar.
- `activityBar.background`: Activity Bar background color.
2020-06-08 16:19:30 +03:00
- `activityBar.dropBorder`: Drag and drop feedback color for the activity bar items. The activity bar is showing on the far left or right and allows to switch between views of the side bar.
2019-11-11 21:28:52 +03:00
- `activityBar.foreground`: Activity Bar foreground color (for example used for the icons).
- `activityBar.inactiveForeground`: Activity Bar item foreground color when it is inactive.
2019-03-11 23:57:10 +03:00
- `activityBar.border`: Activity Bar border color with the Side Bar.
- `activityBarBadge.background`: Activity notification badge background color.
- `activityBarBadge.foreground`: Activity notification badge foreground color.
2019-11-11 21:28:52 +03:00
- `activityBar.activeBorder`: Activity Bar active indicator border color.
- `activityBar.activeBackground`: Activity Bar optional background color for the active element.
2019-12-11 02:37:29 +03:00
- `activityBar.activeFocusBorder`: Activity bar focus border color for the active item.
2019-03-11 23:57:10 +03:00
## Side Bar
The Side Bar contains views like the Explorer and Search.
- `sideBar.background`: Side Bar background color.
- `sideBar.foreground`: Side Bar foreground color. The Side Bar is the container for views like Explorer and Search.
- `sideBar.border`: Side Bar border color on the side separating the editor.
- `sideBar.dropBackground`: Drag and drop feedback color for the side bar sections. The color should have transparency so that the side bar sections can still shine through.
2019-03-11 23:57:10 +03:00
- `sideBarTitle.foreground`: Side Bar title foreground color.
- `sideBarSectionHeader.background`: Side Bar section header background color.
- `sideBarSectionHeader.foreground`: Side Bar section header foreground color.
- `sideBarSectionHeader.border`: Side bar section header border color.
## Minimap
The Minimap shows a minified version of the current file.
- `minimap.findMatchHighlight`: Highlight color for matches from search within files.
- `minimap.selectionHighlight`: Highlight color for the editor selection.
- `minimap.errorHighlight`: Highlight color for errors within the editor.
- `minimap.warningHighlight`: Highlight color for warnings within the editor.
2020-03-02 14:06:27 +03:00
- `minimap.background`: Minimap background color.
2021-10-07 17:59:34 +03:00
- `minimap.selectionOccurrenceHighlight`: Minimap marker color for repeating editor selections.
- `minimap.foregroundOpacity`: Opacity of foreground elements rendered in the minimap. For example, "#000000c0" will render the elements with 75% opacity.
2020-03-02 14:06:27 +03:00
- `minimapSlider.background`: Minimap slider background color.
- `minimapSlider.hoverBackground`: Minimap slider background color when hovering.
- `minimapSlider.activeBackground`: Minimap slider background color when clicked on.
- `minimapGutter.addedBackground`: Minimap gutter color for added content.
- `minimapGutter.modifiedBackground`: Minimap gutter color for modified content.
- `minimapGutter.deletedBackground`: Minimap gutter color for deleted content.
2019-03-11 23:57:10 +03:00
## Editor Groups & Tabs
Editor Groups are the containers of editors. There can be many editor groups. A Tab is the container of an editor. Multiple Tabs can be opened in one editor group.
- `editorGroup.border`: Color to separate multiple editor groups from each other.
![editorGroup.border](images/theme-color/editorGroup-border.gif)
- `editorGroup.dropBackground`: Background color when dragging editors around.
![editorGroup.dropBackground](images/theme-color/editorGroup-dropbackground.gif)
- `editorGroupHeader.noTabsBackground`: Background color of the editor group title header when Tabs are disabled (set `"workbench.editor.showTabs": false`).
![editorGroupHeader.noTabsBackground](images/theme-color/editorgroupheader-notabsbackground.gif)
- `editorGroupHeader.tabsBackground`: Background color of the Tabs container.
![editorGroupHeader.tabsBackground](images/theme-color/editorgroupheader-tabsbackground.gif)
2020-04-23 11:58:12 +03:00
- `editorGroupHeader.tabsBorder`: Border color below the editor tabs control when tabs are enabled.
2019-03-11 23:57:10 +03:00
![editorGroupHeader.tabsBorder](images/theme-color/editorgroupheader-tabsborder.gif)
- `editorGroupHeader.border`: Border color between editor group header and editor (below breadcrumbs if enabled).
2019-03-11 23:57:10 +03:00
- `editorGroup.emptyBackground`: Background color of an empty editor group.
- `editorGroup.focusedEmptyBorder`: Border color of an empty editor group that is focused.
2019-05-29 18:13:24 +03:00
- `tab.activeBackground`: Active Tab background color in an active group.
- `tab.unfocusedActiveBackground`: Active Tab background color in an inactive editor group.
2019-03-11 23:57:10 +03:00
- `tab.activeForeground`: Active Tab foreground color in an active group.
- `tab.border`: Border to separate Tabs from each other.
- `tab.activeBorder`: Bottom border for the active tab.
- `tab.unfocusedActiveBorder`: Bottom border for the active tab in an inactive editor group.
- `tab.activeBorderTop`: Top border for the active tab.
- `tab.unfocusedActiveBorderTop`: Top border for the active tab in an inactive editor group
2020-09-25 20:08:41 +03:00
- `tab.lastPinnedBorder`: Border on the right of the last pinned editor to separate from unpinned editors.
2019-03-11 23:57:10 +03:00
- `tab.inactiveBackground`: Inactive Tab background color.
2020-04-23 11:58:12 +03:00
- `tab.unfocusedInactiveBackground`: Inactive Tab background color in an unfocused group
2019-03-11 23:57:10 +03:00
- `tab.inactiveForeground`: Inactive Tab foreground color in an active group.
- `tab.unfocusedActiveForeground`: Active tab foreground color in an inactive editor group.
- `tab.unfocusedInactiveForeground`: Inactive tab foreground color in an inactive editor group.
- `tab.hoverBackground`: Tab background color when hovering
2020-04-24 00:09:38 +03:00
- `tab.unfocusedHoverBackground`: Tab background color in an unfocused group when hovering
2020-04-23 11:58:12 +03:00
- `tab.hoverForeground`: Tab foreground color when hovering
- `tab.unfocusedHoverForeground`: Tab foreground color in an unfocused group when hovering
2019-03-11 23:57:10 +03:00
- `tab.hoverBorder`: Border to highlight tabs when hovering
- `tab.unfocusedHoverBorder`: Border to highlight tabs in an unfocused group when hovering
- `tab.activeModifiedBorder`: Border on the top of modified (dirty) active tabs in an active group.
- `tab.inactiveModifiedBorder`: Border on the top of modified (dirty) inactive tabs in an active group.
- `tab.unfocusedActiveModifiedBorder`: Border on the top of modified (dirty) active tabs in an unfocused group.
- `tab.unfocusedInactiveModifiedBorder`: Border on the top of modified (dirty) inactive tabs in an unfocused group.
- `editorPane.background`: Background color of the editor pane visible on the left and right side of the centered editor layout.
2021-10-23 11:27:41 +03:00
- `sideBySideEditor.horizontalBorder`: Color to separate two editors from each other when shown side by side in an editor group from top to bottom.
- `sideBySideEditor.verticalBorder`: Color to separate two editors from each other when shown side by side in an editor group from left to right.
2019-03-11 23:57:10 +03:00
## Editor colors
The most prominent editor colors are the token colors used for syntax highlighting and are based on the language grammar installed. These colors are defined by the Color Theme but can also be customized with the `editor.tokenColorCustomizations` setting. See [Customizing a Color Theme](/docs/getstarted/themes#_customizing-a-color-theme) for details on updating a Color Theme and the available token types.
All other editor colors are listed here:
- `editor.background`: Editor background color.
- `editor.foreground`: Editor default foreground color.
- `editorLineNumber.foreground`: Color of editor line numbers.
- `editorLineNumber.activeForeground`: Color of the active editor line number.
- `editorCursor.background`: The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.
- `editorCursor.foreground`: Color of the editor cursor.
Selection colors are visible when selecting one or more characters. In addition to the selection also all regions with the same content are highlighted.
![selection highlight](images/theme-color/selectionhighlight.png)
- `editor.selectionBackground`: Color of the editor selection.
- `editor.selectionForeground`: Color of the selected text for high contrast.
- `editor.inactiveSelectionBackground`: Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations.
- `editor.selectionHighlightBackground`: Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations.
- `editor.selectionHighlightBorder`: Border color for regions with the same content as the selection.
Word highlight colors are visible when the cursor is inside a symbol or a word. Depending on the language support available for the file type, all matching references and declarations are highlighted and read and write accesses get different colors. If document symbol language support is not available, this falls back to word highlighting.
![occurrences](images/theme-color/occurrences.png)
- `editor.wordHighlightBackground`: Background color of a symbol during read-access, for example when reading a variable. The color must not be opaque so as not to hide underlying decorations.
- `editor.wordHighlightBorder`: Border color of a symbol during read-access, for example when reading a variable.
- `editor.wordHighlightStrongBackground`: Background color of a symbol during write-access, for example when writing to a variable. The color must not be opaque so as not to hide underlying decorations.
- `editor.wordHighlightStrongBorder`: Border color of a symbol during write-access, for example when writing to a variable.
Find colors depend on the current find string in the Find/Replace dialog.
![Find matches](images/theme-color/findmatches.png)
- `editor.findMatchBackground`: Color of the current search match.
- `editor.findMatchHighlightBackground`: Color of the other search matches. The color must not be opaque so as not to hide underlying decorations.
- `editor.findRangeHighlightBackground`: Color the range limiting the search (Enable 'Find in Selection' in the find widget). The color must not be opaque so as not to hide underlying decorations.
- `editor.findMatchBorder`: Border color of the current search match.
- `editor.findMatchHighlightBorder`: Border color of the other search matches.
- `editor.findRangeHighlightBorder`: Border color the range limiting the search (Enable 'Find in Selection' in the find widget).
2019-12-08 02:49:43 +03:00
Search Editor colors highlight results in a Search Editor. This can be configured separately from other find matches in order to better differentiate between different classes of match in the same editor.
2019-12-07 02:29:24 +03:00
![Search Editor Matches](images/theme-color/searchEditorMatches.png)
- `searchEditor.findMatchBackground`: Color of the editor's results.
- `searchEditor.findMatchBorder`: Border color of the editor's results.
2020-03-02 14:06:27 +03:00
- `searchEditor.textInputBorder`: Search editor text input box border.
2019-12-07 02:29:24 +03:00
2019-03-11 23:57:10 +03:00
The hover highlight is shown behind the symbol for which a hover is shown.
![Hover Highlight](images/theme-color/hoverhighlight.png)
- `editor.hoverHighlightBackground`: Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations.
The current line is typically shown as either background highlight or a border (not both).
![Line Highlight](images/theme-color/line.png)
- `editor.lineHighlightBackground`: Background color for the highlight of line at the cursor position.
- `editor.lineHighlightBorder`: Background color for the border around the line at the cursor position.
The link color is visible when clicking on a link.
![Link](images/theme-color/link.png)
- `editorLink.activeForeground`: Color of active links.
The range highlight is visible when selecting a search result.
![Range Highlight](images/theme-color/rangehighlight.png)
- `editor.rangeHighlightBackground`: Background color of highlighted ranges, used by Quick Open, Symbol in File and Find features. The color must not be opaque so as not to hide underlying decorations.
- `editor.rangeHighlightBorder`: Background color of the border around highlighted ranges.
2019-12-11 03:03:02 +03:00
The symbol highlight is visible when navigating to a symbol via a command such as **Go to Definition**.
2019-12-11 02:37:29 +03:00
- `editor.symbolHighlightBackground`: Background color of highlighted symbol. The color must not be opaque so as not to hide underlying decorations.
- `editor.symbolHighlightBorder`: Background color of the border around highlighted symbols.
2019-03-11 23:57:10 +03:00
To see the editor white spaces, enable **Toggle Render Whitespace**.
- `editorWhitespace.foreground`: Color of whitespace characters in the editor.
To see the editor indent guides, set `"editor.renderIndentGuides": true`.
- `editorIndentGuide.background`: Color of the editor indentation guides.
- `editorIndentGuide.activeBackground`: Color of the active editor indentation guide.
2021-07-08 00:48:45 +03:00
To see the editor inline hints, set `"editor.inlineSuggest.enabled": true`.
- `editorInlayHint.background`: Background color of inline hints.
- `editorInlayHint.foreground`: Foreground color of inline hints.
2021-10-07 17:59:34 +03:00
- `editorInlayHint.typeForeground`: Foreground color of inline hints for types
- `editorInlayHint.typeBackground`: Background color of inline hints for types
- `editorInlayHint.parameterForeground`: Foreground color of inline hints for parameters
- `editorInlayHint.parameterBackground`: Background color of inline hints for parameters
2019-03-11 23:57:10 +03:00
To see editor rulers, define their location with `"editor.rulers"`
- `editorRuler.foreground`: Color of the editor rulers.
2020-12-08 16:01:33 +03:00
- `editor.linkedEditingBackground`: Background color when the editor is in linked editing mode.
2020-09-10 23:13:23 +03:00
2019-03-11 23:57:10 +03:00
CodeLens:
2020-04-04 01:30:04 +03:00
![CodeLens](images/theme-color/codelens.png)
2019-03-11 23:57:10 +03:00
- `editorCodeLens.foreground`: Foreground color of an editor CodeLens.
2019-10-09 21:09:23 +03:00
Lightbulb:
- `editorLightBulb.foreground`: The color used for the lightbulb actions icon.
- `editorLightBulbAutoFix.foreground`: The color used for the lightbulb auto fix actions icon.
2019-03-11 23:57:10 +03:00
Bracket matches:
![Bracket colors](images/theme-color/bracket-colors.png)
- `editorBracketMatch.background`: Background color behind matching brackets.
- `editorBracketMatch.border`: Color for matching brackets boxes.
2021-11-01 17:24:20 +03:00
Bracket pair colorization:
2021-08-30 21:00:30 +03:00
- `editorBracketHighlight.foreground1`: Foreground color of brackets (1). Requires enabling bracket pair colorization.
- `editorBracketHighlight.foreground2`: Foreground color of brackets (2). Requires enabling bracket pair colorization.
- `editorBracketHighlight.foreground3`: Foreground color of brackets (3). Requires enabling bracket pair colorization.
- `editorBracketHighlight.foreground4`: Foreground color of brackets (4). Requires enabling bracket pair colorization.
- `editorBracketHighlight.foreground5`: Foreground color of brackets (5). Requires enabling bracket pair colorization.
- `editorBracketHighlight.foreground6`: Foreground color of brackets (6). Requires enabling bracket pair colorization.
- `editorBracketHighlight.unexpectedBracket.foreground`: Foreground color of unexpected brackets.
2019-03-11 23:57:10 +03:00
2021-11-01 17:24:20 +03:00
Bracket pair guides:
- `editorBracketPairGuide.activeBackground1`: Background color of active bracket pair guides (1). Requires enabling bracket pair guides.
- `editorBracketPairGuide.activeBackground2`: Background color of active bracket pair guides (2). Requires enabling bracket pair guides.
- `editorBracketPairGuide.activeBackground3`: Background color of active bracket pair guides (3). Requires enabling bracket pair guides.
- `editorBracketPairGuide.activeBackground4`: Background color of active bracket pair guides (4). Requires enabling bracket pair guides.
- `editorBracketPairGuide.activeBackground5`: Background color of active bracket pair guides (5). Requires enabling bracket pair guides.
- `editorBracketPairGuide.activeBackground6`: Background color of active bracket pair guides (6). Requires enabling bracket pair guides.
- `editorBracketPairGuide.background1`: Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.
- `editorBracketPairGuide.background2`: Background color of inactive bracket pair guides (2). Requires enabling bracket pair guides.
- `editorBracketPairGuide.background3`: Background color of inactive bracket pair guides (3). Requires enabling bracket pair guides.
- `editorBracketPairGuide.background4`: Background color of inactive bracket pair guides (4). Requires enabling bracket pair guides.
- `editorBracketPairGuide.background5`: Background color of inactive bracket pair guides (5). Requires enabling bracket pair guides.
- `editorBracketPairGuide.background6`: Background color of inactive bracket pair guides (6). Requires enabling bracket pair guides.
- `editorBracketPairGuide.background1`: Background color of inactive bracket pair guides (1). Requires enabling bracket pair guides.
2020-02-04 18:34:40 +03:00
Folding:
2020-03-02 14:06:27 +03:00
- `editor.foldBackground`: Background color for folded ranges. The color must not be opaque so as not to hide underlying decorations.
2020-02-04 18:34:40 +03:00
2019-03-11 23:57:10 +03:00
Overview ruler:
This ruler is located beneath the scroll bar on the right edge of the editor and gives an overview of the decorations in the editor.
2020-05-05 11:03:25 +03:00
- `editorOverviewRuler.background`: Background color of the editor overview ruler. Only used when the minimap is enabled and placed on the right side of the editor.
2019-03-11 23:57:10 +03:00
- `editorOverviewRuler.border`: Color of the overview ruler border.
- `editorOverviewRuler.findMatchForeground`: Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations.
- `editorOverviewRuler.rangeHighlightForeground`: Overview ruler marker color for highlighted ranges, like by the Quick Open, Symbol in File and Find features. The color must not be opaque so as not to hide underlying decorations.
- `editorOverviewRuler.selectionHighlightForeground`: Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations.
- `editorOverviewRuler.wordHighlightForeground`: Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations.
- `editorOverviewRuler.wordHighlightStrongForeground`: Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations.
- `editorOverviewRuler.modifiedForeground`: Overview ruler marker color for modified content.
- `editorOverviewRuler.addedForeground`: Overview ruler marker color for added content.
- `editorOverviewRuler.deletedForeground`: Overview ruler marker color for deleted content.
- `editorOverviewRuler.errorForeground`: Overview ruler marker color for errors.
- `editorOverviewRuler.warningForeground`: Overview ruler marker color for warnings.
- `editorOverviewRuler.infoForeground`: Overview ruler marker color for infos.
- `editorOverviewRuler.bracketMatchForeground`: Overview ruler marker color for matching brackets.
Errors and warnings:
- `editorError.foreground`: Foreground color of error squiggles in the editor.
2019-06-04 13:00:51 +03:00
- `editorError.border`: Border color of error boxes in the editor.
2020-12-09 13:00:08 +03:00
- `editorError.background`: Background color of error text in the editor. The color must not be opaque so as not to hide underlying decorations.
2019-03-11 23:57:10 +03:00
- `editorWarning.foreground`: Foreground color of warning squiggles in the editor.
2019-06-04 13:00:51 +03:00
- `editorWarning.border`: Border color of warning boxes in the editor.
2020-12-09 13:00:08 +03:00
- `editorWarning.background`: Background color of warning text in the editor. The color must not be opaque so as not to hide underlying decorations.
2019-03-11 23:57:10 +03:00
- `editorInfo.foreground`: Foreground color of info squiggles in the editor.
2019-06-04 13:00:51 +03:00
- `editorInfo.border`: Border color of info boxes in the editor.
2020-12-09 13:00:08 +03:00
- `editorInfo.background`: Background color of info text in the editor. The color must not be opaque so as not to hide underlying decorations.
2019-03-11 23:57:10 +03:00
- `editorHint.foreground`: Foreground color of hints in the editor.
2019-06-04 13:00:51 +03:00
- `editorHint.border`: Border color of hint boxes in the editor.
2019-10-09 21:09:23 +03:00
- `problemsErrorIcon.foreground`: The color used for the problems error icon.
- `problemsWarningIcon.foreground`: The color used for the problems warning icon.
- `problemsInfoIcon.foreground`: The color used for the problems info icon.
2019-03-11 23:57:10 +03:00
Unused source code:
- `editorUnnecessaryCode.border`: Border color of unnecessary (unused) source code in the editor.
- `editorUnnecessaryCode.opacity`: Opacity of unnecessary (unused) source code in the editor. For example, `"#000000c0"` will render the code with 75% opacity. For high contrast themes, use the `"editorUnnecessaryCode.border"` theme color to underline unnecessary code instead of fading it out.
The gutter contains the glyph margins and the line numbers:
- `editorGutter.background`: Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.
- `editorGutter.modifiedBackground`: Editor gutter background color for lines that are modified.
- `editorGutter.addedBackground`: Editor gutter background color for lines that are added.
- `editorGutter.deletedBackground`: Editor gutter background color for lines that are deleted.
2019-09-02 18:51:04 +03:00
- `editorGutter.commentRangeForeground`: Editor gutter decoration color for commenting ranges.
2020-05-05 11:03:25 +03:00
- `editorGutter.foldingControlForeground`: Color of the folding control in the editor gutter.
2019-03-11 23:57:10 +03:00
## Diff editor colors
For coloring inserted and removed text, use either a background or a border color but not both.
- `diffEditor.insertedTextBackground`: Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations.
- `diffEditor.insertedTextBorder`: Outline color for the text that got inserted.
- `diffEditor.removedTextBackground`: Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations.
- `diffEditor.removedTextBorder`: Outline color for text that got removed.
- `diffEditor.border`: Border color between the two text editors.
2020-05-05 11:03:25 +03:00
- `diffEditor.diagonalFill`: Color of the diff editor's diagonal fill. The diagonal fill is used in side-by-side diff views.
2019-03-11 23:57:10 +03:00
## Editor widget colors
The Editor widget is shown in front of the editor content. Examples are the Find/Replace dialog, the suggestion widget, and the editor hover.
2019-09-02 17:54:17 +03:00
- `editorWidget.foreground`: Foreground color of editor widgets, such as find/replace.
2019-03-11 23:57:10 +03:00
- `editorWidget.background`: Background color of editor widgets, such as Find/Replace.
- `editorWidget.border`: Border color of the editor widget unless the widget does not contain a border or defines its own border color.
- `editorWidget.resizeBorder`: Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.
- `editorSuggestWidget.background`: Background color of the suggestion widget.
- `editorSuggestWidget.border`: Border color of the suggestion widget.
- `editorSuggestWidget.foreground`: Foreground color of the suggestion widget.
2021-06-10 02:07:01 +03:00
- `editorSuggestWidget.focusHighlightForeground`: Color of the match highlights in the suggest widget when an item is focused.
2019-03-11 23:57:10 +03:00
- `editorSuggestWidget.highlightForeground`: Color of the match highlights in the suggestion widget.
- `editorSuggestWidget.selectedBackground`: Background color of the selected entry in the suggestion widget.
2021-06-10 02:07:01 +03:00
- `editorSuggestWidget.selectedForeground`: Foreground color of the selected entry in the suggest widget.
- `editorSuggestWidget.selectedIconForeground`: Icon foreground color of the selected entry in the suggest widget.
2019-03-11 23:57:10 +03:00
2019-12-11 02:37:29 +03:00
- `editorHoverWidget.foreground`: Foreground color of the editor hover.
2019-03-11 23:57:10 +03:00
- `editorHoverWidget.background`: Background color of the editor hover.
- `editorHoverWidget.border`: Border color of the editor hover.
2021-11-01 16:32:27 +03:00
- `editorHoverWidget.highlightForeground`: Foreground color of the active item in the parameter hint.
2019-09-02 17:54:17 +03:00
- `editorHoverWidget.statusBarBackground`: Background color of the editor hover status bar.
2019-03-11 23:57:10 +03:00
- `editorGhostText.border`: Border color of the ghost text shown by inline completion providers and the suggest preview.
- `editorGhostText.foreground`: Foreground color of the ghost text shown by inline completion providers and the suggest preview.
2019-03-11 23:57:10 +03:00
The Debug Exception widget is a peek view that shows in the editor when debug stops at an exception.
- `debugExceptionWidget.background`: Exception widget background color.
- `debugExceptionWidget.border`: Exception widget border color.
The editor marker view shows when navigating to errors and warnings in the editor (**Go to Next Error or Warning** command).
- `editorMarkerNavigation.background`: Editor marker navigation widget background.
- `editorMarkerNavigationError.background`: Editor marker navigation widget error color.
- `editorMarkerNavigationWarning.background`: Editor marker navigation widget warning color.
- `editorMarkerNavigationInfo.background`: Editor marker navigation widget info color.
2021-08-30 21:00:30 +03:00
- `editorMarkerNavigationError.headerBackground`: Editor marker navigation widget error heading background.
- `editorMarkerNavigationWarning.headerBackground`: Editor marker navigation widget warning heading background.
- `editorMarkerNavigationInfo.headerBackground`: Editor marker navigation widget info heading background.
2019-03-11 23:57:10 +03:00
## Peek view colors
Peek views are used to show references and declarations as a view inside the editor.
![Peek view](images/theme-color/peek-view.png)
- `peekView.border`: Color of the peek view borders and arrow.
- `peekViewEditor.background`: Background color of the peek view editor.
- `peekViewEditorGutter.background`: Background color of the gutter in the peek view editor.
- `peekViewEditor.matchHighlightBackground`: Match highlight color in the peek view editor.
- `peekViewEditor.matchHighlightBorder`: Match highlight border color in the peek view editor.
- `peekViewResult.background`: Background color of the peek view result list.
- `peekViewResult.fileForeground`: Foreground color for file nodes in the peek view result list.
- `peekViewResult.lineForeground`: Foreground color for line nodes in the peek view result list.
- `peekViewResult.matchHighlightBackground`: Match highlight color in the peek view result list.
- `peekViewResult.selectionBackground`: Background color of the selected entry in the peek view result list.
- `peekViewResult.selectionForeground`: Foreground color of the selected entry in the peek view result list.
- `peekViewTitle.background`: Background color of the peek view title area.
- `peekViewTitleDescription.foreground`: Color of the peek view title info.
- `peekViewTitleLabel.foreground`: Color of the peek view title.
2020-07-09 21:19:13 +03:00
## Merge conflicts colors
2019-03-11 23:57:10 +03:00
Merge conflict decorations are shown when the editor contains special diff ranges.
![Merge ranges](images/theme-color/merge-ranges.png)
- `merge.currentHeaderBackground`: Current header background in inline merge conflicts. The color must not be opaque so as not to hide underlying decorations.
- `merge.currentContentBackground`: Current content background in inline merge conflicts. The color must not be opaque so as not to hide underlying decorations.
- `merge.incomingHeaderBackground`: Incoming header background in inline merge conflicts. The color must not be opaque so as not to hide underlying decorations.
- `merge.incomingContentBackground`: Incoming content background in inline merge conflicts. The color must not be opaque so as not to hide underlying decorations.
- `merge.border`: Border color on headers and the splitter in inline merge conflicts.
- `merge.commonContentBackground`: Common ancestor content background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations.
- `merge.commonHeaderBackground`: Common ancestor header background in inline merge-conflicts. The color must not be opaque so as not to hide underlying decorations.
- `editorOverviewRuler.currentContentForeground`: Current overview ruler foreground for inline merge conflicts.
- `editorOverviewRuler.incomingContentForeground`: Incoming overview ruler foreground for inline merge conflicts.
- `editorOverviewRuler.commonContentForeground`: Common ancestor overview ruler foreground for inline merge conflicts.
## Panel colors
Panels are shown below the editor area and contain views like Output and Integrated Terminal.
- `panel.background`: Panel background color.
- `panel.border`: Panel border color to separate the panel from the editor.
2020-06-08 16:19:30 +03:00
- `panel.dropBorder`: Drag and drop feedback color for the panel titles. Panels are shown below the editor area and contain views like output and integrated terminal.
2019-03-11 23:57:10 +03:00
- `panelTitle.activeBorder`: Border color for the active panel title.
- `panelTitle.activeForeground`: Title color for the active panel.
- `panelTitle.inactiveForeground`: Title color for the inactive panel.
2019-09-02 17:54:17 +03:00
- `panelInput.border`: Input box border for inputs in the panel.
2020-06-08 16:19:30 +03:00
- `panelSection.border`: Panel section border color used when multiple views are stacked horizontally in the panel. Panels are shown below the editor area and contain views like output and integrated terminal.
- `panelSection.dropBackground`: Drag and drop feedback color for the panel sections. The color should have transparency so that the panel sections can still shine through. Panels are shown below the editor area and contain views like output and integrated terminal.
- `panelSectionHeader.background`: Panel section header background color. Panels are shown below the editor area and contain views like output and integrated terminal.
- `panelSectionHeader.foreground`: Panel section header foreground color. Panels are shown below the editor area and contain views like output and integrated terminal.
- `panelSectionHeader.border`: Panel section header border color used when multiple views are stacked vertically in the panel. Panels are shown below the editor area and contain views like output and integrated terminal.
2019-09-02 17:54:17 +03:00
2019-03-11 23:57:10 +03:00
## Status Bar colors
The Status Bar is shown in the bottom of the workbench.
- `statusBar.background`: Standard Status Bar background color.
- `statusBar.foreground`: Status Bar foreground color.
- `statusBar.border`: Status Bar border color separating the Status Bar and editor.
- `statusBar.debuggingBackground`: Status Bar background color when a program is being debugged.
- `statusBar.debuggingForeground`: Status Bar foreground color when a program is being debugged.
- `statusBar.debuggingBorder`: Status Bar border color separating the Status Bar and editor when a program is being debugged.
- `statusBar.noFolderForeground`: Status Bar foreground color when no folder is opened.
- `statusBar.noFolderBackground`: Status Bar background color when no folder is opened.
- `statusBar.noFolderBorder`: Status Bar border color separating the Status Bar and editor when no folder is opened.
- `statusBarItem.activeBackground`: Status Bar item background color when clicking.
- `statusBarItem.hoverBackground`: Status Bar item background color when hovering.
- `statusBarItem.prominentForeground`: Status Bar prominent items foreground color.
2019-04-05 21:17:39 +03:00
- `statusBarItem.prominentBackground`: Status Bar prominent items background color.
- `statusBarItem.prominentHoverBackground`: Status Bar prominent items background color when hovering.
2019-09-02 17:54:17 +03:00
- `statusBarItem.remoteBackground`: Background color for the remote indicator on the status bar.
- `statusBarItem.remoteForeground`: Foreground color for the remote indicator on the status bar.
2020-12-02 10:09:27 +03:00
- `statusBarItem.errorBackground`: Status bar error items background color. Error items stand out from other status bar entries to indicate error conditions.
- `statusBarItem.errorForeground`: Status bar error items foreground color. Error items stand out from other status bar entries to indicate error conditions.
2021-08-02 18:35:23 +03:00
- `statusBarItem.warningBackground`: Status bar warning items background color. Warning items stand out from other status bar entries to indicate warning conditions. The status bar is shown in the bottom of the window.
- `statusBarItem.warningForeground`: Status bar warning items foreground color. Warning items stand out from other status bar entries to indicate warning conditions. The status bar is shown in the bottom of the window.
2020-12-02 10:09:27 +03:00
2019-04-05 21:17:39 +03:00
Prominent items stand out from other Status Bar entries to indicate importance. One example is the **Toggle Tab Key Moves Focus** command change mode indicator.
2019-03-11 23:57:10 +03:00
## Title Bar colors
- `titleBar.activeBackground`: Title Bar background when the window is active.
- `titleBar.activeForeground`: Title Bar foreground when the window is active.
- `titleBar.inactiveBackground`: Title Bar background when the window is inactive.
- `titleBar.inactiveForeground`: Title Bar foreground when the window is inactive.
- `titleBar.border`: Title bar border color.
## Menu Bar colors
- `menubar.selectionForeground`: Foreground color of the selected menu item in the menubar.
- `menubar.selectionBackground`: Background color of the selected menu item in the menubar.
- `menubar.selectionBorder`: Border color of the selected menu item in the menubar.
- `menu.foreground`: Foreground color of menu items.
- `menu.background`: Background color of menu items.
- `menu.selectionForeground`: Foreground color of the selected menu item in menus.
- `menu.selectionBackground`: Background color of the selected menu item in menus.
- `menu.selectionBorder`: Border color of the selected menu item in menus.
- `menu.separatorBackground`: Color of a separator menu item in menus.
2019-09-02 17:54:17 +03:00
- `menu.border`: Border color of menus.
2019-03-11 23:57:10 +03:00
## Notification colors
Notification toasts slide up from the bottom-right of the workbench.
![Notification Toasts](images/theme-color/notification-toast.png)
Once opened in the Notification Center, they are displayed in a list with a header:
![Notification Center](images/theme-color/notification-center.png)
- `notificationCenter.border`: Notification Center border color.
- `notificationCenterHeader.foreground`: Notification Center header foreground color.
- `notificationCenterHeader.background`: Notification Center header background color.
- `notificationToast.border`: Notification toast border color.
- `notifications.foreground`: Notification foreground color.
- `notifications.background`: Notification background color.
- `notifications.border`: Notification border color separating from other notifications in the Notification Center.
- `notificationLink.foreground`: Notification links foreground color.
2019-10-09 21:09:23 +03:00
- `notificationsErrorIcon.foreground`: The color used for the notification error icon.
- `notificationsWarningIcon.foreground`: The color used for the notification warning icon.
- `notificationsInfoIcon.foreground`: The color used for the notification info icon.
2019-03-11 23:57:10 +03:00
2021-06-10 01:03:29 +03:00
## Banner colors
The banner appears below the title bar and spans the entire width of the workbench when visible.
- `banner.background`: Banner background color.
- `banner.foreground`: Banner foreground color.
- `banner.iconForeground`: Color for the icon in front of the banner text.
2020-07-09 21:19:13 +03:00
## Extensions colors
2019-03-11 23:57:10 +03:00
- `extensionButton.prominentForeground`: Extension view button foreground color (for example **Install** button).
- `extensionButton.prominentBackground`: Extension view button background color.
- `extensionButton.prominentHoverBackground`: Extension view button background hover color.
2019-09-02 17:54:17 +03:00
- `extensionBadge.remoteBackground`: Background color for the remote badge in the extensions view.
- `extensionBadge.remoteForeground`: Foreground color for the remote badge in the extensions view.
2021-03-31 02:07:27 +03:00
- `extensionIcon.starForeground`: The icon color for extension ratings.
2021-11-01 16:32:27 +03:00
- `extensionIcon.verifiedForeground`: The icon color for extension verified publisher.
2019-03-11 23:57:10 +03:00
2020-07-09 21:19:13 +03:00
## Quick picker colors
2019-03-11 23:57:10 +03:00
- `pickerGroup.border`: Quick picker (Quick Open) color for grouping borders.
- `pickerGroup.foreground`: Quick picker (Quick Open) color for grouping labels.
2019-09-02 17:54:17 +03:00
- `quickInput.background`: Quick input background color. The quick input widget is the container for views like the color theme picker.
- `quickInput.foreground`: Quick input foreground color. The quick input widget is the container for views like the color theme picker.
2021-03-31 01:01:41 +03:00
- `quickInputList.focusBackground`: Quick picker background color for the focused item.
2021-06-10 02:07:01 +03:00
- `quickInputList.focusForeground`: Quick picker foreground color for the focused item.
- `quickInputList.focusIconForeground`: Quick picker icon foreground color for the focused item.
2020-04-08 18:19:00 +03:00
- `quickInputTitle.background`: Quick picker title background color. The quick picker widget is the container for pickers like the Command Palette.
2019-03-11 23:57:10 +03:00
## Keybinding label colors
Keybinding labels are shown when there is a keybinding associated with a command. An example of the keybinding label can be seen in the Command Palette:
![Keybinding label](images/theme-color/keybinding-label.png)
Usages of the keybinding label include (but are not limited to):
2021-07-08 00:48:45 +03:00
- The Command Palette
- The Keyboard Shortcuts editor
- The Keyboard Shortcuts recorder modal
- The "feature contribution" section of an extension's marketplace page
The following customizations are available:
- `keybindingLabel.background`: Keybinding label background color. The keybinding label is used to represent a keyboard shortcut.
- `keybindingLabel.foreground`: Keybinding label foreground color. The keybinding label is used to represent a keyboard shortcut.
- `keybindingLabel.border`: Keybinding label border color. The keybinding label is used to represent a keyboard shortcut.
- `keybindingLabel.bottomBorder`: Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.
2021-11-01 23:26:32 +03:00
## Keyboard shortcut table colors
- `keybindingTable.headerBackground`: Background color for the keyboard shortcuts table header.
- `keybindingTable.rowsBackground`: Background color for the keyboard shortcuts table alternating rows.
2019-03-11 23:57:10 +03:00
## Integrated Terminal colors
- `terminal.background`: The background of the Integrated Terminal's viewport.
- `terminal.border`: The color of the border that separates split panes within the terminal. This defaults to panel.border.
- `terminal.foreground`: The default foreground color of the Integrated Terminal.
- `terminal.ansiBlack`: 'Black' ANSI color in the terminal.
- `terminal.ansiBlue`: 'Blue' ANSI color in the terminal.
- `terminal.ansiBrightBlack`: 'BrightBlack' ANSI color in the terminal.
- `terminal.ansiBrightBlue`: 'BrightBlue' ANSI color in the terminal.
- `terminal.ansiBrightCyan`: 'BrightCyan' ANSI color in the terminal.
- `terminal.ansiBrightGreen`: 'BrightGreen' ANSI color in the terminal.
- `terminal.ansiBrightMagenta`: 'BrightMagenta' ANSI color in the terminal.
- `terminal.ansiBrightRed`: 'BrightRed' ANSI color in the terminal.
- `terminal.ansiBrightWhite`: 'BrightWhite' ANSI color in the terminal.
- `terminal.ansiBrightYellow`: 'BrightYellow' ANSI color in the terminal.
- `terminal.ansiCyan`: 'Cyan' ANSI color in the terminal.
- `terminal.ansiGreen`: 'Green' ANSI color in the terminal.
- `terminal.ansiMagenta`: 'Magenta' ANSI color in the terminal.
- `terminal.ansiRed`: 'Red' ANSI color in the terminal.
- `terminal.ansiWhite`: 'White' ANSI color in the terminal.
- `terminal.ansiYellow`: 'Yellow' ANSI color in the terminal.
- `terminal.selectionBackground`: The selection background color of the terminal.
- `terminalCursor.background`: The background color of the terminal cursor. Allows customizing the color of a character overlapped by a block cursor.
- `terminalCursor.foreground`: The foreground color of the terminal cursor.
2021-06-10 00:22:49 +03:00
- `terminal.dropBackground`: The background color when dragging on top of terminals. The color should have transparency so that the terminal contents can still shine through.
2021-08-02 18:35:23 +03:00
- `terminal.tab.activeBorder`: Border on the side of the terminal tab in the panel. This defaults to `tab.activeBorder`.
2019-03-11 23:57:10 +03:00
2020-07-09 21:19:13 +03:00
## Debug colors
2019-03-11 23:57:10 +03:00
- `debugToolBar.background`: Debug toolbar background color.
- `debugToolBar.border`: Debug toolbar border color.
- `editor.stackFrameHighlightBackground`: Background color of the top stack frame highlight in the editor.
- `editor.focusedStackFrameHighlightBackground`: Background color of the focused stack frame highlight in the editor.
2021-06-10 00:31:35 +03:00
- `editor.inlineValuesForeground`: Color for the debug inline value text.
- `editor.inlineValuesBackground`: Color for the debug inline value background.
2020-04-30 16:45:18 +03:00
- `debugView.exceptionLabelForeground`: Foreground color for a label shown in the CALL STACK view when the debugger breaks on an exception
- `debugView.exceptionLabelBackground`: Background color for a label shown in the CALL STACK view when the debugger breaks on an exception
- `debugView.stateLabelForeground`: Foreground color for a label in the CALL STACK view showing the current session's or thread's state
- `debugView.stateLabelBackground`: Background color for a label in the CALL STACK view showing the current session's or thread's state
- `debugView.valueChangedHighlight`: Color used to highlight value changes in the debug views (ie. in the Variables view)
- `debugTokenExpression.name`: Foreground color for the token names shown in debug views (ie. the Variables or Watch view)
- `debugTokenExpression.value`: Foreground color for the token values shown in debug views
- `debugTokenExpression.string`: Foreground color for strings in debug views
- `debugTokenExpression.boolean`: Foreground color for booleans in debug views
- `debugTokenExpression.number`: Foreground color for numbers in debug views
- `debugTokenExpression.error`: Foreground color for expression errors in debug views
2021-08-30 21:11:23 +03:00
## Testing colors
2021-02-02 01:26:34 +03:00
2021-04-13 01:31:33 +03:00
- `testing.iconFailed`: Color for the 'failed' icon in the test explorer.
- `testing.iconErrored`: Color for the 'Errored' icon in the test explorer.
- `testing.iconPassed`: Color for the 'passed' icon in the test explorer.
- `testing.runAction`: Color for 'run' icons in the editor.
- `testing.iconQueued`: Color for the 'Queued' icon in the test explorer.
- `testing.iconUnset`: Color for the 'Unset' icon in the test explorer.
- `testing.iconSkipped`: Color for the 'Skipped' icon in the test explorer.
- `testing.peekBorder`: Color of the peek view borders and arrow.
2021-08-30 21:00:30 +03:00
- `testing.peekHeaderBackground`: Color of the peek view borders and arrow.
2021-04-13 01:31:33 +03:00
- `testing.message.error.decorationForeground`: Text color of test error messages shown inline in the editor.
- `testing.message.error.lineBackground`: Margin color beside error messages shown inline in the editor.
- `testing.message.info.decorationForeground`: Text color of test info messages shown inline in the editor.
- `testing.message.info.lineBackground`: Margin color beside info messages shown inline in the editor.
2021-02-02 01:26:34 +03:00
2020-07-09 21:19:13 +03:00
## Welcome page colors
2019-03-11 23:57:10 +03:00
- `welcomePage.background`: Background color for the Welcome page.
2021-02-02 01:26:34 +03:00
- `welcomePage.progress.background`: Foreground color for the Welcome page progress bars.
2021-03-31 01:57:03 +03:00
- `welcomePage.progress.foreground`: Background color for the Welcome page progress bars.
- `welcomePage.tileBackground`: Background color for the tiles on the Get Started page.
- `welcomePage.tileHoverBackground`: Hover background color for the tiles on the Get Started.
2021-11-01 16:32:27 +03:00
- `welcomePage.tileShadow`: Shadow color for the Welcome page walkthrough category buttons.
2021-02-02 01:26:34 +03:00
2019-03-11 23:57:10 +03:00
- `walkThrough.embeddedEditorBackground`: Background color for the embedded editors on the Interactive Playground.
2020-07-09 21:19:13 +03:00
## Source Control colors
- `scm.providerBorder`: SCM Provider separator border.
2019-03-11 23:57:10 +03:00
## Git colors
- `gitDecoration.addedResourceForeground`: Color for added Git resources. Used for file labels and the SCM viewlet.
- `gitDecoration.modifiedResourceForeground`: Color for modified Git resources. Used for file labels and the SCM viewlet.
- `gitDecoration.deletedResourceForeground`: Color for deleted Git resources. Used for file labels and the SCM viewlet.
2021-03-31 00:15:32 +03:00
- `gitDecoration.renamedResourceForeground`: Color for renamed or copied Git resources. Used for file labels and the SCM viewlet.
- `gitDecoration.stageModifiedResourceForeground`: Color for staged modifications git decorations. Used for file labels and the SCM viewlet.
2020-10-05 18:32:04 +03:00
- `gitDecoration.stageDeletedResourceForeground`: Color for staged deletions git decorations. Used for file labels and the SCM viewlet.
2019-03-11 23:57:10 +03:00
- `gitDecoration.untrackedResourceForeground`: Color for untracked Git resources. Used for file labels and the SCM viewlet.
- `gitDecoration.ignoredResourceForeground`: Color for ignored Git resources. Used for file labels and the SCM viewlet.
- `gitDecoration.conflictingResourceForeground`: Color for conflicting Git resources. Used for file labels and the SCM viewlet.
2020-10-06 09:00:06 +03:00
- `gitDecoration.submoduleResourceForeground`: Color for submodule resources.
2019-03-11 23:57:10 +03:00
## Settings Editor colors
**Note:** These colors are for the GUI settings editor which can be opened with the `Preferences: Open Settings (UI)` command.
- `settings.headerForeground`: The foreground color for a section header or active title.
- `settings.modifiedItemIndicator`: The line that indicates a modified setting.
- `settings.dropdownBackground`: Dropdown background.
- `settings.dropdownForeground`: Dropdown foreground.
- `settings.dropdownBorder`: Dropdown border.
- `settings.dropdownListBorder`: Dropdown list border.
- `settings.checkboxBackground`: Checkbox background.
- `settings.checkboxForeground`: Checkbox foreground.
- `settings.checkboxBorder`: Checkbox border.
- `settings.rowHoverBackground`: The background color of a settings row when hovered.
2019-03-11 23:57:10 +03:00
- `settings.textInputBackground`: Text input box background.
- `settings.textInputForeground`: Text input box foreground.
- `settings.textInputBorder`: Text input box border.
- `settings.numberInputBackground`: Number input box background.
- `settings.numberInputForeground`: Number input box foreground.
- `settings.numberInputBorder`: Number input box border.
2020-11-06 22:20:15 +03:00
- `settings.focusedRowBackground`: Background color of a focused setting row.
- `settings.focusedRowBorder`: The color of the row's top and bottom border when the row is focused.
2019-03-11 23:57:10 +03:00
2020-07-09 21:19:13 +03:00
## Breadcrumbs colors
2019-03-11 23:57:10 +03:00
The theme colors for breadcrumbs navigation:
- `breadcrumb.foreground`: Color of breadcrumb items.
- `breadcrumb.background`: Background color of breadcrumb items.
- `breadcrumb.focusForeground`: Color of focused breadcrumb items.
- `breadcrumb.activeSelectionForeground`: Color of selected breadcrumb items.
- `breadcrumbPicker.background`: Background color of breadcrumb item picker.
2020-07-09 21:19:13 +03:00
## Snippets colors
2019-03-11 23:57:10 +03:00
The theme colors for snippets:
- `editor.snippetTabstopHighlightBackground`: Highlight background color of a snippet tabstop.
- `editor.snippetTabstopHighlightBorder`: Highlight border color of a snippet tabstop.
- `editor.snippetFinalTabstopHighlightBackground`: Highlight background color of the final tabstop of a snippet.
- `editor.snippetFinalTabstopHighlightBorder`: Highlight border color of the final tabstop of a snippet.
2020-07-09 21:19:13 +03:00
## Symbol Icons colors
2019-11-05 00:30:22 +03:00
The theme colors for symbol icons that appears in the Outline view, breadcrumb navigation, and suggest widget:
2019-12-11 02:37:29 +03:00
- `symbolIcon.arrayForeground`: The foreground color for array symbols.
- `symbolIcon.booleanForeground`: The foreground color for boolean symbols.
- `symbolIcon.classForeground`: The foreground color for class symbols.
- `symbolIcon.colorForeground`: The foreground color for color symbols.
- `symbolIcon.constantForeground`: The foreground color for constant symbols.
- `symbolIcon.constructorForeground`: The foreground color for constructor symbols.
- `symbolIcon.enumeratorForeground`: The foreground color for enumerator symbols.
- `symbolIcon.enumeratorMemberForeground`: The foreground color for enumerator member symbols.
- `symbolIcon.eventForeground`: The foreground color for event symbols.
- `symbolIcon.fieldForeground`: The foreground color for field symbols.
- `symbolIcon.fileForeground`: The foreground color for file symbols.
- `symbolIcon.folderForeground`: The foreground color for folder symbols.
- `symbolIcon.functionForeground`: The foreground color for function symbols.
- `symbolIcon.interfaceForeground`: The foreground color for interface symbols.
- `symbolIcon.keyForeground`: The foreground color for key symbols.
- `symbolIcon.keywordForeground`: The foreground color for keyword symbols.
- `symbolIcon.methodForeground`: The foreground color for method symbols.
- `symbolIcon.moduleForeground`: The foreground color for module symbols.
- `symbolIcon.namespaceForeground`: The foreground color for namespace symbols.
- `symbolIcon.nullForeground`: The foreground color for null symbols.
- `symbolIcon.numberForeground`: The foreground color for number symbols.
- `symbolIcon.objectForeground`: The foreground color for object symbols.
- `symbolIcon.operatorForeground`: The foreground color for operator symbols.
- `symbolIcon.packageForeground`: The foreground color for package symbols.
- `symbolIcon.propertyForeground`: The foreground color for property symbols.
- `symbolIcon.referenceForeground`: The foreground color for reference symbols.
- `symbolIcon.snippetForeground`: The foreground color for snippet symbols.
- `symbolIcon.stringForeground`: The foreground color for string symbols.
- `symbolIcon.structForeground`: The foreground color for struct symbols.
- `symbolIcon.textForeground`: The foreground color for text symbols.
- `symbolIcon.typeParameterForeground`: The foreground color for type parameter symbols.
- `symbolIcon.unitForeground`: The foreground color for unit symbols.
- `symbolIcon.variableForeground`: The foreground color for variable symbols.
2020-07-09 21:19:13 +03:00
## Debug Icons colors
2019-12-11 02:37:29 +03:00
- `debugIcon.breakpointForeground`: Icon color for breakpoints.
- `debugIcon.breakpointDisabledForeground`: Icon color for disabled breakpoints.
- `debugIcon.breakpointUnverifiedForeground`: Icon color for unverified breakpoints.
- `debugIcon.breakpointCurrentStackframeForeground`: Icon color for the current breakpoint stack frame.
- `debugIcon.breakpointStackframeForeground`: Icon color for all breakpoint stack frames.
- `debugIcon.startForeground`: Debug toolbar icon for start debugging.
- `debugIcon.pauseForeground`: Debug toolbar icon for pause.
- `debugIcon.stopForeground`: Debug toolbar icon for stop.
- `debugIcon.disconnectForeground`: Debug toolbar icon for disconnect.
- `debugIcon.restartForeground`: Debug toolbar icon for restart.
- `debugIcon.stepOverForeground`: Debug toolbar icon for step over.
- `debugIcon.stepIntoForeground`: Debug toolbar icon for step into.
- `debugIcon.stepOutForeground`: Debug toolbar icon for step over.
- `debugIcon.continueForeground`: Debug toolbar icon for continue.
- `debugIcon.stepBackForeground`: Debug toolbar icon for step back.
2019-11-05 00:30:22 +03:00
2020-06-08 16:19:30 +03:00
- `debugConsole.infoForeground`: Foreground color for info messages in debug REPL console.
- `debugConsole.warningForeground`: Foreground color for warning messages in debug REPL console.
- `debugConsole.errorForeground`: Foreground color for error messages in debug REPL console.
- `debugConsole.sourceForeground`: Foreground color for source filenames in debug REPL console.
- `debugConsoleInputIcon.foreground`: Foreground color for debug console input marker icon.
2020-07-09 21:19:13 +03:00
## Notebook colors
- `notebook.cellBorderColor`: The border color for notebook cells.
2021-03-31 02:14:50 +03:00
- `notebook.cellHoverBackground`: The background color of a cell when the cell is hovered.
- `notebook.cellInsertionIndicator`: The color of the notebook cell insertion indicator.
- `notebook.cellStatusBarItemHoverBackground`: The background color of notebook cell status bar items.
2020-09-10 23:13:23 +03:00
- `notebook.cellToolbarSeparator`: The color of the separator in the cell bottom toolbar
2021-06-10 00:07:24 +03:00
- `notebook.cellEditorBackground`: The color of the notebook cell editor background
2020-07-09 21:19:13 +03:00
- `notebook.focusedCellBackground`: The background color of a cell when the cell is focused.
- `notebook.focusedCellBorder`: The color of the cell's top and bottom border when the cell is focused.
2021-03-31 02:14:50 +03:00
- `notebook.focusedEditorBorder`: The color of the notebook cell editor border.
- `notebook.inactiveFocusedCellBorder`: The color of the cell's top and bottom border when a cell is focused while the primary focus is outside of the editor.
- `notebook.inactiveSelectedCellBorder`: The color of the cell's borders when multiple cells are selected.
- `notebook.outputContainerBackgroundColor`: The Color of the notebook output container background.
2021-10-02 00:33:41 +03:00
- `notebook.outputContainerBorderColor`: The border color of the notebook output container.
2021-03-31 02:14:50 +03:00
- `notebook.selectedCellBackground`: The background color of a cell when the cell is selected.
2020-12-09 13:00:08 +03:00
- `notebook.selectedCellBorder`: The color of the cell's top and bottom border when the cell is selected but not focused.
2021-05-05 17:53:29 +03:00
- `notebook.symbolHighlightBackground`: Background color of highlighted cell
2021-03-31 02:14:50 +03:00
- `notebookScrollbarSlider.activeBackground`: Notebook scrollbar slider background color when clicked on.
2020-07-09 21:19:13 +03:00
- `notebookScrollbarSlider.background`: Notebook scrollbar slider background color.
- `notebookScrollbarSlider.hoverBackground`: Notebook scrollbar slider background color when hovering.
2021-03-31 02:14:50 +03:00
- `notebookStatusErrorIcon.foreground`: The error icon color of notebook cells in the cell status bar.
- `notebookStatusRunningIcon.foreground`: The running icon color of notebook cells in the cell status bar.
- `notebookStatusSuccessIcon.foreground`: The success icon color of notebook cells in the cell status bar.
2020-06-08 16:19:30 +03:00
2020-11-06 02:23:04 +03:00
## Chart colors
- `charts.foreground`: Contrast color for text in charts.
- `charts.lines`: Color for lines in charts.
- `charts.red`: Color for red elements in charts.
- `charts.blue`: Color for blue elements in charts.
- `charts.yellow`: Color for yellow elements in charts.
- `charts.orange`: Color for orange elements in charts.
- `charts.green`: Color for green elements in charts.
- `charts.purple`: Color for purple elements in charts.
2021-05-04 19:25:32 +03:00
## Ports Colors
- `ports.iconRunningProcessForeground`: The color of the icon for a port that has an associated running process.
2019-03-11 23:57:10 +03:00
## Extension colors
2021-04-24 18:26:21 +03:00
Color ids can also be contributed by extensions through the [color contribution point](/api/references/contribution-points#contributes.colors). These colors also appear when using code complete in the `workbench.colorCustomizations` settings and the color theme definition file. Users can see what colors an extension defines in the [extension contributions](/docs/editor/extension-marketplace#_extension-details) tab.