Repository navigation
Description
Summary
Add a third dashboard theme, Berry (design variant C, "Beere"): a soft, generous look with a single raspberry accent colour, large numerals, strongly rounded cards without visible borders in light mode, ring-shaped load gauges and pill-shaped controls. It is the friendliest and most spacious of the three themes.
The theme is registered under the id berry with the display name "Berry" and becomes selectable through the theme selection of #218. It exists in a light and a dark mode. The default theme stays "Clear" (#217).
Depends on
- [Dashboard] Refresh the default look: theme "Clear" (light and dark) #217 — tokens, SVG icons, bar label structure and the other markup this theme restyles.
- [Dashboard] Let the user choose a dashboard theme, stored per browser #218 — theme registry,
data-style, storage and selector, and the pattern for canvas drawing properties.
Independent of the Console theme (#219); the two can be built in either order.
Design reference
Mockups: docs/design/v1.5.0/theme-c-berry-light.png and theme-c-berry-dark.png, shown in the first comment of this issue. The text of this issue is the binding specification, the mockups only illustrate it. The mockups show three elements that are tracked in separate issues and are not part of this one: the per-core columns next to the CPU value, the "Last 5 min · min/max" caption under the sparklines, and the status dot next to "Last updated".
Specification
Same DOM as Clear; everything below is theme CSS plus canvas drawing properties.
1. Palette tokens
| Token | Light | Dark |
|---|---|---|
--bg |
#f4f1f4 |
#131116 |
--card-bg |
#ffffff |
#1d1a21 |
--card-border |
transparent |
#2c2832 |
--text |
#1d1921 |
#f0ebf3 |
--muted |
#665f6d |
#a8a0b0 |
--border |
#eee9ef |
#2e2a33 |
--track |
#ece6ed |
#342f3a |
--accent |
#c2255c |
#f06595 |
--on-accent |
#ffffff |
#2a0a17 |
--ok / --ok-ink |
#16a34a / #15803d |
#22c55e / #4ade80 |
--warn / --warn-ink |
#d97706 / #92400e |
#f59e0b / #fbbf24 |
--crit / --crit-ink |
#dc2626 / #b91c1c |
#ef4444 / #f87171 |
--shadow |
0 1px 2px rgba(40,20,50,.05), 0 10px 28px rgba(40,20,50,.07) |
none |
Notes:
--card-borderis the border of cards and header buttons: invisible in light mode, where the shadow separates the card from the page, and a hairline in dark mode, where there is no shadow. If Clear has no such token after [Dashboard] Refresh the default look: theme "Clear" (light and dark) #217, it is added there with the value of--borderso that every theme defines the same token set ([Dashboard] Let the user choose a dashboard theme, stored per browser #218, AC10).--borderis the divider between rows inside a card.- One accent colour for everything: logo, all card icon chips, sparklines, links, the primary button, focus rings. The per-card accent colours of Clear are not used.
- The accent is a raspberry red and
critis a red as well. They must never be the only difference between two things: the accent is not used for values, bars or gauge arcs, which take the status colours as in Clear, and wherevercritappears it is accompanied by text (badge, banner, value).
2. Font and scale
System font stack as in Clear, base size 14 px, but heavier and larger numerals. Weights 650 and 750 are requested; on fonts without those weights the browser picks the nearest available weight, which is acceptable. No font file is added.
3. Header
- Logo: a 48 px circle in
--accentwith the logo icon (24 px) in--on-accent. - Title 22 px, weight 750, letter-spacing −0.02em; subtitle 13 px,
--muted. - Layout and theme buttons: 44 px circles,
--card-bg, 1 px--card-border,--shadow. - Page padding 22 px / 28 px.
4. Alert banner
18 px radius, no border, background = base colour of the worst level at 14 % opacity, text in the level's ink colour at weight 650. The alert icon (17 px) sits in a 32 px circle whose background is the level's base colour at 22 % opacity. Content and visibility unchanged.
5. Cards
--card-bg, 1 px--card-border, 22 px radius,--shadow, padding 10 px 22 px 22 px, 20 px gap between cards and columns.- Heading: 15 px, weight 650, letter-spacing −0.01em,
--text, not uppercase (the titles keep their spelling: "CPU Usage", "Load Average", …), 48 px minimum height. Icon chip: a 32 px circle, icon 17 px in--accent, background--accentat 11 % opacity (15 % in dark). Chevron of clickable cards 18 px in--muted. - The hover/focus highlight of clickable cards uses
--accent. - Key/value rows: 14 px, 8 px vertical padding, 1 px
--borderbetween rows, value at weight 600.
6. Metric values
38 px, weight 750, letter-spacing −0.035em, line-height 1, tabular numerals, in the ink colour of the level (as in Clear). The unit (%, °C) is 18 px, weight 650, in the same colour, with a 4 px left margin; this needs number and unit as separate elements (shared with Console, #219 — whichever lands first splits them). Sub lines 13 px, --muted, 6 px below the value.
7. Updates card
- The count and its "Checked …" line sit on the left; the button sits on the right of the same row and wraps below on narrow cards.
- Button: a pill —
--accentbackground,--on-accenttext, weight 650, fully rounded, 44 px minimum height, 20 px horizontal padding, no border. - The Pi-hole section is an inset tile:
--bgbackground, 14 px radius, padding 12 px 14 px, 16 px above it, no divider line. Its status is a pill: ink text at 12 px / weight 650 on the level's base colour at 16 % opacity (18 % in dark), fully rounded.
8. Bars (Memory & Swap, Filesystems)
Track 10 px high, fully rounded, --track; fill in the base colour of the level. Label row at 14 px: name at weight 600; percentage at weight 650 in --text (ink colour at warn / crit); byte figures in --muted. 16 px between bar rows, 8 px between label and bar.
9. Sparklines and detail chart
Drawing properties for chart.js (see #218 for the mechanism): line 2.5 px in --accent with round joins; gradient fill from --accent at 26 % opacity (30 % in dark) to transparent; end dot 10 px in --accent with a 3 px ring in --card-bg. Height 52 px. The detail chart uses the same style.
10. Load gauges: rings
Drawing properties for gauge.js: instead of a half circle, each gauge is a full ring — 88 px outer diameter, 9 px stroke, round caps, track --track, value arc in the base colour of the level, starting at 12 o'clock and running clockwise in proportion to value / max (same scale 0 … core count and same thresholds as today, clamped to a full turn). The value (18 px, weight 750, letter-spacing −0.02em, tabular numerals) is centred inside the ring; the label (12 px, --muted) sits below.
A value of 0 draws no arc (not a dot from the round caps); a value at or above the maximum draws a closed ring.
11. Network card
Each interface is an inset tile: --bg background, 14 px radius, padding 11 px 14 px, 8 px between tiles, no divider lines. Interface name at weight 650; download arrow in --accent, upload arrow in --muted, stroke width 2.5.
12. Badges, dialogs, footer
- Alert badges and the stale badge: pills, 12 px, weight 650, not uppercase, ink text on the level's base colour at 16 % opacity (18 % in dark).
- Dialogs: 22 px radius,
--card-border,--shadow; primary buttons (Unlock, active range) are accent pills as in section 7, secondary buttons are pills with--bgbackground; inputs fully rounded. - Footer: 12 px,
--muted; the link in--accent.
Constraints
- Everything in Constraints of [Dashboard] Refresh the default look: theme "Clear" (light and dark) #217 holds: no inline styles or scripts (CSP
style-src 'self'; script-src 'self'), no external resources or web fonts, no non-emptyinnerHTML, unchanged card structure, ids, layout mechanics and breakpoints, no API change. - The theme is CSS overrides plus declared canvas drawing properties ([Dashboard] Let the user choose a dashboard theme, stored per browser #218). No Berry-specific markup in
index.html, no Berry-specific branches for HTML rendering inapp.js. The ring is a drawing mode ofgauge.jsselected by a declared property, not a second widget in the DOM. - Selecting or leaving the theme changes nothing but the appearance.
- Contrast: text at least 4.5:1 in both modes — this includes
--on-accenton--accent(the button label) and--accentas link and icon colour on--card-bgand--bg; graphical elements at least 3:1.
Out of scope
- Per-core columns, the sparkline caption and the header status dot (separate issues in this milestone).
- Any new data or behaviour.
Acceptance criteria
- AC1 — The registry holds a theme with the id
berryand the display name "Berry"; it can be chosen in the "Customize dashboard" dialog and is applied before first paint when stored. - AC2 — The theme defines every palette token in its light block and in both dark blocks with the values of section 1, and the two dark blocks are identical.
- AC3 — All card icon chips, the logo, sparklines, links and the updates button use
--accent; no per-card colour of Clear appears while Berry is active. - AC4 — Values, bar fills and gauge arcs take the status colours by level exactly as in Clear; the accent colour is never the colour of a value, a bar fill or a gauge arc.
- AC5 — Cards have a 22 px radius; in light mode they have a shadow and no visible border, in dark mode a hairline border and no shadow.
- AC6 — Card titles are not uppercase and keep their existing spelling.
- AC7 — Each load gauge is a full ring with the value centred inside it; the arc starts at 12 o'clock, runs clockwise in proportion to
value / max, draws nothing at 0 and a closed ring at or above the maximum, and is not clipped at any column width. - AC8 — Sparklines and the detail chart are drawn with a 2.5 px accent line, a gradient fill and an end dot; with fewer than two points nothing is drawn.
- AC9 — The updates button is an accent pill at least 44 px high; the Pi-hole section and each network interface row are inset tiles on
--bg. - AC10 — Switching between Berry and the other themes, and between light and dark while Berry is active, restyles the page and redraws every canvas widget (including the change between half-circle gauge and ring) without a reload.
- AC11 — Text contrast is at least 4.5:1 for
--text,--muted,--accentand the three ink tokens against--card-bg, for--text,--mutedand--accentagainst--bg, and for--on-accentagainst--accent, in both modes. - AC12 — With the theme Clear (or Console) active, the page looks and behaves exactly as before this issue.
- AC13 — No inline style or script is added;
app.jsassigns no non-emptyinnerHTML; the existing tests underinternal/webpass.
Testing notes
Go tests over the embedded assets, as for #217–#219: registry entry (AC1), token blocks and contrast computed from the token values (AC2, AC11), the ring drawing mode of gauge.js including the 0 and ≥ max cases (AC7; extend gauge_test.go), the canvas drawing properties being declared for this theme with a fallback to the Clear drawing (AC8).
Documentation
docs/areas/dashboard.md: add Berry to the list of themes; note that the load gauges are rings in this theme with unchanged scale and thresholds.README.md: a screenshot of the theme (light and dark).- Decision record: "Berry uses one accent colour; status colours stay reserved for values".
Activity
LarsLaskowski commentedon Nov 13, 2026
Design mockups
The mockups referenced under Design reference are in the repository at
docs/design/v1.5.0/onmain. Sample data; the issue text stays the binding specification. The per-core columns (#221), the sparkline caption (#222) and the header status dot (#223) that are visible here are not part of this issue.Berry — light
Berry — dark
XliaiyAwA commentedon Nov 28, 2026
i love Berry — dark,thats so cool!
LarsLaskowski commentedon Nov 30, 2026
Squad working record
Verification matrix of feature-220-berry-theme on
af88acbTestThemeRegistry_HasBerry_AC1af88acb: internal/web/theme_test.goTestStyleCSS_BerryPalette_AC2,TestStyleCSS_SharedNewTokens_AC2af88acb: internal/web/palette_test.goTestStyleCSS_BerryAccent_AC3af88acb: internal/web/palette_test.goTestStyleCSS_BerryStatusColours_AC4af88acb: internal/web/palette_test.goTestStyleCSS_BerryCards_AC5af88acb: internal/web/look_test.goTestStyleCSS_BerryHeadings_AC6af88acb: internal/web/look_test.goTestGaugeJS_Ring_AC7af88acb: internal/web/gauge_test.goTestChartJS_BerrySparkline_AC8af88acb: internal/web/chart_test.goTestStyleCSS_BerryTiles_AC9af88acb: internal/web/look_test.goTestGaugeJS_ShapePerDraw_AC10(with the keptTestAppJS_ThemeSwitchRedraws_AC10)af88acb: internal/web/gauge_test.goTestStyleCSS_BerryContrast_AC11af88acb: internal/web/palette_test.goTestStyleCSS_BerryRulesScoped_AC12af88acb: internal/web/palette_test.goTestAssets_NoBerryMarkup_AC13(with the keptTestAppJS_NoInnerHTMLInterpolation,TestIndexHTML_NoInlineStyle_AC11,TestAssets_NoOtherOrigin_AC11)af88acb: internal/web/look_test.goTestStyleCSS_BerryChrome_AC14af88acb: internal/web/look_test.gospec.md
Spec: Theme Berry (light and dark)
Source: Issue #220
Status: Approved by Lead
Problem
The dashboard offers two themes, Clear (the default) and Console (Dashboard, Theme).
A user who wants a softer, more spacious look with large numerals and one accent colour has no such choice. Issue #220
asks for a third theme, Berry, in a light and a dark mode; its Specification sections 1 to 12 are the binding look
(the mockups in
docs/design/v1.5.0/theme-c-berry-*.pngonly illustrate it). This spec refers to those sections as"#220 §n" instead of repeating their values.
Checked against the code (main at
a49c7df): the registry isPIMONITOR_THEMESintheme-init.js(Clear, Console);the canvas renderers read declared custom properties through
themeColor/themeNumber/themeKeyword; the gaugedraws only a half circle (
gauge.js), the sparkline end dot is fixed at 8 px with a 3 px ring (chart.js), Clear andConsole have no
--card-bordertoken (cards and header buttons use--border), number and unit of a metric value arealready separate elements (
.metric-number,.metric-unit), and a theme switch or mode switch already redraws allcanvases (
repaintCanvasesinapp.js).Scenarios
look at once in the current mode, the load gauges turn into rings and the sparklines are redrawn, with no reload; the
dialog stays open and the choice is stored.
(in the stored or the operating system's mode).
pale page; in dark mode they have a hairline border and no shadow ([Dashboard] Add the theme "Berry" (light and dark) #220 §1, §5).
updates button, the primary dialog buttons and the focus rings are raspberry (
--accent), while values, bar fillsand gauge arcs keep the green/amber/red of their level exactly as in Clear ([Dashboard] Add the theme "Berry" (light and dark) #220 §1, §6, §8).
alert badge reads "Warn" or "Crit", and a stale badge reads as written ("cache may be outdated") ([Dashboard] Add the theme "Berry" (light and dark) #220 §5, §12).
the coloured arc starts at 12 o'clock and runs clockwise to
value / coresof a full turn ([Dashboard] Add the theme "Berry" (light and dark) #220 §10).pill "Show all N updates" on the right of the count's row, with the "Checked …" line and, when shown, the stale badge
below the count on the left; the Pi-hole section below is an inset tile with its status as a pill ([Dashboard] Add the theme "Berry" (light and dark) #220 §7).
and the upload arrow muted ([Dashboard] Add the theme "Berry" (light and dark) #220 §11).
and every canvas (sparklines, gauges between ring and half circle, the openHAB chart) is redrawn at once; Clear and
Console look exactly as before this feature.
Errors and edge cases
the core count draws a closed ring ([Dashboard] Add the theme "Berry" (light and dark) #220 §10).
ring that fits its width; no part of ring or caps is clipped and the value stays centred.
with its ring is never clipped at the canvas edges.
yet", "Check failed") and the "Checked …" line take the whole row; on a narrow card the button wraps below the count.
Clear's drawing for that property, as for every theme (Dashboard, Look).
Berry,berry…) still means Clear and stays in storage.Non-functional requirements
style-src 'self'; script-src 'self'), no external resource or web font, nonon-empty
innerHTMLinapp.js, no Berry-specific markup inindex.htmland no Berry-specific branch of HTMLrendering in
app.js; card structure, ids, layout mechanics and breakpoints unchanged; no API change.data-style="berry"plus declared canvas drawing properties; the ring is a drawingmode of
gauge.jschosen by a declared property, not a second widget.--on-accenton
--accent,--accenton--card-bgand--bg, and status text on its tinted pill or banner; graphicalelements (fills, arcs, icons) at least 3:1 against
--card-bg. Computed from the issue's values with Berry's light--ok-ink#166534(Q1): every pair passes; the lightokink pairs are 7.13:1 on--card-bg, 6.36:1 on--bg,5.97:1 on its pill tint over
--card-bg, 5.38:1 over--bgand 5.50:1 on its banner tint over--bg.Acceptance criteria
berryand display name "Berry"; it is a radio option of the Themegroup of the Customize dialog and a stored
berryis applied before first paint (S1, S2, E8).with the values of [Dashboard] Add the theme "Berry" (light and dark) #220 §1 except two: the light
--ok-inkis#166534(Q1) and the dark--shadowis0 0 0 transparent(Q2); every--accent-<card>equal to the mode's--accent,--ok-fillequal to--ok, and the two dark blocks identical. All nine palette blocks gain four tokens, with valuesin Clear and Console that keep their look:
--card-border(their--border),--pill-tint(20%, their badgetint), the gauge shape word
--gauge-shape(half) and the sparkline dot diameter--spark-dot-size(8); thelast two are read through the drawing readers with Clear's value in
DRAWING_FALLBACKS(S3, E7).button and the primary dialog buttons use
--accent; no per-card colour of Clear appears (S4).colour of a value, a bar fill or a gauge arc (S4).
and no visible shadow (S3).
stroke with round caps on a
--tracktrack, with the value centred inside it horizontally and vertically and thelabel below; the arc starts at 12 o'clock, runs clockwise in proportion to
value / maxclamped to a full turn,draws nothing at 0, a closed ring at or above max, and is not clipped at any column width (S6, E1, E2).
accent at 26 % (light) / 30 % (dark) to transparent and a 10 px end dot with a 3 px
--card-bgring that is notclipped, the plot inset being the dot's radius plus the ring (7 px in Clear and Console as today); with fewer than
two points nothing is drawn; an unreadable Berry drawing property falls back to Clear's
value (S1, E3, E7).
below the count on a narrow one, the "Checked …" line and the stale badge below the count on the left; the Pi-hole
section and each network interface row are inset tiles on
--bgwithout divider lines (S7, S8, E4, E5).and redraws every canvas widget, including the change between half circle and ring, without a reload (S1, S9).
--text,--muted,--accentand the three ink tokens reach 4.5:1 on--card-bg;--text,--mutedand--accenton--bg;--on-accenton--accent; and each status ink on its own pill tint (16 % light,18 % dark) over
--card-bgand over--bgand on its banner tint (14 %) over--bg, with the light--ok-ink#166534of AC2 (N3, Q1).app.jsassigns no non-emptyinnerHTML, there is no Berry-specificmarkup or HTML-rendering branch, and the existing tests under
internal/webpass (N1, N2, N4).title, 44 px round buttons, page padding), alert banner with its icon circle, card padding, gaps and headings,
metric value and unit sizes (unit in the value's colour, 4 px apart, no space), sub lines, key/value rows, bar
sizes and label weights, network arrows, badges as pills — an alert badge's level with a capital first letter (Q3),
a stale badge as written —, dialogs (22 px radius, accent primary pills,
--bgsecondary pills, round inputs) and footer; weights650 and 750 are requested from the system font stack and no font file is loaded (S3–S8, E6).
Out of scope
visible in the mockups.
--accentand--mutedthrough the tokens).index.htmland stays as it is.Open questions
okin light mode is--ok-ink#15803don--okat 16 % inside the inset tile on--bg: 3.79:1, below the issue's 4.5:1 for text (4.20:1 even over--card-bg;--ok-inkon plain--bgisalready 4.47:1, so no tint fixes it). Every other pair passes. Answered: by the Product Manager, Berry's light
--ok-inkbecomes#166534, one step darker in the same colour family, a documented departure from the [Dashboard] Add the theme "Berry" (light and dark) #220 §1table for this one token (dark
--ok-inkand every other token keep the issue's values). Re-checked with it: 7.13:1on
--card-bg, 6.36:1 on--bg, 5.97:1 / 5.38:1 on the pill tint over--card-bg/--bg, 5.50:1 on the bannertint over
--bg. Rejected: theokpill's text in--text, and accepting 3.79:1.--shadowasnone, but.theme-toggle:hoverand.layout-toggle:hoverlistvar(--shadow), <focus ring>, whichnonemakes invalid (the hover ring would vanish). Answered: from the area document andthe Console precedent, Berry's dark
--shadowis the invisible0 0 0 transparent, which looks likenone; thedialog shadow token (
--dialog-shadow) takes the mode's--shadowvalue, as [Dashboard] Add the theme "Berry" (light and dark) #220 §12 asks.warn/critand the mockup shows "Warn".Answered: the issue text and mockup agree, so Berry capitalizes the first letter of an alert badge by CSS (
Warn,Crit), noapp.jschange; a stale badge holds a sentence and stays as written.inactive range buttons, the move buttons, "Reset to default" and the close buttons.
only replaces Clear's space (
.metric-unit::before) by a 4 px margin.Area documents
docs/areas/dashboard.md, Theme: Berry (berry) third in the registry; its palette blocks; that--card-borderis now a token of every theme. Look: Berry's single accent and status colours only for values, fills and arcs; the
ring drawing mode of the load gauge (unchanged scale and thresholds, nothing at 0, closed ring at max, shrinks to fit);
the sparkline dot size as a drawing property; the list of drawing properties extended by the new ones; pills, inset
tiles and capitalized badges. Value coloring: Berry colours levels as Clear does. The document has about 4,350
words against
AREA_MAX_WORDS5,000: if the plan's estimate passes the limit, Theme and Look move to a new areadocument
docs/areas/dashboard-themes.md, planned in the same change.own, the light
--ok-ink#166534departure from [Dashboard] Add the theme "Berry" (light and dark) #220 §1 (Q1) with its reason.README.md(not an area document): two screenshots of Berry, light and dark, beside Console's, and Berry in the"Choosable themes" feature line ([Dashboard] Add the theme "Berry" (light and dark) #220 Documentation).
Challenge
Devil's Advocate, mode
spec: no major objection; six minor ones, answered here.Accepted: AC7 states them. The claimed
border-topchord line on.gauge-valuedoes not exist(
style.css:692-701; theborder-topat line 1110 is the Pi-hole section's), but Berry still repositions thevalue box and the canvas height in scoped rules.
DRAWING_FALLBACKS. Accepted: AC2 names thefour tokens every block gains and their Clear/Console values; the plan names the reader ranges and word lists.
keeps 7 px for Clear and Console.
below the count on the left. Rejected in part: the button stands beside the count's row, not beside the count and
its "Checked …" line together, since without a wrapper element (N1) only a wrapping flex row puts the button below
the count by the card's own width (plan, Options considered).
plan.md
Plan: Theme Berry (light and dark)
Source: Issue #220 | spec.md
Tier: standard — a user-visible behavior change of the embedded dashboard assets (a third theme, a ring drawing mode, a derived sparkline inset) that creates, changes or removes no security control.
Security areas touched: none
Problem / root cause
See spec.md, Problem.
Verified facts
DRAWING_FALLBACKStheme-init.js:3-54drawGaugedraws only a half circle; it reads--gauge-width,--gauge-cap,--trackand the level colour on every call, and the canvas size fromclientWidth/clientHeightgauge.js:16-64const pad = 7;, the dot radii are literals 7 and 4chart.js:94,98,133var(--border); no--card-bordertoken existsstyle.css:373,454,793.gauge-valuehas noborder-top(Challenge note 1 said so); theborder-topat line 1110 is.pihole-section'sstyle.css:692-701,1107-111120%; Console overrides badges with its own rulesstyle.css:1123,1143,1148,1334-1360repaintCanvases, which redraws gauges, sparklines, detail and openHAB chartsapp.js:111-114;theme_test.goTestAppJS_ThemeSwitchRedraws_AC10.hiddenisdisplay: none !importantindex.html:45-53,style.css:1152-1154.net-rateof a row, upload the second; the Pi-hole status is.kv-val#pihole-statuswithmetric-ok/metric-warnapp.js:447-450,731-733::first-lettercapitalizes aninline-blockbadge; a wrapping flex row withorderputs the button beside the count at 400 px, below it at 200 pxNN.NNat weight 750, −0.02em is 2.755 em wide (Inter; feature 217: 2.89 em at 700); the ring check uses 3.0 emstyle.css:663-667squad_settings.py:30(*.go),sonar-project.properties:34git tag --contains 59fbb78(empty),git ls-remote --tags origindashboard.mdhas 4,360 words (AREA_MAX_WORDS5,000)decision-check.py's count (split())Tests per criterion
TestThemeRegistry_HasBerry_AC1internal/web/theme_test.goTestStyleCSS_BerryPalette_AC2,TestStyleCSS_SharedNewTokens_AC2internal/web/palette_test.goTestStyleCSS_BerryAccent_AC3internal/web/palette_test.goTestStyleCSS_BerryStatusColours_AC4internal/web/palette_test.goTestStyleCSS_BerryCards_AC5internal/web/look_test.goTestStyleCSS_BerryHeadings_AC6internal/web/look_test.goTestGaugeJS_Ring_AC7internal/web/gauge_test.goTestChartJS_BerrySparkline_AC8internal/web/chart_test.goTestStyleCSS_BerryTiles_AC9internal/web/look_test.goTestGaugeJS_ShapePerDraw_AC10(with the keptTestAppJS_ThemeSwitchRedraws_AC10)internal/web/gauge_test.goTestStyleCSS_BerryContrast_AC11internal/web/palette_test.goTestStyleCSS_BerryRulesScoped_AC12internal/web/palette_test.goTestAssets_NoBerryMarkup_AC13(with the keptTestAppJS_NoInnerHTMLInterpolation,TestIndexHTML_NoInlineStyle_AC11,TestAssets_NoOtherOrigin_AC11)internal/web/look_test.goTestStyleCSS_BerryChrome_AC14internal/web/look_test.goWhat each test checks:
berry, "Berry") in that order.berryTokens(dark)(the table under Approach) equals each Berry block exactly (values and key set), the key set equals Clear's light block's, both dark blocks are identical; Clear's and Console's six blocks hold--card-borderequal to their--border,--pill-tint20%,--gauge-shapehalf,--spark-dot-size8;DRAWING_FALLBACKSholds--gauge-shape: 'half'and--spark-dot-size: '8'.--accent-<card>equal its--accent; the 32 px chip keepsvar(--card-accent); logo, updates button, primary dialog buttons andfooter atakevar(--accent); no Berry rule names an--accent-<card>token.--ok-fillequals its--okin every block (extendsTestGaugeJS_OkFill_AC3's theme list too); no Berry rule gives a.metric-*,.bar-fill,.bar-pctor.metric-valueselector a colour or background with--accent.--radius-card22px; light--card-bordertransparentwith a non-transparent--shadow, dark--card-border#2c2832with0 0 0 transparent; the unscoped.carddraws1px solid var(--card-border)andvar(--shadow)..card h2:text-transform: none, 15px, 650,var(--text), min-height 48px, letter-spacing −0.01em.checkGaugeValueChordfor the ring at widths 60, 68, 72, 88, 100, 150, 250, 400, canvas height 88, 3.0 em (fact 11): ring and caps inside the canvas, the centred value box inside the inner chord at its top edge, 88 px outer diameter from 88 px on.line,fade,ring,none, alpha 0.26/0.30, dot size 10);sparkStylereadsthemeNumber('--spark-dot-size', 2, 16); the inset is derived from the dot size plus the ring (7 for 8, 8 for 10), both dot radii fromstyle.dotSize; the guard of fewer than two points stays first.#updates-counthas noflex-shrink: 0(neitherflex-shrinknor aflexshorthand with a second value of 0).drawGaugereads--gauge-shapeinside its body on every call (no module-level cache), afterctx.clearRect(and before its firstctx.beginPath(orctx.arc(, so the ring branch also starts from a cleared canvas, and returns afterdrawGaugeRing.--pill-tintand banner tint 14 % composited withmixRGBover--card-bgand--bg; graphic--ok/--warn/--critand--accentat least 3:1 on--card-bg; a fixture pair below the floor is reported.:root[data-style="berry"], no!important;checkWantsUnscopedholds, plus the unscoped token reads of Approach.index.htmlandapp.jshold no wordberry((?i)\bberry\b; "Raspberry" atindex.html:59does not match).berryChromeWantstable of the Approach declarations, checked likeconsoleChromeWants; the badge capital on.alert-badgeonly; no font file (checkNoFontFiles).Approach
Early draft PR: no
Tokens. Every palette block of every theme gains
--card-border,--pill-tint,--gauge-shapeand--spark-dot-size(Clear and Console: their--borderhex,20%,half,8). Berry's three blocks follow Console's, before the Console rules, comment as for Console. Berry's values, light / dark (one value: both modes):--ok-ink#166534(0045),--shadowlight0 1px 2px rgba(40, 20, 50, 0.05), 0 10px 28px rgba(40, 20, 50, 0.07)/ dark0 0 0 transparent;--card-bordertransparent/#2c2832--accent-<card>(10),--ok-fill--accenthex; the mode's--okhex--chip-tint,--pill-tint,--spark-fill-alpha11%/15%;16%/18%;0.26/0.30--btn-tint,--btn-border-tint,--backdrop8%/14%,30%/35%,rgba(0, 0, 0, 0.5))--dialog-shadow--shadow(#220 §12)--radius-card,--radius-control,--radius-button,--radius-chip22px,18px,999px,50%--card-padding,--gap10px 22px 22px,20px--spark-line-width2.5,--spark-shapeline,--spark-fillfade,--spark-dotring,--spark-gridnone,--spark-dot-size10,--gauge-width9,--gauge-capround,--gauge-shaperingUnscoped rules read the two mode-dependent tokens (0038, option 6):
.card,.theme-toggle, .layout-toggleanddialog.modal[open]border1px solid var(--card-border);.stale-badge,.alert-badge.metric-warn/-critbackgroundcolor-mix(in srgb, var(--warn|crit) var(--pill-tint), transparent). Clear and Console look unchanged.theme-init.js. Registry entry
Object.freeze({ id: 'berry', name: 'Berry' })third;DRAWING_FALLBACKSgains'--gauge-shape': 'half'and'--spark-dot-size': '8'.gauge.js.
drawGaugereadsconst shape = themeKeyword('--gauge-shape', ['half', 'ring']);afterctx.clearRect(and the stroke reads, computes the colours andclampedbefore any drawing, and forringcalls drawGaugeRing and returns; the half-circle code is otherwise unchanged (its twoctx.lineCap =assignments and radius bound stay). drawGaugeRing: centre(width / 2, height / 2),radius = Math.max(1, Math.min(ring.width, ring.height) / 2 - ring.lineWidth / 2), so the outer edge, caps included, touches the smaller canvas side; the track is a full circle0to2 * Math.PI;if (fraction <= 0) return;then the value arc from-Math.PI / 2to-Math.PI / 2 + 2 * Math.PI * fraction, clockwise, withring.lineCap(at 1 the arc closes the ring).chart.js.
sparkStyle()addsdotSize: themeNumber('--spark-dot-size', 2, 16);drawSparklinecomputes the style before the inset,const pad = style.dotSize / 2 + SPARK_DOT_RING;with the file constantSPARK_DOT_RING = 3; drawSparkDot draws the ring atstyle.dotSize / 2 + SPARK_DOT_RINGinstyle.cardBgand the dot atstyle.dotSize / 2. Clear and Console keep pad 7.style.css, Berry rules. After the Console rules, every selector starting with
:root[data-style="berry"], tokens only, no!important, values of #220 §2–§12 where these lines fix no other:body14px;headerpadding22px 28px 8px;mainpadding12px 28px 22px;.alert-bannermargin0 28px 20px;footerpadding0 28px 22px, 12px..logo-tile48px, radius 50%, icon 24px;header h122px / 750 / −0.02em; toggles radius 50%..alert-banner-icon32px circle, flex-centred, icon 17px, backgroundcolor-mix(in srgb, var(--warn|crit) 22%, transparent)per level..card h2as AC6;.card-icon32px,.card-icon .icon17px, chevron 18px;.kv-row14px, padding8px 0..metric-value38px / 750 / −0.035em / line-height 1;.metric-unit18px / 650 / margin-left 4px;.metric-unit::beforecontent: none;.metric-sub13px, margin-top 6px..bar-track10px;.bar-label14px, margin-bottom 8px;.bar-pct650;.bar-rowmargin-bottom 16px (:last-child0 repeated)..gauge canvasheight 88px;.gauge .gauge-valuetop: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-size: clamp(12px, 21cqi, 18px); font-weight: 750; letter-spacing: -0.02em(18 px from 86 px gauge width on, fits down to 60 px: fact 11, 12);.gauge .gauge-label12px, margin-top 8px.#card-updatesdisplay: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; itsh2flex: 0 0 100%;#updates-countflex: 1 1 auto(shrinkable, so "Not checked yet" wraps);#updates-showorder: 1;#updates-checked,#updates-stale,#pihole-sectionorder: 2;#updates-checked,#pihole-sectionflex: 0 0 100%. Button:var(--accent)background,var(--on-accent), border 0, 14px / 650, padding0 20px, margin-top 0, hoverfilter: brightness(1.08).var(--bg), radius 14px, padding12px 14px, margin-top 16px,border-top: 0;#pihole-statuspill (12px / 650, padding2px 10px, radius 999px, backgroundcolor-mix(in srgb, var(--ok|warn) var(--pill-tint), transparent)per level)..net-rowtile (var(--bg), radius 14px, padding11px 14px, margin-bottom 8px,border-bottom: 0;:last-childmargin 0);.net-name650; first.net-rateiconvar(--accent), lastvar(--muted);.net-iconstroke-width: 2.5..alert-badgeand.stale-badge12px / 650, padding2px 10px;.alert-badgetext-transform: none; letter-spacing: 0;.alert-badge::first-lettertext-transform: uppercase..range-button.active,.apikey-submit650 (accent pills through the tokens); secondary.range-button,.layout-move,.layout-reset,.modal-closebackground: var(--bg); border-color: transparent; border-radius: 999px;.apikey-inputradius 999px.Shared test helpers. The Console helpers bound to
consoleScope(consoleScoped,consoleValue,checkWants,hasConsoleSelector,unscopedMix,consoleBoxProblems) take the scope as a parameter (the Console callers passconsoleScope), andconsoleContrastFailuresbecomes the shared base of Berry's pairs; Berry addsberryScopeand its wants, never a copy.Options considered
--spark-dot-sizekeeps 7 px there.NN.NNoverflows the ring's inner chord (fact 11, 12).Affected projects and types
internal/webassets/theme-init.js,gauge.js,chart.js,style.css; testsSignatures (for the Dev's skeleton)
No new API: the change adds or changes no Go member, and the tests read the asset texts, so step 4 builds nothing. The browser functions are described in prose: gauge.js gains drawGaugeRing taking the context, a ring object (width, height, lineWidth, lineCap, trackColor, fillColor) and the clamped fraction; chart.js's drawSparkDot takes the style object of sparkStyle as its fourth argument instead of the card colour.
Test files
internal/web/theme_test.go,internal/web/palette_test.go,internal/web/look_test.go,internal/web/gauge_test.go,internal/web/chart_test.go.Existing tests whose expectation the change alters, adapted by the Tester in step 5:
TestThemeRegistry_HasConsole_AC1(the exact two-entry list; Console stays second),consoleTokens(the four new keys, Console's values),expectedTokens(Clear's four),themeBlockSelectorsandcheckNumberBounds(Berry and the new number),newDrawingReads(--gauge-shapeKeyword,--spark-dot-sizeNumber),checkSparklinePad(the derived inset, at least 7 for Clear),sparkDotReach,unitRuleProblemsandconsoleBoxProblems/consoleGaugeBoxFindings(a Berry-scoped selector is no Clear rule, and Berry may set the gauge box),TestGaugeJS_OkFill_AC3(Berry's id). Any other existing test that fails in step 5 only because it reads a Berry-scoped rule as Clear's is adapted the same way and named in the Tester's report.Files no unit test can cover:
internal/web/assets/*run only in a browser; they are already outside the coverage measure (fact 13, decision recorded with that exclusion), the Go tests read their text; no new exclusion.Areas
docs/areas/dashboard.md (+400 words), 4,360 now, at most 4,760 after: Theme — Berry (berry) third, its palette blocks and the four tokens every theme declares; Look — the extended list of drawing properties with--gauge-shape(half,ring) and--spark-dot-size(2 to 16), Berry's single accent and status colours, the ring (scale, thresholds, nothing at 0, closed at max, shrinks to fit), the derived sparkline inset, pills, inset tiles, the Updates row and the alert badge's capital; Value coloring — Berry as Clear; Related decisions — 0044, 0045. No split: belowAREA_MAX_WORDS.Documentation updates
docs/areas/dashboard.md(Dev): as Areas, written against the built code.README.md(Dev): "The Berry theme, light and dark:" withdocs/dashboard-berry-light.pnganddocs/dashboard-berry-dark.pngafter Console's; the "Choosable themes" line names Clear, Console and Berry (soft, one accent colour).docs/dashboard-berry-light.png,docs/dashboard-berry-dark.png(Dev): 1600 × 820 like Console's, headless Chrome againstmake runof the built head withhostname_enabled: falsein a scratch copy of the example config, Berry stored in the profile; the Dev looks at both for clipping of rings and dots and the Updates row, checks the Updates card in the "Not checked yet" state at a 320 px viewport for overflow, and reports what it saw.README.md:62is the only other list of themes;ARCHITECTURE.md,SECURITY.md,docs/API.md,.squad/project.mdunaffected.Architecture check
No guarantee of
.squad/project.mdis touched (no API, server, config or packaging change); the CSP,innerHTMLand one-DOM rules hold (AC13).Security considerations
Decision records
docs/decisions/0044-berry-one-accent-status-colours-for-values.md(Proposed)docs/decisions/0045-berry-light-ok-ink-darker-for-pill-contrast.md(Proposed)docs/decisions/0038-dashboard-mode-and-theme-as-token-overrides.md(Accepted, unreleased, extended: option 6 and its decision sentence)Challenge
Devil's Advocate, mode
plan:flex: 1 0 autokeeps the count at its one-line width, so "Not checked yet" at 38 px overflows a narrow card (E4, AC9). Accepted:#updates-countisflex: 1 1 auto; AC9's test forbidsflex-shrink: 0on it; the Dev's screenshot check covers that state at 320 px.berrymatches "Raspberry". Accepted: the test matches the word\bberry\b.clearRect. Accepted: the read comes afterctx.clearRect(and before the firstctx.beginPath(/ctx.arc(, so the ring branch draws on a cleared canvas.Out of scope / follow-ups
The per-core columns (#221), the sparkline caption (#222), the header status dot (#223); a Berry favicon.
tasks.md
Tasks: Theme Berry (light and dark)
Plan: plan.md
Group G1 builds the tokens, the registry and the canvas drawing; G2 the Berry look rules and the documentation. Neither
group adds API (no new API: the plan's Signatures names no Go member, step 4 builds nothing).
internal/web/theme_test.go,internal/web/palette_test.go,internal/web/gauge_test.go,internal/web/chart_test.go,internal/web/look_test.go--card-border,--pill-tint,--gauge-shape,--spark-dot-sizein Clear's and Console's blocks; Berry's three blocks; unscoped border and badge rules on the tokens; shape read and drawGaugeRing; dot size and derived inset; Berry gauge box rulesinternal/web/assets/theme-init.js,internal/web/assets/gauge.js,internal/web/assets/chart.js,internal/web/assets/style.cssinternal/web/*_test.gointernal/web/palette_test.go,internal/web/look_test.gointernal/web/assets/style.cssinternal/web/*_test.godashboard.md(Theme, Look, Value coloring, Related decisions, at most +400 words), README screenshots and feature line, the two screenshotsdocs/areas/dashboard.md,README.md,docs/dashboard-berry-light.png,docs/dashboard-berry-dark.pnglog.md
Log: Feature #220 Theme Berry
| 2026-11-30 21:59 | 11 PR ready | Orchestrator | CI green on e91b044, SonarQube quality gate passed with 0 new issues; PR marked ready for review. |
| 2026-11-30 21:59 | 11 Review delta | Reviewer | VERDICT: APPROVE on e91b044 — rename is behavior-neutral. (opus/medium · 4,275 tokens · 3 tool uses · 12 s · 8 in · 1,186 out · 274,166 cache read · 4,516 cache write · 50,583 weighted · continued) |
| 2026-11-30 21:59 | 11 Gate stamp | Orchestrator | PASS on e91b044 (tier standard): Format check pass; Analyzer gate pass; Test with coverage pass; Coverage gate pass; decision-check.py pass; scope-check.py --no-specs pass · figure-check.py 0 hit(s) |
| 2026-11-30 21:59 | 11 Sonar fix | Code Officer | go:S978 shadowing identifier 'clear' renamed to clearIdx in gauge_test.go; analyzer clean. (sonnet/medium · 72,660 tokens · 6 tool uses · 24 s · 10 in · 1,579 out · 333,695 cache read · 19,934 cache write · 66,192 weighted) |
| 2026-11-30 21:59 | 10 Pull request | Orchestrator | #303 (draft); working record on issue #220 |
Squad run metrics
Template: LarsLaskowski/Squad-Spec-Repository-Template v2026.11.16 (commit 6faa7e3391bd)
Tokens per kind and their weighted figure (every token at its list price, in tokens of Sonnet input:
.squad/tools/session-usage.py):Session usage
Tokens per model (the session and all its subagents; Claude Code's own background calls are not in the transcripts, so this is a lower bound):
Subagents:
Orchestrator (this session without its subagents): 2,425,811 weighted, 25 % of the total, on claude-sonnet-5-5.
Orchestrator context: 114 turns, 89,154 tokens at the first, 233,872 at the last.
Weighted: every token at its list price, in tokens of Sonnet input (
PRICESin.squad/tools/session-usage.py); a model of no listed family has none (–).Generated by Claude Code