@keystone-sites/marketing-design-system 1.0.13 → 1.0.15
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/AGENTS.md +11 -1
- package/index.css +3 -0
- package/package.json +7 -1
- package/primitives/buttons.css +13 -1
- package/primitives/buttons.tsx +46 -0
- package/primitives/disclosure.css +9 -2
- package/primitives/disclosure.tsx +55 -2
- package/primitives/keystone-score.css +156 -0
- package/primitives/keystone-score.tsx +204 -0
- package/primitives/prose.css +32 -0
- package/primitives/prose.tsx +28 -4
- package/primitives/ramps.css +2 -9
- package/primitives/report-nav.css +322 -0
- package/primitives/report-nav.tsx +224 -0
- package/primitives/report.css +567 -0
- package/primitives/report.tsx +337 -0
- package/primitives/status.css +97 -11
- package/primitives/status.tsx +98 -3
- package/primitives/surface.css +10 -0
- package/primitives/surface.tsx +7 -2
- package/primitives/text.css +13 -0
- package/sections/landing-quote.tsx +1 -1
- package/sections/nav.css +6 -6
- package/tokens/motion.css +14 -0
package/primitives/text.css
CHANGED
|
@@ -54,6 +54,19 @@
|
|
|
54
54
|
font-optical-sizing: none;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
/* `type type-hang`: text that opens on a quotation mark hangs it into
|
|
58
|
+
the margin, so the words align with the column. Where the browser
|
|
59
|
+
cannot hang, the first line steps back by the mark's width instead. */
|
|
60
|
+
.type-hang {
|
|
61
|
+
text-indent: -0.434em;
|
|
62
|
+
}
|
|
63
|
+
@supports (hanging-punctuation: first) {
|
|
64
|
+
.type-hang {
|
|
65
|
+
text-indent: 0;
|
|
66
|
+
hanging-punctuation: first;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
57
70
|
.type:not(.type-fixed) {
|
|
58
71
|
/* Unnamed middle anchors: the point on the rm→rd2 line. */
|
|
59
72
|
--_fs-span: calc(var(--fs-rd2, var(--fs-rm)) - var(--fs-rm));
|
|
@@ -17,7 +17,7 @@ export function LandingQuoteSection({ data }: { data: LandingQuoteData }) {
|
|
|
17
17
|
<section className="sec ld-sec ld-quote" aria-label={data.eyebrow} data-landmark="ld-quote">
|
|
18
18
|
<Slug>{data.eyebrow}</Slug>
|
|
19
19
|
<figure className="ld-quote-fig">
|
|
20
|
-
<blockquote className="type ts-display-serif-2xs-plus-extralight ramp-quote ld-quote-body">
|
|
20
|
+
<blockquote className="type type-hang ts-display-serif-2xs-plus-extralight ramp-quote ld-quote-body">
|
|
21
21
|
{data.quote}
|
|
22
22
|
</blockquote>
|
|
23
23
|
<figcaption className="type ts-text-md-light ld-quote-attrib">
|
package/sections/nav.css
CHANGED
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
--knav-underline-dur: 320ms;
|
|
31
31
|
--knav-ink-dur: 180ms;
|
|
32
32
|
--knav-chev-dur: 300ms;
|
|
33
|
-
--knav-reveal-fade:
|
|
34
|
-
--knav-reveal-slide:
|
|
35
|
-
--knav-reveal-rise:
|
|
33
|
+
--knav-reveal-fade: var(--motion-reveal-fade);
|
|
34
|
+
--knav-reveal-slide: var(--motion-reveal-slide);
|
|
35
|
+
--knav-reveal-rise: var(--motion-reveal-rise);
|
|
36
36
|
--knav-blk-fade: 320ms;
|
|
37
37
|
--knav-blk-slide: 380ms;
|
|
38
38
|
--knav-blk-rise: 12px;
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
--knav-stagger-res: calc(7 * var(--knav-stagger) / 3);
|
|
41
41
|
--knav-stagger-work: calc(7 * var(--knav-stagger) / 2);
|
|
42
42
|
--knav-stagger-base: 60ms;
|
|
43
|
-
--icon-swap-dur:
|
|
44
|
-
--icon-swap-blur:
|
|
45
|
-
--icon-swap-start-scale:
|
|
43
|
+
--icon-swap-dur: var(--motion-glyph-swap-dur);
|
|
44
|
+
--icon-swap-blur: var(--motion-glyph-swap-blur);
|
|
45
|
+
--icon-swap-start-scale: var(--motion-glyph-swap-scale);
|
|
46
46
|
--knav-card-slide-dur: var(--motion-cell-slide-dur);
|
|
47
47
|
--knav-card-shadow-dur: var(--motion-card-shadow-dur);
|
|
48
48
|
--knav-card-shadow-out-dur: var(--motion-card-shadow-out-dur);
|
package/tokens/motion.css
CHANGED
|
@@ -41,6 +41,20 @@
|
|
|
41
41
|
--motion-rise-duration: 800ms;
|
|
42
42
|
--motion-rise-ease: var(--motion-drawer-ease);
|
|
43
43
|
|
|
44
|
+
/* A panel hung from its control reveals by fading in as it settles the
|
|
45
|
+
last few pixels down; it leaves the same way, its visibility held
|
|
46
|
+
until the slide ends. */
|
|
47
|
+
--motion-reveal-fade: 180ms;
|
|
48
|
+
--motion-reveal-slide: 240ms;
|
|
49
|
+
--motion-reveal-rise: 6px;
|
|
50
|
+
|
|
51
|
+
/* A control's glyph swaps for its other state (menu to close) by
|
|
52
|
+
crossfading in place: the outgoing one blurs and shrinks as the
|
|
53
|
+
incoming one sharpens and grows. */
|
|
54
|
+
--motion-glyph-swap-dur: 250ms;
|
|
55
|
+
--motion-glyph-swap-blur: 2px;
|
|
56
|
+
--motion-glyph-swap-scale: 0.25;
|
|
57
|
+
|
|
44
58
|
/* Chip highlights wipe left-to-right while their ink cross-fades. */
|
|
45
59
|
--motion-wipe-duration: 420ms;
|
|
46
60
|
--motion-wipe-ease: cubic-bezier(0.76, 0, 0.24, 1);
|