Skip to content

feat(ui): align global theme, typography, and chip color tokens - #952

Merged
AntonTyb merged 10 commits into
mainfrom
feat/ui-style-1-global-theme
Sep 23, 2026
Merged

AntonTyb merged 10 commits into
mainfrom
feat/ui-style-1-global-theme

Conversation

@liutj-tech

Copy link
Copy Markdown
Collaborator

Summary

Aligns the global UI surface (#ffffff), primary typography (Roboto), mat-card border styling (1px solid #dadce0, 8px radius), and shared chip color tokens (--xmc-xid-badge-* and --xmc-tag-*) with the prototype design system.

(Part 1 of 8 in the scoped UI Style Alignment series corresponding to Area #1 of the Style Inconsistency Table.)

Visual Comparison (Before vs. After)

Component-Level Diff (Area #1)

Component Before vs After

📸 Full-Page Context Screenshot (Production vs. Prototype)

Full Page Context

Motivation & Context

Brings Area #1 of cmd/ui/ into visual alignment with the Google Cloud / Material 3 prototype specification while keeping this Pull Request focused on a single cohesive component area (< 45 lines of diff).

Key Changes

  • cmd/ui/index.html & cmd/ui/styles.scss: Load Google Roboto (400, 500, 600, 700) font and set html/body background to #ffffff (#202124 text) and mat-card border to 1px solid #dadce0 (8px radius, box-shadow: none).
  • cmd/ui/consts.scss: Set $xmc-header-height: 48px, add 1px solid #f1f3f4 bottom borders to @mixin key-value-pair, left-align @mixin summary-secondary-title, and set container-shape-radius: 4px on @mixin small-chip.
  • cmd/ui/custom_colors.scss, xid_badge.scss, tag.scss: Set XID badge tokens (#e8f0fe bg, #1a73e8 text) and Tag tokens (#385155 bg, #ffffff text) with container-shape-radius: 4px.

Assumptions

  • Preserving the "XManager" brand title/logo and fixed 200px non-expandable left sidenav was explicitly requested by the user — expandable drawer behavior and brand header text changes are deferred to a future change — zero impact on current routes or functionality.
  • Styling existing Angular Material components via SCSS overrides rather than replacing templates with custom HTML elements — preserves all existing Angular CDK test harnesses and production data streams.

Verification & Testing

  • Commands Executed:
    • ./tools/analyze_diff_size.py --base-ref origin/main... (well below 400-line threshold)
    • npm run format:check && npm run lint (Prettier & ESLint passed cleanly)
    • npm run build (Angular production bundle compiled cleanly)
    • npm test -- --watch=false --browsers=ChromeHeadlessNoSandbox (616 of 616 SUCCESS)

Related Issues / Bugs

N/A

TAG=agy
CONV=10ea5f21-5600-4e9d-91a0-f605c676b5bd

Align global typography (Roboto), white canvas (#ffffff), mat-card borders (1px solid #dadce0), and XID/tag chip color tokens with the prototype design system.

TAG=agy
CONV=10ea5f21-5600-4e9d-91a0-f605c676b5bd

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request updates the UI styling across several components, including tags, badges, cards, and description lists, while also adjusting the header height and introducing the 'Roboto' font. The review feedback highlights that several of these styling updates introduce hardcoded hex colors, which breaks the application's themeability. It is recommended to use Material Design system CSS variables with the new colors as fallbacks to ensure dark mode and custom themes remain supported.

Comment thread cmd/ui/styles.scss Resolved
Comment thread cmd/ui/styles.scss Resolved
Comment thread cmd/ui/styles.scss Resolved
Comment thread cmd/ui/consts.scss Resolved
Comment thread cmd/ui/consts.scss Resolved
@liutj-tech
liutj-tech marked this pull request as ready for review September 22, 2026 21:56
@liutj-tech liutj-tech self-assigned this Sep 22, 2026
@liutj-tech
liutj-tech requested review from AntonTyb and removed request for andrzejfudro September 22, 2026 21:56
@AntonTyb
AntonTyb enabled auto-merge September 23, 2026 07:08
@AntonTyb
AntonTyb added this pull request to the merge queue Sep 23, 2026
Merged via the queue into main with commit 374b880 Sep 23, 2026
11 checks passed
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.

2 participants