@brignano/design 0.8.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DECISIONS.md +175 -0
- package/DESIGN.md +345 -29
- package/README.md +15 -10
- package/components.css +175 -61
- package/icons/LICENSE +43 -0
- package/icons/arrow-down.svg +15 -0
- package/icons/arrow-left.svg +15 -0
- package/icons/arrow-right.svg +15 -0
- package/icons/arrow-up-down.svg +17 -0
- package/icons/arrow-up.svg +15 -0
- package/icons/bell.svg +15 -0
- package/icons/calendar.svg +17 -0
- package/icons/check.svg +14 -0
- package/icons/chevron-down.svg +14 -0
- package/icons/chevron-left.svg +14 -0
- package/icons/chevron-right.svg +14 -0
- package/icons/chevron-up.svg +14 -0
- package/icons/circle-check.svg +15 -0
- package/icons/circle-help.svg +16 -0
- package/icons/circle-x.svg +16 -0
- package/icons/clock.svg +15 -0
- package/icons/copy.svg +15 -0
- package/icons/download.svg +16 -0
- package/icons/ellipsis-vertical.svg +16 -0
- package/icons/ellipsis.svg +16 -0
- package/icons/external-link.svg +16 -0
- package/icons/eye-off.svg +17 -0
- package/icons/eye.svg +15 -0
- package/icons/funnel.svg +14 -0
- package/icons/house.svg +15 -0
- package/icons/info.svg +16 -0
- package/icons/link.svg +15 -0
- package/icons/lock.svg +15 -0
- package/icons/log-out.svg +16 -0
- package/icons/map-pin.svg +15 -0
- package/icons/menu.svg +16 -0
- package/icons/minus.svg +14 -0
- package/icons/monitor.svg +16 -0
- package/icons/moon.svg +14 -0
- package/icons/pencil.svg +15 -0
- package/icons/plus.svg +15 -0
- package/icons/refresh-cw.svg +17 -0
- package/icons/search.svg +15 -0
- package/icons/settings.svg +15 -0
- package/icons/sun.svg +22 -0
- package/icons/trash-2.svg +18 -0
- package/icons/triangle-alert.svg +16 -0
- package/icons/undo-2.svg +15 -0
- package/icons/upload.svg +16 -0
- package/icons/user.svg +15 -0
- package/icons/x.svg +15 -0
- package/package.json +3 -1
- package/product-page.css +119 -55
- package/tailwind.css +26 -0
- package/templates/app-shell.css +346 -0
- package/templates/article.css +7 -7
- package/templates/changelog.css +2 -2
- package/templates/error.css +81 -0
- package/templates/legal.css +3 -3
- package/templates/settings.css +95 -0
- package/tokens.css +180 -16
package/icons/sun.svg
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<!-- @license lucide-static v1.60.0 - ISC -->
|
|
2
|
+
<svg
|
|
3
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
4
|
+
width="24"
|
|
5
|
+
height="24"
|
|
6
|
+
viewBox="0 0 24 24"
|
|
7
|
+
fill="none"
|
|
8
|
+
stroke="currentColor"
|
|
9
|
+
stroke-width="2"
|
|
10
|
+
stroke-linecap="round"
|
|
11
|
+
stroke-linejoin="round"
|
|
12
|
+
>
|
|
13
|
+
<circle cx="12" cy="12" r="4" />
|
|
14
|
+
<path d="M12 2v2" />
|
|
15
|
+
<path d="M12 20v2" />
|
|
16
|
+
<path d="m4.93 4.93 1.41 1.41" />
|
|
17
|
+
<path d="m17.66 17.66 1.41 1.41" />
|
|
18
|
+
<path d="M2 12h2" />
|
|
19
|
+
<path d="M20 12h2" />
|
|
20
|
+
<path d="m6.34 17.66-1.41 1.41" />
|
|
21
|
+
<path d="m19.07 4.93-1.41 1.41" />
|
|
22
|
+
</svg>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<!-- @license lucide-static v1.60.0 - ISC -->
|
|
2
|
+
<svg
|
|
3
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
4
|
+
width="24"
|
|
5
|
+
height="24"
|
|
6
|
+
viewBox="0 0 24 24"
|
|
7
|
+
fill="none"
|
|
8
|
+
stroke="currentColor"
|
|
9
|
+
stroke-width="2"
|
|
10
|
+
stroke-linecap="round"
|
|
11
|
+
stroke-linejoin="round"
|
|
12
|
+
>
|
|
13
|
+
<path d="M10 11v6" />
|
|
14
|
+
<path d="M14 11v6" />
|
|
15
|
+
<path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" />
|
|
16
|
+
<path d="M3 6h18" />
|
|
17
|
+
<path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" />
|
|
18
|
+
</svg>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!-- @license lucide-static v1.60.0 - ISC -->
|
|
2
|
+
<svg
|
|
3
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
4
|
+
width="24"
|
|
5
|
+
height="24"
|
|
6
|
+
viewBox="0 0 24 24"
|
|
7
|
+
fill="none"
|
|
8
|
+
stroke="currentColor"
|
|
9
|
+
stroke-width="2"
|
|
10
|
+
stroke-linecap="round"
|
|
11
|
+
stroke-linejoin="round"
|
|
12
|
+
>
|
|
13
|
+
<path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3" />
|
|
14
|
+
<path d="M12 9v4" />
|
|
15
|
+
<path d="M12 17h.01" />
|
|
16
|
+
</svg>
|
package/icons/undo-2.svg
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!-- @license lucide-static v1.60.0 - ISC -->
|
|
2
|
+
<svg
|
|
3
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
4
|
+
width="24"
|
|
5
|
+
height="24"
|
|
6
|
+
viewBox="0 0 24 24"
|
|
7
|
+
fill="none"
|
|
8
|
+
stroke="currentColor"
|
|
9
|
+
stroke-width="2"
|
|
10
|
+
stroke-linecap="round"
|
|
11
|
+
stroke-linejoin="round"
|
|
12
|
+
>
|
|
13
|
+
<path d="M9 14 4 9l5-5" />
|
|
14
|
+
<path d="M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11" />
|
|
15
|
+
</svg>
|
package/icons/upload.svg
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!-- @license lucide-static v1.60.0 - ISC -->
|
|
2
|
+
<svg
|
|
3
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
4
|
+
width="24"
|
|
5
|
+
height="24"
|
|
6
|
+
viewBox="0 0 24 24"
|
|
7
|
+
fill="none"
|
|
8
|
+
stroke="currentColor"
|
|
9
|
+
stroke-width="2"
|
|
10
|
+
stroke-linecap="round"
|
|
11
|
+
stroke-linejoin="round"
|
|
12
|
+
>
|
|
13
|
+
<path d="M12 3v12" />
|
|
14
|
+
<path d="m17 8-5-5-5 5" />
|
|
15
|
+
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" />
|
|
16
|
+
</svg>
|
package/icons/user.svg
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!-- @license lucide-static v1.60.0 - ISC -->
|
|
2
|
+
<svg
|
|
3
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
4
|
+
width="24"
|
|
5
|
+
height="24"
|
|
6
|
+
viewBox="0 0 24 24"
|
|
7
|
+
fill="none"
|
|
8
|
+
stroke="currentColor"
|
|
9
|
+
stroke-width="2"
|
|
10
|
+
stroke-linecap="round"
|
|
11
|
+
stroke-linejoin="round"
|
|
12
|
+
>
|
|
13
|
+
<path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" />
|
|
14
|
+
<circle cx="12" cy="7" r="4" />
|
|
15
|
+
</svg>
|
package/icons/x.svg
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!-- @license lucide-static v1.60.0 - ISC -->
|
|
2
|
+
<svg
|
|
3
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
4
|
+
width="24"
|
|
5
|
+
height="24"
|
|
6
|
+
viewBox="0 0 24 24"
|
|
7
|
+
fill="none"
|
|
8
|
+
stroke="currentColor"
|
|
9
|
+
stroke-width="2"
|
|
10
|
+
stroke-linecap="round"
|
|
11
|
+
stroke-linejoin="round"
|
|
12
|
+
>
|
|
13
|
+
<path d="M18 6 6 18" />
|
|
14
|
+
<path d="m6 6 12 12" />
|
|
15
|
+
</svg>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brignano/design",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Shared design system for brignano surfaces — colour, type, space, shape, motion.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"components.css",
|
|
21
21
|
"product-page.css",
|
|
22
22
|
"templates/",
|
|
23
|
+
"icons/",
|
|
23
24
|
"scripts/fold.mjs",
|
|
24
25
|
"scripts/email-tokens.mjs",
|
|
25
26
|
"scripts/colour.mjs",
|
|
@@ -34,6 +35,7 @@
|
|
|
34
35
|
"./components.css": "./components.css",
|
|
35
36
|
"./product-page.css": "./product-page.css",
|
|
36
37
|
"./templates/*": "./templates/*",
|
|
38
|
+
"./icons/*": "./icons/*",
|
|
37
39
|
"./scripts/email-tokens.mjs": "./scripts/email-tokens.mjs"
|
|
38
40
|
},
|
|
39
41
|
"sideEffects": [
|
package/product-page.css
CHANGED
|
@@ -27,18 +27,49 @@
|
|
|
27
27
|
* .pp-footer brand and links, then the legal line: © year, owner, and
|
|
28
28
|
* the product's Privacy and Terms links if it has them
|
|
29
29
|
*
|
|
30
|
-
* Each product looks like itself (ADR-
|
|
30
|
+
* Each product looks like itself (ADR-0017). This file is two things:
|
|
31
31
|
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
32
|
+
* SHARED what every page needs and nobody should rewrite: the skip
|
|
33
|
+
* link, .pp-wrap, the status, the buttons, the clip's Pause
|
|
34
|
+
* control and captions, the form and its states, .pp-done,
|
|
35
|
+
* the prices and the legal line. Sections marked "shared".
|
|
36
|
+
* STARTING the header, hero, stage, bands, story, close and footer
|
|
37
|
+
* POINT layout. They work as they are, and a product overrides them
|
|
38
|
+
* in its own stylesheet, after this one, to build its look.
|
|
39
|
+
* Sections marked "starting point".
|
|
40
|
+
*
|
|
41
|
+
* A product's look is five choices, written under "Look" in its BRIEF.md,
|
|
42
|
+
* and no two products pick the same value for any of them (DESIGN.md §13
|
|
43
|
+
* keeps the register): a ground, a voice for the thesis, a shape, a
|
|
44
|
+
* composition, and one piece of its own interface used on the page itself.
|
|
45
|
+
* This file gives the attributes that are common to all of them:
|
|
46
|
+
*
|
|
47
|
+
* data-mark on .pp teal | violet | magenta: the product's mark. It
|
|
48
|
+
* inks the glyph, the hero rule, the stage behind
|
|
49
|
+
* the proof and the step numerals, and FILLS the one
|
|
50
|
+
* primary button (--mark-fill under --on-mark).
|
|
51
|
+
* Never a link, text or state.
|
|
52
|
+
* data-button="ink" the primary button fills with ink instead of the
|
|
53
|
+
* mark. A page with no data-mark is ink too.
|
|
54
|
+
* data-ground="mark" the page ground is the mark's wash (--mark-surface)
|
|
55
|
+
* instead of --bg.
|
|
56
|
+
* data-theme on .pp pins a theme when the look IS a theme (a console
|
|
57
|
+
* that is always dark). Otherwise leave it off: the
|
|
58
|
+
* page follows the visitor.
|
|
35
59
|
* data-layout on .pp-hero split (default) | mirror (proof on the left) |
|
|
36
|
-
* stage (centred words and actions, the proof full
|
|
60
|
+
* stage (centred words and actions, the proof full
|
|
61
|
+
* width under them)
|
|
37
62
|
* the proof's frame bare, .pp-device (a phone) or .pp-browser (a window)
|
|
38
63
|
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
64
|
+
* Links, the focus ring and secondary buttons stay as they are on every
|
|
65
|
+
* page; inside the product's app, actions stay cobalt (ADR-0014).
|
|
66
|
+
*
|
|
67
|
+
* The skeleton is previews/product-page.html. Three worked examples, one
|
|
68
|
+
* per product, show what a look written over this file is like:
|
|
69
|
+
* previews/product-page-example.html (Driftwood), product-page-guidebook.html
|
|
70
|
+
* and product-page-sites.html. Copy the skeleton, keep the order, replace
|
|
71
|
+
* the words and pictures, then write the product's own look over it.
|
|
72
|
+
* scripts/fold.mjs checks the first phone screen.
|
|
42
73
|
* Rules (DESIGN.md §13):
|
|
43
74
|
*
|
|
44
75
|
* - One primary action per page (.pp-button). Everything else is secondary.
|
|
@@ -60,15 +91,38 @@
|
|
|
60
91
|
is the field behind the hero proof, a faint wash of the mark. */
|
|
61
92
|
--pp-mark: var(--ink);
|
|
62
93
|
--pp-stage: color-mix(in srgb, var(--pp-mark) 8%, transparent);
|
|
94
|
+
/* The primary button's fill (ADR-0017): ink until data-mark picks a mark.
|
|
95
|
+
Ink steps toward the ground on hover and press, in both themes. */
|
|
96
|
+
--pp-fill: var(--ink);
|
|
97
|
+
--pp-fill-hover: var(--n-800);
|
|
98
|
+
--pp-fill-pressed: var(--n-700);
|
|
99
|
+
--pp-on-fill: var(--card);
|
|
63
100
|
background: var(--bg);
|
|
64
101
|
color: var(--ink);
|
|
65
102
|
font: var(--text-base) / 1.6 var(--sans);
|
|
66
103
|
font-variant-numeric: tabular-nums;
|
|
67
104
|
-webkit-font-smoothing: antialiased;
|
|
68
105
|
}
|
|
69
|
-
.pp
|
|
70
|
-
|
|
71
|
-
.pp[data-mark
|
|
106
|
+
/* data-mark on .pp or on an ancestor (<html data-mark="teal">, the same
|
|
107
|
+
attribute the app uses) picks the mark; tokens.css resolves it. */
|
|
108
|
+
.pp[data-mark], [data-mark] .pp {
|
|
109
|
+
--pp-mark: var(--mark-current);
|
|
110
|
+
--pp-fill: var(--mark-fill);
|
|
111
|
+
--pp-fill-hover: var(--mark-fill-hover);
|
|
112
|
+
--pp-fill-pressed: var(--mark-fill-pressed);
|
|
113
|
+
--pp-on-fill: var(--on-mark);
|
|
114
|
+
}
|
|
115
|
+
/* data-button="ink" keeps the button ink on a marked page. Declared after
|
|
116
|
+
the rule above, at the same specificity, so it wins. */
|
|
117
|
+
.pp[data-button="ink"], [data-button="ink"] .pp {
|
|
118
|
+
--pp-fill: var(--ink);
|
|
119
|
+
--pp-fill-hover: var(--n-800);
|
|
120
|
+
--pp-fill-pressed: var(--n-700);
|
|
121
|
+
--pp-on-fill: var(--card);
|
|
122
|
+
}
|
|
123
|
+
/* data-ground="mark" washes the whole page in the mark (--mark-surface is
|
|
124
|
+
opaque, and --ink, --ink-soft and --i-ink all read on it). */
|
|
125
|
+
.pp[data-ground="mark"] { background: var(--mark-surface); }
|
|
72
126
|
/* On <body>, drop the browser's 8px margin so the sticky header and every band
|
|
73
127
|
run to the screen edges. On a wrapper, the body is the site's business. */
|
|
74
128
|
body.pp { margin: 0; }
|
|
@@ -77,27 +131,27 @@ body.pp { margin: 0; }
|
|
|
77
131
|
/* The content column every band lines up on. */
|
|
78
132
|
.pp-wrap { max-width: var(--pp-width); margin: 0 auto; padding: 0 var(--pp-gutter); }
|
|
79
133
|
|
|
80
|
-
/* ── Skip link
|
|
81
|
-
.pp-skip { position: absolute; left: var(--s4); top: -100px; z-index:
|
|
134
|
+
/* ── Skip link · shared ────────────────────────────────────────────────── */
|
|
135
|
+
.pp-skip { position: absolute; left: var(--s4); top: -100px; z-index: var(--z-float); padding: var(--s2) var(--s3);
|
|
82
136
|
background: var(--card); color: var(--ink); border-radius: var(--radius-sm); box-shadow: var(--shadow-2); }
|
|
83
137
|
.pp-skip:focus { top: var(--s3); }
|
|
84
138
|
|
|
85
|
-
/* ── Header
|
|
139
|
+
/* ── Header · starting point ───────────────────────────────────────────── */
|
|
86
140
|
.pp-header {
|
|
87
|
-
position: sticky; top: 0; z-index:
|
|
141
|
+
position: sticky; top: 0; z-index: var(--z-sticky);
|
|
88
142
|
background: var(--surface-sticky); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
|
|
89
143
|
border-bottom: 1px solid var(--line);
|
|
90
144
|
}
|
|
91
145
|
.pp-header > .pp-wrap { display: flex; align-items: center; gap: var(--s5); min-height: 64px; }
|
|
92
146
|
.pp-brand {
|
|
93
147
|
display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
|
|
94
|
-
font-weight:
|
|
148
|
+
font-weight: var(--weight-semibold); font-size: var(--text-lg); letter-spacing: var(--tracking-title);
|
|
95
149
|
}
|
|
96
150
|
.pp-brand img, .pp-brand svg { width: 26px; height: 26px; }
|
|
97
151
|
/* An inline glyph drawn in currentColor takes the product's mark. */
|
|
98
152
|
.pp-brand svg { color: var(--pp-mark); }
|
|
99
153
|
.pp-nav { display: flex; align-items: center; gap: var(--s5); margin-left: auto; }
|
|
100
|
-
.pp-nav a { color: var(--ink-soft); text-decoration: none; font-size: var(--text-sm); font-weight:
|
|
154
|
+
.pp-nav a { color: var(--ink-soft); text-decoration: none; font-size: var(--text-sm); font-weight: var(--weight-medium); }
|
|
101
155
|
.pp-nav a:hover { color: var(--ink); }
|
|
102
156
|
.pp-header-actions { display: flex; align-items: center; gap: var(--s3); }
|
|
103
157
|
.pp-nav + .pp-header-actions { margin-left: 0; }
|
|
@@ -106,8 +160,14 @@ body.pp { margin: 0; }
|
|
|
106
160
|
.pp-nav + .pp-header-actions so it outranks the margin-left: 0 above. */
|
|
107
161
|
@media (max-width: 860px) { .pp-nav { display: none; } .pp-nav + .pp-header-actions { margin-left: auto; } }
|
|
108
162
|
@media (max-width: 480px) { .pp-header .pp-status { display: none; } }
|
|
163
|
+
/* On a touch screen the brand link (header and footer) and the footer's links
|
|
164
|
+
are 44px targets (DESIGN.md §10), like .pp-button below; a mouse keeps the
|
|
165
|
+
tighter rows. The header's .pp-nav links are not covered yet. */
|
|
166
|
+
@media (pointer: coarse) {
|
|
167
|
+
.pp-header .pp-brand, .pp-footer .pp-brand, .pp-footer nav a { min-height: 44px; display: inline-flex; align-items: center; }
|
|
168
|
+
}
|
|
109
169
|
|
|
110
|
-
/* ── Status
|
|
170
|
+
/* ── Status · shared ───────────────────────────────────────────────────
|
|
111
171
|
Where the product stands, as a word with a dot: "Pilot open", "In
|
|
112
172
|
development", "Closed beta". The dot takes a state hue only when the state
|
|
113
173
|
asks something of the reader (DESIGN.md §3): open = success (you can join),
|
|
@@ -115,26 +175,27 @@ body.pp { margin: 0; }
|
|
|
115
175
|
neutral. The word always carries the meaning on its own. */
|
|
116
176
|
.pp-status {
|
|
117
177
|
display: inline-flex; align-items: center; gap: var(--s2); white-space: nowrap;
|
|
118
|
-
font: 500 var(--text-xs) / 1 var(--mono); letter-spacing:
|
|
178
|
+
font: 500 var(--text-xs) / 1 var(--mono); letter-spacing: var(--tracking-caps); text-transform: uppercase;
|
|
119
179
|
color: var(--ink-soft); padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 999px;
|
|
120
180
|
}
|
|
121
181
|
.pp-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--slate); flex: none; }
|
|
122
182
|
.pp-status[data-state="open"]::before { background: var(--success); box-shadow: 0 0 0 3px var(--success-surface); }
|
|
123
183
|
.pp-status[data-state="soon"]::before { background: var(--attention); box-shadow: 0 0 0 3px var(--attention-surface); }
|
|
124
184
|
|
|
125
|
-
/* ── Buttons
|
|
126
|
-
.pp-button is the page's one primary action
|
|
127
|
-
|
|
185
|
+
/* ── Buttons · shared ──────────────────────────────────────────────────
|
|
186
|
+
.pp-button is the page's one primary action, filled with the product's
|
|
187
|
+
mark (or ink, see .pp above). .is-secondary is everything else. Works on
|
|
188
|
+
<a> and <button>. The focus ring stays --i-ink on every page. */
|
|
128
189
|
.pp-button {
|
|
129
190
|
display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); box-sizing: border-box;
|
|
130
191
|
font: 600 var(--text-base) / 1.2 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer;
|
|
131
|
-
padding: 13px 22px; border-radius: 8px; border: 1px solid var(--
|
|
132
|
-
background: var(--
|
|
192
|
+
padding: 13px 22px; border-radius: 8px; border: 1px solid var(--pp-fill);
|
|
193
|
+
background: var(--pp-fill); color: var(--pp-on-fill);
|
|
133
194
|
transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
|
|
134
195
|
}
|
|
135
|
-
.pp-button:hover { background: var(--
|
|
136
|
-
.pp-button:active { background: var(--
|
|
137
|
-
.pp-button.is-secondary { background: transparent; color: var(--ink); border-color: var(--line-control); font-weight:
|
|
196
|
+
.pp-button:hover { background: var(--pp-fill-hover); border-color: var(--pp-fill-hover); color: var(--pp-on-fill); }
|
|
197
|
+
.pp-button:active { background: var(--pp-fill-pressed); border-color: var(--pp-fill-pressed); }
|
|
198
|
+
.pp-button.is-secondary { background: transparent; color: var(--ink); border-color: var(--line-control); font-weight: var(--weight-medium); }
|
|
138
199
|
.pp-button.is-secondary:hover { background: var(--surface-hover); color: var(--ink); }
|
|
139
200
|
.pp-button.is-secondary:active { background: var(--surface-active); }
|
|
140
201
|
.pp-button.is-small { font-size: var(--text-sm); padding: 8px 14px; }
|
|
@@ -147,7 +208,7 @@ body.pp { margin: 0; }
|
|
|
147
208
|
.pp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin: 0; }
|
|
148
209
|
.pp-note { margin: var(--s3) 0 0; font-size: var(--text-sm); color: var(--ink-soft); }
|
|
149
210
|
|
|
150
|
-
/* ── Hero
|
|
211
|
+
/* ── Hero · starting point ─────────────────────────────────────────────
|
|
151
212
|
Split into .pp-hero-head (status, thesis), the proof (.pp-media), and
|
|
152
213
|
.pp-hero-body (subhead, actions, note). On a phone they stack in that
|
|
153
214
|
order, so the proof is on the first screen; from 960px the head and body
|
|
@@ -183,11 +244,11 @@ body.pp { margin: 0; }
|
|
|
183
244
|
/* Who it's for, in a few words, above the thesis: "For teams running on AWS".
|
|
184
245
|
A stranger decides "is this for me?" before reading anything else. Ink,
|
|
185
246
|
not cobalt: cobalt says "you can act on this", and this is a label. */
|
|
186
|
-
.pp-audience { margin: 0 0 var(--s2); font-size: var(--text-base); font-weight:
|
|
247
|
+
.pp-audience { margin: 0 0 var(--s2); font-size: var(--text-base); font-weight: var(--weight-semibold); line-height: var(--leading-ui); color: var(--ink-soft); }
|
|
187
248
|
/* The thesis names the outcome in 8 words or fewer. On a phone it steps down
|
|
188
249
|
from --text-4xl so it takes two or three lines, not five. */
|
|
189
250
|
.pp-thesis {
|
|
190
|
-
font-size: min(var(--text-4xl), 1.25rem + 4vw); font-weight:
|
|
251
|
+
font-size: min(var(--text-4xl), 1.25rem + 4vw); font-weight: var(--weight-semibold); line-height: 1.04; letter-spacing: -0.035em;
|
|
191
252
|
margin: 0 0 var(--s4); max-width: 16ch; text-wrap: balance;
|
|
192
253
|
}
|
|
193
254
|
.pp-hero-head .pp-thesis { margin-bottom: 0; }
|
|
@@ -241,7 +302,7 @@ body.pp { margin: 0; }
|
|
|
241
302
|
}
|
|
242
303
|
.pp-browser > :not(.pp-browser-bar) { display: block; width: 100%; height: auto; }
|
|
243
304
|
|
|
244
|
-
/* ── Proof media: a clip, a phone frame, the steps it shows
|
|
305
|
+
/* ── Proof media: a clip, a phone frame, the steps it shows · shared ──────
|
|
245
306
|
The proof slot holds an <img> or a <video>, bare or in a .pp-device phone
|
|
246
307
|
frame, and optionally a row of .pp-steps naming what the clip shows.
|
|
247
308
|
|
|
@@ -266,7 +327,7 @@ body.pp { margin: 0; }
|
|
|
266
327
|
and lights the step the clip is on. Without the script, or with reduced
|
|
267
328
|
motion, the poster stands still, so the poster is the finished state. */
|
|
268
329
|
.pp-media > img, .pp-media > video {
|
|
269
|
-
display: block; width: 100%; height: auto; background: var(--card);
|
|
330
|
+
display: block; box-sizing: border-box; width: 100%; height: auto; background: var(--card);
|
|
270
331
|
border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-3);
|
|
271
332
|
}
|
|
272
333
|
|
|
@@ -294,7 +355,7 @@ body.pp { margin: 0; }
|
|
|
294
355
|
}
|
|
295
356
|
.pp-steps > li {
|
|
296
357
|
counter-increment: pp-step; padding-top: var(--s2); border-top: 2px solid var(--line-strong);
|
|
297
|
-
font: 500 var(--text-xs) / 1.4 var(--mono); letter-spacing:
|
|
358
|
+
font: 500 var(--text-xs) / 1.4 var(--mono); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--ink-soft);
|
|
298
359
|
transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
|
|
299
360
|
}
|
|
300
361
|
.pp-steps > li::before { content: counter(pp-step) " "; color: var(--ink); }
|
|
@@ -306,7 +367,7 @@ body.pp { margin: 0; }
|
|
|
306
367
|
needs a way to stop it (WCAG 2.2.2). Hidden until the script wires it. */
|
|
307
368
|
.pp-play {
|
|
308
369
|
display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; cursor: pointer;
|
|
309
|
-
font: 500 var(--text-xs) / 1 var(--mono); letter-spacing:
|
|
370
|
+
font: 500 var(--text-xs) / 1 var(--mono); letter-spacing: var(--tracking-caps); text-transform: uppercase;
|
|
310
371
|
padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-control);
|
|
311
372
|
background: transparent; color: var(--ink);
|
|
312
373
|
}
|
|
@@ -316,13 +377,13 @@ body.pp { margin: 0; }
|
|
|
316
377
|
.pp-play[hidden] { display: none; }
|
|
317
378
|
@media (pointer: coarse) { .pp-play { min-height: 44px; } }
|
|
318
379
|
|
|
319
|
-
/* ── Bands: what you get, how it works
|
|
380
|
+
/* ── Bands: what you get, how it works · starting point ────────────────
|
|
320
381
|
A band is a hairline, a short title that is a sentence, and a grid. */
|
|
321
382
|
.pp-band { padding: var(--s8) 0; border-top: 1px solid var(--line); scroll-margin-top: 64px; }
|
|
322
383
|
@media (max-width: 560px) { .pp-band { padding: var(--s7) 0; } }
|
|
323
384
|
.pp-title {
|
|
324
|
-
font-size: clamp(var(--text-xl), 1rem + 2vw, var(--text-3xl)); font-weight:
|
|
325
|
-
letter-spacing: -
|
|
385
|
+
font-size: clamp(var(--text-xl), 1rem + 2vw, var(--text-3xl)); font-weight: var(--weight-semibold); line-height: var(--leading-display);
|
|
386
|
+
letter-spacing: var(--tracking-display); margin: 0; max-width: 24ch; text-wrap: balance;
|
|
326
387
|
}
|
|
327
388
|
|
|
328
389
|
/* What you get: three cards. Each is a small picture of the product doing the
|
|
@@ -335,7 +396,7 @@ body.pp { margin: 0; }
|
|
|
335
396
|
.pp-get-media { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; display: grid; place-items: center;
|
|
336
397
|
background: var(--bg); border-bottom: 1px solid var(--line); }
|
|
337
398
|
.pp-get-media > img, .pp-get-media > video { display: block; width: 100%; height: 100%; object-fit: cover; }
|
|
338
|
-
.pp-get h3 { margin: var(--s4) var(--s4) 4px; font-size: var(--text-lg); font-weight:
|
|
399
|
+
.pp-get h3 { margin: var(--s4) var(--s4) 4px; font-size: var(--text-lg); font-weight: var(--weight-semibold); line-height: var(--leading-title); letter-spacing: var(--tracking-title); }
|
|
339
400
|
.pp-get p { margin: 0 var(--s4) var(--s4); color: var(--ink-soft); }
|
|
340
401
|
|
|
341
402
|
/* Compare: this product beside the thing the reader would otherwise use
|
|
@@ -347,7 +408,7 @@ body.pp { margin: 0; }
|
|
|
347
408
|
.pp-compare > div { padding: var(--s5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); }
|
|
348
409
|
.pp-compare > .is-ours { border-top: 4px solid var(--pp-mark); box-shadow: var(--shadow-2); }
|
|
349
410
|
@media (max-width: 719px) { .pp-compare > .is-ours { order: -1; } }
|
|
350
|
-
.pp-compare h3 { margin: 0 0 var(--s3); font-size: var(--text-lg); font-weight:
|
|
411
|
+
.pp-compare h3 { margin: 0 0 var(--s3); font-size: var(--text-lg); font-weight: var(--weight-semibold); line-height: var(--leading-title); letter-spacing: var(--tracking-title); }
|
|
351
412
|
.pp-compare > :not(.is-ours) h3 { color: var(--ink-soft); }
|
|
352
413
|
.pp-compare ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
|
|
353
414
|
.pp-compare li { padding-top: var(--s2); border-top: 1px solid var(--line); }
|
|
@@ -361,11 +422,11 @@ body.pp { margin: 0; }
|
|
|
361
422
|
content: counter(pp-how); grid-row: span 2; display: inline-grid; place-items: center; width: 28px; height: 28px;
|
|
362
423
|
border-radius: 50%; border: 2px solid var(--pp-mark); font: 600 var(--text-sm) / 1 var(--mono); color: var(--ink);
|
|
363
424
|
}
|
|
364
|
-
.pp-how h3 { margin: 0; font-size: var(--text-lg); font-weight:
|
|
425
|
+
.pp-how h3 { margin: 0; font-size: var(--text-lg); font-weight: var(--weight-semibold); line-height: var(--leading-title); letter-spacing: var(--tracking-title); }
|
|
365
426
|
.pp-how p { margin: 0; color: var(--ink-soft); }
|
|
366
427
|
.pp-band .pp-figure { margin-top: var(--s6); }
|
|
367
428
|
|
|
368
|
-
/* ── Story
|
|
429
|
+
/* ── Story · starting point ────────────────────────────────────────────
|
|
369
430
|
Optional, and at most one chapter on a product page (the longer argument
|
|
370
431
|
belongs in the docs). An <ol> of chapters. Each opens on a hairline with "01 / Label" in mono,
|
|
371
432
|
then a headline that is a sentence, then a short body and an optional
|
|
@@ -377,11 +438,11 @@ body.pp { margin: 0; }
|
|
|
377
438
|
.pp-chapter > .pp-wrap { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
|
|
378
439
|
.pp-chapter-body { grid-column: 2; }
|
|
379
440
|
}
|
|
380
|
-
.pp-label { margin: 0; padding-top: 0.4em; font: 500 var(--text-xs) / 1.4 var(--mono); letter-spacing:
|
|
441
|
+
.pp-label { margin: 0; padding-top: 0.4em; font: 500 var(--text-xs) / 1.4 var(--mono); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--ink-soft); }
|
|
381
442
|
.pp-label::before { content: counter(pp-chapter, decimal-leading-zero) " / "; color: var(--ink); }
|
|
382
443
|
.pp-chapter h2 {
|
|
383
|
-
font-size: clamp(var(--text-xl), 1rem + 2vw, var(--text-3xl)); font-weight:
|
|
384
|
-
letter-spacing: -
|
|
444
|
+
font-size: clamp(var(--text-xl), 1rem + 2vw, var(--text-3xl)); font-weight: var(--weight-semibold); line-height: var(--leading-display);
|
|
445
|
+
letter-spacing: var(--tracking-display); margin: 0 0 var(--s4); max-width: 22ch; text-wrap: balance;
|
|
385
446
|
}
|
|
386
447
|
.pp-chapter-body > p { margin: 0 0 var(--s4); max-width: 62ch; color: var(--ink-soft); font-size: var(--text-lg); line-height: 1.55; }
|
|
387
448
|
.pp-chapter-body > p:last-child { margin-bottom: 0; }
|
|
@@ -389,7 +450,7 @@ body.pp { margin: 0; }
|
|
|
389
450
|
/* Two to four short points under a chapter: a ruled column each. */
|
|
390
451
|
.pp-points { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
|
|
391
452
|
.pp-points > li { border-top: 2px solid var(--ink); padding-top: var(--s3); }
|
|
392
|
-
.pp-points h3 { margin: 0 0 6px; font-size: var(--text-lg); font-weight:
|
|
453
|
+
.pp-points h3 { margin: 0 0 6px; font-size: var(--text-lg); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-title); }
|
|
393
454
|
.pp-points p { margin: 0; color: var(--ink-soft); }
|
|
394
455
|
|
|
395
456
|
/* A chapter's figure: a terminal, a screenshot, a small mock of the product. */
|
|
@@ -400,17 +461,17 @@ body.pp { margin: 0; }
|
|
|
400
461
|
padding: var(--s5); font: var(--text-sm) / 1.7 var(--mono); }
|
|
401
462
|
.pp-terminal code { font: inherit; }
|
|
402
463
|
|
|
403
|
-
/* ── Close
|
|
464
|
+
/* ── Close · starting point ────────────────────────────────────────────
|
|
404
465
|
The primary action once more, with the room a form needs. */
|
|
405
466
|
.pp-close { padding: var(--s8) 0 var(--s9); border-top: 1px solid var(--line); scroll-margin-top: 64px; }
|
|
406
467
|
.pp-close > .pp-wrap { display: grid; gap: var(--s6); grid-template-columns: minmax(0, 1fr); }
|
|
407
468
|
@media (min-width: 960px) { .pp-close > .pp-wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
|
|
408
|
-
.pp-close h2 { font-size: clamp(var(--text-xl), 1rem + 2vw, var(--text-3xl)); font-weight:
|
|
469
|
+
.pp-close h2 { font-size: clamp(var(--text-xl), 1rem + 2vw, var(--text-3xl)); font-weight: var(--weight-semibold); line-height: var(--leading-display); letter-spacing: var(--tracking-display); margin: var(--s4) 0 var(--s3); text-wrap: balance; }
|
|
409
470
|
.pp-close .pp-subhead { margin-bottom: 0; }
|
|
410
471
|
.pp-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); padding: var(--s6); }
|
|
411
472
|
@media (max-width: 560px) { .pp-panel { padding: var(--s5) var(--s4); } }
|
|
412
473
|
|
|
413
|
-
/* ── Form
|
|
474
|
+
/* ── Form · shared ─────────────────────────────────────────────────────
|
|
414
475
|
The short form a close panel may need: a few .pp-field, then the primary
|
|
415
476
|
action in .pp-actions, then a .pp-note for the privacy line (or, after a
|
|
416
477
|
failed send, the error). Mark the optional fields with .pp-optional inside
|
|
@@ -428,8 +489,8 @@ body.pp { margin: 0; }
|
|
|
428
489
|
/* [hidden] is how the form gives way to .pp-done; display: grid would beat it. */
|
|
429
490
|
.pp-form[hidden], .pp-error[hidden], .pp-done[hidden] { display: none; }
|
|
430
491
|
.pp-field { display: grid; gap: 6px; min-width: 0; }
|
|
431
|
-
.pp-field > label { font-size: var(--text-sm); font-weight:
|
|
432
|
-
.pp-optional { font-weight:
|
|
492
|
+
.pp-field > label { font-size: var(--text-sm); font-weight: var(--weight-medium); line-height: var(--leading-ui); color: var(--ink); }
|
|
493
|
+
.pp-optional { font-weight: var(--weight-regular); color: var(--ink-soft); }
|
|
433
494
|
.pp-field input, .pp-field textarea {
|
|
434
495
|
box-sizing: border-box; width: 100%; margin: 0; min-width: 0;
|
|
435
496
|
font: var(--text-base) / 1.5 var(--sans); color: var(--ink);
|
|
@@ -445,15 +506,15 @@ body.pp { margin: 0; }
|
|
|
445
506
|
.pp-field input:focus-visible, .pp-field textarea:focus-visible { outline: 2px solid var(--i-ink); outline-offset: 2px; }
|
|
446
507
|
.pp-field input:disabled, .pp-field textarea:disabled { background: var(--surface-hover); color: var(--ink-soft); cursor: not-allowed; }
|
|
447
508
|
.pp-field [aria-invalid="true"], .pp-field [aria-invalid="true"]:hover { border-color: var(--danger); }
|
|
448
|
-
.pp-error { margin: 0; font-size: var(--text-sm); line-height:
|
|
509
|
+
.pp-error { margin: 0; font-size: var(--text-sm); line-height: var(--leading-ui); color: var(--danger-ink); }
|
|
449
510
|
/* A send error reuses the note under the button. */
|
|
450
511
|
.pp-note.is-error { color: var(--danger-ink); }
|
|
451
512
|
|
|
452
|
-
.pp-done h3 { margin: 0 0 var(--s2); font-size: var(--text-xl); font-weight:
|
|
513
|
+
.pp-done h3 { margin: 0 0 var(--s2); font-size: var(--text-xl); font-weight: var(--weight-semibold); line-height: 1.25; letter-spacing: -0.015em; }
|
|
453
514
|
.pp-done p { margin: 0; color: var(--ink-soft); }
|
|
454
515
|
.pp-done:focus { outline: none; }
|
|
455
516
|
.pp-done:focus-visible { outline: 2px solid var(--i-ink); outline-offset: 4px; border-radius: var(--radius-sm); }
|
|
456
|
-
/* ── Price
|
|
517
|
+
/* ── Price · shared ────────────────────────────────────────────────────
|
|
457
518
|
Two to four ways to pay, as a <dl>: one <div> per option, the price as <dt>,
|
|
458
519
|
one line of condition as <dd>. Ruled like .pp-points, narrower so three fit
|
|
459
520
|
in the close band's left column. It goes under the close's subhead (or in a
|
|
@@ -462,11 +523,11 @@ body.pp { margin: 0; }
|
|
|
462
523
|
own way in gets a plain link in its <dd>. */
|
|
463
524
|
.pp-price { margin: var(--s6) 0 0; display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
|
|
464
525
|
.pp-price > div { border-top: 2px solid var(--ink); padding-top: var(--s3); }
|
|
465
|
-
.pp-price dt { margin: 0 0 6px; font-size: var(--text-lg); font-weight:
|
|
526
|
+
.pp-price dt { margin: 0 0 6px; font-size: var(--text-lg); font-weight: var(--weight-semibold); line-height: var(--leading-title); letter-spacing: var(--tracking-title); }
|
|
466
527
|
.pp-price dd { margin: 0; font-size: var(--text-sm); color: var(--ink-soft); }
|
|
467
528
|
.pp-price dd a { color: var(--i-ink); }
|
|
468
529
|
|
|
469
|
-
/* ── Footer
|
|
530
|
+
/* ── Footer · starting point; the legal line is shared ─────────────────── */
|
|
470
531
|
.pp-footer { border-top: 1px solid var(--line); padding: var(--s6) 0 var(--s7); color: var(--ink-soft); font-size: var(--text-sm); }
|
|
471
532
|
.pp-footer > .pp-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4) var(--s6); }
|
|
472
533
|
.pp-footer p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
|
|
@@ -480,3 +541,6 @@ body.pp { margin: 0; }
|
|
|
480
541
|
by the site's build, never typed and never written by client script. */
|
|
481
542
|
.pp-legal { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); font-size: var(--text-xs); }
|
|
482
543
|
.pp-legal small { font-size: inherit; }
|
|
544
|
+
|
|
545
|
+
/* Card and step headings balance their lines, like the band headings above. */
|
|
546
|
+
:where(.pp-get, .pp-compare, .pp-how, .pp-points, .pp-done) h3, .pp-price dt { text-wrap: balance; }
|
package/tailwind.css
CHANGED
|
@@ -28,11 +28,16 @@
|
|
|
28
28
|
|
|
29
29
|
--color-interactive: var(--i);
|
|
30
30
|
--color-interactive-ink: var(--i-ink);
|
|
31
|
+
--color-interactive-ink-hover: var(--i-ink-hover);
|
|
31
32
|
--color-interactive-hover: var(--i-hover);
|
|
32
33
|
--color-interactive-pressed: var(--i-pressed);
|
|
33
34
|
--color-interactive-surface: var(--i-surface);
|
|
34
35
|
--color-interactive-line: var(--i-line);
|
|
35
36
|
--color-on-interactive: var(--on-i);
|
|
37
|
+
--color-danger-fill: var(--danger-fill);
|
|
38
|
+
--color-danger-fill-hover: var(--danger-fill-hover);
|
|
39
|
+
--color-danger-fill-pressed: var(--danger-fill-pressed);
|
|
40
|
+
--color-on-danger: var(--on-danger);
|
|
36
41
|
|
|
37
42
|
--color-success: var(--success);
|
|
38
43
|
--color-success-ink: var(--success-ink);
|
|
@@ -70,12 +75,33 @@
|
|
|
70
75
|
|
|
71
76
|
--color-mark: var(--mark);
|
|
72
77
|
--color-mark-ink: var(--mark-ink);
|
|
78
|
+
--color-mark-fill: var(--mark-fill);
|
|
79
|
+
--color-mark-fill-hover: var(--mark-fill-hover);
|
|
80
|
+
--color-mark-fill-pressed: var(--mark-fill-pressed);
|
|
81
|
+
--color-mark-surface: var(--mark-surface);
|
|
82
|
+
--color-on-mark: var(--on-mark);
|
|
73
83
|
|
|
74
84
|
--font-sans: var(--sans);
|
|
75
85
|
--font-mono: var(--mono);
|
|
76
86
|
--font-display: var(--display);
|
|
77
87
|
|
|
88
|
+
/* Weights match Tailwind's own, so font-medium and font-semibold are
|
|
89
|
+
unchanged. Leading and tracking are named by role, not tight/snug/…,
|
|
90
|
+
so they ADD leading-display, tracking-title and the rest and leave
|
|
91
|
+
Tailwind's leading-tight, tracking-tight and friends as they were. */
|
|
92
|
+
--font-weight-normal: var(--weight-regular);
|
|
93
|
+
--font-weight-medium: var(--weight-medium);
|
|
94
|
+
--font-weight-semibold: var(--weight-semibold);
|
|
95
|
+
--leading-display: var(--leading-display);
|
|
96
|
+
--leading-title: var(--leading-title);
|
|
97
|
+
--leading-ui: var(--leading-ui);
|
|
98
|
+
--leading-body: var(--leading-body);
|
|
99
|
+
--tracking-title: var(--tracking-title);
|
|
100
|
+
--tracking-display: var(--tracking-display);
|
|
101
|
+
--tracking-caps: var(--tracking-caps);
|
|
102
|
+
|
|
78
103
|
--radius-sm: var(--radius-sm);
|
|
104
|
+
--radius-control: var(--radius-control);
|
|
79
105
|
--radius: var(--radius);
|
|
80
106
|
--radius-lg: var(--radius-lg);
|
|
81
107
|
|