Skip to content

[Dashboard] Add the theme Berry (light and dark) - #303

Open
LarsLaskowski wants to merge 29 commits into
mainfrom
claude/admiring-lamport-jri9hy
Open

LarsLaskowski wants to merge 29 commits into
mainfrom
claude/admiring-lamport-jri9hy

Conversation

@LarsLaskowski

@LarsLaskowski LarsLaskowski commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

Pull Request

📖 Description

Adds the dashboard theme "Berry" (id berry, light and dark), the third choice in the theme selection after Clear and Console. It uses one raspberry accent colour for all chrome, strongly rounded cards without a visible border in light mode, pill-shaped controls, inset tiles for the Pi-hole section and network interfaces, and load gauges drawn as full rings with the same scale and thresholds as the half circle. Status colours stay reserved for values, bars and gauge arcs. The canvas widgets get two new drawing properties (--gauge-shape, --spark-dot-size) with fallbacks to Clear's drawing, and every theme now declares --card-border and --pill-tint. Berry's light --ok-ink is #166534 instead of the issue's #15803d, because the issue's value reaches only 3.79:1 on the Pi-hole status pill.

🎫 Issues

Closes #220

💬 Reviewer Notes

Only dashboard assets (internal/web/assets: style.css, gauge.js, chart.js, theme-init.js), their tests, the area document and the README change. No API, config key, collector or packaging file is touched, and app.js and index.html are unchanged. Smoke test: open the dashboard, choose Berry in "Customize dashboard" and switch light/dark; the page should restyle and redraw the gauges as rings and the sparklines without a reload. Decision records: docs/decisions/0044-berry-one-accent-status-colours-for-values.md, docs/decisions/0045-berry-light-ok-ink-darker-for-pill-contrast.md, and an extension of docs/decisions/0038-dashboard-mode-and-theme-as-token-overrides.md.

📑 Test Plan

Criterion Verification Tests Result
AC1 unit TestThemeRegistry_HasBerry_AC1 pass
AC2 unit TestStyleCSS_BerryPalette_AC2, TestStyleCSS_SharedNewTokens_AC2 pass
AC3 unit TestStyleCSS_BerryAccent_AC3 pass
AC4 unit TestStyleCSS_BerryStatusColours_AC4 pass
AC5 unit TestStyleCSS_BerryCards_AC5 pass
AC6 unit TestStyleCSS_BerryHeadings_AC6 pass
AC7 unit TestGaugeJS_Ring_AC7 pass
AC8 unit TestChartJS_BerrySparkline_AC8 pass
AC9 unit TestStyleCSS_BerryTiles_AC9 pass
AC10 unit TestGaugeJS_ShapePerDraw_AC10, TestAppJS_ThemeSwitchRedraws_AC10 pass
AC11 unit TestStyleCSS_BerryContrast_AC11 pass
AC12 unit TestStyleCSS_BerryRulesScoped_AC12 pass
AC13 unit TestAssets_NoBerryMarkup_AC13 pass
AC14 unit TestStyleCSS_BerryChrome_AC14 pass

The ring, sparkline dot and Updates card (also in the "Not checked yet" state at 320 px) were checked in headless Chrome; the screenshots are in the README.

✅ 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 (none added).
  • The PR carries its release-notes label (CONTRIBUTING).

⏭ Next Steps

None.

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

Copy link
Copy Markdown

@LarsLaskowski
LarsLaskowski marked this pull request as ready for review November 30, 2026 21:59
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.

[Dashboard] Add the theme "Berry" (light and dark)

2 participants