Neutral dark, black and light themes with a modern look

Replace the green-tinted palette with neutral near-black (Dark), true black
(Black, new, opt-in) and light grey (Light); green is the accent only. System
(default) follows the OS between Dark and Light. All text colours keep
>= 4.5:1 contrast on every surface.

Stylesheet-only restyle to match the approved mock: hairline card borders
(--line, separate from control --border), 20px corners, pill buttons and
segmented controls, round icon buttons and FAB, floating pill tab bar.
Browser theme-color follows the effective theme.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HA82gVKYyo9BHLHPW4qr4x
This commit is contained in:
agent 2026-11-06 19:55:42 +00:00
parent da35509ecd
commit 769b76857a
8 changed files with 103 additions and 73 deletions

31
SPEC.md
View file

@ -454,19 +454,26 @@ which group ids exist.
### 10.4 Theme
Dark and light, following the system setting by default with a manual
override. Starting palette (to be validated for WCAG AA contrast):
Three themes, chosen per device in app settings: **System** (default:
follows the OS between soft dark and light), **Dark** (soft near-black),
**Black** (true black, for OLED screens) and **Light**. Neutral backgrounds;
green is the accent only. Tokens live in `apps/web/src/app.css`:
| Token | Dark | Light |
|---|---|---|
| background | `#0B2E22` | `#F2F7F4` |
| surface | `#123D2E` | `#FFFFFF` |
| surface-raised | `#1A4D3A` | `#E4EFE9` |
| text | `#E8F3EC` | `#0B2E22` |
| text-muted | `#9FBFAE` | `#4A6B5B` |
| accent / you are owed | `#3DDC97` | `#16865A` |
| you owe | `#F2A65A` | `#B5541C` |
| highlight (sparingly) | `#D4AF37` | `#9A7B12` |
| Token | Dark | Black | Light |
|---|---|---|---|
| background | `#0A0B0D` | `#000000` | `#F2F3F5` |
| surface | `#16181C` | `#121316` | `#FFFFFF` |
| surface-raised | `#1F2227` | `#1B1D21` | `#E9EBEE` |
| text | `#F5F6F7` | same as Dark | `#0D0F12` |
| text-muted | `#8B9099` | same as Dark | `#5F6670` |
| accent / you are owed | `#3DDC97` | same as Dark | `#0B7549` |
| you owe | `#FF9466` | same as Dark | `#B53C0A` |
| highlight (sparingly) | `#D4AF37` | same as Dark | `#9A7B12` |
Text, muted, accent, owe and danger colours have at least 4.5:1 contrast on
every background and surface in each theme. Cards and lists are separated by
shade with hairline dividers; controls are pill-shaped; the phone tab bar
floats as a pill above the content.
Positive/negative amounts also differ by sign and icon, never by colour alone.