@spunto/design-system 0.50.0 → 0.51.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spunto/design-system",
3
- "version": "0.50.0",
4
- "description": "Spunto's shared design system — warm/flame tokens, color constants, and UI primitives.",
3
+ "version": "0.51.0",
4
+ "description": "Spunto's shared design system — green tokens (conservatory + sprout), color constants, and UI primitives.",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "homepage": "https://design.spunto.net",
@@ -34,7 +34,7 @@ describe("SpuntoLogo", () => {
34
34
  const svg = renderToStaticMarkup(<SpuntoLogo tone="flame" paint={{ tile: "#be241f" }} />)
35
35
  expect(svg).toContain('fill="#be241f"')
36
36
  expect(svg).not.toContain('fill="#ec5100"')
37
- expect(svg).toContain('fill="#0e0805"')
37
+ expect(svg).toContain('fill="#0a3423"')
38
38
  })
39
39
 
40
40
  it("is hidden from assistive tech unless it is given a name", () => {
package/src/brand/logo.ts CHANGED
@@ -155,7 +155,7 @@ export interface SpuntoLogoPaint {
155
155
  /**
156
156
  * The declensions. Each is a design-system token turned into a fixed value:
157
157
  * a logo is an artefact, not a surface, so it does not follow the theme — the
158
- * flame tile is the same flame at night. The values are the light-theme
158
+ * sprout tile is the same sprout at night. The values are the light-theme
159
159
  * register of `styles.css` (`--flame`, `--build`, `--ship`, `--run`,
160
160
  * `--night`, `--background`) and the sand the marketing pages use for ink on
161
161
  * night, converted out of oklch.
@@ -167,26 +167,31 @@ export interface SpuntoLogoPaint {
167
167
  * for a hero or a social card, not for a 24 px header.
168
168
  */
169
169
  export const SPUNTO_LOGO_TONES = {
170
- /** The brand: flame tile, night ink. */
171
- flame: { tile: "#ec5100", ink: "#0e0805" },
172
- /** `--build` tile — amber. */
173
- build: { tile: "#f9a733", ink: "#0e0805" },
174
- /** `--ship` tile — orange. */
175
- ship: { tile: "#fb7c01", ink: "#0e0805" },
176
- /** `--run` tile — one step short of flame. */
177
- run: { tile: "#f35800", ink: "#0e0805" },
178
- /** `--night` tile, sand ink — what the design system itself wears. */
179
- night: { tile: "#0e0805", ink: "#e0d3bb" },
180
- /** Cream tile, night ink, the container lit in flame — for a light print. */
181
- cream: { tile: "#fbf6ee", ink: "#0e0805", core: "#ec5100" },
182
- /** Night, with the three pillars in their own tokens (night register). */
170
+ /** The brand — Spunto Cloud: signal tile, field ink. The key keeps its old
171
+ * name so every `tone="flame"` caller follows. */
172
+ flame: { tile: "#bfeb56", ink: "#0a3423" },
173
+ /** Spunto Lite — sky on ink blue. */
174
+ build: { tile: "#83dbff", ink: "#102743" },
175
+ /** Spunto Browser — amber on dusk. */
176
+ ship: { tile: "#fdcd5c", ink: "#281f45" },
177
+ /** Spunto Cloud's mid tone, light ink — for a light page that wants weight. */
178
+ run: { tile: "#006737", ink: "#edf4ee" },
179
+ /** The design system — graphite tile, paper ink. */
180
+ night: { tile: "#161c19", ink: "#edf4ee" },
181
+ /** Paper tile, field ink, the container lit in Cloud's tone — for a light print. */
182
+ cream: { tile: "#f8fbf6", ink: "#0a3423", core: "#006737" },
183
+ /** Spunto CMS — petal on plum. */
184
+ cms: { tile: "#ffb3d7", ink: "#3d1a36" },
185
+ /** Spunto Search — aqua on deep teal. */
186
+ search: { tile: "#7ee9e5", ink: "#002f36" },
187
+ /** Cloud's field, the three pillars lit (night register). */
183
188
  pillars: {
184
- tile: "#0e0805",
185
- ink: "#fbf6ee",
186
- fleet: "#8b837d",
187
- build: "#ffb649",
188
- ship: "#ff8b27",
189
- run: "#ff6917",
189
+ tile: "#0a3423",
190
+ ink: "#edf4ee",
191
+ fleet: "#7f9a8c",
192
+ build: "#d4e157",
193
+ ship: "#7ccf8f",
194
+ run: "#bfeb56",
190
195
  },
191
196
  } as const satisfies Record<string, SpuntoLogoPaint>
192
197
 
package/src/colors.ts CHANGED
@@ -22,18 +22,18 @@ export const cssVar = {
22
22
 
23
23
  /** Fixed oklch line colors for time-series charts (recharts strokes, etc.). */
24
24
  export const chartColors = {
25
- cpu: "oklch(0.70 0.20 43)", // run / flame
26
- memory: "oklch(0.83 0.15 72)", // build (amber)
27
- ship: "oklch(0.76 0.18 53)",
25
+ cpu: "oklch(0.66 0.13 160)", // run (bottle, night register)
26
+ memory: "oklch(0.86 0.17 124)", // build (sprout)
27
+ ship: "oklch(0.74 0.15 148)",
28
28
  } as const
29
29
 
30
- /** Sequential warm ramp (Build → flame). Matches --chart-1..5. */
30
+ /** Sequential green ramp (sprout → pine). Matches --chart-1..5. */
31
31
  export const chartRamp = [
32
- "oklch(0.79 0.155 70)",
33
- "oklch(0.72 0.185 52)",
34
- "oklch(0.66 0.205 42)",
35
- "oklch(0.58 0.205 35)",
36
- "oklch(0.52 0.19 28)",
32
+ "oklch(0.82 0.16 122)",
33
+ "oklch(0.70 0.16 140)",
34
+ "oklch(0.58 0.14 152)",
35
+ "oklch(0.48 0.11 165)",
36
+ "oklch(0.38 0.08 175)",
37
37
  ] as const
38
38
 
39
39
  /** Categorical, CVD-validated slots for disk/segment breakdowns. */
@@ -1,4 +1,4 @@
1
- // Font preloads for the design-system typefaces (Geist / Syne / JetBrains Mono).
1
+ // Font preloads for the design-system typefaces (Geist / Young Serif / JetBrains Mono).
2
2
  //
3
3
  // Renders the resource hints that let the browser fetch the fonts early instead
4
4
  // of discovering them mid-render through the `@font-face` rules in `styles.css`.
@@ -17,7 +17,7 @@
17
17
  const LATIN_WOFF2 = [
18
18
  "https://fonts.gstatic.com/s/geist/v5/gyByhwUxId8gMEwcGFU.woff2",
19
19
  "https://fonts.gstatic.com/s/jetbrainsmono/v24/tDbV2o-flEEny0FZhsfKu5WU4xD7OwE.woff2",
20
- "https://fonts.gstatic.com/s/syne/v24/8vIH7w4qzmVxm2BL9A.woff2",
20
+ "https://fonts.gstatic.com/s/youngserif/v2/3qTpojO2nS2VtkB3KtkQZ1t93kY.woff2",
21
21
  ] as const
22
22
 
23
23
  export function FontPreloads() {
@@ -16,13 +16,14 @@ const pullTheme = {
16
16
  dim: "#a1a1aa",
17
17
  faint: "#71717a",
18
18
  /** Tag of the image reference — the part that actually varies, so it's the bright one. */
19
- tag: "#fdba74",
20
- // Phase colors. Flame is the brand accent and downloading is the main event;
19
+ tag: "#d9f99d",
20
+ // Phase colors. Downloading is the main event, in sky (the brand green would
21
+ // read as "done");
21
22
  // yellow/green/red come straight from the Terminal's shared ANSI palette so
22
23
  // both surfaces agree on what "in progress" / "done" / "failed" look like.
23
24
  waiting: "#3f3f46",
24
- downloading: "#ea5400",
25
- verifying: "#fb923c",
25
+ downloading: "#38bdf8",
26
+ verifying: "#7dd3fc",
26
27
  extracting: "#facc15",
27
28
  done: "#4ade80",
28
29
  error: "#f87171",
@@ -33,7 +33,7 @@ const panelTheme = {
33
33
  pending: "#facc15",
34
34
  error: "#f87171",
35
35
  idle: "#52525b",
36
- accent: "#ea5400",
36
+ accent: "#a3e635",
37
37
  } as const
38
38
 
39
39
  /**
@@ -336,7 +336,7 @@ function bufferToText(term: XTerm): string {
336
336
  /**
337
337
  * Match colors live here, not at the call site: search is a design-system
338
338
  * affordance and every terminal in the product should highlight the same way —
339
- * zinc for the other matches, flame for the one you're on.
339
+ * zinc for the other matches, sprout for the one you're on.
340
340
  */
341
341
  function searchOptions(options?: TerminalSearchOptions) {
342
342
  return {
@@ -345,9 +345,9 @@ function searchOptions(options?: TerminalSearchOptions) {
345
345
  matchBackground: "#3f3f46",
346
346
  matchBorder: "#71717a",
347
347
  matchOverviewRuler: "#a1a1aa",
348
- activeMatchBackground: "#ea5400",
349
- activeMatchBorder: "#fb923c",
350
- activeMatchColorOverviewRuler: "#ea5400",
348
+ activeMatchBackground: "#3f6212",
349
+ activeMatchBorder: "#a3e635",
350
+ activeMatchColorOverviewRuler: "#a3e635",
351
351
  },
352
352
  }
353
353
  }
package/styles.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @spunto/design-system — design tokens (warm, brand: flame).
2
+ * @spunto/design-system — design tokens: one universe, a colour pair per product (data-product).
3
3
  *
4
4
  * Token names and structure follow shadcn/ui (https://ui.shadcn.com, MIT) — the
5
5
  * base this whole design system is built on. Only the values are ours.
@@ -9,14 +9,14 @@
9
9
  * @import "@spunto/design-system/styles.css";
10
10
  *
11
11
  * Provides the oklch token scale, the `@theme inline` → Tailwind color/radius
12
- * mapping, a minimal base layer, and the warm dot-grid / blueprint-grid utilities.
12
+ * mapping, a minimal base layer, and the dot-grid / blueprint-grid utilities.
13
13
  * `@custom-variant dark` stays in the app (or add it there once).
14
14
  */
15
15
 
16
16
  /* ─── Fonts — carried by the design system ──────────────────────────────────
17
17
  *
18
18
  * Canonical typography (single source of truth, decided 2026-07-23):
19
- * text = Geist · display = Syne · mono = JetBrains Mono
19
+ * text = Geist · display = Young Serif (was Syne until 2026-10-17) · mono = JetBrains Mono
20
20
  *
21
21
  * `src` points straight at the versioned .woff2 files on fonts.gstatic.com
22
22
  * (absolute → identical everywhere, never hashed). URLs were harvested once from
@@ -121,38 +121,30 @@
121
121
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
122
122
  }
123
123
 
124
- /* Syne — variable weight (display, 400–800). */
124
+ /* Young Serif — display (one weight, 400, drawn heavy: the seed-catalogue
125
+ serif). Replaced Syne on 2026-10-17. Never ask it for a bold: there is none,
126
+ and a synthesized one smears — `font-synthesis` is off on `.font-display`. */
125
127
  @font-face {
126
- font-family: "Syne";
128
+ font-family: "Young Serif";
127
129
  font-style: normal;
128
- font-weight: 400 800;
130
+ font-weight: 400;
129
131
  font-display: swap;
130
- src: url(https://fonts.gstatic.com/s/syne/v24/8vIH7w4qzmVxm2NL9Hz_.woff2) format("woff2");
131
- unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
132
- }
133
- @font-face {
134
- font-family: "Syne";
135
- font-style: normal;
136
- font-weight: 400 800;
137
- font-display: swap;
138
- src: url(https://fonts.gstatic.com/s/syne/v24/8vIH7w4qzmVxm25L9Hz_.woff2) format("woff2");
139
- unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
132
+ src: url(https://fonts.gstatic.com/s/youngserif/v2/3qTpojO2nS2VtkB3KtkQZ1tz3kYoaQ.woff2) format("woff2");
133
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
140
134
  }
141
135
  @font-face {
142
- font-family: "Syne";
136
+ font-family: "Young Serif";
143
137
  font-style: normal;
144
- font-weight: 400 800;
138
+ font-weight: 400;
145
139
  font-display: swap;
146
- src: url(https://fonts.gstatic.com/s/syne/v24/8vIH7w4qzmVxm2BL9A.woff2) format("woff2");
140
+ src: url(https://fonts.gstatic.com/s/youngserif/v2/3qTpojO2nS2VtkB3KtkQZ1t93kY.woff2) format("woff2");
147
141
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
148
142
  }
149
143
 
150
- /* Font families — real Tailwind tokens (utilities `font-sans` / `font-mono` /
151
- * `font-display`), defined directly by the DS. No brand-specific indirection. */
152
144
  @theme {
153
145
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
154
146
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
155
- --font-display: "Syne", var(--font-sans);
147
+ --font-display: "Young Serif", ui-serif, Georgia, serif;
156
148
  }
157
149
 
158
150
  @theme inline {
@@ -199,6 +191,26 @@
199
191
  --color-ship: var(--ship);
200
192
  --color-run: var(--run);
201
193
  --color-flame: var(--flame);
194
+ --color-field: var(--field);
195
+ --color-signal: var(--signal);
196
+ --color-cloud: var(--cloud);
197
+ --color-cloud-field: var(--cloud-field);
198
+ --color-cloud-signal: var(--cloud-signal);
199
+ --color-cms: var(--cms);
200
+ --color-cms-field: var(--cms-field);
201
+ --color-cms-signal: var(--cms-signal);
202
+ --color-lite: var(--lite);
203
+ --color-lite-field: var(--lite-field);
204
+ --color-lite-signal: var(--lite-signal);
205
+ --color-browser: var(--browser);
206
+ --color-browser-field: var(--browser-field);
207
+ --color-browser-signal: var(--browser-signal);
208
+ --color-search: var(--search);
209
+ --color-search-field: var(--search-field);
210
+ --color-search-signal: var(--search-signal);
211
+ --color-ds: var(--ds);
212
+ --color-ds-field: var(--ds-field);
213
+ --color-ds-signal: var(--ds-signal);
202
214
  /* Marketing surfaces — the two fixed dark values (see `--night` below) */
203
215
  --color-night: var(--night);
204
216
  --color-code-surface: var(--code-surface);
@@ -212,126 +224,357 @@
212
224
  --radius-4xl: calc(var(--radius) * 3.5);
213
225
  }
214
226
 
215
- /* ─── Light mode — Warm cream ───────────────────────────────────────────── */
227
+ /* ─── The universe, then a product ──────────────────────────────────────────
228
+ * Since 2026-10-19 the design system dresses *several products in one
229
+ * universe*. Everything shared lives on :root — a near-neutral ground with a
230
+ * hair of green, the type (Young Serif / Geist / JetBrains Mono), the 4 px
231
+ * radius, the status semantics — and each product brings one pair:
232
+ *
233
+ * --field its deep colour: the band a page opens on, a logo's ink
234
+ * --signal its bright one: what is alive, the action on a field
235
+ * --primary derived from both — the mid tone on light, the signal on dark
236
+ *
237
+ * Pick the product with `data-product="cloud|cms|lite|browser|search|ds"` on
238
+ * <html> or on any subtree (a marketing card can wear another product's
239
+ * colours inside a page). No attribute = Spunto Cloud. Every product's raw
240
+ * pair is also on :root (`--cms-field`, `--cms-signal`, `--cms`…, Tailwind
241
+ * `bg-cms-field`, `text-cms`…) so one page can show the whole family.
242
+ *
243
+ * Token *names* are shadcn's (https://ui.shadcn.com, MIT) plus ours; `--flame`
244
+ * is the legacy name of the brand colour and follows `--primary`. */
216
245
  :root {
217
- --background: oklch(0.975 0.012 82);
218
- --foreground: oklch(0.20 0.018 55);
219
- --card: oklch(0.995 0.006 86);
220
- --card-foreground: oklch(0.20 0.018 55);
221
- --popover: oklch(0.995 0.006 86);
222
- --popover-foreground: oklch(0.20 0.018 55);
223
- --primary: oklch(0.64 0.205 41);
224
- --primary-foreground: oklch(0.99 0.012 86);
225
- --secondary: oklch(0.93 0.015 78);
226
- --secondary-foreground: oklch(0.34 0.045 52);
227
- --muted: oklch(0.955 0.012 80);
228
- --muted-foreground: oklch(0.51 0.032 60);
229
- --accent: oklch(0.935 0.024 72);
230
- --accent-foreground: oklch(0.34 0.045 52);
246
+ --cloud-field: oklch(0.29 0.055 162);
247
+ --cloud-signal: oklch(0.88 0.18 124);
248
+ --cloud: oklch(0.45 0.115 155);
249
+ --cms-field: oklch(0.28 0.07 335);
250
+ --cms-signal: oklch(0.85 0.10 350);
251
+ --cms: oklch(0.48 0.15 340);
252
+ --lite-field: oklch(0.27 0.06 255);
253
+ --lite-signal: oklch(0.85 0.10 228);
254
+ --lite: oklch(0.49 0.14 258);
255
+ --browser-field: oklch(0.27 0.07 292);
256
+ --browser-signal: oklch(0.87 0.14 86);
257
+ --browser: oklch(0.49 0.17 292);
258
+ --search-field: oklch(0.28 0.05 208);
259
+ --search-signal: oklch(0.87 0.10 192);
260
+ --search: oklch(0.49 0.09 212);
261
+ --ds-field: oklch(0.22 0.012 165);
262
+ --ds-signal: oklch(0.96 0.01 150);
263
+ --ds: oklch(0.30 0.02 165);
264
+ }
265
+
266
+ :root {
267
+ --background: oklch(0.985 0.003 160);
268
+ --foreground: oklch(0.21 0.015 165);
269
+ --card: oklch(0.998 0.002 160);
270
+ --card-foreground: oklch(0.21 0.015 165);
271
+ --popover: oklch(0.998 0.002 160);
272
+ --popover-foreground: oklch(0.21 0.015 165);
273
+ --secondary: oklch(0.945 0.006 160);
274
+ --secondary-foreground: oklch(0.30 0.02 165);
275
+ --muted: oklch(0.955 0.005 160);
276
+ --muted-foreground: oklch(0.48 0.015 165);
231
277
  --destructive: oklch(0.577 0.245 27.325);
232
- /* Status semantics — warm-leaning green / amber / blue, tuned for the cream bg */
233
- --success: oklch(0.62 0.145 152);
234
- --success-foreground: oklch(0.99 0.012 86);
278
+ /* Status semantics — success is a lighter, yellower green than Cloud's
279
+ primary so a "running" badge never reads as a button */
280
+ --success: oklch(0.62 0.16 142);
281
+ --success-foreground: oklch(0.99 0.006 150);
235
282
  --warning: oklch(0.74 0.16 68);
236
283
  --warning-foreground: oklch(0.24 0.05 60);
237
- --info: oklch(0.58 0.13 245);
238
- --info-foreground: oklch(0.99 0.012 86);
239
- --border: oklch(0.89 0.016 76);
240
- --input: oklch(0.89 0.016 76);
241
- --ring: oklch(0.64 0.205 41);
242
- /* Brand warm scale — Build (amber) → Ship (orange) → Run (flame) */
243
- --build: oklch(0.79 0.155 70);
244
- --ship: oklch(0.72 0.185 52);
245
- --run: oklch(0.66 0.205 42);
246
- --flame: oklch(0.64 0.205 41);
247
- --chart-1: oklch(0.79 0.155 70);
248
- --chart-2: oklch(0.72 0.185 52);
249
- --chart-3: oklch(0.66 0.205 42);
250
- --chart-4: oklch(0.58 0.205 35);
251
- --chart-5: oklch(0.52 0.19 28);
252
- --seg-workers: #eb6834;
284
+ --info: oklch(0.56 0.13 245);
285
+ --info-foreground: oklch(0.99 0.006 150);
286
+ --border: oklch(0.905 0.006 160);
287
+ --input: oklch(0.905 0.006 160);
288
+ /* Pillars — the dashboard's Build / Run semantics (sprout → bottle) */
289
+ --build: oklch(0.80 0.17 122);
290
+ --ship: oklch(0.62 0.15 148);
291
+ --run: oklch(0.45 0.115 155);
292
+ --chart-1: oklch(0.82 0.16 122);
293
+ --chart-2: oklch(0.70 0.16 140);
294
+ --chart-3: oklch(0.58 0.14 152);
295
+ --chart-4: oklch(0.48 0.11 165);
296
+ --chart-5: oklch(0.38 0.08 175);
297
+ --seg-workers: #2e8b57;
253
298
  --seg-deployments: #256abf;
254
- --seg-images: #1baf7a;
255
- --seg-buildcache: #eda100;
299
+ --seg-images: #8a5cc4;
300
+ --seg-buildcache: #d99500;
256
301
  --radius: 0.25rem;
257
- --sidebar: oklch(0.96 0.014 80);
258
- --sidebar-foreground: oklch(0.20 0.018 55);
259
- --sidebar-primary: oklch(0.64 0.205 41);
260
- --sidebar-primary-foreground: oklch(0.99 0.012 86);
261
- --sidebar-accent: oklch(0.93 0.022 74);
262
- --sidebar-accent-foreground: oklch(0.30 0.04 52);
263
- --sidebar-border: oklch(0.89 0.016 76);
264
- --sidebar-ring: oklch(0.64 0.205 41);
302
+ --sidebar: oklch(0.97 0.004 160);
303
+ --sidebar-foreground: oklch(0.21 0.015 165);
304
+ --sidebar-border: oklch(0.905 0.006 160);
305
+ --field: oklch(0.29 0.055 162);
306
+ --signal: oklch(0.88 0.18 124);
307
+ --primary: oklch(0.45 0.115 155);
308
+ --primary-foreground: oklch(0.99 0.006 150);
309
+ --ring: oklch(0.45 0.115 155);
310
+ --accent: oklch(0.945 0.03 150);
311
+ --accent-foreground: oklch(0.32 0.07 150);
312
+ --sidebar-primary: oklch(0.45 0.115 155);
313
+ --sidebar-primary-foreground: oklch(0.99 0.006 150);
314
+ --sidebar-accent: oklch(0.935 0.03 150);
315
+ --sidebar-accent-foreground: oklch(0.30 0.07 150);
316
+ --sidebar-ring: oklch(0.45 0.115 155);
317
+ --flame: oklch(0.45 0.115 155);
265
318
  }
266
319
 
267
- /* ─── Dark mode — Warm charcoal, golden undertone ───────────────────────── */
268
320
  .dark {
269
- --background: oklch(0.155 0.011 52);
270
- --foreground: oklch(0.95 0.009 78);
271
- --card: oklch(0.195 0.012 52);
272
- --card-foreground: oklch(0.95 0.009 78);
273
- --popover: oklch(0.195 0.012 52);
274
- --popover-foreground: oklch(0.95 0.009 78);
275
- --primary: oklch(0.70 0.20 43);
276
- --primary-foreground: oklch(0.16 0.012 52);
277
- --secondary: oklch(0.26 0.016 52);
278
- --secondary-foreground: oklch(0.95 0.009 78);
279
- --muted: oklch(0.23 0.014 52);
280
- --muted-foreground: oklch(0.67 0.022 66);
281
- --accent: oklch(0.28 0.018 54);
282
- --accent-foreground: oklch(0.95 0.009 78);
321
+ --background: oklch(0.165 0.008 165);
322
+ --foreground: oklch(0.95 0.006 150);
323
+ --card: oklch(0.20 0.01 165);
324
+ --card-foreground: oklch(0.95 0.006 150);
325
+ --popover: oklch(0.20 0.01 165);
326
+ --popover-foreground: oklch(0.95 0.006 150);
327
+ --secondary: oklch(0.26 0.012 165);
328
+ --secondary-foreground: oklch(0.95 0.006 150);
329
+ --muted: oklch(0.23 0.01 165);
330
+ --muted-foreground: oklch(0.70 0.012 160);
283
331
  --destructive: oklch(0.704 0.191 22.216);
284
- /* Status semantics — lifted for the warm charcoal bg */
285
- --success: oklch(0.72 0.15 154);
286
- --success-foreground: oklch(0.16 0.012 52);
332
+ --success: oklch(0.74 0.15 146);
333
+ --success-foreground: oklch(0.18 0.02 160);
287
334
  --warning: oklch(0.80 0.155 72);
288
- --warning-foreground: oklch(0.16 0.012 52);
289
- --info: oklch(0.68 0.13 240);
290
- --info-foreground: oklch(0.16 0.012 52);
291
- --border: oklch(0.92 0.03 70 / 11%);
292
- --input: oklch(0.92 0.03 70 / 14%);
293
- --ring: oklch(0.70 0.20 43);
294
- --build: oklch(0.83 0.15 72);
295
- --ship: oklch(0.76 0.18 53);
296
- --run: oklch(0.71 0.20 43);
297
- --flame: oklch(0.71 0.20 43);
298
- --chart-1: oklch(0.83 0.15 72);
299
- --chart-2: oklch(0.76 0.18 53);
300
- --chart-3: oklch(0.71 0.20 43);
301
- --chart-4: oklch(0.64 0.20 36);
302
- --chart-5: oklch(0.57 0.19 29);
303
- --seg-workers: #d95926;
335
+ --warning-foreground: oklch(0.18 0.02 160);
336
+ --info: oklch(0.70 0.12 240);
337
+ --info-foreground: oklch(0.18 0.02 160);
338
+ --border: oklch(0.93 0.01 150 / 11%);
339
+ --input: oklch(0.93 0.01 150 / 14%);
340
+ --build: oklch(0.86 0.17 124);
341
+ --ship: oklch(0.74 0.15 148);
342
+ --run: oklch(0.66 0.13 160);
343
+ --chart-1: oklch(0.86 0.16 122);
344
+ --chart-2: oklch(0.76 0.15 140);
345
+ --chart-3: oklch(0.67 0.13 152);
346
+ --chart-4: oklch(0.58 0.11 165);
347
+ --chart-5: oklch(0.50 0.09 175);
348
+ --seg-workers: #3fae73;
304
349
  --seg-deployments: #3987e5;
305
- --seg-images: #199e70;
350
+ --seg-images: #a47fe0;
306
351
  --seg-buildcache: #c98500;
307
- --sidebar: oklch(0.18 0.012 52);
308
- --sidebar-foreground: oklch(0.95 0.009 78);
309
- --sidebar-primary: oklch(0.70 0.20 43);
310
- --sidebar-primary-foreground: oklch(0.16 0.012 52);
311
- --sidebar-accent: oklch(0.26 0.016 52);
312
- --sidebar-accent-foreground: oklch(0.95 0.009 78);
313
- --sidebar-border: oklch(0.92 0.03 70 / 11%);
314
- --sidebar-ring: oklch(0.70 0.20 43);
352
+ --sidebar: oklch(0.185 0.009 165);
353
+ --sidebar-foreground: oklch(0.95 0.006 150);
354
+ --sidebar-border: oklch(0.93 0.01 150 / 11%);
355
+ --field: oklch(0.29 0.055 162);
356
+ --signal: oklch(0.88 0.18 124);
357
+ --primary: oklch(0.88 0.18 124);
358
+ --primary-foreground: oklch(0.29 0.055 162);
359
+ --ring: oklch(0.88 0.18 124);
360
+ --accent: oklch(0.28 0.035 150);
361
+ --accent-foreground: oklch(0.95 0.01 150);
362
+ --sidebar-primary: oklch(0.88 0.18 124);
363
+ --sidebar-primary-foreground: oklch(0.29 0.055 162);
364
+ --sidebar-accent: oklch(0.26 0.03 150);
365
+ --sidebar-accent-foreground: oklch(0.95 0.01 150);
366
+ --sidebar-ring: oklch(0.88 0.18 124);
367
+ --flame: oklch(0.88 0.18 124);
368
+ }
369
+
370
+ /* ─── The products ───────────────────────────────────────────────────────── */
371
+ /* Spunto Cloud — conservatory green / sprout */
372
+ [data-product="cloud"] {
373
+ --field: oklch(0.29 0.055 162);
374
+ --signal: oklch(0.88 0.18 124);
375
+ --primary: oklch(0.45 0.115 155);
376
+ --primary-foreground: oklch(0.99 0.006 150);
377
+ --ring: oklch(0.45 0.115 155);
378
+ --accent: oklch(0.945 0.03 150);
379
+ --accent-foreground: oklch(0.32 0.07 150);
380
+ --sidebar-primary: oklch(0.45 0.115 155);
381
+ --sidebar-primary-foreground: oklch(0.99 0.006 150);
382
+ --sidebar-accent: oklch(0.935 0.03 150);
383
+ --sidebar-accent-foreground: oklch(0.30 0.07 150);
384
+ --sidebar-ring: oklch(0.45 0.115 155);
385
+ --flame: oklch(0.45 0.115 155);
386
+ }
387
+ .dark [data-product="cloud"],
388
+ .dark[data-product="cloud"] {
389
+ --field: oklch(0.29 0.055 162);
390
+ --signal: oklch(0.88 0.18 124);
391
+ --primary: oklch(0.88 0.18 124);
392
+ --primary-foreground: oklch(0.29 0.055 162);
393
+ --ring: oklch(0.88 0.18 124);
394
+ --accent: oklch(0.28 0.035 150);
395
+ --accent-foreground: oklch(0.95 0.01 150);
396
+ --sidebar-primary: oklch(0.88 0.18 124);
397
+ --sidebar-primary-foreground: oklch(0.29 0.055 162);
398
+ --sidebar-accent: oklch(0.26 0.03 150);
399
+ --sidebar-accent-foreground: oklch(0.95 0.01 150);
400
+ --sidebar-ring: oklch(0.88 0.18 124);
401
+ --flame: oklch(0.88 0.18 124);
402
+ }
403
+ /* Spunto CMS — plum / petal */
404
+ [data-product="cms"] {
405
+ --field: oklch(0.28 0.07 335);
406
+ --signal: oklch(0.85 0.10 350);
407
+ --primary: oklch(0.48 0.15 340);
408
+ --primary-foreground: oklch(0.99 0.006 340);
409
+ --ring: oklch(0.48 0.15 340);
410
+ --accent: oklch(0.945 0.03 340);
411
+ --accent-foreground: oklch(0.32 0.07 340);
412
+ --sidebar-primary: oklch(0.48 0.15 340);
413
+ --sidebar-primary-foreground: oklch(0.99 0.006 340);
414
+ --sidebar-accent: oklch(0.935 0.03 340);
415
+ --sidebar-accent-foreground: oklch(0.30 0.07 340);
416
+ --sidebar-ring: oklch(0.48 0.15 340);
417
+ --flame: oklch(0.48 0.15 340);
418
+ }
419
+ .dark [data-product="cms"],
420
+ .dark[data-product="cms"] {
421
+ --field: oklch(0.28 0.07 335);
422
+ --signal: oklch(0.85 0.10 350);
423
+ --primary: oklch(0.85 0.10 350);
424
+ --primary-foreground: oklch(0.28 0.07 335);
425
+ --ring: oklch(0.85 0.10 350);
426
+ --accent: oklch(0.28 0.035 340);
427
+ --accent-foreground: oklch(0.95 0.01 340);
428
+ --sidebar-primary: oklch(0.85 0.10 350);
429
+ --sidebar-primary-foreground: oklch(0.28 0.07 335);
430
+ --sidebar-accent: oklch(0.26 0.03 340);
431
+ --sidebar-accent-foreground: oklch(0.95 0.01 340);
432
+ --sidebar-ring: oklch(0.85 0.10 350);
433
+ --flame: oklch(0.85 0.10 350);
434
+ }
435
+ /* Spunto Lite — ink blue / sky */
436
+ [data-product="lite"] {
437
+ --field: oklch(0.27 0.06 255);
438
+ --signal: oklch(0.85 0.10 228);
439
+ --primary: oklch(0.49 0.14 258);
440
+ --primary-foreground: oklch(0.99 0.006 255);
441
+ --ring: oklch(0.49 0.14 258);
442
+ --accent: oklch(0.945 0.03 255);
443
+ --accent-foreground: oklch(0.32 0.07 255);
444
+ --sidebar-primary: oklch(0.49 0.14 258);
445
+ --sidebar-primary-foreground: oklch(0.99 0.006 255);
446
+ --sidebar-accent: oklch(0.935 0.03 255);
447
+ --sidebar-accent-foreground: oklch(0.30 0.07 255);
448
+ --sidebar-ring: oklch(0.49 0.14 258);
449
+ --flame: oklch(0.49 0.14 258);
450
+ }
451
+ .dark [data-product="lite"],
452
+ .dark[data-product="lite"] {
453
+ --field: oklch(0.27 0.06 255);
454
+ --signal: oklch(0.85 0.10 228);
455
+ --primary: oklch(0.85 0.10 228);
456
+ --primary-foreground: oklch(0.27 0.06 255);
457
+ --ring: oklch(0.85 0.10 228);
458
+ --accent: oklch(0.28 0.035 255);
459
+ --accent-foreground: oklch(0.95 0.01 255);
460
+ --sidebar-primary: oklch(0.85 0.10 228);
461
+ --sidebar-primary-foreground: oklch(0.27 0.06 255);
462
+ --sidebar-accent: oklch(0.26 0.03 255);
463
+ --sidebar-accent-foreground: oklch(0.95 0.01 255);
464
+ --sidebar-ring: oklch(0.85 0.10 228);
465
+ --flame: oklch(0.85 0.10 228);
466
+ }
467
+ /* Spunto Browser — dusk violet / amber */
468
+ [data-product="browser"] {
469
+ --field: oklch(0.27 0.07 292);
470
+ --signal: oklch(0.87 0.14 86);
471
+ --primary: oklch(0.49 0.17 292);
472
+ --primary-foreground: oklch(0.99 0.006 292);
473
+ --ring: oklch(0.49 0.17 292);
474
+ --accent: oklch(0.945 0.03 292);
475
+ --accent-foreground: oklch(0.32 0.07 292);
476
+ --sidebar-primary: oklch(0.49 0.17 292);
477
+ --sidebar-primary-foreground: oklch(0.99 0.006 292);
478
+ --sidebar-accent: oklch(0.935 0.03 292);
479
+ --sidebar-accent-foreground: oklch(0.30 0.07 292);
480
+ --sidebar-ring: oklch(0.49 0.17 292);
481
+ --flame: oklch(0.49 0.17 292);
482
+ }
483
+ .dark [data-product="browser"],
484
+ .dark[data-product="browser"] {
485
+ --field: oklch(0.27 0.07 292);
486
+ --signal: oklch(0.87 0.14 86);
487
+ --primary: oklch(0.87 0.14 86);
488
+ --primary-foreground: oklch(0.27 0.07 292);
489
+ --ring: oklch(0.87 0.14 86);
490
+ --accent: oklch(0.28 0.035 292);
491
+ --accent-foreground: oklch(0.95 0.01 292);
492
+ --sidebar-primary: oklch(0.87 0.14 86);
493
+ --sidebar-primary-foreground: oklch(0.27 0.07 292);
494
+ --sidebar-accent: oklch(0.26 0.03 292);
495
+ --sidebar-accent-foreground: oklch(0.95 0.01 292);
496
+ --sidebar-ring: oklch(0.87 0.14 86);
497
+ --flame: oklch(0.87 0.14 86);
498
+ }
499
+ /* Spunto Search — deep teal / aqua */
500
+ [data-product="search"] {
501
+ --field: oklch(0.28 0.05 208);
502
+ --signal: oklch(0.87 0.10 192);
503
+ --primary: oklch(0.49 0.09 212);
504
+ --primary-foreground: oklch(0.99 0.006 210);
505
+ --ring: oklch(0.49 0.09 212);
506
+ --accent: oklch(0.945 0.03 210);
507
+ --accent-foreground: oklch(0.32 0.07 210);
508
+ --sidebar-primary: oklch(0.49 0.09 212);
509
+ --sidebar-primary-foreground: oklch(0.99 0.006 210);
510
+ --sidebar-accent: oklch(0.935 0.03 210);
511
+ --sidebar-accent-foreground: oklch(0.30 0.07 210);
512
+ --sidebar-ring: oklch(0.49 0.09 212);
513
+ --flame: oklch(0.49 0.09 212);
514
+ }
515
+ .dark [data-product="search"],
516
+ .dark[data-product="search"] {
517
+ --field: oklch(0.28 0.05 208);
518
+ --signal: oklch(0.87 0.10 192);
519
+ --primary: oklch(0.87 0.10 192);
520
+ --primary-foreground: oklch(0.28 0.05 208);
521
+ --ring: oklch(0.87 0.10 192);
522
+ --accent: oklch(0.28 0.035 210);
523
+ --accent-foreground: oklch(0.95 0.01 210);
524
+ --sidebar-primary: oklch(0.87 0.10 192);
525
+ --sidebar-primary-foreground: oklch(0.28 0.05 208);
526
+ --sidebar-accent: oklch(0.26 0.03 210);
527
+ --sidebar-accent-foreground: oklch(0.95 0.01 210);
528
+ --sidebar-ring: oklch(0.87 0.10 192);
529
+ --flame: oklch(0.87 0.10 192);
530
+ }
531
+ /* @spunto/design-system — graphite / paper */
532
+ [data-product="ds"] {
533
+ --field: oklch(0.22 0.012 165);
534
+ --signal: oklch(0.96 0.01 150);
535
+ --primary: oklch(0.30 0.02 165);
536
+ --primary-foreground: oklch(0.99 0.006 165);
537
+ --ring: oklch(0.30 0.02 165);
538
+ --accent: oklch(0.945 0.03 165);
539
+ --accent-foreground: oklch(0.32 0.07 165);
540
+ --sidebar-primary: oklch(0.30 0.02 165);
541
+ --sidebar-primary-foreground: oklch(0.99 0.006 165);
542
+ --sidebar-accent: oklch(0.935 0.03 165);
543
+ --sidebar-accent-foreground: oklch(0.30 0.07 165);
544
+ --sidebar-ring: oklch(0.30 0.02 165);
545
+ --flame: oklch(0.30 0.02 165);
546
+ }
547
+ .dark [data-product="ds"],
548
+ .dark[data-product="ds"] {
549
+ --field: oklch(0.22 0.012 165);
550
+ --signal: oklch(0.96 0.01 150);
551
+ --primary: oklch(0.96 0.01 150);
552
+ --primary-foreground: oklch(0.22 0.012 165);
553
+ --ring: oklch(0.96 0.01 150);
554
+ --accent: oklch(0.28 0.035 165);
555
+ --accent-foreground: oklch(0.95 0.01 165);
556
+ --sidebar-primary: oklch(0.96 0.01 150);
557
+ --sidebar-primary-foreground: oklch(0.22 0.012 165);
558
+ --sidebar-accent: oklch(0.26 0.03 165);
559
+ --sidebar-accent-foreground: oklch(0.95 0.01 165);
560
+ --sidebar-ring: oklch(0.96 0.01 150);
561
+ --flame: oklch(0.96 0.01 150);
315
562
  }
316
563
 
317
564
  /* ─── Marketing night surfaces — deliberately NOT themed ─────────────────────
318
565
  *
319
- * Two dark values that stay the same in light and dark mode, because they are
320
- * the *dark moment* of a page rather than a surface that follows the theme:
321
- *
322
- * --night the contrast band a marketing page opens on (`NightBand`).
323
- * Deeper than the dark theme's own background (0.155) so the
324
- * band still reads as a band when the whole site is dark.
325
- * --code-surface the warm dark behind a snippet or a copyable command
326
- * (`CodeBlock`, `CopyCommand`) — the same one every
327
- * terminal-ish panel of the site uses.
328
- *
329
- * They live here, as tokens (`bg-night`, `bg-code-surface`), precisely because
330
- * they used to be two near-identical `oklch(…)` literals copy-pasted into two
331
- * component files — which is how a design system ends up with two blacks. */
566
+ * --night the band a marketing page opens on (`NightBand`): the
567
+ * product's field, so each product page opens in its own
568
+ * colour. Set per product above through `--field`.
569
+ * --code-surface the near-black behind a snippet or a copyable command
570
+ * (`CodeBlock`, `CopyCommand`), shared by every product.
571
+ */
332
572
  :root {
333
- --night: oklch(0.14 0.013 50);
334
- --code-surface: oklch(0.16 0.012 52);
573
+ --code-surface: oklch(0.19 0.012 165);
574
+ }
575
+ :root,
576
+ [data-product] {
577
+ --night: var(--field);
335
578
  }
336
579
 
337
580
  /* ─── Base layer ─────────────────────────────────────────────────────────── */
@@ -340,6 +583,12 @@
340
583
  border-color: var(--border);
341
584
  outline-color: color-mix(in oklch, var(--ring) 50%, transparent);
342
585
  }
586
+ /* Young Serif has one weight: a `font-bold` next to `font-display` must not
587
+ smear into a synthesized bold. */
588
+ .font-display {
589
+ font-synthesis: none;
590
+ font-weight: 400;
591
+ }
343
592
  body {
344
593
  background-color: var(--background);
345
594
  color: var(--foreground);
@@ -398,24 +647,24 @@
398
647
  border-radius: 9999px;
399
648
  }
400
649
 
401
- /* ─── Warm background utilities ──────────────────────────────────────────── */
650
+ /* ─── Background utilities ──────────────────────────────────────────── */
402
651
  .dot-grid {
403
- background-image: radial-gradient(circle, oklch(0.45 0.05 50 / 0.08) 1px, transparent 1px);
652
+ background-image: radial-gradient(circle, oklch(0.40 0.04 160 / 0.08) 1px, transparent 1px);
404
653
  background-size: 32px 32px;
405
654
  }
406
655
  .dark .dot-grid {
407
- background-image: radial-gradient(circle, oklch(0.92 0.04 70 / 0.045) 1px, transparent 1px);
656
+ background-image: radial-gradient(circle, oklch(0.92 0.04 140 / 0.045) 1px, transparent 1px);
408
657
  }
409
658
  .grid-lines {
410
659
  background-image:
411
- linear-gradient(to right, oklch(0.45 0.05 50 / 0.055) 1px, transparent 1px),
412
- linear-gradient(to bottom, oklch(0.45 0.05 50 / 0.055) 1px, transparent 1px);
660
+ linear-gradient(to right, oklch(0.40 0.04 160 / 0.055) 1px, transparent 1px),
661
+ linear-gradient(to bottom, oklch(0.40 0.04 160 / 0.055) 1px, transparent 1px);
413
662
  background-size: 56px 56px;
414
663
  }
415
664
  .dark .grid-lines {
416
665
  background-image:
417
- linear-gradient(to right, oklch(0.92 0.04 70 / 0.04) 1px, transparent 1px),
418
- linear-gradient(to bottom, oklch(0.92 0.04 70 / 0.04) 1px, transparent 1px);
666
+ linear-gradient(to right, oklch(0.92 0.04 140 / 0.04) 1px, transparent 1px),
667
+ linear-gradient(to bottom, oklch(0.92 0.04 140 / 0.04) 1px, transparent 1px);
419
668
  }
420
669
 
421
670
  /* ─── Night band utilities (@spunto/design-system/marketing) ─────────────────