Skip to content

[UI] Flat refresh 1/9: design tokens, typography and theme - #591

Merged
LarsLaskowski merged 24 commits into
mainfrom
claude/brave-noether-h51k4d
Nov 28, 2026
Merged

LarsLaskowski merged 24 commits into
mainfrom
claude/brave-noether-h51k4d

Conversation

@LarsLaskowski

@LarsLaskowski LarsLaskowski commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Pull Request

📖 Description

Replaces the glass look of the application with a flat token set for the light and the dark theme: opaque surfaces with hairline borders, no blur, gradients or elevation shadows, and no lifting or scaling on hover. Self-hosted Space Grotesk (with its OFL license, preloaded in App.razor) is used for page titles, entity names and figures, and Inter for all other text, MudBlazor components included. The MainLayout theme carries the same palette, a 6 px radius, the 14 px / 1.45 body typography and no elevation shadows. The dark token block applies to the whole document while the layout carries dug-dark, so menus, popovers and dialogs follow the dark theme too. Page markup, routes, texts and computed values are unchanged; this is a feature (enhancement).

🎫 Issues

Closes #451

Decision records: docs/decisions/0077-the-dark-theme-tokens-apply-to-the-whole-document-while-the-layout-is-dark.md, docs/decisions/0078-mudblazor-elevation-shadows-are-switched-off-in-the-theme.md

💬 Reviewer Notes

Smoke test: open the Dashboard and Runtime Containers in both themes and below 960 px; surfaces are flat, titles are Space Grotesk, the active drawer link is semibold in the text color. Dialogs and snackbars keep MudBlazor's own shadow (documented in docs/areas/web-ui.md). The brand title and theme toggle sit close together at 400 px, as before.

📑 Test Plan

New AppStylesheetTests, AppTests, StylesheetReaderTests and ContrastRatioTests read the shipped app.css, App.razor and the font files and check the tokens, banned constructs, the dark-block selector and WCAG contrast (74 token pairs). New theme tests in MainLayoutRenderTests render the layout in both modes and check typography, both palettes, contrast texts, radius and the 26 elevations. The existing layout tests are unchanged. The Coverage gate reports 100 % on new or changed lines and 94.9 % overall; the manual browser check covered Dashboard and Runtime Containers at 1360 and 400 px in both themes, and a keyboard-focused metric card was not rendered.

✅ Checklist

  • I have added or updated Unit Tests for the change.
  • I have tested my changes.
  • I have run Format and Build from .squad/stack.md, and the Analyzer gate reports no diagnostic in a changed file.
  • The Coverage gate in .squad/stack.md passes (new or changed production code with the branch conditions its report records, line coverage overall).
  • I have updated the project documentation (README.md, ARCHITECTURE.md) and the area document of every changed behavior to reflect my changes.
  • Each decision with lasting weight has its decision record, committed with the change.
  • I have read the CONTRIBUTING documentation and followed the project's code style guidelines.
  • New dependencies, if any, were added the way Dependencies in .squad/stack.md prescribes.
  • The PR carries its release-notes label (CONTRIBUTING); a change that breaks existing users carries breaking-change and says so in the Description.
  • The C# rules in csharp.instructions.md are followed.

UI-specific

  • I have modified an existing Blazor page/component.
  • I have updated the Unit Tests for the modified page/component.

⏭ Next Steps

None.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018g33AUvKfBT3ECDpcLbiBP
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018g33AUvKfBT3ECDpcLbiBP
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018g33AUvKfBT3ECDpcLbiBP
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018g33AUvKfBT3ECDpcLbiBP
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018g33AUvKfBT3ECDpcLbiBP
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018g33AUvKfBT3ECDpcLbiBP
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018g33AUvKfBT3ECDpcLbiBP
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018g33AUvKfBT3ECDpcLbiBP
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018g33AUvKfBT3ECDpcLbiBP
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018g33AUvKfBT3ECDpcLbiBP
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018g33AUvKfBT3ECDpcLbiBP
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018g33AUvKfBT3ECDpcLbiBP
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018g33AUvKfBT3ECDpcLbiBP
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018g33AUvKfBT3ECDpcLbiBP
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018g33AUvKfBT3ECDpcLbiBP
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018g33AUvKfBT3ECDpcLbiBP
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018g33AUvKfBT3ECDpcLbiBP
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018g33AUvKfBT3ECDpcLbiBP
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018g33AUvKfBT3ECDpcLbiBP
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018g33AUvKfBT3ECDpcLbiBP
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018g33AUvKfBT3ECDpcLbiBP
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018g33AUvKfBT3ECDpcLbiBP
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018g33AUvKfBT3ECDpcLbiBP
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018g33AUvKfBT3ECDpcLbiBP
@LarsLaskowski LarsLaskowski added the enhancement New feature or request label Nov 28, 2026 — with Claude
@sonarqubecloud

Copy link
Copy Markdown

@LarsLaskowski
LarsLaskowski marked this pull request as ready for review November 28, 2026 20:27
@LarsLaskowski
LarsLaskowski merged commit 2b70a4f into main Nov 28, 2026
7 checks passed
@LarsLaskowski
LarsLaskowski deleted the claude/brave-noether-h51k4d branch November 28, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UI] Flat refresh 1/9: design tokens, typography and MudBlazor theme

2 participants