Skip to content

Refactor chat widget styles to use CSS variables#320386

Open
mrleemurray wants to merge 2 commits into
mainfrom
mrleemurray/mild-tomato-limpet
Open

Refactor chat widget styles to use CSS variables#320386
mrleemurray wants to merge 2 commits into
mainfrom
mrleemurray/mild-tomato-limpet

Conversation

@mrleemurray
Copy link
Copy Markdown
Contributor

@mrleemurray mrleemurray commented Jun 8, 2026

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

  • Replaced hardcoded font-size and font-weight values 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

  • Updated padding and gap values in carousel components for improved spacing and alignment, such as reducing gaps between elements and adjusting padding for input containers. (chatQuestionCarousel.css) [1] [2] [3]

Component-specific Enhancements

  • Added a .chat-title style with heading font size and weight for better title presentation in the confirmation widget. (chatConfirmationWidget.css)
  • Ensured action buttons, code blocks, and hint texts use the new design tokens for font sizing in notification and banner widgets. (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.

…eights

Co-authored-by: Copilot <copilot@github.com>
Copilot AI review requested due to automatic review settings June 8, 2026 10:30
@mrleemurray mrleemurray enabled auto-merge (squash) June 8, 2026 10:30
@mrleemurray mrleemurray self-assigned this Jun 8, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 8, 2026

Screenshot Changes

Base: e3631577 Current: e3e0da63

Changed (10)

chat/chatQuestionCarousel/SingleTextQuestion/Dark
Before After
before after
chat/chatQuestionCarousel/SingleTextQuestion/Light
Before After
before after
chat/chatQuestionCarousel/SingleSelectQuestion/Dark
Before After
before after
chat/chatQuestionCarousel/SingleSelectQuestion/Light
Before After
before after
chat/chatQuestionCarousel/MultiSelectQuestion/Dark
Before After
before after
chat/chatQuestionCarousel/MultiSelectQuestion/Light
Before After
before after
chat/chatQuestionCarousel/MultipleQuestions/Dark
Before After
before after
chat/chatQuestionCarousel/MultipleQuestions/Light
Before After
before after
chat/chatQuestionCarousel/NoSkip/Dark
Before After
before after
chat/chatQuestionCarousel/NoSkip/Light
Before After
before after

@mrleemurray mrleemurray marked this pull request as draft June 8, 2026 11:17
auto-merge was automatically disabled June 8, 2026 11:17

Pull request was converted to draft

@mrleemurray mrleemurray marked this pull request as ready for review June 8, 2026 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants