@keystone-sites/marketing-design-system 1.0.18 → 1.0.20

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 CHANGED
@@ -57,7 +57,8 @@ files from their own `AGENTS.md`; they never copy them.
57
57
  (page width ÷ 12, capped at 112px). Structure is written in `--t`; type and
58
58
  spacing come from tokens; controls are fixed material px. Gates are named
59
59
  by the band they open: `@container (--rs)`, `(--rt)`, `(--rd1)`, `(--rd2)`,
60
- plus `(--below-rs)`, `(--below-rt)`, `(--below-rd1)`, `(--rt-only)`; never a
60
+ plus `(--below-rs)`, `(--below-rt)`, `(--below-rd1)`, `(--rt-only)`,
61
+ `(--rd1-only)`; never a
61
62
  pixel width. `grid/gates.cjs` is the PostCSS plugin that resolves them;
62
63
  `grid/engine.css` is the grid.
63
64
  - A control's size is a keyword its mount can set per band: `--btn-size` for
package/grid/gates.cjs CHANGED
@@ -11,6 +11,7 @@ const GATES = {
11
11
  rd2: "(min-width: 1130px)",
12
12
  /* Compound gates are parenthesised so they compose: `(--rt-only) or (--rd2)`. */
13
13
  "rt-only": "((min-width: 665px) and (max-width: 859.98px))",
14
+ "rd1-only": "((min-width: 860px) and (max-width: 1129.98px))",
14
15
  "below-rs": "(max-width: 469px)",
15
16
  "below-rt": "(max-width: 664px)",
16
17
  "below-rd1": "(max-width: 859px)",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystone-sites/marketing-design-system",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "description": "Keystone's marketing design system: tokens, the tick grid, type, primitives, site chrome, and the landing kit. Source-shipped CSS and TSX for Next.js consumers.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -23,7 +23,7 @@ at the bands' geometric midpoints, gated by **container queries** on
23
23
 
24
24
  Gates are always written by name — `(--rs)`, `(--rt)`, `(--rd1)`, `(--rd2)`,
25
25
  and the closed forms `(--below-rs)`, `(--below-rt)`, `(--below-rd1)`,
26
- `(--rt-only)` — and resolved by the PostCSS plugin `grid/gates.cjs`; a pixel
26
+ `(--rt-only)`, `(--rd1-only)` — and resolved by the PostCSS plugin `grid/gates.cjs`; a pixel
27
27
  width never appears in a container query.
28
28
 
29
29
  - The tick is the page container's width ÷ 12, capped at 112px. Base CSS is
@@ -207,3 +207,17 @@
207
207
  gap: var(--space-5xl);
208
208
  }
209
209
  }
210
+
211
+ /* A credited legal row holds five links: eight ticks do not carry them on
212
+ one line at rd1, so it keeps the tablet's geometry there (the TSX keeps
213
+ the matching lattice). From rd2 the row is wide enough as designed. */
214
+ @container (--rd1-only) {
215
+ .fsig-credited .fsig-copy {
216
+ width: calc(var(--t) * 10 + 1px);
217
+ margin-left: var(--t);
218
+ padding-inline: var(--space-4xl);
219
+ }
220
+ .fsig-credited .fsig-legal-links {
221
+ gap: var(--space-2xl);
222
+ }
223
+ }
@@ -21,6 +21,13 @@ export interface FooterSignatureLinks {
21
21
  accessibility: string;
22
22
  }
23
23
 
24
+ /** A credit a licence asks the page to carry, drawn as the last legal
25
+ * link (for instance the IP geolocation data behind a search box). */
26
+ export interface FooterSignatureCredit {
27
+ label: string;
28
+ href: string;
29
+ }
30
+
24
31
  interface R {
25
32
  gx: number;
26
33
  gy: number;
@@ -62,6 +69,9 @@ const FOOTER_MAP: Record<GridBand, R[]> = {
62
69
  rd1: footerMap(false, 2),
63
70
  rd2: footerMap(false, 2),
64
71
  };
72
+ /* With a credit the legal row carries five links, more than eight ticks
73
+ hold on one line at rd1; it keeps the tablet's one-cell inset there. */
74
+ const CREDITED_FOOTER_MAP: Record<GridBand, R[]> = { ...FOOTER_MAP, rd1: footerMap(false, 1) };
65
75
 
66
76
  function Overlay({ maps }: { maps: Record<GridBand, R[]> }) {
67
77
  return (
@@ -76,13 +86,15 @@ function Overlay({ maps }: { maps: Record<GridBand, R[]> }) {
76
86
  export function FooterSignature({
77
87
  copy,
78
88
  links,
89
+ credit,
79
90
  }: {
80
91
  copy: FooterSignatureCopy;
81
92
  links: FooterSignatureLinks;
93
+ credit?: FooterSignatureCredit;
82
94
  }) {
83
95
  return (
84
- <footer className="sec fsig">
85
- <Overlay maps={FOOTER_MAP} />
96
+ <footer className={credit ? "sec fsig fsig-credited" : "sec fsig"}>
97
+ <Overlay maps={credit ? CREDITED_FOOTER_MAP : FOOTER_MAP} />
86
98
  <div className="fsig-signature" data-landmark="signature">
87
99
  <div className="fsig-statement">
88
100
  <div className="fsig-lead">
@@ -103,6 +115,11 @@ export function FooterSignature({
103
115
  <a href={links.privacy}>{copy.legal.privacy}</a>
104
116
  <a href={links.accessibility}>{copy.legal.accessibility}</a>
105
117
  <CookiePreferencesLink label={copy.legal.cookies} className="fsig-legal-preferences" />
118
+ {credit ? (
119
+ <a href={credit.href} rel="noopener">
120
+ {credit.label}
121
+ </a>
122
+ ) : null}
106
123
  </div>
107
124
  </div>
108
125
  </footer>
@@ -168,12 +168,15 @@ function navGroups(social: FooterSocial): Array<{
168
168
  {
169
169
  id: "resources",
170
170
  label: "Resources",
171
- openRm: 5,
172
- openRs: 5,
171
+ /* Five rows: 44px head + 12 + 5·18 + 4·12 = 194px, under 7t at 384. */
172
+ openRm: 7,
173
+ openRs: 6,
173
174
  items: [
174
175
  { label: "Blog", href: SITE_LINKS.blog },
175
176
  { label: "Podcast", href: SITE_LINKS.spotify, external: true },
176
177
  { label: "Marketing Report", href: SITE_LINKS.marketingReport, external: true },
178
+ { label: "Support Center", href: SITE_LINKS.support, external: true },
179
+ { label: "Developer Center", href: SITE_LINKS.developers, external: true },
177
180
  ],
178
181
  },
179
182
  {
package/site-links.ts CHANGED
@@ -32,6 +32,10 @@ export const SITE_LINKS = {
32
32
  privacy: "/privacy",
33
33
  accessibility: "/accessibility",
34
34
  login: "https://go.keystone.app/login",
35
+ /* The two centers for people already on Keystone: guides for customers,
36
+ * the API and MCP reference for developers. */
37
+ support: "https://customers.keystone.app",
38
+ developers: "https://developers.keystone.app",
35
39
  spotify: "https://open.spotify.com/show/41MuXEI3TIvCAQW20Ko9cX",
36
40
  applePodcasts: "https://podcasts.apple.com/us/podcast/made-locally/id1895736090",
37
41
  } as const;