Skip to content

Commit 28fa29a

Browse files
author
DevBot
committed
feat(ui,design): square the control geometry (--btn/badge-radius round -> radius-1) and add v4 dogfood-truthful mockups
1 parent 898fd85 commit 28fa29a

31 files changed

Lines changed: 1843 additions & 4 deletions

packages/ui/src/open-props-tokens.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,15 +132,15 @@
132132
═══════════════════════════════════════════════ */
133133
--btn-padding-x: var(--size-4);
134134
--btn-padding-y: var(--size-2);
135-
--btn-radius: var(--radius-round);
135+
--btn-radius: var(--radius-1);
136136
--btn-font-size: var(--font-size-0);
137137
--btn-font-weight: var(--font-weight-7);
138138
--btn-text-case: none;
139139
--card-padding: var(--size-6);
140140
--card-radius: var(--radius-1);
141141
--badge-padding-x: var(--size-2);
142142
--badge-padding-y: 2px;
143-
--badge-radius: var(--radius-round);
143+
--badge-radius: var(--radius-1);
144144
--badge-font-size: var(--font-size-00);
145145
--alert-padding: var(--size-4);
146146
--alert-radius: var(--radius-2);

packages/ui/src/open-props-tokens.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,15 @@ export const OPEN_PROPS_TOKEN_CSS = `/**
146146
═══════════════════════════════════════════════ */
147147
--btn-padding-x: var(--size-4);
148148
--btn-padding-y: var(--size-2);
149-
--btn-radius: var(--radius-round);
149+
--btn-radius: var(--radius-1);
150150
--btn-font-size: var(--font-size-0);
151151
--btn-font-weight: var(--font-weight-7);
152152
--btn-text-case: none;
153153
--card-padding: var(--size-6);
154154
--card-radius: var(--radius-1);
155155
--badge-padding-x: var(--size-2);
156156
--badge-padding-y: 2px;
157-
--badge-radius: var(--radius-round);
157+
--badge-radius: var(--radius-1);
158158
--badge-font-size: var(--font-size-00);
159159
--alert-padding: var(--size-4);
160160
--alert-radius: var(--radius-2);

www/design/mockups/v4/README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Design language v4 — View-Source Editorial, Squared
2+
3+
V4 keeps the v3 philosophy (kinetic two-voice type, outlined indices, one
4+
violet flood per page, standards marquee, spec annotation system) and fixes
5+
its geometry and its honesty. Two review findings drove it:
6+
7+
1. **Elliptical controls are retired.** The pill look came from the token
8+
layer itself — `open-props-tokens.css` set `--btn-radius` and
9+
`--badge-radius` to `--radius-round`. Both are now `--radius-1` (6px), so
10+
every button and badge in every consumer squares up from one edit. Cards
11+
already used `--radius-1`; terminals and callouts use `--radius-2` and the
12+
left-bar pattern.
13+
2. **Nothing in these mockups is hand-drawn.** Every element maps to a
14+
shipped `@openelement/ui` component and open-props tokens (the mapping
15+
table lives in `v4-14-design-system`). Hero artifacts are real product
16+
markup, not decorative diagrams; the site must be buildable from its own
17+
framework — that is the dogfood discipline.
18+
19+
Files (SVG source + rendered PNG, 1440px wide unless noted): the same
20+
fourteen templates as v3 — `v4-01` homepage hero, `v4-02` homepage fullpage,
21+
`v4-03` docs landing, `v4-04` guide page, `v4-05` architecture,
22+
`v4-06` apilist, `v4-07` roadmap, `v4-08` changelog, `v4-09` blog index,
23+
`v4-10` blog post, `v4-11` contributing, `v4-12` 404, `v4-13` mobile home
24+
(900×960), `v4-14` design system (rules + component mapping).
25+
26+
Geometry contract:
27+
28+
- Buttons/badges/stamps: `--radius-1` (6px). No `--radius-round` anywhere.
29+
- Panels/cards: `--radius-1`; code/terminal frames and callouts:
30+
`--radius-2` (8px) with the top edge-highlight or left bar.
31+
- Diagram nodes (timeline, package graph): squares, not circles. The only
32+
circles left in the system are terminal traffic lights (OS convention).
33+
34+
`v4-14-design-system` is the rules sheet of record. v3 in `../v3/` and v2
35+
in `../v2/` are kept for contrast; v4 supersedes both.
1.2 MB
Loading
Lines changed: 118 additions & 0 deletions
Loading
3.65 MB
Loading

0 commit comments

Comments
 (0)