Refactor chat widget styles to use CSS variables#320386
Open
mrleemurray wants to merge 2 commits into
Open
Conversation
…eights Co-authored-by: Copilot <copilot@github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR refactors several chat widget CSS files to adopt the new “agents” typography design tokens, replacing hardcoded font-size / font-weight values with corresponding CSS variables to improve consistency and themeability across the chat UI.
Changes:
- Replaced hardcoded font sizes/weights with
--vscode-agents-fontSize-*and--vscode-agents-fontWeight-*tokens across multiple chat widgets. - Added/adjusted a few component-specific typography rules (e.g.
.chat-title) and updated some carousel spacing (padding/gaps). - Updated some codicon sizing to use
--vscode-codiconFontSize-compact.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/vs/workbench/contrib/chat/browser/widget/input/media/chatInputNotificationWidget.css | Moves notification title/description/action/code typography to agents font-size/weight tokens. |
| src/vs/workbench/contrib/chat/browser/widget/input/media/chatGoalBannerWidget.css | Updates goal banner font size/label weight to agents tokens. |
| src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatToolConfirmationCarousel.css | Updates collapsed title font-weight to agents semibold token. |
| src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatQuestionCarousel.css | Updates question carousel title/list typography to agents tokens and adjusts padding/gaps. |
| src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatPlanReview.css | Updates plan review title label font-weight to agents semibold token. |
| src/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatConfirmationWidget.css | Updates confirmation widget typography (h3, small text, line counts) and codicon sizing; adds .chat-title styling. |
Contributor
Screenshot ChangesBase: Changed (10) |
auto-merge was automatically disabled
June 8, 2026 11:17
Pull request was converted to draft
dbaeumer
approved these changes
Jun 8, 2026
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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 updates the chat UI styles to use new design tokens for font sizes and weights, replacing hardcoded values with CSS variables for improved consistency and theming. The changes affect multiple chat-related widgets, including confirmation widgets, carousels, banners, and notification components.
Design Token Adoption and Consistency
font-sizeandfont-weightvalues with new CSS variables such as--vscode-agents-fontSize-label1,--vscode-agents-fontWeight-semiBold, and others across chat widget styles for consistent typography and easier theming. (chatConfirmationWidget.css,chatPlanReview.css,chatQuestionCarousel.css,chatToolConfirmationCarousel.css,chatGoalBannerWidget.css,chatInputNotificationWidget.css) [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18]Layout and Spacing Adjustments
chatQuestionCarousel.css) [1] [2] [3]Component-specific Enhancements
.chat-titlestyle with heading font size and weight for better title presentation in the confirmation widget. (chatConfirmationWidget.css)chatInputNotificationWidget.css,chatGoalBannerWidget.css) [1] [2] [3]These changes modernize the chat UI's look and feel, making it more consistent with the overall design system and easier to maintain.