Repository navigation
Description
Part of #450. First step of the flat UI refresh; every other sub-issue builds on it.
Problem
The look of the application is defined in two places that repeat each other: the CSS custom properties --dug-* in src/DockerUpdateGuard/wwwroot/app.css and the inline MudTheme in src/DockerUpdateGuard/Components/Layout/MainLayout.razor.cs. Both describe a glass look: translucent surfaces (rgba(255, 255, 255, 0.82)), backdrop-filter: blur, radial and linear gradients on the page, the hero panel and the metric cards, shadows of 45 px, radii of 24 px and 16 px, a navy gradient drawer and hover effects that lift cards.
The refresh needs a flat token set for both themes, a second font for headlines and figures, and a MudBlazor theme that matches the tokens.
Target look
All previews of the refresh use the tokens below. The dashboard shows most of them at once:
This issue changes values and global rules only. The page structure (drawer, top bar, hero panel, metric cards, tables) stays as it is and is rebuilt in the later sub-issues; after this issue the existing pages render flat with their old layout.
Scope
1. Tokens in app.css
Replace the values of the :root block and of .dug-dark. Keep the --dug- prefix. Tokens marked new do not exist today.
| Token | Light | Dark | Note |
|---|---|---|---|
--dug-bg-page |
#F6F7F9 |
#0F1216 |
|
--dug-surface |
#FFFFFF |
#171B21 |
opaque, no alpha |
--dug-surface-solid |
#FFFFFF |
#171B21 |
same as --dug-surface; removed in 9/9 |
--dug-surface-subtle |
#FAFBFC |
#1B2027 |
new, expanded table row, hover of rows |
--dug-border |
#E3E6EB |
#272D36 |
panels, header, table head rule |
--dug-border-inner |
#EEF0F3 |
#20262E |
new, row separators |
--dug-border-control |
#C9CED6 |
#3A424E |
new, inputs, secondary buttons |
--dug-text |
#16191D |
#E7EAEE |
|
--dug-text-muted |
#5B6471 |
#9BA5B3 |
|
--dug-text-faint |
#5B6471 |
#9BA5B3 |
takes the muted value; the current faint grey fails 4.5:1 |
--dug-icon |
#3D4551 |
#C5CCD6 |
new, icon buttons |
--dug-primary |
#2563EB |
#7AA7FF |
accent: active navigation, primary button, logo |
--dug-on-primary |
#FFFFFF |
#0F1216 |
new, text on the primary color |
--dug-link |
#1D4ED8 |
#7AA7FF |
new, replaces --dug-primary-strong |
--dug-attention |
#B54708 |
#F2A54A |
new, replaces --dug-warning |
--dug-danger |
#B42318 |
#FF8A80 |
|
--dug-success |
#067647 |
#5FD39A |
|
--dug-info |
#1D4ED8 |
#9CC0FF |
|
--dug-sev-critical |
#7A1C12 |
#FF7B72 |
severity bar segment |
--dug-sev-high |
#D9480F |
#E0762B |
|
--dug-sev-medium |
#E8A33D |
#A67C1F |
|
--dug-sev-low |
#C9CED6 |
#4A5361 |
|
--dug-scan-succeeded |
#9FB3C8 |
#46566B |
new, scan strip segment |
--dug-scan-partial |
#E8A33D |
#E0A23D |
new |
--dug-scan-failed |
#7A1C12 |
#FF7B72 |
new |
--dug-chart-cpu |
#2563EB |
#7AA7FF |
new |
--dug-chart-cpu-fill |
#E8EFFD |
#172A4D |
new |
--dug-chart-memory |
#6D4AC4 |
#A98BEB |
new, replaces the literal #7c3aed |
--dug-chart-memory-fill |
#EFEAFA |
#2A2145 |
new |
--dug-chart-net-rx |
#0F766E |
#4FD1C5 |
new |
--dug-chart-net-tx |
#B54708 |
#F2A54A |
new, replaces the literal #ea580c |
--dug-radius-lg |
8px |
panels (was 1.5rem) |
|
--dug-radius-md |
6px |
controls (was 1rem) |
|
--dug-radius-sm |
4px |
new, chips | |
--dug-font-text |
Inter, "Segoe UI", Arial, Helvetica, sans-serif |
new | |
--dug-font-display |
"Space Grotesk", Inter, "Segoe UI", Arial, sans-serif |
new |
Chip tokens (new), one background and one text color each:
| Chip | Light background / text | Dark background / text |
|---|---|---|
--dug-chip-critical-bg / -fg |
#7A1C12 / #FFFFFF |
#FF7B72 / #1A0B0A |
--dug-chip-high-bg / -fg (also "warning") |
#FFF1E6 / #9A3D00 |
#3A2413 / #FFB877 |
--dug-chip-medium-bg / -fg |
#FDF3D7 / #7A5200 |
#3A3013 / #F0CF7A |
--dug-chip-low-bg / -fg (also "neutral") |
#EEF0F3 / #3D4551 |
#272D36 / #C5CCD6 |
--dug-chip-success-bg / -fg |
#E6F4EC / #05603A |
#12301F / #7BD8A4 |
--dug-chip-info-bg / -fg |
#E8EFFD / #1D4ED8 |
#172A4D / #9CC0FF |
In the light theme the most severe color is the darkest, in the dark theme the lightest. The dark values of --dug-surface-subtle, --dug-border-control, --dug-icon, the chart colors and the Medium, Low, Success and Info chips are not shown in a mockup; they follow the pattern of the values that are and may be adjusted as long as every text keeps 4.5:1.
Remove --dug-secondary, --dug-primary-strong, --dug-warning, --dug-shadow-card, --dug-shadow-hover, --dug-blur and --dug-bg-gradient together with every rule that uses them, or point the rule at the new token.
2. Global rules in app.css
- No
backdrop-filter, nolinear-gradientorradial-gradient, nobox-shadowfor elevation anywhere in the file. Abox-shadowthat draws a line (inset) is allowed. .app-layouthas the plain page ground.- Panels (
.hero-panel,.metric-card,.section-paper,.empty-state-panel,.summary-card,.app-topbar) are opaque--dug-surfacewith a 1 px--dug-borderand--dug-radius-lg. The accent stripe on top of.hero-paneland.section-paper--accentand the tinted backgrounds of.metric-card--warningand.metric-card--dangergo; the warning and danger cards color their figure with--dug-attentionand--dug-dangerinstead. - All
.dug-dark …rules that only repeat a gradient or an alpha surface go; the dark theme is the token override alone. - Hover no longer lifts or shadows. A clickable card changes its border to
--dug-border-control;:activeno longer scales.:focus-visiblekeeps the 2 px outline in--dug-primarywith 2 px offset. - The drawer (replaced in 4/9) uses
--dug-surfacewith a hairline on its right, text in--dug-text, the section label in--dug-text-muted; the active link is semibold in--dug-texton--dug-surface-subtle, hover uses--dug-surface-subtle. .table-linkuses--dug-link; the sparkline and chart rules use the chart tokens.- Body text is 14 px with a line height of 1.45 in
--dug-font-text. prefers-reduced-motionhandling stays.
3. Space Grotesk, self-hosted
- Add the variable font Space Grotesk (weights 300–700, latin subset, about 22 kB as
woff2) tosrc/DockerUpdateGuard/wwwroot/fonts/and declare it with@font-facenext to Inter (font-display: swap). It is licensed under the SIL Open Font License 1.1; put the license text next to the font file. The file and the license used by the mockups are indocs/ui-concept/flat-refresh/mockups/fonts/; the same file is published as the npm package@fontsource-variable/space-grotesk(files/space-grotesk-latin-wght-normal.woff2). - Preload it in
Components/App.razorthe wayInterVariable.woff2is preloaded, through@Assets[...]. - No request leaves the application for a font or a style;
App.razorandapp.csscontain nohttp(s)://address today and must not gain one. - Use
--dug-font-displayfor the page title (.page-header h1,.hero-panel h1,.empty-state-panel h1), for figures (.metric-value) and for the brand name. Page titles are 28 px, semibold (600), letter spacing −0.02 em. Section titles (h2, MudBlazorTypo.h5in section headers) are 15 px semibold in--dug-font-text.
4. MudBlazor theme in MainLayout.razor.cs
LayoutProperties.DefaultBorderRadius:6px(was18px).Typography: set the default font family to the Inter stack so that MudBlazor components no longer fall back to their own font stack;Typo.h1–h4use the Space Grotesk stack.PaletteLight: Primary#2563EB, Info#1D4ED8, Success#067647, Warning#B54708, Error#B42318, Background#F6F7F9, Surface#FFFFFF, AppbarBackground#FFFFFF, DrawerBackground#FFFFFF, DrawerText#16191D, TextPrimary#16191D, TextSecondary#5B6471, divider and line colors#E3E6EB, table lines#EEF0F3.PaletteDark: Primary#7AA7FFwith contrast text#0F1216, Info#9CC0FF, Success#5FD39A, Warning#F2A54A, Error#FF8A80, Background#0F1216, Surface#171B21, AppbarBackground#171B21, DrawerBackground#171B21, DrawerText#E7EAEE, TextPrimary#E7EAEE, TextSecondary#9BA5B3, divider and line colors#272D36, table lines#20262E.Secondaryis not used by the refresh; set it to the muted text color of each theme.
Behavior that must not change
- The light/dark toggle, its storage key
dug-dark-mode, the fallback to the system preference and the classdug-darkon the layout (Web UI, Light and dark mode). - The breakpoints and the card layout of table rows below 960 px; only their colors, borders and radii follow the tokens.
- Routes, actions, texts and every computed value.
Out of scope
- Markup changes of pages and layout, new components, removal of the hero panel or the metric cards (sub-issues 2–9).
- Renaming CSS classes.
Affected files
src/DockerUpdateGuard/wwwroot/app.csssrc/DockerUpdateGuard/wwwroot/fonts/(font file and license text)src/DockerUpdateGuard/Components/App.razor(preload)src/DockerUpdateGuard/Components/Layout/MainLayout.razor.cs(theme)docs/ARCHITECTURE.md, section 9 UI layer: the design-system layer and its two fonts
Tests
- No test reads
app.css.MainLayoutRenderTestsasserts the classdug-darkand clicks.app-topbar__theme-toggle; both stay. - The theme values are production code in
MainLayout.razor.cs; cover them with a test that renders the layout in both modes (BlazorTestContextFactory) and checks what the theme provider receives, for example the border radius and that the dark palette's primary color differs from the light one. - A test of
App.razoror of the static assets that the font preload points at an existing asset is welcome but not required.
Proposed acceptance criteria
app.csscontains nobackdrop-filter, no gradient function and no non-insetbox-shadow, and none of the removed tokens.- Every token of the tables above exists in
:rootwith its light value and in.dug-darkwith its dark value. - Space Grotesk is served from
wwwroot/fonts, declared with@font-face, preloaded inApp.razor, and its license text is in the repository; no font or style is requested from another host. - Page titles and figures render in Space Grotesk, all other text in Inter, in MudBlazor components too.
- The MudBlazor theme carries the palette values and the border radius listed above for both modes.
- Every text and every chip of the token tables has a contrast of at least 4.5:1 against its background in both themes.
- The dark-mode toggle, its persistence and the mobile card layout behave as before.
docs/ARCHITECTURE.mdsection 9 describes the token layer and the fonts as implemented.
Open questions for the spec
- Should the token names of the removed tokens stay as aliases until 9/9 to keep the diff of this issue small, or be replaced at their use sites now? The proposal above removes them now.


Activity
LarsLaskowski commentedon Nov 28, 2026
Squad working record
Verification matrix of feature-451-flat-refresh-tokens on
6e4fb12AppStylesheetContainsNoBlurGradientOrElevationShadow,AppStylesheetContainsNoRemovedToken,AppStylesheetHasNoDarkRuleBesideTokenBlock,AppStylesheetRulesOutsideTokenBlocksUseOnlyTokenColors6e4fb12: src/Tests/DockerUpdateGuard.Tests/AppStylesheetTests.csAppStylesheetRootBlockHoldsEveryLightToken,AppStylesheetDarkBlockHoldsEveryDarkToken,AppStylesheetDarkBlockAppliesToDocumentWhileLayoutIsDark; manual: compact menu muted text in dark mode (below)6e4fb12: src/Tests/DockerUpdateGuard.Tests/AppStylesheetTests.csAppStylesheetDeclaresSpaceGroteskFontFace;AppPreloadsShippedSpaceGroteskFont,AppAndStylesheetReferenceNoExternalAddress6e4fb12: src/Tests/DockerUpdateGuard.Tests/AppStylesheetTests.cs, src/Tests/DockerUpdateGuard.Tests/AppTests.csMainLayoutThemeUsesInterAndSpaceGroteskTypography;AppStylesheetSetsTextAndDisplayFonts; manual: rendered fonts6e4fb12: src/Tests/DockerUpdateGuard.Tests/AppStylesheetTests.cs, src/Tests/DockerUpdateGuard.Tests/MainLayoutRenderTests.csMainLayoutThemeCarriesLightPaletteAndRadius,MainLayoutThemeInDarkModeCarriesDarkPaletteAndContrastTexts6e4fb12: src/Tests/DockerUpdateGuard.Tests/MainLayoutRenderTests.csAppStylesheetTokenPairsReachMinimumContrast(one row per pair and theme),MainLayoutThemeStatusColorsReachMinimumContrast;ContrastRatioCalculateBlackOnWhiteReturnsTwentyOne,ContrastRatioCalculateSameColorReturnsOnefor the helper6e4fb12: src/Tests/DockerUpdateGuard.Tests/AppStylesheetTests.cs, src/Tests/DockerUpdateGuard.Tests/ContrastRatioTests.cs, src/Tests/DockerUpdateGuard.Tests/MainLayoutRenderTests.csAppStylesheetInteractionRulesNeitherMoveNorScale,AppStylesheetKeepsReducedMotionRule; manual: screenshots (below)6e4fb12: src/Tests/DockerUpdateGuard.Tests/AppStylesheetTests.csMainLayoutThemeSwitchesOffElevationShadows;AppStylesheetFlattensFilledButtonsAndBordersFloatingLayers; manual: screenshots6e4fb12: src/Tests/DockerUpdateGuard.Tests/AppStylesheetTests.cs, src/Tests/DockerUpdateGuard.Tests/MainLayoutRenderTests.csMainLayoutRenderTestsandMainLayoutTests, unchanged6e4fb12: src/Tests/DockerUpdateGuard.Tests/MainLayoutRenderTests.cs, src/Tests/DockerUpdateGuard.Tests/MainLayoutTests.csweb-ui.mdagainst the code in step 8Manual check (AC2, AC4, AC7, AC8): run locally on the stamped head, Dashboard and Runtime Containers in light and dark at 1360 and 400 px: both themes flat, Space Grotesk titles, Inter body at 14 px. The compact dark menu, the tooltip border and the active drawer link were additionally verified by the Reviewer in headless Chromium against the real MudBlazor stylesheet; a keyboard-focused metric card was not rendered.
Spec, plan and tasks (tier
standard, no security area, decision records 0077 and 0078, plan challenge with one minor objection that was applied):log.md
Log: Feature #451
Generated by Claude Code
LarsLaskowski commentedon Nov 28, 2026
Squad working record: closing rows
Pull request: #591 (all checks green, ready for review). These rows continue the log table of the working record above.
Squad run metrics
Template: LarsLaskowski/Squad-Spec-Repository-Template v2026.11.15 (commit 96342d9fa5f8)
Session usage
Orchestrator (this session without its subagents): 2,274,945 weighted, 28 % of the total, on claude-sonnet-5-5.
Generated by Claude Code