Skip to content

R1: Hain foundations — palette, accent discipline, fonts, radii, motion, dot grid - #31

Open
antonsxh wants to merge 1 commit into
mainfrom
r1-hain-foundations
Open

antonsxh wants to merge 1 commit into
mainfrom
r1-hain-foundations

Conversation

@antonsxh

@antonsxh antonsxh commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Second step of the UX overhaul (docs/ROADMAP.md → "UX overhaul"): libe's look was a copy of the product it builds on; R1 replaces the visual foundations with the "Hain" direction. Logo/favicon/app icons follow in R2.

Changes

  • Palette (60-30-10): forest-green surfaces (--bg #101614, --surface #17201d, --surface-2 #1e2925), text #e6ece8 / #bccac3 / #84958d, mint #6fdcae as the one accent (ink #08231a), danger #ef7a6a. No colour literals outside tokens.css, so a light theme (R4) is one more token block.
  • Accent discipline: mint only for the primary action, "now" (running timer, now line, today) and focus rings. Removed from KPI numbers, streak chips, week bars, links, selected controls, progress bars, …; the accent is no longer a quest colour.
  • Quest colours: same keys (DB unchanged), new Hain values, distinct from mint and each other.
  • Fonts: Figtree (UI) + Bricolage Grotesque (headings, big numbers, timer), Fontsource variable 5.3.0, OFL-1.1, self-hosted and precached; Inter removed. Both have tabular digits.
  • Radii 8/12/18/24 + pill and --radius-inner for nested corners; motion: ease-out default curve, press scale 0.97 for mouse and touch; text-wrap: balance for headings.
  • Dot grid replaces the diagonal hatching for planned/logged blocks.
  • Tauri shell pages, theme-color, manifest and /styleguide follow; scripts/contrast.ts (+ test) checks WCAG ratios: text 12.5–15.3, muted 4.8–5.8, ink on mint 9.9, quest colours 5.1–10.0.

Tests

bun run check 0/0 · bun run test 483 pass · bun run lint clean · bun run build OK · test:e2e 100 passed / 7 skipped · test:e2e:mobile 51 passed / 9 skipped · test:tauri 10 passed. No e2e needed changes.

Known: the Tauri shell's local pages bundle no font files (system font fallback); the in-app logo is already mint while favicon/icons stay amber until R2.

Screenshots

Home

Before After
desktop
phone

Home with a running timer

Before After
desktop
phone

Plan

Before After
desktop
phone

Calendar

Before After
desktop
phone

Focus

Before After
desktop
phone

Quests

Before After
desktop
phone

Review

Before After
desktop
phone

Settings

Before After
desktop
phone

Setup

Before After
desktop
phone

Dot grid (last week) and styleguide

🤖 Generated with Claude Code

…on, dot grid

libe's look was a copy of quest.app. "Hain" (grove) replaces the visual
foundations: a dark forest-green palette (60-30-10) with mint as the one
accent, Figtree + Bricolage Grotesque (self-hosted Fontsource, OFL, pinned)
instead of Inter, radii 8/12/18/24 with a nested-radius rule
(--radius-inner), ease-out as the default curve, press 0.97 for touch and
mouse, text-wrap balance/pretty, and a dot grid instead of the diagonal
hatching (.hatch -> .dot-grid).

- Accent discipline: mint only for the primary action, the "now" (running
  timer, now lines, today markers), the focus ring and the daily-goal ring;
  removed from KPIs, streaks, week bars, links, selections, checked
  controls and hover tints. The accent is no longer a quest colour.
- Quest colours retuned (keys unchanged), kept apart from mint and each
  other; scripts/contrast.ts reports WCAG contrast and quest-colour
  distances, contrast.test.ts enforces them in `bun run test`.
- No colour literals outside tokens.css (backdrops), semantic names only,
  so a light theme (R4) is one more token block.
- Desktop shell palette, window background, theme-color and manifest
  colours follow; /styleguide shows palette, fonts, radii and motion.

Logo and icons follow in R2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@antonsxh

Copy link
Copy Markdown
Owner Author

Design review of the after screenshots

I went through every before/after pair and the diff. The invisible groundwork is great — accent discipline is applied consistently, no colour literals outside tokens.css, the radius/motion tokens, Figtree for body copy and the contrast script are all keepers. But in its current state this PR makes the app look worse, not better — I wouldn't merge it yet. The before screenshots read calmer, more contrasty and more polished than the after ones on almost every page.

The problems, roughly by impact:

1. The quest colours don't work on the green ground (tokens.css L62-71)

  • --quest-red: #e3667f reads as rose/pink. The seeded "Launch my idea" quest therefore tints the whole app — pink card edges, a pink pill ring on the Focus hero, pink dot-grid blocks — into a watermelon/Christmas combination on forest green.
  • --quest-green #76b874 sits uncomfortably close to the mint accent; lime/olive/amber cluster together; most of them are desaturated and look muddy (salmon, khaki) on the green surfaces.
  • scripts/contrast.ts only measures lightness distance, so the test passes despite the perceptual clash.

Fix: push the hues apart and raise chroma (move red away from pink, green away from mint), and add an OKLCH hue-distance check to the contrast script.

2. The quest-colour left edge became a hook (DayTaskCard.svelte .task::before, same in OverdueList/BacklogList)

inset: -1px + border-left: 3px + border-radius: inherit pulls the 3px bar around the entire 18px corners. Zoomed in, every row looks like a round bracket "(", and together with the nearly invisible --border-soft it reads as a full-colour neon outline around each card. Before, the straight clipped bar read as a quiet spine.

Fix: keep the overlay narrow (3px wide on the left edge, left radii only) or use overflow: clip on the card — not a full-inset overlay. (AGENTS.md documents the current overlay as the pattern — update it together with the fix.)

3. The dot grid is sandpaper (tokens.css L215-216)

7px gap, 0.9px dots at 34%, plus 14% fill and a 45% border: in the styleguide and on the last-week calendar (pink block) it looks like dithered noise and the text on top loses readability.

Fix: wider gap (10–12px), softer dots (~20%), drop or reduce the 45% border — the 2px left edge already provides the structure.

4. Bricolage breaks the big timer clock (focus/+page.svelte .clock)

The hero clock is the most visible regression: 1:17:56 looks broken. I measured the bundled variable fonts — Bricolage does have tnum, but the tabular digits are narrow glyphs centred in a 629-unit advance box, so "1" floats in a huge side bearing, the non-tabular colon (262 units) breaks the rhythm, the colon dots are tiny relative to the digits, and the 7 has a swash. The old Inter clock was flawless.

Fix: use --font-sans (Figtree, whose tnum actually renders evenly) for the clock and probably the KPI numerals; keep Bricolage for titles.

5. Everything looks fogged behind glass

--border-soft dissolves on the green surfaces, time labels and muted text are very dark → the calendar and the review read flat and dim compared to before. Amber used to carry structure; now mint is (rightly) rare and everything else is one uniform mid-green. The 6% mint --today-tint over the full timeline column just becomes a milky wash (first Home screenshot).

Fix: lift --border-soft/--track a notch, step important grid labels up from --text-muted, make the today highlight a pointed marker (column header) instead of a surface wash, consider a darker --bg for card separation.

6. Focus page has no primary action

Pause and Complete are both ghost outlines — no anchor on the emptiest screen, contrary to the one-primary-per-screen principle. The accent is explicitly allowed on the primary action: Pause should be the filled mint button, Complete secondary/ghost.

Smaller things

  • Bricolage Q: on "Quests" (h1) the tail reads like an accidental underline artifact.
  • --tab-pill (text @ 11%) is the brightest element in the phone chrome and competes with "Start focus" — --selected-bg would calm it down.
  • Timer chip in the top bar: mint border + mint time = outlined-button look; an --accent-soft fill with a neutral border would feel calmer.

Verdict

Don't merge as-is: on current state the before design is clearly the better-looking one. The foundations are worth keeping, but quest palette, card edges, dot grid, clock font and overall contrast need another round before this is an upgrade.

@antonsxh antonsxh self-assigned this Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant