Repository navigation
Enhance Modern UI editor tab styles and color customizations - #330818
Merged
Lee Murray (mrleemurray) merged 2 commits intoAug 14, 2026
Merged
Conversation
- Introduced new color variables for modern editor tabs, including active, hover, and inactive states. - Updated README documentation to reflect new color variables and their descriptions. - Modified CSS to apply new styles for modern editor tabs, ensuring consistent hover and action backgrounds. - Enhanced test cases to validate the new editor tab color customizations and their precedence over legacy colors. - Refactored color resolution logic to accommodate new modern editor tab colors. Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds editor-specific Modern UI tab colors while preserving shared pane-tab styling.
Changes:
- Registers editor-tab colors for active, inactive, hover, and action states.
- Updates CSS color resolution and legacy customization handling.
- Expands documentation, tests, and stylelint variables.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
src/vs/workbench/services/themes/browser/modernTabColorCustomizations.ts |
Resolves legacy colors against new editor-specific colors. |
src/vs/workbench/contrib/styleOverrides/test/browser/styleOverrides.contribution.test.ts |
Tests registrations, precedence, and derived styles. |
src/vs/workbench/contrib/styleOverrides/README.md |
Documents the new color IDs. |
src/vs/workbench/contrib/styleOverrides/browser/media/tabs.css |
Applies new colors to editor-tab states. |
src/vs/workbench/common/theme.ts |
Registers the editor-tab color tokens. |
build/lib/stylelint/vscode-known-variables.json |
Allows the new CSS variables. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Contributor
|
Copilot can you create some component fixtures for the tab bar which show off how setting the different tabs related theme colors look/are rendered. You can do multiple colors in one fixture if it makes sense. |
Copilot stopped work on behalf of
Benjamin Christopher Simmonds (benibenj) due to an error
August 14, 2026 10:11
Contributor
Screenshot ChangesBase: Added (8) |
Benjamin Christopher Simmonds (benibenj)
approved these changes
Aug 14, 2026
Giuseppe Cianci (Giuspepe)
approved these changes
Aug 14, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new set of color tokens specifically for modern editor tabs, separating them from the existing modern tab tokens. This allows for more granular theming of editor tabs in the modern UI, with dedicated color variables for different editor tab states (active, hover, inactive, etc.). The changes update the theme registration, documentation, CSS variables, and sample theme JSON to use these new tokens, and remove the now-obsolete modern tab action color tokens.
Modern Editor Tab Color Tokens
modernEditorTab.*intheme.ts, covering active, hover, inactive, and action backgrounds/foregrounds for editor tabs, and removed the oldmodernTab.*ActionBackgroundtokens.Theme Variable and CSS Updates
tabs.cssto use the new--vscode-modernEditorTab-*variables for editor tab backgrounds, foregrounds, and action backgrounds, ensuring the UI uses the new tokens. [1] [2]Documentation and Theme Sample Updates
modernEditorTab.*tokens, removed references to obsoletemodernTab.*ActionBackgroundtokens, and provided an updated example theme JSON using the new tokens. [1] [2] [3]Stylelint and Variable Tracking
vscode-known-variables.jsonto add the new--vscode-modernEditorTab-*variables and remove the obsolete--vscode-modernTab-*ActionBackgroundentries. [1] [2] [3]Test Imports
Colorin the style overrides test file to support color-related test cases.