Skip to content

feat!: defaults refresh — deep lagoon palette, dark elevation, 14px type scale#312

Merged
bambamboole merged 1 commit into
mainfrom
feat/defaults-refresh
Jul 24, 2026
Merged

feat!: defaults refresh — deep lagoon palette, dark elevation, 14px type scale#312
bambamboole merged 1 commit into
mainfrom
feat/defaults-refresh

Conversation

@bambamboole

Copy link
Copy Markdown
Contributor

What & why

P3 of the UI overhaul — the defaults refresh. All previous phases shipped capability with the looks frozen; this PR is the one visual diff: a single edit to the token defaults in lattice.css (+ the type scale). Anyone attached to the old look can restore any value with a Theme or a plain --lt-* override — that escape hatch is what P0–P2 built.

The changes

  • Type scale: 12px base → 14px base (xs 12 · sm 13 · base 14 · lg 16 · xl 18 · 2xl 22 · 3xl 26 · 4xl 32), with looser line-heights. The old scale was compressed enough to read as timid.
  • Primary — "deep lagoon": the muddy forest-teal (oklch(0.48 0.092 182)) becomes a deeper, richer teal-cyan (oklch(0.51 0.12 195)). Commits harder to the teal identity instead of following the indigo-everywhere trend.
  • Neutrals: a whisper of cool tint (hue ~210–225, chroma ≤0.015) across canvas, borders, text, and shadows — reads designed rather than default-gray. Input borders are now one step darker than card borders so forms scan better.
  • Dark mode elevation — the biggest change: canvas 0.155, cards 0.195, popovers 0.225 (previously all 0.145 flat black), with brighter AA-checked semantic fills (the old dark danger was nearly invisible).
  • Charts anchor on the brand hue (chart-1 = lagoon) then spread across blue/amber/purple/red/green/olive/slate.
  • Contrast: all solid button fills hold ≥ 4.5:1 against their text in both modes (light success/info and dark danger were nudged specifically for this).

Before / after

Before After
Buttons (light) before after
Table (dark) before after
Form (dark) before after

(The p3-screenshots branch only hosts these images — delete it after merge.)

Verification

  • composer check (1377 tests incl. browser) and npm run check green; docs build green. No wire or API changes — this is CSS values only.

…, 14px type scale

The type scale steps up from a 12px to a 14px base with looser line-heights.
The primary becomes a deeper, richer lagoon teal; neutrals carry a whisper of
cool tint; shadows and the overlay are tinted to match. Dark mode gains real
elevation (canvas, surface, and popover at three depths) with brighter,
AA-contrast semantic fills. Charts anchor on the brand hue. Restore any old
value via a Theme or a plain --lt-* override.
@codecov

codecov Bot commented Jul 24, 2026

Copy link
Copy Markdown

Bundle Report

Changes will increase total bundle size by 173 bytes (0.01%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
lattice-workbench-esm 1.86MB 173 bytes (0.01%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: lattice-workbench-esm

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/app-*.css 173 bytes 84.26kB 0.21%

@codecov

codecov Bot commented Jul 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@bambamboole
bambamboole merged commit c054126 into main Jul 24, 2026
17 checks passed
@bambamboole
bambamboole deleted the feat/defaults-refresh branch July 24, 2026 21:57
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