Skip to content

feat: corner radius scale with a ratcheted gate (Feature #385) - #1162

Merged
grunion-ai merged 4 commits into
mainfrom
claude/radius-scale-1795209592
Nov 20, 2026
Merged

grunion-ai merged 4 commits into
mainfrom
claude/radius-scale-1795209592

Conversation

@grunion-ai

Copy link
Copy Markdown
Owner

Tracker: Feature #385 (https://weave.grunion.ai/w/weave/e/6e9b72c3-8ddc-4725-833e-9f4fb7a31d5a), part of Issue #1864.

What changed

  • Five radius steps, defined once at the top of public/style.css: --wv-radius-chip 4 px, --wv-radius-control 6 px, --wv-radius-surface 8 px, --wv-radius-panel 12 px, --wv-radius-pill 999 px. 50% for round things, 0 for flush edges.
  • Every border-radius in style.css (230 raw values, 30 distinct radii) now names a step; chip.css uses var(--wv-radius-chip, 4px) because applets and exports read it without style.css.
  • --tblr-border-radius, -sm, -lg and -pill alias the steps, so Tabler's buttons, inputs and cards follow the scale. --wv-pop-radius is gone; popovers use the surface step.
  • Menu rows inside a 4 px padded popover take the chip step, concentric with the 8 px surface.
  • DESIGN.md gains a Corners section (size classes, concentric, flush and one-radius rules). DEVELOPMENT.md lists the new ledger.
  • The applet's bug face draws 6 px to match the desktop button. The two checked-in mockups regenerate and define the scale they read.

Gate

test/radius-scale.test.mjs: the five steps exist once with their values; every other radius token is an alias of a step; a raw value that is not a step, 0, inherit or 50% counts against test/radius-baseline.json, which may only fall. Today: style.css 0, chip.css 0, status.css 5 (the status page loads neither stylesheet and keeps its Shapes section). Before: 230 raw declarations in style.css.

Visual check (1440 x 900, light and dark, computed top-left radius)

Surface Before After
#main, #dock, #view-pane panels 16 px 12 px
Table menu (.chip-pop) 14 px 8 px
Menu row inside it 8 px 4 px
Search box, record field row 8 px 6 px
New button (.btn-sm, Tabler -sm) 4 px 4 px, moves to the control step with Feature #387

Identical in both themes. Screenshots were taken of the table, the table menu, the View panel and the docked record before and after.

Tests

  • New gate green; the same gate on main's CSS counts 230 raw values against a baseline of 0, so it fails there.
  • 564 unit files targeted locally: green after pinning seven suites that asserted a raw radius (applet, chip-system, edit-field, pop-tokens, ui-contract, mockups).
  • 16 browser suites that read a radius, plus edge-collision and collision gates: 149 pass, 0 fail.

Kyle Adriany added 4 commits November 20, 2026 16:36
Five radius steps by element size, defined once at the top of
public/style.css: --wv-radius-chip 4 px, -control 6 px, -surface 8 px,
-panel 12 px and -pill 999 px, with 50% for round things and 0 for flush
edges. DESIGN.md gains a Corners section with the size classes and the
concentric, flush and one-radius rules.

- Every border-radius in style.css (230 raw values across 30 distinct
  radii) now names a step. Menu rows inside a 4 px padded popover take
  the chip step, concentric with the 8 px surface.
- --tblr-border-radius, -sm, -lg and -pill alias the steps, so Tabler's
  own buttons, inputs and cards follow the table; --wv-pop-radius is
  gone in favour of the surface step.
- chip.css writes var(--wv-radius-chip, 4px), since applets and exports
  read it without style.css.
- test/radius-scale.test.mjs refuses a raw radius and holds
  test/radius-baseline.json: 0 in style.css and chip.css, 5 in the
  status page's status.css, which loads neither stylesheet.

ponytail:
- status.css keeps its five raw radii (8, 6, 2 and 1 px) under the
  baseline. Upgrade path: alias them to steps with fallbacks once the
  status page's own Shapes section moves to the scale.

Change-Id: Ie67e5881c1702250eee8f49cc9726df0bd715602
- The applet's bug face draws the control step's 6 px, matching the
  desktop button it copies.
- The two checked-in mockups regenerate from chip.css.

No-changelog: changelog.d/radius-scale-385.md on this branch covers Feature #385
Change-Id: Ie97b3a1abdd1c18f10f08ca44ed8926002e743c5
No-changelog: changelog.d/radius-scale-385.md on this branch covers Feature #385
Change-Id: I7751b2897f9b7a11cc15d1d45351ff3477ac5534
…el step (Feature #385)

At the control step the 46 px weave mark's corner reached the top-left
pixel of the window, so an outside click at (4, 4) opened the docs
workspace. Tiles are objects, not controls: the 36 px workspace tiles
take 8 px and the 46 px mark 12 px, which keeps its hit area where it
was.

No-changelog: changelog.d/radius-scale-385.md on this branch covers Feature #385
Change-Id: I1b155425956607514c01a729f7c283895ba0b2fe
@grunion-ai
grunion-ai enabled auto-merge (squash) November 20, 2026 22:22
@grunion-ai
grunion-ai merged commit 2aa1818 into main Nov 20, 2026
17 checks passed
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