@spunto/design-system 0.51.0 → 0.52.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 +1 -1
- package/src/brand/logo.test.tsx +7 -1
- package/src/brand/logo.ts +15 -12
- package/src/brand/spunto-logo.tsx +7 -3
- package/src/colors.ts +11 -10
- package/styles.css +120 -52
package/package.json
CHANGED
package/src/brand/logo.test.tsx
CHANGED
|
@@ -34,7 +34,13 @@ 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="#
|
|
37
|
+
expect(svg).toContain('fill="#281f45"')
|
|
38
|
+
})
|
|
39
|
+
|
|
40
|
+
it("reads the product's tokens in the product tone", () => {
|
|
41
|
+
const svg = renderToStaticMarkup(<SpuntoLogo tone="product" />)
|
|
42
|
+
expect(svg).toContain('fill="var(--signal)"')
|
|
43
|
+
expect(svg.match(/fill="var\(--field\)"/g)).toHaveLength(spuntoLogoShapes("glyph").length)
|
|
38
44
|
})
|
|
39
45
|
|
|
40
46
|
it("is hidden from assistive tech unless it is given a name", () => {
|
package/src/brand/logo.ts
CHANGED
|
@@ -167,31 +167,34 @@ 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 — Spunto Cloud: signal tile, field ink
|
|
171
|
-
*
|
|
172
|
-
|
|
170
|
+
/** The brand — Spunto Cloud: signal tile, field ink (amber on dusk violet
|
|
171
|
+
* since 2026-10-26, the pair it took over from Browser). The key keeps its
|
|
172
|
+
* old name so every `tone="flame"` caller follows. */
|
|
173
|
+
flame: { tile: "#fdcd5c", ink: "#281f45" },
|
|
174
|
+
/** Cloud's green until 2026-10-26 — `data-product="sprout"`. */
|
|
175
|
+
sprout: { tile: "#bfeb56", ink: "#0a3423" },
|
|
173
176
|
/** Spunto Lite — sky on ink blue. */
|
|
174
177
|
build: { tile: "#83dbff", ink: "#102743" },
|
|
175
|
-
/** Spunto Browser — amber on dusk. */
|
|
178
|
+
/** Spunto Browser — amber on dusk (Cloud's pair too since 2026-10-26). */
|
|
176
179
|
ship: { tile: "#fdcd5c", ink: "#281f45" },
|
|
177
180
|
/** Spunto Cloud's mid tone, light ink — for a light page that wants weight. */
|
|
178
|
-
run: { tile: "#
|
|
181
|
+
run: { tile: "#6646b7", ink: "#f5f4fc" },
|
|
179
182
|
/** The design system — graphite tile, paper ink. */
|
|
180
183
|
night: { tile: "#161c19", ink: "#edf4ee" },
|
|
181
184
|
/** Paper tile, field ink, the container lit in Cloud's tone — for a light print. */
|
|
182
|
-
cream: { tile: "#f8fbf6", ink: "#
|
|
185
|
+
cream: { tile: "#f8fbf6", ink: "#281f45", core: "#6646b7" },
|
|
183
186
|
/** Spunto CMS — petal on plum. */
|
|
184
187
|
cms: { tile: "#ffb3d7", ink: "#3d1a36" },
|
|
185
188
|
/** Spunto Search — aqua on deep teal. */
|
|
186
189
|
search: { tile: "#7ee9e5", ink: "#002f36" },
|
|
187
190
|
/** Cloud's field, the three pillars lit (night register). */
|
|
188
191
|
pillars: {
|
|
189
|
-
tile: "#
|
|
190
|
-
ink: "#
|
|
191
|
-
fleet: "#
|
|
192
|
-
build: "#
|
|
193
|
-
ship: "#
|
|
194
|
-
run: "#
|
|
192
|
+
tile: "#281f45",
|
|
193
|
+
ink: "#f5f4fc",
|
|
194
|
+
fleet: "#8f8ca0",
|
|
195
|
+
build: "#fdcd5c",
|
|
196
|
+
ship: "#fe8c64",
|
|
197
|
+
run: "#e66a84",
|
|
195
198
|
},
|
|
196
199
|
} as const satisfies Record<string, SpuntoLogoPaint>
|
|
197
200
|
|
|
@@ -23,7 +23,10 @@ import {
|
|
|
23
23
|
from the tokens (see `SPUNTO_LOGO_TONES`); `ink` is the odd one out: no
|
|
24
24
|
tile, and the drawing takes `currentColor`, so it follows the text colour
|
|
25
25
|
it sits in — the right choice for a header on a themed surface, where a
|
|
26
|
-
fixed flame tile would fight the page.
|
|
26
|
+
fixed flame tile would fight the page. `product` is the other live one:
|
|
27
|
+
the flame layout (signal tile, field ink) read from the tokens, so it wears
|
|
28
|
+
whatever `data-product` it sits under — the dashboard, where a member picks
|
|
29
|
+
their colour, uses it so the logo changes with everything else.
|
|
27
30
|
|
|
28
31
|
`paint` overrides any tone field by field. A product whose accent is not a
|
|
29
32
|
design-system token (the site's marketing `rust`, say) passes its own tile
|
|
@@ -32,7 +35,7 @@ import {
|
|
|
32
35
|
export interface SpuntoLogoProps extends Omit<SVGProps<SVGSVGElement>, "children" | "viewBox"> {
|
|
33
36
|
variant?: SpuntoLogoVariant
|
|
34
37
|
/** @default "flame" */
|
|
35
|
-
tone?: SpuntoLogoTone | "ink"
|
|
38
|
+
tone?: SpuntoLogoTone | "ink" | "product"
|
|
36
39
|
/** Per-role overrides on top of the tone. */
|
|
37
40
|
paint?: Partial<SpuntoLogoPaint>
|
|
38
41
|
/** Width and height, in px. Leave it out to size with `className`. */
|
|
@@ -55,6 +58,7 @@ export interface SpuntoLogoProps extends Omit<SVGProps<SVGSVGElement>, "children
|
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
const INK: SpuntoLogoPaint = { ink: "currentColor" }
|
|
61
|
+
const PRODUCT: SpuntoLogoPaint = { tile: "var(--signal)", ink: "var(--field)" }
|
|
58
62
|
|
|
59
63
|
type ShapeAttrs = Pick<SVGProps<SVGElement>, "className" | "style">
|
|
60
64
|
|
|
@@ -133,7 +137,7 @@ export function SpuntoLogo({
|
|
|
133
137
|
className,
|
|
134
138
|
...rest
|
|
135
139
|
}: SpuntoLogoProps) {
|
|
136
|
-
const base: SpuntoLogoPaint = tone === "ink" ? INK : SPUNTO_LOGO_TONES[tone]
|
|
140
|
+
const base: SpuntoLogoPaint = tone === "ink" ? INK : tone === "product" ? PRODUCT : SPUNTO_LOGO_TONES[tone]
|
|
137
141
|
const paint: SpuntoLogoPaint = { ...base, ...overrides }
|
|
138
142
|
const shapes = paint.tile ? [spuntoLogoTile(), ...spuntoLogoShapes(variant)] : spuntoLogoShapes(variant)
|
|
139
143
|
|
package/src/colors.ts
CHANGED
|
@@ -20,20 +20,21 @@ export const cssVar = {
|
|
|
20
20
|
run: "var(--run)",
|
|
21
21
|
} as const
|
|
22
22
|
|
|
23
|
-
/**
|
|
23
|
+
/** Line colors for time-series charts (recharts strokes, etc.). Token
|
|
24
|
+
* references, so they follow the product being worn and the theme. */
|
|
24
25
|
export const chartColors = {
|
|
25
|
-
cpu: "
|
|
26
|
-
memory: "
|
|
27
|
-
ship: "
|
|
26
|
+
cpu: "var(--run)",
|
|
27
|
+
memory: "var(--build)",
|
|
28
|
+
ship: "var(--ship)",
|
|
28
29
|
} as const
|
|
29
30
|
|
|
30
|
-
/** Sequential
|
|
31
|
+
/** Sequential ramp (the product's signal → its mid tone). Same as --chart-1..5. */
|
|
31
32
|
export const chartRamp = [
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
33
|
+
"var(--chart-1)",
|
|
34
|
+
"var(--chart-2)",
|
|
35
|
+
"var(--chart-3)",
|
|
36
|
+
"var(--chart-4)",
|
|
37
|
+
"var(--chart-5)",
|
|
37
38
|
] as const
|
|
38
39
|
|
|
39
40
|
/** Categorical, CVD-validated slots for disk/segment breakdowns. */
|
package/styles.css
CHANGED
|
@@ -232,20 +232,23 @@
|
|
|
232
232
|
*
|
|
233
233
|
* --field its deep colour: the band a page opens on, a logo's ink
|
|
234
234
|
* --signal its bright one: what is alive, the action on a field
|
|
235
|
-
* --
|
|
235
|
+
* --tone its mid tone, between the two (Run, the end of the chart ramp)
|
|
236
|
+
* --primary derived from them — the mid tone on light, the signal on dark
|
|
236
237
|
*
|
|
237
238
|
* Pick the product with `data-product="cloud|cms|lite|browser|search|ds"` on
|
|
238
239
|
* <html> or on any subtree (a marketing card can wear another product's
|
|
239
|
-
* colours inside a page). No attribute = Spunto Cloud
|
|
240
|
+
* colours inside a page). No attribute = Spunto Cloud — dusk violet and amber
|
|
241
|
+
* since 2026-10-26 (Browser's pair, Browser being on its way out); its former green is kept as `data-product="sprout"`, a
|
|
242
|
+
* palette with no product behind it (the dashboard lets a member pick it). Every product's raw
|
|
240
243
|
* pair is also on :root (`--cms-field`, `--cms-signal`, `--cms`…, Tailwind
|
|
241
244
|
* `bg-cms-field`, `text-cms`…) so one page can show the whole family.
|
|
242
245
|
*
|
|
243
246
|
* Token *names* are shadcn's (https://ui.shadcn.com, MIT) plus ours; `--flame`
|
|
244
247
|
* is the legacy name of the brand colour and follows `--primary`. */
|
|
245
248
|
:root {
|
|
246
|
-
--cloud-field: oklch(0.
|
|
247
|
-
--cloud-signal: oklch(0.
|
|
248
|
-
--cloud: oklch(0.
|
|
249
|
+
--cloud-field: oklch(0.27 0.07 292);
|
|
250
|
+
--cloud-signal: oklch(0.87 0.14 86);
|
|
251
|
+
--cloud: oklch(0.49 0.17 292);
|
|
249
252
|
--cms-field: oklch(0.28 0.07 335);
|
|
250
253
|
--cms-signal: oklch(0.85 0.10 350);
|
|
251
254
|
--cms: oklch(0.48 0.15 340);
|
|
@@ -285,15 +288,6 @@
|
|
|
285
288
|
--info-foreground: oklch(0.99 0.006 150);
|
|
286
289
|
--border: oklch(0.905 0.006 160);
|
|
287
290
|
--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
291
|
--seg-workers: #2e8b57;
|
|
298
292
|
--seg-deployments: #256abf;
|
|
299
293
|
--seg-images: #8a5cc4;
|
|
@@ -302,19 +296,20 @@
|
|
|
302
296
|
--sidebar: oklch(0.97 0.004 160);
|
|
303
297
|
--sidebar-foreground: oklch(0.21 0.015 165);
|
|
304
298
|
--sidebar-border: oklch(0.905 0.006 160);
|
|
305
|
-
--field: oklch(0.
|
|
306
|
-
--signal: oklch(0.
|
|
307
|
-
--
|
|
308
|
-
--primary
|
|
309
|
-
--
|
|
310
|
-
--
|
|
311
|
-
--accent
|
|
312
|
-
--
|
|
313
|
-
--sidebar-primary
|
|
314
|
-
--sidebar-
|
|
315
|
-
--sidebar-accent
|
|
316
|
-
--sidebar-
|
|
317
|
-
--
|
|
299
|
+
--field: oklch(0.27 0.07 292);
|
|
300
|
+
--signal: oklch(0.87 0.14 86);
|
|
301
|
+
--tone: oklch(0.49 0.17 292);
|
|
302
|
+
--primary: oklch(0.49 0.17 292);
|
|
303
|
+
--primary-foreground: oklch(0.99 0.006 292);
|
|
304
|
+
--ring: oklch(0.49 0.17 292);
|
|
305
|
+
--accent: oklch(0.945 0.03 292);
|
|
306
|
+
--accent-foreground: oklch(0.32 0.07 292);
|
|
307
|
+
--sidebar-primary: oklch(0.49 0.17 292);
|
|
308
|
+
--sidebar-primary-foreground: oklch(0.99 0.006 292);
|
|
309
|
+
--sidebar-accent: oklch(0.935 0.03 292);
|
|
310
|
+
--sidebar-accent-foreground: oklch(0.30 0.07 292);
|
|
311
|
+
--sidebar-ring: oklch(0.49 0.17 292);
|
|
312
|
+
--flame: oklch(0.49 0.17 292);
|
|
318
313
|
}
|
|
319
314
|
|
|
320
315
|
.dark {
|
|
@@ -337,14 +332,6 @@
|
|
|
337
332
|
--info-foreground: oklch(0.18 0.02 160);
|
|
338
333
|
--border: oklch(0.93 0.01 150 / 11%);
|
|
339
334
|
--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
335
|
--seg-workers: #3fae73;
|
|
349
336
|
--seg-deployments: #3987e5;
|
|
350
337
|
--seg-images: #a47fe0;
|
|
@@ -352,26 +339,64 @@
|
|
|
352
339
|
--sidebar: oklch(0.185 0.009 165);
|
|
353
340
|
--sidebar-foreground: oklch(0.95 0.006 150);
|
|
354
341
|
--sidebar-border: oklch(0.93 0.01 150 / 11%);
|
|
355
|
-
--field: oklch(0.
|
|
356
|
-
--signal: oklch(0.
|
|
357
|
-
--
|
|
358
|
-
--primary
|
|
359
|
-
--
|
|
360
|
-
--
|
|
361
|
-
--accent
|
|
362
|
-
--
|
|
363
|
-
--sidebar-primary
|
|
364
|
-
--sidebar-
|
|
365
|
-
--sidebar-accent
|
|
366
|
-
--sidebar-
|
|
367
|
-
--
|
|
342
|
+
--field: oklch(0.27 0.07 292);
|
|
343
|
+
--signal: oklch(0.87 0.14 86);
|
|
344
|
+
--tone: oklch(0.49 0.17 292);
|
|
345
|
+
--primary: oklch(0.87 0.14 86);
|
|
346
|
+
--primary-foreground: oklch(0.27 0.07 292);
|
|
347
|
+
--ring: oklch(0.87 0.14 86);
|
|
348
|
+
--accent: oklch(0.28 0.035 292);
|
|
349
|
+
--accent-foreground: oklch(0.95 0.01 292);
|
|
350
|
+
--sidebar-primary: oklch(0.87 0.14 86);
|
|
351
|
+
--sidebar-primary-foreground: oklch(0.27 0.07 292);
|
|
352
|
+
--sidebar-accent: oklch(0.26 0.03 292);
|
|
353
|
+
--sidebar-accent-foreground: oklch(0.95 0.01 292);
|
|
354
|
+
--sidebar-ring: oklch(0.87 0.14 86);
|
|
355
|
+
--flame: oklch(0.87 0.14 86);
|
|
368
356
|
}
|
|
369
357
|
|
|
370
358
|
/* ─── The products ───────────────────────────────────────────────────────── */
|
|
371
|
-
/* Spunto Cloud —
|
|
359
|
+
/* Spunto Cloud — dusk violet / amber (Browser's pair, taken over 2026-10-26;
|
|
360
|
+
conservatory green until then: `sprout`) */
|
|
372
361
|
[data-product="cloud"] {
|
|
362
|
+
--field: oklch(0.27 0.07 292);
|
|
363
|
+
--signal: oklch(0.87 0.14 86);
|
|
364
|
+
--tone: oklch(0.49 0.17 292);
|
|
365
|
+
--primary: oklch(0.49 0.17 292);
|
|
366
|
+
--primary-foreground: oklch(0.99 0.006 292);
|
|
367
|
+
--ring: oklch(0.49 0.17 292);
|
|
368
|
+
--accent: oklch(0.945 0.03 292);
|
|
369
|
+
--accent-foreground: oklch(0.32 0.07 292);
|
|
370
|
+
--sidebar-primary: oklch(0.49 0.17 292);
|
|
371
|
+
--sidebar-primary-foreground: oklch(0.99 0.006 292);
|
|
372
|
+
--sidebar-accent: oklch(0.935 0.03 292);
|
|
373
|
+
--sidebar-accent-foreground: oklch(0.30 0.07 292);
|
|
374
|
+
--sidebar-ring: oklch(0.49 0.17 292);
|
|
375
|
+
--flame: oklch(0.49 0.17 292);
|
|
376
|
+
}
|
|
377
|
+
.dark [data-product="cloud"],
|
|
378
|
+
.dark[data-product="cloud"] {
|
|
379
|
+
--field: oklch(0.27 0.07 292);
|
|
380
|
+
--signal: oklch(0.87 0.14 86);
|
|
381
|
+
--tone: oklch(0.49 0.17 292);
|
|
382
|
+
--primary: oklch(0.87 0.14 86);
|
|
383
|
+
--primary-foreground: oklch(0.27 0.07 292);
|
|
384
|
+
--ring: oklch(0.87 0.14 86);
|
|
385
|
+
--accent: oklch(0.28 0.035 292);
|
|
386
|
+
--accent-foreground: oklch(0.95 0.01 292);
|
|
387
|
+
--sidebar-primary: oklch(0.87 0.14 86);
|
|
388
|
+
--sidebar-primary-foreground: oklch(0.27 0.07 292);
|
|
389
|
+
--sidebar-accent: oklch(0.26 0.03 292);
|
|
390
|
+
--sidebar-accent-foreground: oklch(0.95 0.01 292);
|
|
391
|
+
--sidebar-ring: oklch(0.87 0.14 86);
|
|
392
|
+
--flame: oklch(0.87 0.14 86);
|
|
393
|
+
}
|
|
394
|
+
/* Sprout — no product: Spunto Cloud's green until 2026-10-26, kept as a
|
|
395
|
+
palette a member can dress the dashboard in (apps/next/lib/accent.ts) */
|
|
396
|
+
[data-product="sprout"] {
|
|
373
397
|
--field: oklch(0.29 0.055 162);
|
|
374
398
|
--signal: oklch(0.88 0.18 124);
|
|
399
|
+
--tone: oklch(0.45 0.115 155);
|
|
375
400
|
--primary: oklch(0.45 0.115 155);
|
|
376
401
|
--primary-foreground: oklch(0.99 0.006 150);
|
|
377
402
|
--ring: oklch(0.45 0.115 155);
|
|
@@ -384,10 +409,11 @@
|
|
|
384
409
|
--sidebar-ring: oklch(0.45 0.115 155);
|
|
385
410
|
--flame: oklch(0.45 0.115 155);
|
|
386
411
|
}
|
|
387
|
-
.dark [data-product="
|
|
388
|
-
.dark[data-product="
|
|
412
|
+
.dark [data-product="sprout"],
|
|
413
|
+
.dark[data-product="sprout"] {
|
|
389
414
|
--field: oklch(0.29 0.055 162);
|
|
390
415
|
--signal: oklch(0.88 0.18 124);
|
|
416
|
+
--tone: oklch(0.45 0.115 155);
|
|
391
417
|
--primary: oklch(0.88 0.18 124);
|
|
392
418
|
--primary-foreground: oklch(0.29 0.055 162);
|
|
393
419
|
--ring: oklch(0.88 0.18 124);
|
|
@@ -404,6 +430,7 @@
|
|
|
404
430
|
[data-product="cms"] {
|
|
405
431
|
--field: oklch(0.28 0.07 335);
|
|
406
432
|
--signal: oklch(0.85 0.10 350);
|
|
433
|
+
--tone: oklch(0.48 0.15 340);
|
|
407
434
|
--primary: oklch(0.48 0.15 340);
|
|
408
435
|
--primary-foreground: oklch(0.99 0.006 340);
|
|
409
436
|
--ring: oklch(0.48 0.15 340);
|
|
@@ -420,6 +447,7 @@
|
|
|
420
447
|
.dark[data-product="cms"] {
|
|
421
448
|
--field: oklch(0.28 0.07 335);
|
|
422
449
|
--signal: oklch(0.85 0.10 350);
|
|
450
|
+
--tone: oklch(0.48 0.15 340);
|
|
423
451
|
--primary: oklch(0.85 0.10 350);
|
|
424
452
|
--primary-foreground: oklch(0.28 0.07 335);
|
|
425
453
|
--ring: oklch(0.85 0.10 350);
|
|
@@ -436,6 +464,7 @@
|
|
|
436
464
|
[data-product="lite"] {
|
|
437
465
|
--field: oklch(0.27 0.06 255);
|
|
438
466
|
--signal: oklch(0.85 0.10 228);
|
|
467
|
+
--tone: oklch(0.49 0.14 258);
|
|
439
468
|
--primary: oklch(0.49 0.14 258);
|
|
440
469
|
--primary-foreground: oklch(0.99 0.006 255);
|
|
441
470
|
--ring: oklch(0.49 0.14 258);
|
|
@@ -452,6 +481,7 @@
|
|
|
452
481
|
.dark[data-product="lite"] {
|
|
453
482
|
--field: oklch(0.27 0.06 255);
|
|
454
483
|
--signal: oklch(0.85 0.10 228);
|
|
484
|
+
--tone: oklch(0.49 0.14 258);
|
|
455
485
|
--primary: oklch(0.85 0.10 228);
|
|
456
486
|
--primary-foreground: oklch(0.27 0.06 255);
|
|
457
487
|
--ring: oklch(0.85 0.10 228);
|
|
@@ -464,10 +494,12 @@
|
|
|
464
494
|
--sidebar-ring: oklch(0.85 0.10 228);
|
|
465
495
|
--flame: oklch(0.85 0.10 228);
|
|
466
496
|
}
|
|
467
|
-
/* Spunto Browser — dusk violet / amber
|
|
497
|
+
/* Spunto Browser — dusk violet / amber, same pair as Cloud since 2026-10-26
|
|
498
|
+
(Browser is being deprecated) */
|
|
468
499
|
[data-product="browser"] {
|
|
469
500
|
--field: oklch(0.27 0.07 292);
|
|
470
501
|
--signal: oklch(0.87 0.14 86);
|
|
502
|
+
--tone: oklch(0.49 0.17 292);
|
|
471
503
|
--primary: oklch(0.49 0.17 292);
|
|
472
504
|
--primary-foreground: oklch(0.99 0.006 292);
|
|
473
505
|
--ring: oklch(0.49 0.17 292);
|
|
@@ -484,6 +516,7 @@
|
|
|
484
516
|
.dark[data-product="browser"] {
|
|
485
517
|
--field: oklch(0.27 0.07 292);
|
|
486
518
|
--signal: oklch(0.87 0.14 86);
|
|
519
|
+
--tone: oklch(0.49 0.17 292);
|
|
487
520
|
--primary: oklch(0.87 0.14 86);
|
|
488
521
|
--primary-foreground: oklch(0.27 0.07 292);
|
|
489
522
|
--ring: oklch(0.87 0.14 86);
|
|
@@ -500,6 +533,7 @@
|
|
|
500
533
|
[data-product="search"] {
|
|
501
534
|
--field: oklch(0.28 0.05 208);
|
|
502
535
|
--signal: oklch(0.87 0.10 192);
|
|
536
|
+
--tone: oklch(0.49 0.09 212);
|
|
503
537
|
--primary: oklch(0.49 0.09 212);
|
|
504
538
|
--primary-foreground: oklch(0.99 0.006 210);
|
|
505
539
|
--ring: oklch(0.49 0.09 212);
|
|
@@ -516,6 +550,7 @@
|
|
|
516
550
|
.dark[data-product="search"] {
|
|
517
551
|
--field: oklch(0.28 0.05 208);
|
|
518
552
|
--signal: oklch(0.87 0.10 192);
|
|
553
|
+
--tone: oklch(0.49 0.09 212);
|
|
519
554
|
--primary: oklch(0.87 0.10 192);
|
|
520
555
|
--primary-foreground: oklch(0.28 0.05 208);
|
|
521
556
|
--ring: oklch(0.87 0.10 192);
|
|
@@ -532,6 +567,7 @@
|
|
|
532
567
|
[data-product="ds"] {
|
|
533
568
|
--field: oklch(0.22 0.012 165);
|
|
534
569
|
--signal: oklch(0.96 0.01 150);
|
|
570
|
+
--tone: oklch(0.30 0.02 165);
|
|
535
571
|
--primary: oklch(0.30 0.02 165);
|
|
536
572
|
--primary-foreground: oklch(0.99 0.006 165);
|
|
537
573
|
--ring: oklch(0.30 0.02 165);
|
|
@@ -548,6 +584,7 @@
|
|
|
548
584
|
.dark[data-product="ds"] {
|
|
549
585
|
--field: oklch(0.22 0.012 165);
|
|
550
586
|
--signal: oklch(0.96 0.01 150);
|
|
587
|
+
--tone: oklch(0.30 0.02 165);
|
|
551
588
|
--primary: oklch(0.96 0.01 150);
|
|
552
589
|
--primary-foreground: oklch(0.22 0.012 165);
|
|
553
590
|
--ring: oklch(0.96 0.01 150);
|
|
@@ -577,6 +614,37 @@
|
|
|
577
614
|
--night: var(--field);
|
|
578
615
|
}
|
|
579
616
|
|
|
617
|
+
/* ─── Derived from the product: pillars and charts ───────────────────────────
|
|
618
|
+
* Build / Ship / Run (the dashboard's semantics) and the chart ramp are not
|
|
619
|
+
* colours of their own: they run from the product's signal (Build, the most
|
|
620
|
+
* alive) to its mid tone `--tone` (Run, what settled). Declared on every
|
|
621
|
+
* `[data-product]` so a subtree wearing another product re-derives them —
|
|
622
|
+
* same reason as `--night` above. Dark lifts the ramp: Run can't sit at the
|
|
623
|
+
* mid tone on a near-black ground. */
|
|
624
|
+
:root,
|
|
625
|
+
[data-product] {
|
|
626
|
+
--build: color-mix(in oklch, var(--signal) 80%, var(--tone));
|
|
627
|
+
--ship: color-mix(in oklch, var(--signal) 40%, var(--tone));
|
|
628
|
+
--run: var(--tone);
|
|
629
|
+
--chart-1: color-mix(in oklch, var(--signal) 85%, var(--tone));
|
|
630
|
+
--chart-2: color-mix(in oklch, var(--signal) 55%, var(--tone));
|
|
631
|
+
--chart-3: color-mix(in oklch, var(--signal) 30%, var(--tone));
|
|
632
|
+
--chart-4: var(--tone);
|
|
633
|
+
--chart-5: color-mix(in oklch, var(--tone) 65%, var(--field));
|
|
634
|
+
}
|
|
635
|
+
.dark,
|
|
636
|
+
.dark [data-product],
|
|
637
|
+
.dark[data-product] {
|
|
638
|
+
--build: var(--signal);
|
|
639
|
+
--ship: color-mix(in oklch, var(--signal) 70%, var(--tone));
|
|
640
|
+
--run: color-mix(in oklch, var(--signal) 50%, var(--tone));
|
|
641
|
+
--chart-1: var(--signal);
|
|
642
|
+
--chart-2: color-mix(in oklch, var(--signal) 75%, var(--tone));
|
|
643
|
+
--chart-3: color-mix(in oklch, var(--signal) 55%, var(--tone));
|
|
644
|
+
--chart-4: color-mix(in oklch, var(--signal) 35%, var(--tone));
|
|
645
|
+
--chart-5: color-mix(in oklch, var(--signal) 20%, var(--tone));
|
|
646
|
+
}
|
|
647
|
+
|
|
580
648
|
/* ─── Base layer ─────────────────────────────────────────────────────────── */
|
|
581
649
|
@layer base {
|
|
582
650
|
* {
|