@vouched-id/ui 0.1.3 → 0.1.4

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/styles/tokens.css CHANGED
@@ -58,11 +58,18 @@
58
58
  tailwind-bridge.css points Tailwind's `--color-white` /
59
59
  `--color-black` at them.
60
60
 
61
+ Sources: light follows the Vouched brand guide (2026); dark keeps
62
+ Checkpoint's dark. Each mode block owns its colours, the code well,
63
+ texture hues and warn badge included, so a mode never borrows from
64
+ the other.
65
+
61
66
  Doctrine (the five rules):
62
- 01 · Mint is the single signal color. Live state, identity,
63
- focus. Never a primary CTA fill.
64
- 02 · Violet is the action. Primary CTAs are brand-violet
65
- (`--brand` / `--on-brand`); there is no white primary
67
+ 01 · One signal color per mode: live state and identity. Mint on
68
+ ink; on paper, the brand guide's Verified teal. Never a
69
+ primary CTA fill.
70
+ 02 · The brand is the action: violet on ink, Vouched Blue on
71
+ paper. Primary CTAs are the brand fill (`--brand` /
72
+ `--on-brand`); there is no white primary
66
73
  button (Decision B, 2026-07). The `--action-*` token pair
67
74
  is retained only for the remaining NON-button surfaces that
68
75
  still consume it (see semantic-bindings.css); it is
@@ -71,8 +78,8 @@
71
78
  weight.
72
79
  04 · Hard corners on data — `--radius-xs` (2px) on tables, code,
73
80
  kbd, dots. Soft corners on interactive controls (chips,
74
- buttons, inputs): `--radius-md` (8px). Cards and editorial:
75
- `--radius-lg` (12px).
81
+ buttons, inputs): `--radius-md` (6px, the brand button).
82
+ Cards and editorial: `--radius-lg` (12px).
76
83
  05 · 12px floor / 16px default. No 11/13/15 in product chrome.
77
84
  ============================================================== */
78
85
 
@@ -132,11 +139,12 @@
132
139
  lightness, so every tint reads as the same ultramarine. The light
133
140
  theme's logo and highlight come from 500; 400 is the lightest step
134
141
  that still holds 4.5:1 on every paper step, a hovered row
135
- included. */
142
+ included. 300 is the brand guide's own blue-300, the blue it sets
143
+ for text on dark; here it is the light theme's code well accent. */
136
144
  --color-vouched-50: #f3f7ff;
137
145
  --color-vouched-100: #e5edfe;
138
146
  --color-vouched-200: #cadbfe;
139
- --color-vouched-300: #81a8fe;
147
+ --color-vouched-300: #9da0fe;
140
148
  --color-vouched-400: #2358ff;
141
149
  --color-vouched-500: #0810fe;
142
150
  --color-vouched-600: #0603d7;
@@ -155,6 +163,57 @@
155
163
  --color-vouched-pink: #ee4fa4;
156
164
  --color-vouched-sun: #f7a23b;
157
165
 
166
+ /* ---------- Color · Vouched product hues (brand guide 2026) ----------
167
+ The brand guide's decision colours (Verified teal, Review amber,
168
+ Blocked red and Delegated purple) and its Signal Cyan, which the
169
+ guide sets for highlights on dark. The guide uses no green. The
170
+ light theme's statuses take the deeper `--ck-paper-*` steps below,
171
+ because the bright hues read 1.6:1 to 3.4:1 on white; the bright
172
+ hues colour the code well's syntax, the warn badge and a chart
173
+ series. */
174
+ --color-vouched-teal: #3ccfc0;
175
+ --color-vouched-amber: #f6ad42;
176
+ --color-vouched-red: #f2546a;
177
+ --color-vouched-purple: #b04ce0;
178
+ --color-vouched-cyan: #55dfea;
179
+
180
+ /* ---------- Color · Night (dark grounds) ----------
181
+ The brand's dark grounds: Night (1000), Surface (950) and Surface 2
182
+ (900). 800 and 700 are one and two more steps up the same line: a
183
+ hovered row on an elevated panel, and the code well's raised
184
+ surface. */
185
+ --color-night-1000: #100b19;
186
+ --color-night-950: #1c1529;
187
+ --color-night-900: #261e37;
188
+ --color-night-800: #30283f;
189
+ --color-night-700: #3d3450;
190
+
191
+ /* ---------- Color · Eggplant (ink) ----------
192
+ The brand's purple-black ink and its muted text, both themes. 1000
193
+ is the light theme's text and 800 the brand's Eggplant. 700 and
194
+ 600 are its light muted text (AAA and AA), 200 and 300 its dark
195
+ muted text (AAA and AA), 50 the dark theme's text. 400 and 500 are
196
+ the dimmest steps that still read 4.5:1: 400 on the dark elevated
197
+ panel, 500 on the light page. */
198
+ --color-eggplant-50: #f2f0f6;
199
+ --color-eggplant-200: #c9c5d3;
200
+ --color-eggplant-300: #a59fb4;
201
+ --color-eggplant-400: #8f88a0;
202
+ --color-eggplant-500: #6a637d;
203
+ --color-eggplant-600: #5d5670;
204
+ --color-eggplant-700: #4c4560;
205
+ --color-eggplant-800: #2f2247;
206
+ --color-eggplant-1000: #09060d;
207
+
208
+ /* ---------- Color · Mist (light grounds) ----------
209
+ The brand's light grounds: Page (300) and Card (100), with 200
210
+ between them. The light theme puts Card under its white surfaces
211
+ as the page: status washes over the brand's Page gray read muddy
212
+ in a dense product view. Page becomes the hover. */
213
+ --color-mist-100: #f4f4f4;
214
+ --color-mist-200: #eeedf0;
215
+ --color-mist-300: #e8e7e9;
216
+
158
217
  /* Vouched logo fill outside a base theme scope (blog, hosted
159
218
  consent, /connect): blue, as on paper. The theme blocks below set
160
219
  it per theme. */
@@ -224,7 +283,16 @@
224
283
  --ck-stone-1000: #0a0908;
225
284
  /* Glyph on the bright mint live-check disc. */
226
285
  --ck-mint-950: #06241a;
227
- /* Paper hues: brand, signal, status, editorial and actor steps. */
286
+ /* Paper hues: brand, signal, status, editorial and actor steps.
287
+ The teal, amber, red and purple steps are the brand's decision hues
288
+ taken deep enough to hold 4.5:1 on their own 10% wash over the
289
+ brand's Page gray; the 800 and 700 steps under them are hovers. */
290
+ --ck-paper-teal-700: #00675f;
291
+ --ck-paper-teal-800: #035550;
292
+ --ck-paper-amber-800: #8c4a00;
293
+ --ck-paper-red-600: #b01c37;
294
+ --ck-paper-red-700: #941931;
295
+ --ck-paper-purple-600: #8228b5;
228
296
  --ck-paper-violet-500: #6041d8;
229
297
  --ck-paper-violet-600: #5a28e1;
230
298
  --ck-paper-violet-700: #4515b6;
@@ -264,12 +332,15 @@
264
332
  --ck-blue-400: #60a5fa;
265
333
  --ck-blue-600: #2563eb;
266
334
  --ck-blue-950: #172554;
267
- /* Categorical chart palette, one set per theme. */
268
- --ck-chart-paper-1: hsl(12 76% 61%);
269
- --ck-chart-paper-2: hsl(173 58% 39%);
270
- --ck-chart-paper-3: hsl(197 37% 24%);
271
- --ck-chart-paper-4: hsl(43 74% 66%);
272
- --ck-chart-paper-5: hsl(27 87% 67%);
335
+ /* Categorical chart palette, one set per theme. Paper: the brand's
336
+ blue, teal, amber, purple and cyan, the bright hues at a mid step
337
+ that holds 3:1 (non-text contrast) on a white card. Ink:
338
+ Checkpoint's dark set. */
339
+ --ck-chart-paper-1: var(--color-vouched-500);
340
+ --ck-chart-paper-2: #0f8f84;
341
+ --ck-chart-paper-3: #c27612;
342
+ --ck-chart-paper-4: var(--color-vouched-purple);
343
+ --ck-chart-paper-5: #0f8fa0;
273
344
  --ck-chart-ink-1: hsl(225 67% 98%);
274
345
  --ck-chart-ink-2: hsl(160 60% 45%);
275
346
  --ck-chart-ink-3: hsl(207 80% 55%);
@@ -358,14 +429,13 @@
358
429
  --radius-none: 0;
359
430
  --radius-xs: 2px; /* hard data corners — tables, code, kbd, dots */
360
431
  --radius-sm: 4px;
361
- --radius-md: 8px; /* soft controls (chips, buttons, inputs) */
432
+ --radius-md: 6px; /* soft controls (chips, buttons, inputs): the brand button */
362
433
  --radius-lg: 12px; /* cards, editorial */
363
434
  --radius-full: 999px;
364
435
  /* Chrome buttons — the ONE radius the SSOT `.btn` (checkpoint.css §4)
365
436
  and the checkpoint <Button> primitive both consume, so the masthead
366
- actions and the top-nav New button can never drift apart. 8px per
367
- the 2026-05-21 product call: clearly rounded at 32px height without
368
- reading pill-y. Promoted to :root here alongside the other radius
437
+ actions and the top-nav New button can never drift apart. 6px, the
438
+ brand guide's button radius. Promoted to :root here alongside the other radius
369
439
  steps (was a scoped token on main). Points at --radius-md so the
370
440
  button follows the control radius. It resolves here at :root, so
371
441
  a subtree that changes only --radius-md keeps 8px buttons; set
@@ -388,9 +458,12 @@
388
458
  An app that loads its faces with next/font sets --font-ui (Inter),
389
459
  --font-display (Manrope) and --font-geist-mono on <body> (Checkpoint's
390
460
  app/layout.tsx does), which outranks these values on every element
391
- below it. These are the stacks a page uses when nothing has set them. */
392
- --font-ui: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
393
- --font-display: var(--font-ui);
461
+ below it. These are the stacks a page uses when nothing has set them:
462
+ the brand's faces first, Inter for text and Manrope for headings,
463
+ then the system faces for a page that does not load them. */
464
+ --font-ui:
465
+ 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
466
+ --font-display: 'Manrope', var(--font-ui);
394
467
  --font-mono: var(
395
468
  --font-geist-mono,
396
469
  'Geist Mono',
@@ -517,20 +590,13 @@
517
590
  --spacing-20: 80px;
518
591
 
519
592
  /* ---------- Component · mode-invariant ----------
520
- Values the shipped pieces read in both themes: the canvas
521
- texture hues (canvas.css), the Switch thumb and the Badge warn
522
- count. The registry theme ships this sheet, so a consumer gets
523
- them with the primitives. */
524
- /* Canvas texture hues. Each layer's alpha is a --tex-* knob
525
- the bg tier sets per theme; these are the hues it scales. Aurora:
526
- violet, lavender and peach radials screened over the canvas. Wisps:
527
- iris and indigo corner washes. Glow: the warm brass floor. */
528
- --tex-hue-aurora-a: var(--ck-violet-400);
529
- --tex-hue-aurora-b: var(--ck-purple-400);
530
- --tex-hue-aurora-c: var(--color-cream-500);
531
- --tex-hue-wisp-a: var(--color-iris-400);
532
- --tex-hue-wisp-b: color-mix(in srgb, var(--ck-violet-400) 70%, var(--color-vouched-400));
533
- --tex-hue-glow: color-mix(in srgb, var(--color-brass-300) 50%, var(--color-brass-400));
593
+ Values the shipped pieces read in both themes: the canvas texture
594
+ vignette and dots (canvas.css) and the Switch thumb. The registry
595
+ theme ships this sheet, so a consumer gets them with the primitives.
596
+ The texture hues and the Badge warn count differ by mode, so the two
597
+ theme blocks set them. */
598
+ /* Canvas texture vignette and dots: the same black edge and white
599
+ grain in both themes. */
534
600
  --tex-hue-vignette: var(--ck-black);
535
601
  --tex-hue-dots: var(--ck-white);
536
602
 
@@ -540,13 +606,6 @@
540
606
  --switch-thumb: var(--ck-white);
541
607
  --switch-thumb-shadow: 0 1px 2px color-mix(in srgb, var(--ck-black) 30%, transparent);
542
608
 
543
- /* ---------- Notification badge · warn tone ----------
544
- The count is bright amber with ink digits in both themes (12.40:1).
545
- The theme --warn fill goes deep amber on paper, where ink digits read
546
- 3.12:1, so the count does not follow it. The bare dot keeps --warn. */
547
- --badge-warn-fill: var(--ck-amber-400);
548
- --badge-warn-ink: var(--color-ink-1000);
549
-
550
609
  /* ---------- Component · sizes ----------
551
610
  Sizes one shipped piece reads that sit off the shared type,
552
611
  tracking and spacing ladders. A design pass can move any of them
@@ -831,17 +890,41 @@
831
890
  --code-text: var(--brand-text);
832
891
  --code-border: var(--brand-line);
833
892
 
834
- /* ---------- Code well steps ----------
835
- The part of the --code-block-* family each theme block declares (the
836
- rest, hover included, is LAYER 2.6 below). ink-800 lifts about 1.15:1
837
- off the ink-1000 canvas, the separation the shared Default code block
838
- has. Hover (ink-700) and surface step one and two ink steps lighter.
839
- The light block declares the same two steps, so the well is one dark
840
- block in both themes. Both theme blocks declare these because the
841
- light block's :root also matches <html class="dark">, so a light-only
842
- value would reach dark. */
893
+ /* ---------- Code well ----------
894
+ The --code-block-* and --code-token-* values that differ by mode; the
895
+ washes both modes share are LAYER 2.6 below. Dark keeps Checkpoint's
896
+ ink well: ink-800 lifts about 1.15:1 off the ink-1000 canvas, the
897
+ separation the shared Default code block has, and hover (ink-700) and
898
+ surface (ink-600) step one and two ink steps lighter. The light block
899
+ sets the brand's Night well. Both theme blocks declare every one of
900
+ these because the light block's :root also matches
901
+ <html class="dark">, so a light-only value would reach dark.
902
+
903
+ The frame is the same soft violet-400 mix as --brand-line, near 1.3:1
904
+ against the dark page on purpose. Focus on the well takes violet-300:
905
+ 7.52:1 on the ink-800 well and 4.56:1 on its ink-600 surface. */
843
906
  --code-block-bg: var(--color-ink-800);
844
907
  --code-block-surface: var(--color-ink-600);
908
+ --code-block-bg-hover: var(--color-ink-700);
909
+ --code-block-foreground: var(--color-ink-100);
910
+ --code-block-button-foreground: var(--color-ink-50);
911
+ --code-block-border: color-mix(in srgb, var(--ck-violet-400) 34%, transparent);
912
+ --code-block-ring: var(--ck-violet-300);
913
+
914
+ /* Syntax spans: keyword and string ride the peach and cream accents of
915
+ the chat code block, one warm family on ink. Every role is 12px mono
916
+ body text, so each holds 4.5:1 on every well step (ink-800 to
917
+ ink-600). The four neutral roles keep an ordered ladder: property
918
+ (ink-50) loudest, then the plain foreground (ink-100, above), comment
919
+ (ink-200), then punctuation (ink-300) at 4.52:1 on the ink-600
920
+ surface, the tight one. Pale steps: the well only, never a paper
921
+ surface. */
922
+ --code-token-keyword: var(--color-peach-400);
923
+ --code-token-string: var(--color-cream-400);
924
+ --code-token-number: var(--color-cream-500);
925
+ --code-token-comment: var(--color-ink-200);
926
+ --code-token-property: var(--color-ink-50);
927
+ --code-token-punctuation: var(--color-ink-300);
845
928
 
846
929
  /* ---------- Bare <pre> well ----------
847
930
  What the unlayered bare-`pre` rules in Checkpoint's globals.css and
@@ -927,13 +1010,29 @@
927
1010
  radials defined in checkpoint.css; the `aurora` bg-tier
928
1011
  (Checkpoint's styles/checkpoint/product-tokens.css) raises it. */
929
1012
  --tex-aurora: 0;
1013
+
1014
+ /* ---------- Canvas texture hues and the warn badge ----------
1015
+ Mode-owned values the shipped pieces read. Texture hues (canvas.css):
1016
+ each layer's alpha is a --tex-* knob the bg tier sets per theme; these
1017
+ are the hues it scales. Aurora: violet, lavender and peach radials
1018
+ screened over the canvas. Wisps: iris and indigo corner washes. Glow:
1019
+ the warm brass floor. The warn badge count is bright amber with ink
1020
+ digits (12.40:1). The light block sets the brand's. */
1021
+ --tex-hue-aurora-a: var(--ck-violet-400);
1022
+ --tex-hue-aurora-b: var(--ck-purple-400);
1023
+ --tex-hue-aurora-c: var(--color-cream-500);
1024
+ --tex-hue-wisp-a: var(--color-iris-400);
1025
+ --tex-hue-wisp-b: color-mix(in srgb, var(--ck-violet-400) 70%, var(--color-vouched-400));
1026
+ --tex-hue-glow: color-mix(in srgb, var(--color-brass-300) 50%, var(--color-brass-400));
1027
+ --badge-warn-fill: var(--ck-amber-400);
1028
+ --badge-warn-ink: var(--color-ink-1000);
930
1029
  }
931
1030
 
932
1031
  /* --deny-fill, LIGHT. A rule of its own so the LIGHT block below is left
933
1032
  as it is. It takes that block's selector and, like that block, comes
934
1033
  after the DARK one, so it applies exactly where the LIGHT semantics do.
935
- On the light --deny (#c01f3c) white already reads 6.0:1, and --on-deny
936
- (--bg-surface, #ffffff) the same 6.0:1, so the fill is --deny unchanged. */
1034
+ On the light --deny (#b01c37) white already reads 6.9:1, and --on-deny
1035
+ (--bg-surface, #ffffff) the same, so the fill is --deny unchanged. */
937
1036
  :root,
938
1037
  [data-theme='base']:where(.light) {
939
1038
  --deny-fill: var(--deny);
@@ -954,76 +1053,27 @@
954
1053
  }
955
1054
 
956
1055
  /* ============================================================
957
- LAYER 2.6 · CODE WELL (theme-invariant, GLOBAL)
1056
+ LAYER 2.6 · CODE WELL WASHES (theme-invariant, GLOBAL)
958
1057
  The code block is a dark block in light and dark: code reads as code
959
- on any page. Everything in the --code-block-* and --code-token-*
960
- families except the well and its surface is the same in both themes,
961
- so it is declared once, here at :root, and every scope inherits it.
962
- Every value is a global primitive (or a literal), never a
963
- theme-varying semantic, which is what lets one :root declaration
964
- resolve the same under `.dark` and `.light` alike. --code-block-bg and
965
- --code-block-surface sit in the two theme blocks, which both declare
966
- the ink-800 well and its ink-600 surface.
967
-
968
- Declare these here and in those theme blocks ONLY. An unlayered copy
969
- in a consumer's sheets (Checkpoint's globals.css) beats these layered blocks
970
- regardless of specificity (cursor-bot on PR #4437 caught one
971
- stranding the foreground). Consumers that put code-token text
972
- somewhere other than the well, or light-theme text on it, are the
973
- ones to check when the well changes.
974
- Checkpoint's tests/unit/design-system/code-block-contrast.test.ts
975
- enforces all of it from this sheet.
1058
+ on any page. Each mode owns its well: the dark block keeps
1059
+ Checkpoint's ink well and the light block sets the brand's Night well,
1060
+ each with its own text, frame, focus and syntax values. Only the
1061
+ translucent white washes below are the same in both, so they are
1062
+ declared once, here at :root, and every scope inherits them; they stay
1063
+ one step above whichever well step they land on.
1064
+
1065
+ Declare the --code-block-* and --code-token-* families here and in
1066
+ the two theme blocks ONLY. An unlayered copy in a consumer's sheets
1067
+ (Checkpoint's globals.css) beats these layered blocks regardless of
1068
+ specificity (cursor-bot on PR #4437 caught one stranding the
1069
+ foreground). Consumers that put code-token text somewhere other than
1070
+ the well, or light-theme text on it, are the ones to check when the
1071
+ well changes.
976
1072
  ============================================================ */
977
1073
  :root {
978
- /* ---------- Hover, the well's washes and frame ----------
979
- Hover sits one ink step lighter than the ink-800 well, on ink-700, in
980
- both themes. The header and button washes are
981
- translucent white, so they stay one step above whichever well step
982
- they land on.
983
-
984
- The frame is the dark theme's soft violet --brand-line hairline,
985
- written as the same violet-400 mix rather than var(--brand-line)
986
- because --brand-line itself re-points per theme (paper gets a
987
- deeper violet); the contrast test pins the two equal. It stays soft on purpose, near
988
- 1.3:1 against the dark page. On paper the well stands about 16:1 off
989
- the page on its own, so the block needs no help from its frame. */
990
- --code-block-bg-hover: var(--color-ink-700);
991
- --code-block-foreground: var(--color-ink-100);
992
1074
  --code-block-header-bg: color-mix(in srgb, var(--ck-white) 3%, transparent);
993
1075
  --code-block-button-bg: color-mix(in srgb, var(--ck-white) 10%, transparent);
994
1076
  --code-block-button-bg-hover: color-mix(in srgb, var(--ck-white) 20%, transparent);
995
- --code-block-button-foreground: var(--color-ink-50);
996
- --code-block-border: color-mix(in srgb, var(--ck-violet-400) 34%, transparent);
997
- /* Focus on the well. The well is dark in both themes, so a control on
998
- it takes the dark theme's --ring step in both: the paper --ring
999
- (#6041d8) reads only 2.70:1 against the ink-800 well, 1.64:1 on its
1000
- ink-600 surface.
1001
- component-contracts.css points --ring at this inside the DS wells. */
1002
- --code-block-ring: var(--ck-violet-300);
1003
-
1004
- /* ---------- Code syntax spans ----------
1005
- Consumed by the DS CodeBlock's <CodeToken> spans (data-code-token) and
1006
- by its language label / line-number gutter. Keyword/string ride the
1007
- same peach/cream accents as the chat code block's, keeping one warm
1008
- visual family on ink.
1009
-
1010
- Every role here is body text in 12px mono, so each one holds 4.5:1 on
1011
- every well step in both themes (ink-800 to ink-600); being the
1012
- quietest role does not exempt punctuation. The surface, ink-600, is
1013
- the tight one: exactly four ink steps clear the floor on it, and
1014
- there are four neutral text roles, so each takes one and they keep a
1015
- distinct, ordered ladder: property (ink-50) loudest, then the plain
1016
- foreground (ink-100, --code-block-foreground above), then comment
1017
- (ink-200), then punctuation (ink-300) at 4.52:1, the dimmest step
1018
- that still clears 4.5:1 (ink-400 reaches only 4.33:1 on ink-800).
1019
- These are pale steps: they belong on the well only, never on a
1020
- paper surface. */
1021
- --code-token-keyword: var(--color-peach-400);
1022
- --code-token-string: var(--color-cream-400);
1023
- --code-token-number: var(--color-cream-500);
1024
- --code-token-comment: var(--color-ink-200);
1025
- --code-token-property: var(--color-ink-50);
1026
- --code-token-punctuation: var(--color-ink-300);
1027
1077
  }
1028
1078
 
1029
1079
  /* The DS wells are dark in both themes, so focus inside them takes the
@@ -1051,31 +1101,31 @@
1051
1101
  [data-theme='base']:where(.light) {
1052
1102
  color-scheme: light;
1053
1103
 
1054
- /* Paper: a cool near-white carrying a breath of the Vouched hue
1055
- (OKLCH hue about 270, chroma at most 0.01), so the paper sits with
1056
- the blue logo instead of against it. Surface stays pure white so
1057
- cards and the rail lift off the canvas. */
1058
- --bg-canvas: var(--ck-paper-100);
1104
+ /* Paper: the brand's Card gray as the page, under white surfaces, so
1105
+ cards and the rail lift off the canvas (1.10:1). An elevated panel
1106
+ steps one shade deeper, and a hover takes the brand's Page gray. */
1107
+ --bg-canvas: var(--color-mist-100);
1059
1108
  --bg-surface: var(--ck-white);
1060
- --bg-elevated: var(--ck-paper-200);
1061
- --bg-hover: var(--ck-paper-300);
1109
+ --bg-elevated: var(--color-mist-200);
1110
+ --bg-hover: var(--color-mist-300);
1062
1111
 
1063
- /* Ink: a blue-black. Every text, border, wash and shadow step below is
1064
- mixed from it, so retuning the ink retunes the whole ladder. */
1065
- --fg-primary: var(--ck-navy-950);
1112
+ /* Ink: the brand's purple-black. Every border, wash and shadow step
1113
+ below is mixed from it, so retuning the ink retunes them. */
1114
+ --fg-primary: var(--color-eggplant-1000);
1066
1115
  /* Vouched lockup fill: Vouched Blue on light (brand guidelines 2026). */
1067
1116
  --kya-mark: var(--color-vouched-500);
1068
- /* On the canvas: secondary 9.9:1, tertiary 5.6:1, muted 4.8:1. Muted
1069
- was 0.55 (4.1:1, under AA for the small meta text it carries). */
1070
- --fg-secondary: color-mix(in srgb, var(--fg-primary) 80%, transparent);
1071
- --fg-tertiary: color-mix(in srgb, var(--fg-primary) 64%, transparent);
1072
- --fg-muted: color-mix(in srgb, var(--fg-primary) 60%, transparent);
1117
+ /* The brand's muted text steps. On the elevated panel, the tightest
1118
+ ground: secondary 7.7:1, tertiary 5.9:1, muted 4.9:1. */
1119
+ --fg-secondary: var(--color-eggplant-700);
1120
+ --fg-tertiary: var(--color-eggplant-600);
1121
+ --fg-muted: var(--color-eggplant-500);
1073
1122
  --fg-disabled: color-mix(in srgb, var(--fg-primary) 34%, transparent);
1074
1123
  /* Paper keeps the brand sort affordance, in the deeper hover step. */
1075
1124
  --table-sort-active: var(--brand-hover);
1076
1125
 
1077
- --border-subtle: color-mix(in srgb, var(--fg-primary) 8%, transparent);
1078
- --border-default: color-mix(in srgb, var(--fg-primary) 18%, transparent);
1126
+ /* The brand's light hairline is 12% ink. */
1127
+ --border-subtle: color-mix(in srgb, var(--fg-primary) 12%, transparent);
1128
+ --border-default: color-mix(in srgb, var(--fg-primary) 20%, transparent);
1079
1129
  --border-strong: color-mix(in srgb, var(--fg-primary) 30%, transparent);
1080
1130
  --border-focus: color-mix(in srgb, var(--fg-primary) 55%, transparent);
1081
1131
  /* Focus only; see the dark block. */
@@ -1101,30 +1151,24 @@
1101
1151
  /* Vouched byline raster: native brand colors read on paper. */
1102
1152
  --cp-byline-filter: none;
1103
1153
 
1104
- /* Status: emerald, amber, crimson and ocean, each holding 4.5:1 as
1105
- text on every paper step (a hovered row included) and on its own
1106
- 10% wash over the canvas, a white card and an elevated panel (the
1107
- tightest pair is --deny on its wash over --bg-elevated, 4.61:1).
1108
- --signal and --warn sit a step deeper than the first paper palette
1109
- because a wash over --bg-elevated took them under 4.5:1. Info leans
1110
- ocean, not the dark theme's iris, so it never reads as the Vouched
1111
- Blue brand. */
1112
- --signal: var(--ck-paper-green-700);
1154
+ /* Status: the brand's teal, amber, red and purple, each taken deep
1155
+ enough to hold 4.5:1 as text on every paper step (a hovered row
1156
+ included) and on its own 10% wash over the canvas, a white card and
1157
+ an elevated panel. A wash over the elevated panel is the tightest
1158
+ ground: 5.0:1 for teal, amber and red. */
1159
+ --signal: var(--ck-paper-teal-700);
1113
1160
  /* Hover deepens on paper, one step away from the page (the dark
1114
1161
  theme brightens toward its glow instead): 1.3:1 off --signal, and
1115
- --on-signal holds 8.4:1 on it. */
1116
- --signal-hover: var(--ck-paper-green-800);
1162
+ --on-signal holds 8.8:1 on it. */
1163
+ --signal-hover: var(--ck-paper-teal-800);
1117
1164
  --signal-soft: color-mix(in srgb, var(--signal) 10%, transparent);
1118
1165
  --signal-line: color-mix(in srgb, var(--signal) 34%, transparent);
1119
1166
  --signal-text: var(--signal);
1120
1167
  --on-signal: var(--bg-surface);
1121
1168
 
1122
- /* Deepened teal-mint for legibility on paper, per the light-theme
1123
- philosophy — same proof-fingerprint family as the dark --signature. */
1124
- --signature: var(--ck-paper-jade-600);
1125
- /* #1f8a63 reads 3.9:1 on an elevated panel; a fifth of the page ink
1126
- takes it to 5.3:1 and keeps the hue. */
1127
- --signature-text: color-mix(in srgb, var(--signature) 80%, var(--fg-primary));
1169
+ /* The paper teal: it already holds 4.5:1 as text. */
1170
+ --signature: var(--ck-paper-teal-700);
1171
+ --signature-text: var(--signature);
1128
1172
 
1129
1173
  --allow: var(--signal);
1130
1174
  --allow-soft: color-mix(in srgb, var(--allow) 10%, transparent);
@@ -1141,45 +1185,40 @@
1141
1185
  --live-check-bg: var(--allow);
1142
1186
  --live-check-fg: var(--on-signal);
1143
1187
 
1144
- --warn: var(--ck-paper-amber-700);
1188
+ --warn: var(--ck-paper-amber-800);
1145
1189
  --warn-soft: color-mix(in srgb, var(--warn) 10%, transparent);
1146
1190
  --warn-line: color-mix(in srgb, var(--warn) 30%, transparent);
1147
1191
  --warn-text: var(--warn);
1148
1192
 
1149
- --deny: var(--ck-paper-rose-600);
1193
+ --deny: var(--ck-paper-red-600);
1150
1194
  --deny-soft: color-mix(in srgb, var(--deny) 10%, transparent);
1151
1195
  --deny-line: color-mix(in srgb, var(--deny) 30%, transparent);
1152
1196
  --deny-text: var(--deny);
1153
1197
  /* Text on a solid deny fill + the hover step (one step deeper, the
1154
1198
  same convention as --signal-hover). */
1155
1199
  --on-deny: var(--bg-surface);
1156
- --deny-hover: var(--ck-paper-rose-700);
1200
+ --deny-hover: var(--ck-paper-red-700);
1157
1201
 
1158
- --info: var(--ck-paper-cyan-700);
1202
+ --info: var(--ck-paper-purple-600);
1159
1203
  --info-soft: color-mix(in srgb, var(--info) 10%, transparent);
1160
1204
  --info-line: color-mix(in srgb, var(--info) 30%, transparent);
1161
1205
  --info-text: var(--info);
1162
1206
 
1163
- --brass: var(--ck-paper-brass-800);
1164
- /* Editorial text on paper: 5.3:1 on an elevated panel, 4.6:1 on the
1165
- brass wash over it. */
1166
- --brass-text: var(--ck-paper-brass-700);
1207
+ /* Editorial brass on paper is the paper highlight, Vouched Blue: 5.9:1
1208
+ on its own wash over an elevated panel. */
1209
+ --brass: var(--color-vouched-500);
1210
+ --brass-text: var(--color-vouched-500);
1167
1211
  --brass-soft: color-mix(in srgb, var(--brass) 10%, transparent);
1168
1212
  --brass-line: color-mix(in srgb, var(--brass) 30%, transparent);
1169
1213
 
1170
- /* Brand on paper is a refined violet (OKLCH hue 284): the product
1171
- violet the dark theme keeps, turned a few degrees toward the Vouched
1172
- Blue logo and cleaned of its gray, so the primary action, the active
1173
- nav and the chart fills read as Checkpoint while sitting beside the
1174
- blue mark. --brand-hover steps deeper (hover on paper, 1.4:1 off
1175
- --brand), --brand-text lighter; all three hold 4.5:1 on every paper
1176
- step, a hovered row included (--brand-text is the tightest, 5.5:1 on
1177
- --bg-hover), and --on-brand holds 7.4:1 on --brand. --brand-text is
1178
- also the text on a --brand-soft wash (the info tag), where it holds
1179
- 5.1:1 over an elevated panel. */
1180
- --brand: var(--ck-paper-violet-600);
1181
- --brand-hover: var(--ck-paper-violet-700);
1182
- --brand-text: var(--ck-paper-violet-500);
1214
+ /* Brand on paper is Vouched Blue itself, the colour of the logo: it
1215
+ holds 6.8:1 or more on every paper step and --on-brand reads 8.4:1
1216
+ on it. --brand-hover steps deeper (hover on paper, 1.3:1 off
1217
+ --brand). --brand-text is the blue too, and holds 5.9:1 on a
1218
+ --brand-soft wash (the info tag) over an elevated panel. */
1219
+ --brand: var(--color-vouched-500);
1220
+ --brand-hover: var(--color-vouched-600);
1221
+ --brand-text: var(--color-vouched-500);
1183
1222
  --brand-soft: color-mix(in srgb, var(--brand) 8%, transparent);
1184
1223
  --brand-faint: color-mix(in srgb, var(--brand) 4%, transparent);
1185
1224
  --brand-line: color-mix(in srgb, var(--brand) 24%, transparent);
@@ -1187,7 +1226,7 @@
1187
1226
  --on-brand: var(--ck-white);
1188
1227
 
1189
1228
  /* Accent and link: see the dark block. On paper --brand itself holds
1190
- 6.3:1 or more, so links take it. */
1229
+ 6.8:1 or more, so links take it. */
1191
1230
  --link: var(--brand);
1192
1231
  --accent: var(--brand);
1193
1232
  --accent-hover: var(--brand-hover);
@@ -1204,46 +1243,73 @@
1204
1243
  --code-text: var(--brand-hover);
1205
1244
  --code-border: var(--brand-line);
1206
1245
 
1207
- /* Code well steps: see the dark block's matching comment above. Paper
1208
- takes the dark well, ink-800, so code reads as the same dark block on
1209
- any page. It stands about 16:1 off the canvas and 17:1 off a white
1210
- card. Hover (ink-700, the shared hover in LAYER 2.6) and surface
1211
- (ink-600) step lighter, as in dark, and the whole syntax palette holds
1212
- 4.5:1 on all three steps. ink-600 is the lightest step that does:
1213
- on ink-500 keyword, comment and punctuation drop under 4.5:1. */
1214
- --code-block-bg: var(--color-ink-800);
1215
- --code-block-surface: var(--color-ink-600);
1246
+ /* ---------- Code well ----------
1247
+ See the dark block's matching section. Paper takes the brand's dark
1248
+ well, Surface 2 (night-900), as the brand sets its Night sections on
1249
+ a light page. It stands about 14:1 off the canvas and 16:1 off a
1250
+ white card, so the block needs no help from its soft blue-300 frame.
1251
+ Hover (night-800) and surface (night-700) step one and two Night
1252
+ steps lighter. Focus on the well takes blue-300: the paper --ring
1253
+ (Vouched Blue) reads only 1.9:1 on the night-900 well, blue-300 6.7:1
1254
+ there and 4.9:1 on its night-700 surface. */
1255
+ --code-block-bg: var(--color-night-900);
1256
+ --code-block-surface: var(--color-night-700);
1257
+ --code-block-bg-hover: var(--color-night-800);
1258
+ --code-block-foreground: color-mix(
1259
+ in srgb,
1260
+ var(--color-eggplant-50) 50%,
1261
+ var(--color-eggplant-200)
1262
+ );
1263
+ --code-block-button-foreground: var(--color-eggplant-50);
1264
+ --code-block-border: color-mix(in srgb, var(--color-vouched-300) 34%, transparent);
1265
+ --code-block-ring: var(--color-vouched-300);
1266
+
1267
+ /* Syntax spans: the brand's dark-theme hues, keyword blue-300, string
1268
+ Verified teal, number Review amber. Every role is 12px mono body
1269
+ text, so each holds 4.5:1 on every well step (night-900 to
1270
+ night-700). The four neutral roles keep an ordered ladder of the
1271
+ brand's dark text steps, read on the night-700 surface, the tight
1272
+ one: property (eggplant-50, 10.3:1) loudest, then the plain foreground
1273
+ (halfway to eggplant-200, above, 8.5:1), comment (eggplant-200,
1274
+ 6.9:1), then punctuation (eggplant-300) at 4.55:1. Keyword reads
1275
+ 4.9:1, string and number 6.0:1. Pale steps: the well only, never a
1276
+ paper surface. */
1277
+ --code-token-keyword: var(--color-vouched-300);
1278
+ --code-token-string: var(--color-vouched-teal);
1279
+ --code-token-number: var(--color-vouched-amber);
1280
+ --code-token-comment: var(--color-eggplant-200);
1281
+ --code-token-property: var(--color-eggplant-50);
1282
+ --code-token-punctuation: var(--color-eggplant-300);
1216
1283
 
1217
1284
  /* Bare <pre> well: see the dark block's matching comment above. The code
1218
1285
  well itself is a dark block in both themes; a bare pre on paper
1219
- keeps a pale well because its text is light-theme text. ink-100, a
1220
- GitHub-light-style cool gray, separates from the canvas and from a
1221
- white --bg-surface card about as much as the dark well does; the paper
1222
- steps sit too close to the canvas for that. It stays opaque because a
1286
+ keeps a pale well because its text is light-theme text. mist-300,
1287
+ the brand's Page gray, separates from the canvas (1.12:1) and from a
1288
+ white --bg-surface card (1.23:1); the lighter mist steps sit too close
1289
+ to the canvas for that. Muted text still reads 4.6:1 on it. It stays opaque because a
1223
1290
  translucent wash would compound wherever a bare pre nests inside
1224
1291
  another. The frame is --border-default, the soft hairline the shared
1225
1292
  Default code block draws on paper. */
1226
- --pre-well-bg: var(--color-ink-100);
1293
+ --pre-well-bg: var(--color-mist-300);
1227
1294
  --pre-well-border: var(--border-default);
1228
1295
 
1229
1296
  /* Highlight: the one rare hit per view. Cream on ink; on paper it is
1230
- the logo's own blue, so the rare hit ties back to the mark and
1231
- stands a neighbouring hue apart from the violet brand instead of
1232
- repeating it. */
1297
+ the logo's own blue, as the brand sets its kickers and stats. */
1233
1298
  --highlight: var(--color-vouched-500);
1234
1299
  --highlight-soft: color-mix(in srgb, var(--highlight) 10%, transparent);
1235
1300
  --highlight-line: color-mix(in srgb, var(--highlight) 30%, transparent);
1236
1301
  --highlight-text: var(--highlight);
1237
1302
 
1238
- /* Tab underline goes to the brand on paper (cream is invisible on
1239
- paper). */
1303
+ /* Tab underline goes to the brand on paper (cream is too light to
1304
+ read on paper). */
1240
1305
  --tab-underline: var(--brand);
1241
1306
 
1242
- /* Warm pair deepens to brass + deep brass on paper so the
1243
- "firing" state of CTAs and active nav reads against the
1244
- canvas without going neon. */
1245
- --warm: var(--ck-paper-brass-700);
1246
- --warm-strong: var(--ck-paper-brass-800);
1307
+ /* Warm pair takes the paper amber, the Review text step, so the
1308
+ "firing" state of CTAs and active nav reads against the canvas: 5.0:1
1309
+ on its own wash over an elevated panel. The strong step mixes in a
1310
+ fifth of the page ink. */
1311
+ --warm: var(--ck-paper-amber-800);
1312
+ --warm-strong: color-mix(in srgb, var(--ck-paper-amber-800) 80%, var(--fg-primary));
1247
1313
  --warm-soft: color-mix(in srgb, var(--warm) 10%, transparent);
1248
1314
  --warm-line: color-mix(in srgb, var(--warm) 30%, transparent);
1249
1315
  --warm-text: var(--warm);
@@ -1266,5 +1332,22 @@
1266
1332
  /* Preview stage — a recessed paper well on paper (see dark block). */
1267
1333
  --preview-stage: linear-gradient(180deg, var(--bg-hover) 0%, var(--bg-elevated) 100%);
1268
1334
  --preview-stage-glass: color-mix(in srgb, var(--bg-surface) 70%, transparent);
1335
+
1336
+ /* ---------- Canvas texture hues and the warn badge ----------
1337
+ See the dark block's matching section. Texture hues from the brand's
1338
+ conical gradient. Aurora: Vouched Blue, magenta and sun radials
1339
+ screened over the canvas. Wisps: blue and violet corner washes. Glow:
1340
+ the sun floor. The warn badge count is the brand's Review amber with
1341
+ Night digits (10.1:1); the theme --warn fill goes deep amber on paper,
1342
+ where Night digits read 2.8:1, so the count does not follow it. The
1343
+ bare dot keeps --warn. */
1344
+ --tex-hue-aurora-a: var(--color-vouched-500);
1345
+ --tex-hue-aurora-b: var(--color-vouched-magenta);
1346
+ --tex-hue-aurora-c: var(--color-vouched-sun);
1347
+ --tex-hue-wisp-a: var(--color-vouched-400);
1348
+ --tex-hue-wisp-b: var(--color-vouched-violet);
1349
+ --tex-hue-glow: var(--color-vouched-sun);
1350
+ --badge-warn-fill: var(--color-vouched-amber);
1351
+ --badge-warn-ink: var(--color-night-1000);
1269
1352
  }
1270
1353
  }