4.3 KiB
TASK-016 dark-theme reconstruction
Date: 2026-11-11. Rebuilt from codex 922d1f6; the former uncommitted candidate is unavailable. This is not a byte-identical recovery.
Composition and behavior
Retain the current header, clock, section navigation, date strip, routine cards, details disclosures and editor hierarchy. Use a single dark green theme at document level before React loads; OS preference does not change it. No theme switch or stored theme preference. Bootstrap uses data-bs-theme="dark"; custom/native controls use the same semantic tokens. A background on the HTML element avoids a light initial canvas while development CSS loads.
Page/panel/card/input surfaces are layered dark greens. Primary and secondary text remain readable; green actions keep the existing identity. Selected navigation/date/period controls have an inset underline as well as their surface change. Existing saved text, completion summaries and error messages remain the non-color cues. Disabled actions use legible muted text and dark surfaces; focus uses an offset lime outline. Existing explicit Save, suggestions and all persistence semantics remain unchanged.
Restore TASK-018's accepted compact-input requirement as an explicit prerequisite: shared 5.25rem numeric width, bounded desktop headings/columns and EMOM fields, existing control heights, responsive labels and row stacking. No numeric limits or data truncation. At <992px row labels become visible; <576px rows stack; <361px EMOM fields stack. No layout redesign. The rebuilt candidate does not contain missing TASK-019 availability behavior.
Validation
Automated interaction suite, lint/build, context checks, source preflight and whitespace/diff review are required. Captain owns testtask launch and manual checks at desktop and 320px: every section, both periods, focus, number controls/decimals, disabled/loading/error/saved states, earlier records, initial/reload with OS light. No independent browser pass is claimed. Calculated token contrasts below do not substitute for browser verification or formal WCAG auditing.
Measured palette contrast
sRGB relative luminance; normal text target >=4.5:1, essential input borders/focus >=3:1 on their adjacent surfaces. Decorative panel/card dividers use a lower-contrast token; they are not required to identify an input. Selected controls retain readable text and a high-contrast inset accent.
| Foreground | Background | Ratio |
|---|---|---|
primary #e8f1e9 |
page #101914 |
15.53:1 |
primary #e8f1e9 |
panel #18251e |
13.76:1 |
primary #e8f1e9 |
card #1d2d24 |
12.52:1 |
primary #e8f1e9 |
input #111c16 |
15.14:1 |
primary #e8f1e9 |
selected #294332 |
9.36:1 |
primary #e8f1e9 |
hover #304b39 |
8.30:1 |
primary #e8f1e9 |
success #253e2a |
10.10:1 |
secondary #b5c8b9 |
page #101914 |
10.18:1 |
secondary #b5c8b9 |
panel #18251e |
9.02:1 |
secondary #b5c8b9 |
card #1d2d24 |
8.21:1 |
secondary #b5c8b9 |
input #111c16 |
9.93:1 |
secondary #b5c8b9 |
selected #294332 |
6.14:1 |
secondary #b5c8b9 |
hover #304b39 |
5.44:1 |
secondary #b5c8b9 |
success #253e2a |
6.62:1 |
accent #b9df88 |
page #101914 |
11.93:1 |
accent #b9df88 |
panel #18251e |
10.57:1 |
accent #b9df88 |
card #1d2d24 |
9.62:1 |
accent #b9df88 |
input #111c16 |
11.63:1 |
accent #b9df88 |
selected #294332 |
7.19:1 |
accent #b9df88 |
hover #304b39 |
6.38:1 |
accent #b9df88 |
success #253e2a |
7.76:1 |
error #ffb4a9 |
page #101914 |
10.55:1 |
error #ffb4a9 |
panel #18251e |
9.34:1 |
error #ffb4a9 |
card #1d2d24 |
8.50:1 |
error #ffb4a9 |
input #111c16 |
10.28:1 |
error #ffb4a9 |
selected #294332 |
6.36:1 |
error #ffb4a9 |
hover #304b39 |
5.64:1 |
error #ffb4a9 |
success #253e2a |
6.86:1 |
border #708a78 |
page #101914 |
4.78:1 |
border #708a78 |
panel #18251e |
4.23:1 |
border #708a78 |
card #1d2d24 |
3.85:1 |
border #708a78 |
input #111c16 |
4.66:1 |
focus #d3ed8c |
page #101914 |
13.89:1 |
focus #d3ed8c |
panel #18251e |
12.30:1 |
focus #d3ed8c |
card #1d2d24 |
11.19:1 |
focus #d3ed8c |
input #111c16 |
13.53:1 |
on-accent #173020 |
accent #b9df88 |
9.44:1 |
on-accent #173020 |
focus #d3ed8c |
10.99:1 |
warning-text #f5d68d |
warning #40351b |
8.54:1 |