@keystone-sites/marketing-design-system 1.0.26 → 2.0.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/README.md +47 -67
- package/fonts/gt-america-300-italic.woff2 +0 -0
- package/fonts/gt-america-300.woff2 +0 -0
- package/fonts/gt-america-400-italic.woff2 +0 -0
- package/fonts/gt-america-400.woff2 +0 -0
- package/fonts/gt-america-500.woff2 +0 -0
- package/fonts/gt-america-extended-300.woff2 +0 -0
- package/fonts/gt-america-extended-400.woff2 +0 -0
- package/fonts/gt-america-extended-500.woff2 +0 -0
- package/fonts/gt-america-extended-700.woff2 +0 -0
- package/fonts/gt-america-mono-300.woff2 +0 -0
- package/fonts/gt-america-mono-500.woff2 +0 -0
- package/fonts/pp-kyoto-vf.woff2 +0 -0
- package/package.json +46 -203
- package/src/base.css +300 -0
- package/src/fonts.css +131 -0
- package/src/hue.ts +17 -0
- package/src/icon.tsx +56 -0
- package/src/mark.tsx +14 -0
- package/src/motion.ts +123 -0
- package/src/parts/chip.css +84 -0
- package/src/parts/chip.tsx +40 -0
- package/src/parts/composer.css +195 -0
- package/src/parts/composer.tsx +220 -0
- package/src/parts/cx.ts +2 -0
- package/src/parts/faq.css +77 -0
- package/src/parts/faq.tsx +25 -0
- package/src/parts/footer.css +51 -0
- package/src/parts/footer.tsx +27 -0
- package/src/parts/nav.css +180 -0
- package/src/parts/nav.tsx +101 -0
- package/src/parts/photo.css +15 -0
- package/src/parts/photo.tsx +24 -0
- package/src/parts/plans.css +89 -0
- package/src/parts/plans.tsx +56 -0
- package/src/parts/prose.css +86 -0
- package/src/parts/prose.tsx +49 -0
- package/src/parts/shape.css +47 -0
- package/src/parts/shape.tsx +68 -0
- package/src/parts/split.tsx +49 -0
- package/src/parts/stamp.css +85 -0
- package/src/parts/stamp.tsx +36 -0
- package/src/parts/work-card.css +51 -0
- package/src/parts/work-card.tsx +40 -0
- package/src/set.css +439 -0
- package/src/styles.css +20 -0
- package/src/tokens/color.css +471 -0
- package/src/tokens/roles.css +12 -0
- package/src/tokens/type.css +11 -0
- package/src/wordmark.tsx +34 -0
- package/AGENTS.md +0 -192
- package/assets/media/brand/ks-lockup.svg +0 -13
- package/assets/media/brand/ks-logomark.svg +0 -4
- package/assets/media/brand/ks-wordmark-inline.svg +0 -13
- package/assets/media/brand/ks-wordmark.svg +0 -11
- package/assets/media/fonts/gt-standard-standard-vf.woff2 +0 -0
- package/assets/media/fonts/pp-kyoto-variable-upright-vf.woff2 +0 -0
- package/base.css +0 -113
- package/css-vars.d.ts +0 -10
- package/grid/engine.css +0 -367
- package/grid/field-hash.ts +0 -31
- package/grid/field.tsx +0 -48
- package/grid/gates.cjs +0 -35
- package/grid/region.tsx +0 -97
- package/icons.tsx +0 -1282
- package/index.css +0 -89
- package/lib/autoplay-gate.ts +0 -88
- package/lib/focus-trap.ts +0 -42
- package/lib/grader.ts +0 -123
- package/lib/legal-data.ts +0 -1
- package/lib/legal.ts +0 -41
- package/lib/noise.tsx +0 -114
- package/lib/phone.ts +0 -294
- package/lib/render-boundary.tsx +0 -27
- package/lib/scroll-lock.ts +0 -25
- package/lib/swipe.ts +0 -124
- package/lib/use-active-section.ts +0 -43
- package/lib/use-count-up.ts +0 -26
- package/lib/use-grader-search.ts +0 -143
- package/lib/use-popover.ts +0 -30
- package/lib/use-video-carousel.ts +0 -271
- package/media.ts +0 -558
- package/primitives/breadcrumb.css +0 -51
- package/primitives/breadcrumb.tsx +0 -46
- package/primitives/business-picker.css +0 -135
- package/primitives/business-picker.tsx +0 -298
- package/primitives/button-inline.css +0 -52
- package/primitives/button-inline.tsx +0 -38
- package/primitives/buttons.css +0 -551
- package/primitives/buttons.tsx +0 -330
- package/primitives/case-study-button.css +0 -71
- package/primitives/case-study-button.tsx +0 -28
- package/primitives/case-study-card.css +0 -318
- package/primitives/case-study-card.tsx +0 -116
- package/primitives/chip.css +0 -127
- package/primitives/chip.tsx +0 -53
- package/primitives/closer-row.css +0 -14
- package/primitives/closer-row.tsx +0 -22
- package/primitives/cta-row.css +0 -41
- package/primitives/cta-row.tsx +0 -39
- package/primitives/disclosure.css +0 -302
- package/primitives/disclosure.tsx +0 -277
- package/primitives/faq-question.css +0 -220
- package/primitives/faq-question.tsx +0 -55
- package/primitives/field.css +0 -279
- package/primitives/field.tsx +0 -376
- package/primitives/footer-item.css +0 -72
- package/primitives/footer-item.tsx +0 -42
- package/primitives/glyph-toggle.css +0 -62
- package/primitives/glyph-toggle.tsx +0 -42
- package/primitives/grader-menu.tsx +0 -84
- package/primitives/grader.css +0 -369
- package/primitives/grader.tsx +0 -285
- package/primitives/keystone-score.css +0 -156
- package/primitives/keystone-score.tsx +0 -204
- package/primitives/modal.css +0 -194
- package/primitives/modal.tsx +0 -204
- package/primitives/month-range.css +0 -80
- package/primitives/month-range.tsx +0 -183
- package/primitives/notice.css +0 -39
- package/primitives/notice.tsx +0 -56
- package/primitives/persona-card.css +0 -374
- package/primitives/persona-card.tsx +0 -74
- package/primitives/picture.css +0 -11
- package/primitives/picture.tsx +0 -41
- package/primitives/plan-card.css +0 -398
- package/primitives/plan-card.tsx +0 -153
- package/primitives/prose.css +0 -164
- package/primitives/prose.tsx +0 -194
- package/primitives/ramps.css +0 -77
- package/primitives/report-nav.css +0 -382
- package/primitives/report-nav.tsx +0 -353
- package/primitives/report.css +0 -601
- package/primitives/report.tsx +0 -357
- package/primitives/skeleton.css +0 -82
- package/primitives/skeleton.tsx +0 -56
- package/primitives/slider.css +0 -179
- package/primitives/slider.tsx +0 -69
- package/primitives/slug.css +0 -87
- package/primitives/slug.tsx +0 -37
- package/primitives/status.css +0 -427
- package/primitives/status.tsx +0 -323
- package/primitives/strip.css +0 -40
- package/primitives/surface.css +0 -88
- package/primitives/surface.tsx +0 -100
- package/primitives/table.css +0 -227
- package/primitives/table.tsx +0 -122
- package/primitives/tabs.css +0 -85
- package/primitives/tabs.tsx +0 -122
- package/primitives/tag.css +0 -46
- package/primitives/tag.tsx +0 -33
- package/primitives/text.css +0 -127
- package/primitives/toc.css +0 -65
- package/primitives/toc.tsx +0 -42
- package/primitives/tooltip.css +0 -56
- package/primitives/tooltip.tsx +0 -103
- package/rules/design-system.md +0 -154
- package/rules/grid-and-layout.md +0 -166
- package/scripts/generate-exports.mjs +0 -61
- package/scripts/generate-type-css.mjs +0 -130
- package/sections/faq-island.tsx +0 -102
- package/sections/faq.css +0 -213
- package/sections/faq.tsx +0 -46
- package/sections/footer-nav.tsx +0 -95
- package/sections/footer-signature.css +0 -223
- package/sections/footer-signature.tsx +0 -127
- package/sections/footer.css +0 -735
- package/sections/footer.tsx +0 -286
- package/sections/gallery-overlay.css +0 -213
- package/sections/gallery-overlay.tsx +0 -267
- package/sections/landing-benefits.css +0 -59
- package/sections/landing-benefits.tsx +0 -81
- package/sections/landing-closer.css +0 -23
- package/sections/landing-closer.tsx +0 -26
- package/sections/landing-hero.css +0 -80
- package/sections/landing-hero.tsx +0 -69
- package/sections/landing-quote.css +0 -19
- package/sections/landing-quote.tsx +0 -30
- package/sections/landing-sample.ts +0 -66
- package/sections/landing.css +0 -45
- package/sections/landing.tsx +0 -69
- package/sections/load-orchestrator.tsx +0 -43
- package/sections/load.css +0 -138
- package/sections/nav-desktop.css +0 -530
- package/sections/nav-desktop.tsx +0 -155
- package/sections/nav-menu.css +0 -57
- package/sections/nav-menu.tsx +0 -112
- package/sections/nav-mobile.css +0 -571
- package/sections/nav-mobile.tsx +0 -222
- package/sections/nav.css +0 -127
- package/sections/nav.tsx +0 -394
- package/sections/site-chat-data.ts +0 -16
- package/sections/site-chat-open.tsx +0 -25
- package/sections/site-chat.tsx +0 -67
- package/site-links.ts +0 -41
- package/site.ts +0 -2
- package/themes/inverted.css +0 -139
- package/tokens/fonts.css +0 -38
- package/tokens/motion.css +0 -150
- package/tokens/primitives.css +0 -163
- package/tokens/semantic.css +0 -159
- package/tokens/type-styles.json +0 -145
- package/tokens/type.css +0 -1548
- package/widgets.css +0 -78
package/src/set.css
ADDED
|
@@ -0,0 +1,439 @@
|
|
|
1
|
+
/* The Set (Figma › The Set), as CSS. Everything is scoped under `.ks`, a page's root. One unit
|
|
2
|
+
runs the page: `--u`, the lattice cell (40px on a 1440 page, 36 cells wide). Type, stamps,
|
|
3
|
+
sheets and photographs are all sized in cells, so they land on lattice lines at every width.
|
|
4
|
+
Keys (every button and chip) are sized in pixels instead, on a scale of their own.
|
|
5
|
+
|
|
6
|
+
Grounds (Figma › Parts › Ground): paper and ink keep their own gray line; on color the lattice
|
|
7
|
+
takes the hue, one strength away (full on light, light on full, full on deep). */
|
|
8
|
+
|
|
9
|
+
:root:has(.ks) body {
|
|
10
|
+
background: #f8f7f2;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.ks {
|
|
14
|
+
--paper: #f8f7f2;
|
|
15
|
+
--white: #ffffff;
|
|
16
|
+
--ink: #141313;
|
|
17
|
+
--line: #dedbce;
|
|
18
|
+
--line-ink: #2c2b29;
|
|
19
|
+
--muted: #6c6860;
|
|
20
|
+
--soft: #5e5b55;
|
|
21
|
+
--stone: #e9e7dd;
|
|
22
|
+
--canvas: #f4f3ec;
|
|
23
|
+
--text-paper: #fcfbf8;
|
|
24
|
+
--char: #3a3836;
|
|
25
|
+
|
|
26
|
+
--u: clamp(32px, calc(100vw / 36), 40px);
|
|
27
|
+
--page: calc(var(--u) * 36);
|
|
28
|
+
|
|
29
|
+
--serif: var(--font-display);
|
|
30
|
+
--sans: var(--font-sans);
|
|
31
|
+
--ext: var(--font-display-sans);
|
|
32
|
+
--mono: var(--font-mono);
|
|
33
|
+
/* The mono ships at 300 and 500. */
|
|
34
|
+
--mono-weight: 300;
|
|
35
|
+
|
|
36
|
+
--fs-stamp: calc(var(--u) * 0.375);
|
|
37
|
+
--fs-meta: max(11px, calc(var(--u) * 0.3));
|
|
38
|
+
--fs-body: max(15px, calc(var(--u) * 0.4));
|
|
39
|
+
--fs-lead: max(17px, calc(var(--u) * 0.5));
|
|
40
|
+
--fs-title: calc(var(--u) * 0.8);
|
|
41
|
+
--fs-h2: calc(var(--u) * 1.2);
|
|
42
|
+
--fs-h1: calc(var(--u) * 1.8);
|
|
43
|
+
|
|
44
|
+
/* A key: every button and chip, and the nav's mark beside them. Its height, type, glyph, the
|
|
45
|
+
room between them and either side, and the glyph of a key that is only one (the composer's,
|
|
46
|
+
the menu's). */
|
|
47
|
+
--key: 40px;
|
|
48
|
+
--key-type: 15px;
|
|
49
|
+
--key-glyph: 20px;
|
|
50
|
+
--key-icon: 24px;
|
|
51
|
+
--key-gap: 12px;
|
|
52
|
+
--key-pad: 12px 16px;
|
|
53
|
+
/* Either side of a key with no glyph. */
|
|
54
|
+
--key-pad-plain: 16px;
|
|
55
|
+
/* A key that leads (the ways into Keystone), a step over the rest. */
|
|
56
|
+
--key-lead: 16px;
|
|
57
|
+
/* Keys in a row, and between its lines. */
|
|
58
|
+
--keys-gap: calc(var(--u) * 0.4);
|
|
59
|
+
|
|
60
|
+
--lift:
|
|
61
|
+
0 8px 12px rgb(46 46 46 / 0.07), 0 2px 3px rgb(46 46 46 / 0.05), 0 0 1px rgb(46 46 46 / 0.06);
|
|
62
|
+
--lift-lg:
|
|
63
|
+
0 24px 48px rgb(46 46 46 / 0.12), 0 6px 12px rgb(46 46 46 / 0.06), 0 0 1px rgb(46 46 46 / 0.08);
|
|
64
|
+
|
|
65
|
+
/* Motion: the system's curves, with two the site adds for its own scale of movement. */
|
|
66
|
+
--out: cubic-bezier(0.16, 1, 0.3, 1);
|
|
67
|
+
--in: cubic-bezier(0.55, 0, 1, 0.45);
|
|
68
|
+
--in-out: cubic-bezier(0.65, 0, 0.35, 1);
|
|
69
|
+
--set: cubic-bezier(0.2, 0.9, 0.25, 1.08);
|
|
70
|
+
|
|
71
|
+
/* Default hue is pear, the signature. */
|
|
72
|
+
--h-light: var(--pear-100);
|
|
73
|
+
--h-mid: var(--pear-300);
|
|
74
|
+
--h-full: var(--pear-400);
|
|
75
|
+
--h-deep: var(--pear-800);
|
|
76
|
+
--h-ink: var(--pear-950);
|
|
77
|
+
|
|
78
|
+
position: relative;
|
|
79
|
+
min-height: 100dvh;
|
|
80
|
+
background: var(--paper);
|
|
81
|
+
color: var(--ink);
|
|
82
|
+
color-scheme: light;
|
|
83
|
+
font-family: var(--sans);
|
|
84
|
+
font-weight: 300;
|
|
85
|
+
font-size: var(--fs-body);
|
|
86
|
+
line-height: 1.5;
|
|
87
|
+
-webkit-font-smoothing: antialiased;
|
|
88
|
+
text-rendering: optimizeLegibility;
|
|
89
|
+
overflow-x: clip;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.ks *,
|
|
93
|
+
.ks *::before,
|
|
94
|
+
.ks *::after {
|
|
95
|
+
box-sizing: border-box;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.ks :where(h1, h2, h3, h4, p, figure, ul, ol, blockquote) {
|
|
99
|
+
margin: 0;
|
|
100
|
+
padding: 0;
|
|
101
|
+
}
|
|
102
|
+
.ks :where(ul, ol) {
|
|
103
|
+
list-style: none;
|
|
104
|
+
}
|
|
105
|
+
.ks :where(button) {
|
|
106
|
+
font: inherit;
|
|
107
|
+
color: inherit;
|
|
108
|
+
background: none;
|
|
109
|
+
border: 0;
|
|
110
|
+
padding: 0;
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
border-radius: 0;
|
|
113
|
+
}
|
|
114
|
+
.ks :where(a) {
|
|
115
|
+
color: inherit;
|
|
116
|
+
text-decoration: none;
|
|
117
|
+
}
|
|
118
|
+
.ks :where(img, video, svg) {
|
|
119
|
+
display: block;
|
|
120
|
+
max-width: 100%;
|
|
121
|
+
}
|
|
122
|
+
.ks :where(button, a, textarea, summary):focus-visible {
|
|
123
|
+
outline: 2px solid var(--ink);
|
|
124
|
+
outline-offset: 2px;
|
|
125
|
+
}
|
|
126
|
+
.ks ::selection {
|
|
127
|
+
background: var(--pear-400);
|
|
128
|
+
color: var(--pear-950);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* Hues: one attribute picks a hue's three strengths and its ink. */
|
|
132
|
+
.ks [data-hue="pear"],
|
|
133
|
+
.ks[data-hue="pear"] {
|
|
134
|
+
--h-light: var(--pear-100);
|
|
135
|
+
--h-mid: var(--pear-300);
|
|
136
|
+
--h-full: var(--pear-400);
|
|
137
|
+
--h-deep: var(--pear-800);
|
|
138
|
+
--h-soft: var(--pear-500);
|
|
139
|
+
--h-ink: var(--pear-950);
|
|
140
|
+
}
|
|
141
|
+
.ks [data-hue="tangerine"],
|
|
142
|
+
.ks[data-hue="tangerine"] {
|
|
143
|
+
--h-light: var(--tangerine-100);
|
|
144
|
+
--h-mid: var(--tangerine-300);
|
|
145
|
+
--h-full: #ff7810;
|
|
146
|
+
--h-deep: var(--tangerine-800);
|
|
147
|
+
--h-soft: var(--tangerine-500);
|
|
148
|
+
--h-ink: var(--tangerine-950);
|
|
149
|
+
}
|
|
150
|
+
.ks [data-hue="pink"],
|
|
151
|
+
.ks[data-hue="pink"] {
|
|
152
|
+
--h-light: var(--pink-100);
|
|
153
|
+
--h-mid: var(--pink-300);
|
|
154
|
+
--h-full: var(--pink-400);
|
|
155
|
+
--h-deep: var(--pink-800);
|
|
156
|
+
--h-soft: var(--pink-500);
|
|
157
|
+
--h-ink: var(--pink-950);
|
|
158
|
+
}
|
|
159
|
+
.ks [data-hue="purple"],
|
|
160
|
+
.ks[data-hue="purple"] {
|
|
161
|
+
--h-light: var(--purple-100);
|
|
162
|
+
--h-mid: var(--purple-300);
|
|
163
|
+
--h-full: var(--purple-400);
|
|
164
|
+
--h-deep: var(--purple-800);
|
|
165
|
+
--h-soft: var(--purple-500);
|
|
166
|
+
--h-ink: var(--purple-950);
|
|
167
|
+
}
|
|
168
|
+
.ks [data-hue="blue"],
|
|
169
|
+
.ks[data-hue="blue"] {
|
|
170
|
+
--h-light: var(--blue-100);
|
|
171
|
+
--h-mid: var(--blue-300);
|
|
172
|
+
--h-full: var(--blue-400);
|
|
173
|
+
--h-deep: var(--blue-800);
|
|
174
|
+
--h-soft: var(--blue-500);
|
|
175
|
+
--h-ink: var(--blue-950);
|
|
176
|
+
}
|
|
177
|
+
.ks [data-hue="red"],
|
|
178
|
+
.ks[data-hue="red"] {
|
|
179
|
+
--h-light: var(--red-100);
|
|
180
|
+
--h-mid: var(--red-300);
|
|
181
|
+
--h-full: #ff534b;
|
|
182
|
+
--h-deep: var(--red-800);
|
|
183
|
+
--h-soft: var(--red-500);
|
|
184
|
+
--h-ink: var(--red-950);
|
|
185
|
+
}
|
|
186
|
+
.ks [data-hue="amber"],
|
|
187
|
+
.ks[data-hue="amber"] {
|
|
188
|
+
--h-light: var(--amber-100);
|
|
189
|
+
--h-mid: var(--amber-300);
|
|
190
|
+
--h-full: var(--amber-400);
|
|
191
|
+
--h-deep: var(--amber-800);
|
|
192
|
+
--h-soft: var(--amber-500);
|
|
193
|
+
--h-ink: var(--amber-950);
|
|
194
|
+
}
|
|
195
|
+
.ks [data-hue="green"],
|
|
196
|
+
.ks[data-hue="green"] {
|
|
197
|
+
--h-light: var(--green-100);
|
|
198
|
+
--h-mid: var(--green-300);
|
|
199
|
+
--h-full: var(--green-400);
|
|
200
|
+
--h-deep: var(--green-800);
|
|
201
|
+
--h-soft: var(--green-500);
|
|
202
|
+
--h-ink: var(--green-950);
|
|
203
|
+
}
|
|
204
|
+
.ks [data-hue="teal"],
|
|
205
|
+
.ks[data-hue="teal"] {
|
|
206
|
+
--h-light: var(--teal-100);
|
|
207
|
+
--h-mid: var(--teal-300);
|
|
208
|
+
--h-full: var(--teal-400);
|
|
209
|
+
--h-deep: var(--teal-800);
|
|
210
|
+
--h-soft: var(--teal-500);
|
|
211
|
+
--h-ink: var(--teal-950);
|
|
212
|
+
}
|
|
213
|
+
.ks [data-hue="sky"],
|
|
214
|
+
.ks[data-hue="sky"] {
|
|
215
|
+
--h-light: var(--sky-100);
|
|
216
|
+
--h-mid: var(--sky-300);
|
|
217
|
+
--h-full: var(--sky-400);
|
|
218
|
+
--h-deep: var(--sky-800);
|
|
219
|
+
--h-soft: var(--sky-500);
|
|
220
|
+
--h-ink: var(--sky-950);
|
|
221
|
+
}
|
|
222
|
+
.ks [data-hue="orchid"],
|
|
223
|
+
.ks[data-hue="orchid"] {
|
|
224
|
+
--h-light: var(--orchid-100);
|
|
225
|
+
--h-mid: var(--orchid-300);
|
|
226
|
+
--h-full: var(--orchid-400);
|
|
227
|
+
--h-deep: var(--orchid-800);
|
|
228
|
+
--h-soft: var(--orchid-500);
|
|
229
|
+
--h-ink: var(--orchid-950);
|
|
230
|
+
}
|
|
231
|
+
.ks [data-hue="slate"],
|
|
232
|
+
.ks[data-hue="slate"] {
|
|
233
|
+
--h-light: var(--slate-100);
|
|
234
|
+
--h-mid: var(--slate-300);
|
|
235
|
+
--h-full: var(--slate-400);
|
|
236
|
+
--h-deep: var(--slate-800);
|
|
237
|
+
--h-soft: var(--slate-500);
|
|
238
|
+
--h-ink: var(--slate-950);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/* ── Type ─────────────────────────────────────────────────────────────────────────────────── */
|
|
242
|
+
|
|
243
|
+
/* The owner's voice: PP Kyoto, thin, on a line two cells tall. */
|
|
244
|
+
.ks-serif {
|
|
245
|
+
font-family: var(--serif);
|
|
246
|
+
font-weight: 200;
|
|
247
|
+
letter-spacing: -0.02em;
|
|
248
|
+
line-height: 1.1;
|
|
249
|
+
}
|
|
250
|
+
/* What Keystone did: GT America Extended, medium. */
|
|
251
|
+
.ks-ext {
|
|
252
|
+
font-family: var(--ext);
|
|
253
|
+
font-weight: 500;
|
|
254
|
+
letter-spacing: -0.01em;
|
|
255
|
+
line-height: 1.2;
|
|
256
|
+
}
|
|
257
|
+
/* The record: GT America Mono. */
|
|
258
|
+
.ks-mono {
|
|
259
|
+
font-family: var(--mono);
|
|
260
|
+
font-weight: var(--mono-weight);
|
|
261
|
+
font-variant-numeric: tabular-nums;
|
|
262
|
+
letter-spacing: 0;
|
|
263
|
+
}
|
|
264
|
+
.ks-h1 {
|
|
265
|
+
font-family: var(--serif);
|
|
266
|
+
font-weight: 200;
|
|
267
|
+
font-size: var(--fs-h1);
|
|
268
|
+
line-height: calc(var(--u) * 2);
|
|
269
|
+
letter-spacing: -0.02em;
|
|
270
|
+
text-wrap: balance;
|
|
271
|
+
}
|
|
272
|
+
.ks-h2 {
|
|
273
|
+
font-family: var(--serif);
|
|
274
|
+
font-weight: 200;
|
|
275
|
+
font-size: var(--fs-h2);
|
|
276
|
+
line-height: calc(var(--u) * 1.4);
|
|
277
|
+
letter-spacing: -0.02em;
|
|
278
|
+
text-wrap: balance;
|
|
279
|
+
}
|
|
280
|
+
.ks-title {
|
|
281
|
+
font-family: var(--ext);
|
|
282
|
+
font-weight: 500;
|
|
283
|
+
font-size: var(--fs-title);
|
|
284
|
+
line-height: var(--u);
|
|
285
|
+
letter-spacing: -0.01em;
|
|
286
|
+
text-wrap: balance;
|
|
287
|
+
}
|
|
288
|
+
.ks-lead {
|
|
289
|
+
font-size: var(--fs-lead);
|
|
290
|
+
line-height: 1.4;
|
|
291
|
+
color: var(--muted);
|
|
292
|
+
text-wrap: pretty;
|
|
293
|
+
}
|
|
294
|
+
.ks-meta {
|
|
295
|
+
font-family: var(--mono);
|
|
296
|
+
font-weight: var(--mono-weight);
|
|
297
|
+
font-size: var(--fs-meta);
|
|
298
|
+
line-height: 1.4;
|
|
299
|
+
letter-spacing: 0.02em;
|
|
300
|
+
font-variant-numeric: tabular-nums;
|
|
301
|
+
}
|
|
302
|
+
.ks-sr {
|
|
303
|
+
position: absolute;
|
|
304
|
+
width: 1px;
|
|
305
|
+
height: 1px;
|
|
306
|
+
overflow: hidden;
|
|
307
|
+
clip-path: inset(50%);
|
|
308
|
+
white-space: nowrap;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.ks-page {
|
|
312
|
+
width: min(100%, var(--page));
|
|
313
|
+
margin-inline: auto;
|
|
314
|
+
position: relative;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/* Split text: units a direction animates, each clipped by its own mask (see Split). */
|
|
318
|
+
.ks-split__mask {
|
|
319
|
+
display: inline-block;
|
|
320
|
+
overflow: clip;
|
|
321
|
+
overflow-clip-margin: 0.08em;
|
|
322
|
+
vertical-align: top;
|
|
323
|
+
padding-bottom: 0.14em;
|
|
324
|
+
margin-bottom: -0.14em;
|
|
325
|
+
}
|
|
326
|
+
.ks-split__unit {
|
|
327
|
+
display: inline-block;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/* ── Lattice and grounds ──────────────────────────────────────────────────────────────────── */
|
|
331
|
+
|
|
332
|
+
/* The lattice alone, for laying over a sheet, a photograph or another ground. A line sits on
|
|
333
|
+
the block's own left and top edge, so a block placed on a multiple of the cell stays in step. */
|
|
334
|
+
.ks-lattice {
|
|
335
|
+
--g-line: var(--line);
|
|
336
|
+
background-image:
|
|
337
|
+
linear-gradient(to right, var(--g-line) 1px, transparent 1px),
|
|
338
|
+
linear-gradient(to bottom, var(--g-line) 1px, transparent 1px);
|
|
339
|
+
background-size: var(--u) var(--u);
|
|
340
|
+
background-position: var(--lattice-x, 0) var(--lattice-y, 0);
|
|
341
|
+
}
|
|
342
|
+
/* Edge to edge on a page wider than its 36 cells: a line stays on the page's own centre. */
|
|
343
|
+
.ks-lattice[data-bleed] {
|
|
344
|
+
--lattice-x: calc(50% + var(--u) / 2);
|
|
345
|
+
}
|
|
346
|
+
.ks-lattice[data-edge]::after,
|
|
347
|
+
.ks-ground[data-edge]::after {
|
|
348
|
+
content: "";
|
|
349
|
+
position: absolute;
|
|
350
|
+
inset: 0;
|
|
351
|
+
border: 1px solid var(--g-line);
|
|
352
|
+
pointer-events: none;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.ks-ground {
|
|
356
|
+
--g-fill: var(--paper);
|
|
357
|
+
--g-line: var(--line);
|
|
358
|
+
position: relative;
|
|
359
|
+
background-color: var(--g-fill);
|
|
360
|
+
}
|
|
361
|
+
.ks-ground[data-lattice] {
|
|
362
|
+
background-image:
|
|
363
|
+
linear-gradient(to right, var(--g-line) 1px, transparent 1px),
|
|
364
|
+
linear-gradient(to bottom, var(--g-line) 1px, transparent 1px);
|
|
365
|
+
background-size: var(--u) var(--u);
|
|
366
|
+
background-position: var(--lattice-x, 0) var(--lattice-y, 0);
|
|
367
|
+
}
|
|
368
|
+
.ks-ground[data-ground="white"] {
|
|
369
|
+
--g-fill: var(--white);
|
|
370
|
+
--g-line: var(--line);
|
|
371
|
+
}
|
|
372
|
+
.ks-ground[data-ground="ink"] {
|
|
373
|
+
--g-fill: var(--ink);
|
|
374
|
+
--g-line: var(--line-ink);
|
|
375
|
+
color: var(--text-paper);
|
|
376
|
+
}
|
|
377
|
+
.ks-ground[data-ground="light"] {
|
|
378
|
+
--g-fill: var(--h-light);
|
|
379
|
+
--g-line: var(--h-full);
|
|
380
|
+
color: var(--h-deep);
|
|
381
|
+
}
|
|
382
|
+
.ks-ground[data-ground="full"] {
|
|
383
|
+
--g-fill: var(--h-full);
|
|
384
|
+
--g-line: color-mix(in oklab, var(--h-light) 62%, var(--h-full));
|
|
385
|
+
color: var(--h-ink);
|
|
386
|
+
}
|
|
387
|
+
.ks-ground[data-ground="deep"] {
|
|
388
|
+
--g-fill: var(--h-deep);
|
|
389
|
+
--g-line: color-mix(in oklab, var(--h-full) 46%, var(--h-deep));
|
|
390
|
+
color: var(--h-light);
|
|
391
|
+
}
|
|
392
|
+
/* A large field of color wants a quieter line than a small sheet does. */
|
|
393
|
+
.ks-ground[data-quiet][data-ground="light"] {
|
|
394
|
+
--g-line: color-mix(in oklab, var(--h-full) 34%, var(--h-light));
|
|
395
|
+
}
|
|
396
|
+
.ks-ground[data-quiet][data-ground="full"] {
|
|
397
|
+
--g-line: color-mix(in oklab, var(--h-light) 34%, var(--h-full));
|
|
398
|
+
}
|
|
399
|
+
.ks-ground[data-quiet][data-ground="deep"] {
|
|
400
|
+
--g-line: color-mix(in oklab, var(--h-full) 24%, var(--h-deep));
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/* A phone: the headlines come down a size, and keys are shorter and two sizes down. */
|
|
404
|
+
@media (max-width: 720px) {
|
|
405
|
+
.ks {
|
|
406
|
+
--fs-h1: calc(var(--u) * 1.2);
|
|
407
|
+
--fs-h2: calc(var(--u) * 0.95);
|
|
408
|
+
--fs-title: calc(var(--u) * 0.7);
|
|
409
|
+
--key: 32px;
|
|
410
|
+
--key-type: 12px;
|
|
411
|
+
--key-glyph: 14px;
|
|
412
|
+
--key-icon: 20px;
|
|
413
|
+
--key-gap: 6px;
|
|
414
|
+
--key-pad: 8px 10px;
|
|
415
|
+
--key-pad-plain: 10px;
|
|
416
|
+
--key-lead: 12px;
|
|
417
|
+
--keys-gap: 6px;
|
|
418
|
+
}
|
|
419
|
+
.ks-h1 {
|
|
420
|
+
line-height: calc(var(--u) * 1.5);
|
|
421
|
+
}
|
|
422
|
+
.ks-h2 {
|
|
423
|
+
line-height: calc(var(--u) * 1.2);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
/* Reduced motion: whatever moves arrives at once. */
|
|
428
|
+
@media (prefers-reduced-motion: reduce) {
|
|
429
|
+
.ks *,
|
|
430
|
+
.ks *::before,
|
|
431
|
+
.ks *::after {
|
|
432
|
+
animation-duration: 1ms !important;
|
|
433
|
+
animation-delay: 0ms !important;
|
|
434
|
+
animation-iteration-count: 1 !important;
|
|
435
|
+
transition-duration: 1ms !important;
|
|
436
|
+
transition-delay: 0ms !important;
|
|
437
|
+
scroll-behavior: auto !important;
|
|
438
|
+
}
|
|
439
|
+
}
|
package/src/styles.css
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* The system's one stylesheet: a site imports this before its own CSS. The tokens and the Set are
|
|
2
|
+
unlayered and the defaults sit in the `base` layer under them; a part's rules are in the order
|
|
3
|
+
their cascade was drawn in, so keep new parts after the ones they build on. */
|
|
4
|
+
@import "./tokens/color.css";
|
|
5
|
+
@import "./tokens/type.css";
|
|
6
|
+
@import "./tokens/roles.css";
|
|
7
|
+
@import "./fonts.css";
|
|
8
|
+
@import "./base.css";
|
|
9
|
+
@import "./set.css";
|
|
10
|
+
@import "./parts/stamp.css";
|
|
11
|
+
@import "./parts/shape.css";
|
|
12
|
+
@import "./parts/work-card.css";
|
|
13
|
+
@import "./parts/chip.css";
|
|
14
|
+
@import "./parts/composer.css";
|
|
15
|
+
@import "./parts/photo.css";
|
|
16
|
+
@import "./parts/faq.css";
|
|
17
|
+
@import "./parts/plans.css";
|
|
18
|
+
@import "./parts/footer.css";
|
|
19
|
+
@import "./parts/nav.css";
|
|
20
|
+
@import "./parts/prose.css";
|