@lace-cloud/design-tokens 0.37.1 → 0.38.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/tokens.css CHANGED
@@ -28,18 +28,15 @@
28
28
  --lace-color-green-300: #e0ff8a;
29
29
  --lace-color-green-500: #cefe65;
30
30
  --lace-color-green-700: #5e8a1a;
31
+ --lace-color-green-800: #4a6e12;
31
32
  --lace-color-cyan-500: #95e7ff;
32
33
  --lace-color-cyan-700: #2c9db9;
33
34
 
34
35
  /* ── Palette: neutral ── */
35
36
  --lace-color-neutral-100: #ecefed;
36
37
  --lace-color-neutral-200: #e6e6e6;
37
- --lace-color-neutral-300: #cccccc;
38
- --lace-color-neutral-400: #9ca3af;
39
38
  --lace-color-neutral-500: #999999;
40
- --lace-color-neutral-600: #555555;
41
39
  --lace-color-neutral-700: #3c3c3c;
42
- --lace-color-neutral-750: #333333;
43
40
  --lace-color-neutral-800: #252526;
44
41
  --lace-color-neutral-850: #1e1e1e;
45
42
  --lace-color-neutral-900: #161616;
@@ -47,21 +44,45 @@
47
44
  --lace-color-neutral-950: #0f0f0f;
48
45
  --lace-color-neutral-975: #0a0a0c;
49
46
  --lace-color-neutral-black: #000000;
47
+ --lace-color-neutral-white: #ffffff;
48
+
49
+ /* ── Palette: identity ── an identity's fill, hashed from its seed (`Avatar`); one palette in
50
+ every theme, since the contrast each fill makes with its initials ink is the pair's own. */
51
+ --lace-color-identity-0: #e74c3c;
52
+ --lace-color-identity-1: #3498db;
53
+ --lace-color-identity-2: #2ecc71;
54
+ --lace-color-identity-3: #f39c12;
55
+ --lace-color-identity-4: #9b59b6;
56
+ --lace-color-identity-5: #1abc9c;
57
+ --lace-color-identity-6: #e67e22;
58
+ --lace-color-identity-7: #34495e;
59
+ --lace-color-identity-8: #cddc39;
60
+ --lace-color-identity-9: #7cb342;
61
+ --lace-color-identity-10: #2e7d32;
62
+ --lace-color-identity-11: #4f46e5;
63
+ --lace-color-identity-12: #b5179e;
64
+ --lace-color-identity-13: #ad1457;
65
+
66
+ /* ── Palette: mascot ── the mascot's fur and its shade, the same in every theme. */
67
+ --lace-color-mascot-fur: #c8ff00;
68
+ --lace-color-mascot-fur-dark: #a8d850;
50
69
 
51
70
  /* ── Palette: warm neutral ── */
71
+ --lace-color-warm-50: #f6f7f5;
72
+ --lace-color-warm-100: #f1f3f0;
73
+ --lace-color-warm-400: #b3bab5;
74
+ --lace-color-warm-500: #8f9691;
75
+ --lace-color-warm-600: #5c635e;
76
+ --lace-color-warm-700: #454b47;
52
77
  --lace-color-warm-900: #1a1815;
53
78
 
54
79
  /* ── Palette: semantic accents ── */
55
80
  --lace-color-teal-700: #153238;
56
- --lace-color-teal-600: #1a3f47;
57
81
  --lace-color-blue-500: #1f6feb;
58
- --lace-color-blue-700: #1a4d8f;
59
82
  --lace-color-blue-accent: #4fc1ff;
60
83
  --lace-color-red-400: #f87171;
61
84
  --lace-color-red-500: #e5484d;
62
- --lace-color-red-700: #6e2b2b;
63
85
  --lace-color-red-800: #3a1518;
64
- --lace-color-red-900: #2a1414;
65
86
  --lace-color-amber-400: #f5a623;
66
87
  --lace-color-amber-600: #8a5a10;
67
88
  --lace-color-purple-400: #b084f0;
@@ -70,8 +91,6 @@
70
91
  --lace-color-pink-700: #8a2e5c;
71
92
  --lace-color-orange-400: #ff8a4c;
72
93
  --lace-color-orange-700: #8a3a10;
73
- --lace-color-tag-blue-bg: #0b1f3a;
74
- --lace-color-tag-blue-border: #2b4a7a;
75
94
  --lace-color-tag-blue-text: #9ecbff;
76
95
 
77
96
  /* ── Palette: contrast variants ──
@@ -81,14 +100,12 @@
81
100
  * deep-* — darker, more saturated hues that pop on LIGHT
82
101
  * surfaces (used by status semantics in
83
102
  * [data-theme="light"])
84
- * Tier-2 success/warning/text-link tokens reach for the matching
103
+ * Tier-2 success/warning/info tokens reach for the matching
85
104
  * direction in their theme block. */
86
105
  --lace-color-green-bright-500: #4ade80;
87
106
  --lace-color-green-bright-600: #22c55e;
88
- --lace-color-green-bright-700: #16a34a;
89
107
  --lace-color-green-deep-700: #047857;
90
108
  --lace-color-green-deep-800: #065f46;
91
- --lace-color-green-deep-900: #064e3b;
92
109
  --lace-color-amber-bright-400: #fbbf24;
93
110
  --lace-color-amber-deep-700: #b45309;
94
111
  --lace-color-blue-bright-500: #60a5fa;
@@ -99,55 +116,32 @@
99
116
  --lace-color-green-alpha-06: rgba(206, 254, 101, 0.06);
100
117
  --lace-color-neutral-900-alpha-04: rgba(22, 22, 22, 0.04);
101
118
  --lace-color-neutral-900-alpha-08: rgba(22, 22, 22, 0.08);
119
+ --lace-color-neutral-900-alpha-10: rgba(22, 22, 22, 0.1);
120
+ --lace-color-neutral-900-alpha-20: rgba(22, 22, 22, 0.2);
102
121
  --lace-color-green-alpha-10: rgba(206, 254, 101, 0.1);
103
122
  --lace-color-green-alpha-15: rgba(206, 254, 101, 0.15);
104
- --lace-color-green-alpha-18: rgba(206, 254, 101, 0.18);
105
123
  --lace-color-green-alpha-20: rgba(206, 254, 101, 0.2);
106
- --lace-color-green-alpha-25: rgba(206, 254, 101, 0.25);
107
- --lace-color-green-alpha-40: rgba(206, 254, 101, 0.4);
108
- --lace-color-green-alpha-50: rgba(206, 254, 101, 0.5);
124
+ --lace-color-green-alpha-30: rgba(206, 254, 101, 0.3);
109
125
  --lace-color-green-alpha-60: rgba(206, 254, 101, 0.6);
110
126
  --lace-color-red-alpha-12: rgba(248, 113, 113, 0.12);
111
- --lace-color-red-alpha-20: rgba(229, 72, 77, 0.2);
112
127
  --lace-color-red-alpha-25: rgba(229, 72, 77, 0.25);
113
128
  --lace-color-red-alpha-30: rgba(248, 113, 113, 0.3);
114
- --lace-color-red-alpha-35: rgba(229, 72, 77, 0.35);
115
- --lace-color-green-bright-alpha-12: rgba(74, 222, 128, 0.12);
116
129
  --lace-color-green-bright-alpha-15: rgba(74, 222, 128, 0.15);
117
- --lace-color-green-bright-alpha-35: rgba(74, 222, 128, 0.35);
118
130
  --lace-color-white-alpha-03: rgba(255, 255, 255, 0.03);
119
- --lace-color-white-alpha-04: rgba(255, 255, 255, 0.04);
120
- --lace-color-white-alpha-06: rgba(255, 255, 255, 0.06);
121
131
  --lace-color-white-alpha-08: rgba(255, 255, 255, 0.08);
122
- --lace-color-white-alpha-10: rgba(255, 255, 255, 0.1);
123
- --lace-color-white-alpha-14: rgba(255, 255, 255, 0.14);
124
- --lace-color-white-alpha-30: rgba(255, 255, 255, 0.3);
132
+ --lace-color-white-alpha-15: rgba(255, 255, 255, 0.15);
125
133
  --lace-color-white-alpha-40: rgba(255, 255, 255, 0.4);
126
- --lace-color-white-alpha-55: rgba(255, 255, 255, 0.55);
127
- --lace-color-white-alpha-62: rgba(255, 255, 255, 0.62);
128
- --lace-color-white-alpha-80: rgba(255, 255, 255, 0.8);
129
- --lace-color-white-alpha-92: rgba(255, 255, 255, 0.92);
130
- --lace-color-amber-alpha-08: rgba(255, 200, 80, 0.08);
131
134
  --lace-color-amber-alpha-25: rgba(255, 200, 80, 0.25);
132
- --lace-color-amber-400-alpha-12: rgba(245, 166, 35, 0.12);
133
- --lace-color-amber-400-alpha-40: rgba(245, 166, 35, 0.4);
134
- --lace-color-black-alpha-30: rgba(0, 0, 0, 0.3);
135
- --lace-color-black-alpha-35: rgba(0, 0, 0, 0.35);
136
- --lace-color-black-alpha-40: rgba(0, 0, 0, 0.4);
137
- --lace-color-black-alpha-50: rgba(0, 0, 0, 0.5);
138
135
  --lace-color-black-alpha-60: rgba(0, 0, 0, 0.6);
139
136
  --lace-color-blue-alpha-30: rgba(59, 130, 246, 0.3);
140
- --lace-color-purple-alpha-08: rgba(176, 132, 240, 0.08);
141
- --lace-color-purple-alpha-12: rgba(176, 132, 240, 0.12);
142
- --lace-color-purple-alpha-25: rgba(176, 132, 240, 0.25);
143
- --lace-color-purple-alpha-35: rgba(176, 132, 240, 0.35);
144
- --lace-color-neutral-100-alpha-85: rgba(236, 239, 237, 0.85);
145
- --lace-color-teal-600-alpha-60: rgba(21, 50, 56, 0.6);
146
- --lace-color-grey-fog-alpha-15: rgba(155, 161, 158, 0.15);
147
- --lace-color-grey-fog-alpha-40: rgba(155, 161, 158, 0.4);
148
- --lace-color-grey-fog: #9ba19e;
149
- --lace-color-group-collapsed-bg: #1a2a20;
150
137
  --lace-color-green-alpha-03: rgba(206, 254, 101, 0.03);
138
+ --lace-color-cool-900: #121619;
139
+ --lace-color-cool-100: #f1f5f9;
140
+ --lace-color-blue-accent-alpha-05: rgba(79, 193, 255, 0.05);
141
+ --lace-color-blue-accent-alpha-11: rgba(79, 193, 255, 0.11);
142
+ --lace-color-blue-deep-alpha-07: rgba(10, 98, 189, 0.07);
143
+ --lace-color-blue-deep-alpha-14: rgba(10, 98, 189, 0.14);
144
+ --lace-color-blue-deep-800: #0a62bd;
151
145
 
152
146
  /* ── Scale: spacing (4px base) ── */
153
147
  --lace-space-0: 0;
@@ -163,10 +157,58 @@
163
157
  --lace-size-grid-fine: 20px;
164
158
  --lace-size-grid-major: 100px;
165
159
  --lace-size-page-max: 1152px;
160
+ --lace-size-measure: 70ch; /* a prose column's widest: about seventy characters of its body face */
161
+ /* The viewport widths a fluid text role runs between: `@carbon/type`'s sm and max breakpoints.
162
+ At and under sm the role holds its smallest size, at and past max its largest; between them
163
+ it grows by its size span over their span (the expressive set). */
164
+ --lace-size-viewport-sm: 320px;
165
+ --lace-size-target: 24px; /* a pointer target's least box: WCAG 2.2 SC 2.5.8 (Target Size, Minimum) asks 24 by 24 CSS px of every control */
166
166
  --lace-size-control-rung: 36px; /* resting height every admin control family shares, so siblings on one page sit at one height */
167
+ --lace-size-control-sm: 28px; /* a control inside a section header or a row */
168
+ --lace-size-control-lg: 40px; /* a control a page stands on alone: a sign-in field and its primary */
169
+ --lace-size-badge: 22px; /* a status badge, a mode tag */
170
+ --lace-size-kbd: 20px; /* a key cap, a stamp */
171
+ --lace-size-field-inset: 10px; /* a text field's inline inset: where its text starts inside its border */
172
+ --lace-size-field-toggle: 34px; /* a search field's trailing toggle, which its text stops short of */
173
+ --lace-size-dot: 6px; /* a status dot beside its label */
174
+ --lace-size-icon-tile: 40px; /* the square a card's leading icon sits in */
175
+ --lace-size-term: 112px; /* a term column beside its value: a record's fact names, a posture tag */
176
+ --lace-size-popover: 320px; /* a floating panel's width: a stack of notices, a clipped value's full text */
177
+ /* A glyph's own box: an icon (the steps beside `--lace-size-icon`) and an avatar, whose
178
+ initials are a fixed fraction of it. Geometry, not type: no type set changes them. */
179
+ --lace-size-icon-xs: 10px;
180
+ --lace-size-icon-sm: 14px;
181
+ --lace-size-icon: 16px;
182
+ --lace-size-icon-lg: 18px;
183
+ --lace-size-avatar-sm: 24px;
184
+ --lace-size-avatar-md: 36px;
185
+ --lace-size-avatar-lg: 48px;
186
+ --lace-size-avatar-square-sm: 28px;
187
+ --lace-size-avatar-square-lg: 44px;
188
+ --lace-size-wordmark: 22px; /* the logo's name beside its mark */
189
+ --lace-size-tab: 40px; /* a tab bar's row */
190
+ --lace-size-topbar: 60px; /* the top bar's height, which what hangs under the bar offsets by */
191
+ --lace-size-sidebar: 232px;
167
192
  --lace-size-drawer-min: 280px; /* a canvas drawer's narrowest: a form still reads at this width */
168
193
  --lace-size-drawer-default: 320px;
169
194
  --lace-size-drawer-max: 480px; /* its widest: the canvas keeps the rest of an 800px webview */
195
+ --lace-size-document-max: 520px; /* a document viewer's numbered body: the height past which it scrolls rather than grows */
196
+ --lace-size-marketing-bar: calc(
197
+ var(--lace-size-control-lg) +
198
+ var(--lace-space-3) *
199
+ 2 +
200
+ var(--lace-border-width)
201
+ ); /* the marketing bar: its tallest control with a step of air above and below, and its hairline; what sticks under the bar offsets by it */
202
+ --lace-size-product-window: 480px; /* a product window's height on a marketing page: the pictured page's first rows */
203
+ --lace-size-marquee-card: 288px; /* a card riding a marquee: an artifact's name beside its kind */
204
+ --lace-size-choice-list: 288px; /* a list of choices that scrolls inside a form: it holds this height whatever opens in it */
205
+ --lace-size-launcher: 64px; /* the assistant's launcher, a round button floated over a page's corner */
206
+ --lace-size-launcher-clearance: calc(
207
+ var(--lace-size-launcher) +
208
+ var(--lace-space-5) +
209
+ var(--lace-space-2)
210
+ ); /* the room a page's foot leaves the launcher: the button, its inset from the corner and a step of air */
211
+ --lace-size-form-column: 440px; /* a form a page stands on alone (a sign-in, a sign-up): its column's widest, which its controls fill */
170
212
 
171
213
  /* ── Scale: font size ── */
172
214
  --lace-font-size-xs: 10px;
@@ -175,18 +217,30 @@
175
217
  --lace-font-size-lg: 13px;
176
218
  --lace-font-size-xl: 14px;
177
219
  --lace-font-size-2xl: 16px;
220
+ --lace-font-size-20: 20px;
178
221
  /* Display steps. The ramp below 22px is body copy, so a page masthead or a
179
222
  headline numeral has no step to take there and would be written as a raw
180
223
  px literal against no scale at all. These continue the same ramp
181
- (10, 11, 12, 13, 14, 16, 22, 24); a display element takes one of them. A
182
- further step is added when a display element needs one, not before. */
224
+ (10, 11, 12, 13, 14, 16, 20, 22, 24, 28, 32, 42, 60, 76); a display
225
+ element takes one of them. A further step is added when a display element
226
+ needs one, not before. The steps a text role takes between or past the
227
+ named ones are named by their px value. */
183
228
  --lace-font-size-3xl: 22px;
184
229
  --lace-font-size-4xl: 24px;
230
+ --lace-font-size-28: 28px;
231
+ /* The ends of the expressive set's fluid display and title, each a size `@carbon/type` gives
232
+ the role at its sm or max breakpoint. */
233
+ --lace-font-size-32: 32px;
234
+ --lace-font-size-42: 42px;
235
+ --lace-font-size-60: 60px;
236
+ --lace-font-size-76: 76px;
185
237
 
186
238
  /* ── Scale: line height ── */
187
239
  --lace-line-height-tight: 1.2;
188
240
  --lace-line-height-normal: 1.4;
189
- --lace-line-height-relaxed: 1.6;
241
+ /* Absolute leadings a text role takes where no font-size step equals it. */
242
+ --lace-line-height-18: 18px;
243
+ --lace-line-height-36: 36px;
190
244
 
191
245
  /* ── Scale: font weight ── */
192
246
  --lace-font-weight-regular: 400;
@@ -195,7 +249,9 @@
195
249
  --lace-font-weight-bold: 700;
196
250
 
197
251
  /* ── Font family ── */
198
- --lace-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
252
+ --lace-font-sans:
253
+ "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
254
+ --lace-font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
199
255
  --lace-font-mono:
200
256
  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
201
257
 
@@ -203,16 +259,32 @@
203
259
  --lace-radius-sm: 4px;
204
260
  --lace-radius-md: 6px;
205
261
  --lace-radius-lg: 8px;
262
+ --lace-radius-xl: 12px; /* a card that stands on the page alone */
206
263
  --lace-radius-pill: 999px;
207
264
 
265
+ /* ── Scale: line ── */
266
+ --lace-border-width: 1px; /* every kit part's border and rule */
267
+ --lace-border-width-strong: 2px; /* the ink line under what is current: a tab, a pressed segment, a step */
268
+ --lace-border-width-edge: 3px; /* the tone edge on a notice's or a queue card's leading side */
269
+ --lace-focus-ring-width: 2px; /* the outline a focused control draws, in --lace-color-focus-ring */
270
+ --lace-focus-ring-offset: 2px; /* its gap from the control; an inset ring draws it negative */
271
+ --lace-hidden-line-style: dashed; /* the hidden line's stroke: what only observes, an observing Binding's mode and outline */
272
+
208
273
  /* ── Scale: shadow (elevation) ── */
209
274
  --lace-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
210
275
  --lace-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.35);
211
276
  --lace-shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.4);
277
+ /* The accent glow a primary control rests on, and the same glow at nothing, the frame
278
+ framer-motion blooms it from: each one value, so a keyframe reads it whole. */
279
+ --lace-shadow-glow: 0 4px 16px var(--lace-color-green-alpha-30);
280
+ --lace-shadow-glow-none: 0 0 0 rgba(206, 254, 101, 0);
281
+ /* The blur a dialog's scrim draws the page under it at, and a destructive dialog's lighter
282
+ one: each one value, so a keyframe reads it whole. */
283
+ --lace-blur-scrim: blur(8px);
284
+ --lace-blur-scrim-soft: blur(2px);
212
285
  --lace-shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.5);
213
286
 
214
287
  /* ── Scale: z-index ── */
215
- --lace-z-canvas: 0;
216
288
  --lace-z-chrome: 10; /* action bar, toast, banner */
217
289
  --lace-z-scrim: 40; /* context-menu dismiss overlay */
218
290
  --lace-z-overlay: 50; /* context menu, modal */
@@ -226,6 +298,7 @@
226
298
  --lace-duration-slow: 300ms;
227
299
  --lace-easing-standard: ease;
228
300
  --lace-easing-out: ease-out;
301
+ --lace-motion-hinge-perspective: 200px; /* how far off a glyph turning on one hinge is seen from: near enough to read as a turn, not a squash */
229
302
 
230
303
  /* ── High-contrast stock colours: VS Code's own, where it supplies no --vscode-* variable ── */
231
304
  --lace-color-hc-edge-dark: #6fc3df;
@@ -245,7 +318,8 @@
245
318
  * ══════════════════════════════════════════════════════════════════════ */
246
319
 
247
320
  :root,
248
- [data-lace-dark-tokens] {
321
+ [data-lace-dark-tokens],
322
+ [data-lace-paper="blueprint"] {
249
323
  /* ── Surface (background layers) ── */
250
324
  --lace-color-bg-canvas: var(--lace-color-neutral-900);
251
325
  --lace-color-bg-surface: var(--lace-color-neutral-850);
@@ -254,34 +328,37 @@
254
328
  --lace-color-bg-context-menu: #1a1a1a;
255
329
 
256
330
  /* ── Border ── */
257
- --lace-color-border-default: var(--lace-color-neutral-750);
331
+ --lace-color-border-default: var(--lace-color-white-alpha-08);
258
332
  --lace-color-border-subtle: var(--lace-color-neutral-700);
259
- --lace-color-border-input: var(--lace-color-neutral-600);
333
+ --lace-color-border-input: var(--lace-color-white-alpha-15);
334
+ /* The resting edge of a text control (an input, a textarea, a select, a combobox): the visual
335
+ * boundary that identifies the control, held to 3:1 by WCAG 2.2 SC 1.4.11 (Non-text Contrast).
336
+ * #757575 is 3.93:1 on bg-canvas, 3.62:1 on bg-surface, 3.32:1 on bg-surface-alt and 4.16:1 on
337
+ * bg-input. */
338
+ --lace-color-border-control: #757575;
260
339
  --lace-color-border-input-hover: #888888;
261
340
 
262
341
  /* ── Text ── */
263
342
  --lace-color-text-primary: var(--lace-color-neutral-100);
264
343
  --lace-color-text-label: var(--lace-color-neutral-200);
265
- --lace-color-text-muted: var(--lace-color-neutral-500);
266
- --lace-color-text-description: var(--lace-color-neutral-400);
267
- --lace-color-text-accent: var(--lace-color-green-500);
268
- --lace-color-text-link: var(--lace-color-blue-bright-500);
344
+ --lace-color-text-muted: var(--lace-color-warm-500);
345
+ --lace-color-text-description: var(--lace-color-warm-400);
269
346
  --lace-color-text-danger: var(--lace-color-red-500);
270
347
  --lace-color-text-danger-soft: var(--lace-color-red-400);
271
- /* A stop below muted, for tertiary labels and placeholders: muted itself
272
- * would over-emphasise them, most visibly in the light theme. */
273
- --lace-color-text-faint: #8c8f8c;
274
348
 
275
349
  /* ── Row ── */
276
350
  --lace-color-row-hover: rgba(255, 255, 255, 0.025);
277
351
 
278
- /* ── Badge: purple ── */
279
- --lace-color-badge-purple: #c084fc;
280
- --lace-color-badge-purple-bg: rgba(192, 132, 252, 0.1);
281
-
282
- /* ── Accent ── */
352
+ /* ── Accent ──
353
+ * Two roles of the brand green. `accent` is a fill alone, the lime in every
354
+ * theme, with `text-on-accent` the label on it. `ink` is the brand drawn as
355
+ * text, an icon, a border or a ring: lime on the dark surfaces, an olive on
356
+ * the light ones, where lime on white measures 1.2:1. */
283
357
  --lace-color-accent: var(--lace-color-green-500);
284
358
  --lace-color-text-on-accent: var(--lace-color-neutral-925);
359
+ /* The accent fill's own edge; a high-contrast theme draws it in its edge colour, which the lime is not against a light surface. */
360
+ --lace-color-accent-edge: var(--lace-color-accent);
361
+ --lace-color-ink: var(--lace-color-green-500);
285
362
  --lace-color-accent-alpha-subtle: var(--lace-color-green-alpha-10);
286
363
  --lace-color-accent-alpha-medium: var(--lace-color-green-alpha-20);
287
364
  --lace-color-accent-strong: var(--lace-color-green-bright, var(--lace-color-green-300));
@@ -289,7 +366,6 @@
289
366
  /* ── Status ── */
290
367
  --lace-color-success: var(--lace-color-green-bright-500);
291
368
  --lace-color-success-hover: var(--lace-color-green-bright-600);
292
- --lace-color-success-strong: var(--lace-color-green-bright-700);
293
369
  --lace-color-danger: var(--lace-color-red-500);
294
370
  --lace-color-danger-bg-soft: var(--lace-color-red-alpha-12);
295
371
  /* Danger as TEXT, which is a different job from danger as a fill.
@@ -303,21 +379,8 @@
303
379
  --lace-color-danger-fg: var(--lace-color-red-400);
304
380
  --lace-color-warning-bg: #3b2507;
305
381
  --lace-color-warning-fg: var(--lace-color-amber-bright-400);
306
-
307
- /* ── Scope chip ──
308
- * Three intent-distinguished chip kinds for the role-aware
309
- * scope-switcher. Org = blue (platform-wide), Team = green-bright
310
- * (your scope), Aggregate = purple (spans multiple things).
311
- * Reusing Badge status palette would conflate scope with state. */
312
- --lace-scope-org-bg: var(--lace-color-tag-blue-bg);
313
- --lace-scope-org-fg: var(--lace-color-tag-blue-text);
314
- --lace-scope-org-border: var(--lace-color-tag-blue-border);
315
- --lace-scope-team-bg: var(--lace-color-green-bright-alpha-12);
316
- --lace-scope-team-fg: var(--lace-color-green-bright-500);
317
- --lace-scope-team-border: var(--lace-color-green-bright-alpha-35);
318
- --lace-scope-aggregate-bg: var(--lace-color-purple-alpha-12);
319
- --lace-scope-aggregate-fg: var(--lace-color-purple-400);
320
- --lace-scope-aggregate-border: var(--lace-color-purple-alpha-35);
382
+ /* The info tone's text and mark: a status beside ok, warning and danger. */
383
+ --lace-color-info: var(--lace-color-tag-blue-text);
321
384
 
322
385
  /* ── Forbidden state ──
323
386
  * Explicit Access Denied surfaces (PageGuard card; sidebar tooltip).
@@ -328,14 +391,6 @@
328
391
  --lace-forbidden-border: var(--lace-color-neutral-700);
329
392
  --lace-forbidden-icon: var(--lace-color-text-muted);
330
393
 
331
- /* ── Aggregate banner ──
332
- * Persistent banner under page header on multi-team aggregate views.
333
- * Wide form of the scope-aggregate chip; subtler alpha so it doesn't
334
- * compete with page content. */
335
- --lace-banner-aggregate-bg: var(--lace-color-purple-alpha-08);
336
- --lace-banner-aggregate-fg: var(--lace-color-purple-400);
337
- --lace-banner-aggregate-border: var(--lace-color-purple-alpha-25);
338
-
339
394
  /* ── Severity banner ──
340
395
  * A full-width strip under a toolbar that states one fact needing the
341
396
  * reader: warning (a decision waits), error (something is locked). The
@@ -349,15 +404,221 @@
349
404
  --lace-banner-error-border: var(--lace-color-red-alpha-30);
350
405
 
351
406
  /* ── Focus ring ── */
352
- --lace-color-focus-ring: var(--lace-color-accent);
407
+ --lace-color-focus-ring: var(--lace-color-ink);
408
+
409
+ /* ── Series ──
410
+ * The strokes of a chart's series, in order, each at least 3:1 against the
411
+ * surface it is drawn on. */
412
+ --lace-color-series-1: var(--lace-color-cyan-500);
413
+ --lace-color-series-2: var(--lace-color-purple-400);
414
+ --lace-color-series-3: var(--lace-color-amber-400);
415
+ --lace-color-series-4: var(--lace-color-pink-400);
416
+ --lace-color-series-5: var(--lace-color-orange-400);
417
+ --lace-color-series-6: var(--lace-color-green-500);
353
418
 
354
419
  /* ── Paper grid (engineering-paper background threads) ── */
355
420
  --lace-paper-thread-fine: var(--lace-color-green-alpha-03);
356
421
  --lace-paper-thread-major: var(--lace-color-green-alpha-06);
357
422
  --lace-paper-pitch-fine: var(--lace-size-grid-fine);
358
423
  --lace-paper-pitch-major: var(--lace-size-grid-major);
359
- /* How thick a thread is drawn; a surface the paper sits under can draw it finer. */
424
+ /* How thick a thread is drawn: 1px, and one device pixel on a 2x screen (below). */
360
425
  --lace-paper-thread-width: 1px;
426
+ /* The frame (`.lace-paper-frame`): the paper holds 60% strength to the hold and is gone at the
427
+ * depth, each measured in from the window's edge. */
428
+ --lace-paper-frame-hold: 100px;
429
+ --lace-paper-frame-depth: 240px;
430
+ /* The light over the paper (`PointerLight`): its glow's side, and the side of the window that
431
+ * shows the brighter paper under it, an even count of major pitches. */
432
+ --lace-paper-light-glow: 420px;
433
+ --lace-paper-light-reveal: 400px;
434
+ }
435
+
436
+ /* On a screen with two or more device pixels to the CSS pixel, a thread is drawn one device pixel
437
+ * thick, so the paper stays under what is drawn on it. A 1x screen has no line finer than 1px. */
438
+ @media (min-resolution: 2dppx) {
439
+ :root,
440
+ [data-lace-dark-tokens],
441
+ [data-lace-paper="blueprint"] {
442
+ --lace-paper-thread-width: 0.5px;
443
+ }
444
+ }
445
+
446
+ /* ══════════════════════════════════════════════════════════════════════
447
+ * TIER 2 — SEMANTIC: TEXT ROLES AND TYPE SETS
448
+ *
449
+ * Each role is a `font` shorthand (`font: var(--lace-text-body)`) and its
450
+ * tracking (`letter-spacing: var(--lace-text-body-tracking)`), the shorthand
451
+ * composed from the role's `-weight`, `-size`, `-line` and `-family`, which a
452
+ * consumer that sets the parts apart (a Tailwind text utility) reads.
453
+ *
454
+ * `data-lace-type-set` picks the roles' sizes and lines, and nothing else: no
455
+ * primitive changes with it, and weight, family and tracking are one in every
456
+ * set. A region declares the set of the kind of region it is:
457
+ * - `compact`: the canvas, which declares it on its own root so it holds
458
+ * inside a host of another set, and every host that declares none (`:root`
459
+ * is compact: the extension's webviews, the API's server-rendered pages);
460
+ * - `comfortable` (Carbon's productive set): product UI, where people work
461
+ * through inputs and controls; the portal declares it on its document root;
462
+ * - `expressive`: prose, where people learn, scan and read long form; the
463
+ * editorial and article templates declare it on their prose regions only,
464
+ * so a container among them keeps the page's set.
465
+ * ══════════════════════════════════════════════════════════════════════ */
466
+
467
+ :root,
468
+ [data-lace-type-set="compact"] {
469
+ --lace-text-display-size: var(--lace-font-size-3xl);
470
+ --lace-text-display-line: var(--lace-font-size-28);
471
+ --lace-text-title-size: var(--lace-font-size-2xl);
472
+ --lace-text-title-line: var(--lace-font-size-3xl);
473
+ --lace-text-heading-size: var(--lace-font-size-xl);
474
+ --lace-text-heading-line: var(--lace-font-size-20);
475
+ --lace-text-body-size: var(--lace-font-size-lg);
476
+ --lace-text-body-line: var(--lace-line-height-18);
477
+ --lace-text-control-size: var(--lace-font-size-md);
478
+ --lace-text-control-line: var(--lace-font-size-2xl);
479
+ --lace-text-caption-size: var(--lace-font-size-sm);
480
+ --lace-text-caption-line: var(--lace-font-size-xl);
481
+ --lace-text-label-size: var(--lace-font-size-xs);
482
+ --lace-text-label-line: var(--lace-font-size-xl);
483
+ --lace-text-code-size: var(--lace-font-size-md);
484
+ --lace-text-code-line: var(--lace-font-size-2xl);
485
+ --lace-text-note-size: var(--lace-font-size-xl);
486
+ --lace-text-note-line: var(--lace-font-size-20);
487
+
488
+ /* Weight, family and tracking are the same in every set, so this block alone declares them. */
489
+ --lace-text-display-weight: var(--lace-font-weight-semibold);
490
+ --lace-text-display-family: var(--lace-font-sans);
491
+ --lace-text-display-tracking: -0.01em;
492
+ --lace-text-title-weight: var(--lace-font-weight-semibold);
493
+ --lace-text-title-family: var(--lace-font-sans);
494
+ --lace-text-title-tracking: 0;
495
+ --lace-text-heading-weight: var(--lace-font-weight-semibold);
496
+ --lace-text-heading-family: var(--lace-font-sans);
497
+ --lace-text-heading-tracking: 0;
498
+ --lace-text-body-weight: var(--lace-font-weight-regular);
499
+ --lace-text-body-family: var(--lace-font-sans);
500
+ --lace-text-body-tracking: 0;
501
+ --lace-text-control-weight: var(--lace-font-weight-medium);
502
+ --lace-text-control-family: var(--lace-font-sans);
503
+ --lace-text-control-tracking: 0;
504
+ --lace-text-caption-weight: var(--lace-font-weight-regular);
505
+ --lace-text-caption-family: var(--lace-font-sans);
506
+ --lace-text-caption-tracking: 0;
507
+ --lace-text-label-weight: var(--lace-font-weight-medium);
508
+ --lace-text-label-family: var(--lace-font-mono);
509
+ --lace-text-label-tracking: 0.06em;
510
+ --lace-text-code-weight: var(--lace-font-weight-regular);
511
+ --lace-text-code-family: var(--lace-font-mono);
512
+ --lace-text-code-tracking: 0;
513
+ /* The margin note's face, the one role set in the serif and in italic (its shorthand's style). */
514
+ --lace-text-note-weight: var(--lace-font-weight-regular);
515
+ --lace-text-note-family: var(--lace-font-serif);
516
+ --lace-text-note-tracking: 0;
517
+ }
518
+
519
+ [data-lace-type-set="comfortable"] {
520
+ --lace-text-display-size: var(--lace-font-size-28);
521
+ --lace-text-display-line: var(--lace-line-height-36);
522
+ --lace-text-title-size: var(--lace-font-size-20);
523
+ --lace-text-title-line: var(--lace-font-size-28);
524
+ --lace-text-heading-size: var(--lace-font-size-2xl);
525
+ --lace-text-heading-line: var(--lace-font-size-4xl);
526
+ --lace-text-body-size: var(--lace-font-size-xl);
527
+ --lace-text-body-line: var(--lace-font-size-20);
528
+ --lace-text-control-size: var(--lace-font-size-lg);
529
+ --lace-text-control-line: var(--lace-line-height-18);
530
+ --lace-text-caption-size: var(--lace-font-size-md);
531
+ --lace-text-caption-line: var(--lace-font-size-2xl);
532
+ --lace-text-label-size: var(--lace-font-size-sm);
533
+ --lace-text-label-line: var(--lace-font-size-2xl);
534
+ --lace-text-code-size: var(--lace-font-size-lg);
535
+ --lace-text-code-line: var(--lace-font-size-20);
536
+ --lace-text-note-size: var(--lace-font-size-2xl);
537
+ --lace-text-note-line: var(--lace-font-size-3xl);
538
+ }
539
+
540
+ /* Carbon's expressive set, from `@carbon/type@11.71.0` (`es/index.js`, built from its
541
+ * `src/styles.ts` and `src/fluid.ts`): display is `fluid-display-01`, title `fluid-heading-05`,
542
+ * heading `fluid-heading-03`, body `body-02`, control `body-compact-02`, caption
543
+ * `helper-text-02`, label `label-02` (in Lace's mono caps face), code `code-02`, and note one step
544
+ * above body, as in the other two sets, at the 28px line Carbon gives a 20px run.
545
+ *
546
+ * Carbon sets a fluid role's size at each breakpoint and interpolates between neighbours. Here
547
+ * each is one `clamp()` from its size at sm to its size at max, a linear approximation of those
548
+ * steps, and its line is a ratio of the line-height scale, so the leading follows the size
549
+ * (Carbon's runs from 1.19 to 1.13 for display, 1.25 to 1.17 for title, 1.4 to 1.334 for
550
+ * heading).
551
+ *
552
+ * The size is its sm end plus the viewport's distance past sm times the slope, the role's size
553
+ * span over the viewport pair's span in px (`34 / 1264` is 76 - 42 over 1584 - 320). The slope is
554
+ * written as two numbers because a length divided by a length (typed arithmetic) is invalid in a
555
+ * browser without it, and an invalid custom property drops the whole `font` to the inherited one;
556
+ * a length times a number is valid wherever `clamp()` is. `text-roles.test.ts` holds each
557
+ * number equal to its tokens' span. */
558
+ [data-lace-type-set="expressive"] {
559
+ --lace-text-display-size: clamp(
560
+ var(--lace-font-size-42),
561
+ calc(var(--lace-font-size-42) + (100vw - var(--lace-size-viewport-sm)) * 34 / 1264),
562
+ var(--lace-font-size-76)
563
+ );
564
+ --lace-text-display-line: var(--lace-line-height-tight);
565
+ --lace-text-title-size: clamp(
566
+ var(--lace-font-size-32),
567
+ calc(var(--lace-font-size-32) + (100vw - var(--lace-size-viewport-sm)) * 28 / 1264),
568
+ var(--lace-font-size-60)
569
+ );
570
+ --lace-text-title-line: var(--lace-line-height-tight);
571
+ --lace-text-heading-size: clamp(
572
+ var(--lace-font-size-20),
573
+ calc(var(--lace-font-size-20) + (100vw - var(--lace-size-viewport-sm)) * 4 / 1264),
574
+ var(--lace-font-size-4xl)
575
+ );
576
+ --lace-text-heading-line: var(--lace-line-height-normal);
577
+ --lace-text-body-size: var(--lace-font-size-2xl);
578
+ --lace-text-body-line: var(--lace-font-size-4xl);
579
+ --lace-text-control-size: var(--lace-font-size-2xl);
580
+ --lace-text-control-line: var(--lace-font-size-3xl);
581
+ --lace-text-caption-size: var(--lace-font-size-xl);
582
+ --lace-text-caption-line: var(--lace-line-height-18);
583
+ --lace-text-label-size: var(--lace-font-size-xl);
584
+ --lace-text-label-line: var(--lace-line-height-18);
585
+ --lace-text-code-size: var(--lace-font-size-xl);
586
+ --lace-text-code-line: var(--lace-font-size-20);
587
+ --lace-text-note-size: var(--lace-font-size-20);
588
+ --lace-text-note-line: var(--lace-font-size-28);
589
+ }
590
+
591
+ /* The shorthand is composed where each set is declared, so a set's root nested in another
592
+ * substitutes its own size and line rather than inheriting the outer one already resolved. */
593
+ :root,
594
+ [data-lace-type-set] {
595
+ --lace-text-display:
596
+ var(--lace-text-display-weight) var(--lace-text-display-size) / var(--lace-text-display-line)
597
+ var(--lace-text-display-family);
598
+ --lace-text-title:
599
+ var(--lace-text-title-weight) var(--lace-text-title-size) / var(--lace-text-title-line)
600
+ var(--lace-text-title-family);
601
+ --lace-text-heading:
602
+ var(--lace-text-heading-weight) var(--lace-text-heading-size) / var(--lace-text-heading-line)
603
+ var(--lace-text-heading-family);
604
+ --lace-text-body:
605
+ var(--lace-text-body-weight) var(--lace-text-body-size) / var(--lace-text-body-line)
606
+ var(--lace-text-body-family);
607
+ --lace-text-control:
608
+ var(--lace-text-control-weight) var(--lace-text-control-size) / var(--lace-text-control-line)
609
+ var(--lace-text-control-family);
610
+ --lace-text-caption:
611
+ var(--lace-text-caption-weight) var(--lace-text-caption-size) / var(--lace-text-caption-line)
612
+ var(--lace-text-caption-family);
613
+ --lace-text-label:
614
+ var(--lace-text-label-weight) var(--lace-text-label-size) / var(--lace-text-label-line)
615
+ var(--lace-text-label-family);
616
+ --lace-text-code:
617
+ var(--lace-text-code-weight) var(--lace-text-code-size) / var(--lace-text-code-line)
618
+ var(--lace-text-code-family);
619
+ --lace-text-note:
620
+ italic var(--lace-text-note-weight) var(--lace-text-note-size) / var(--lace-text-note-line)
621
+ var(--lace-text-note-family);
361
622
  }
362
623
 
363
624
  /* ══════════════════════════════════════════════════════════════════════
@@ -369,14 +630,10 @@
369
630
  * ══════════════════════════════════════════════════════════════════════ */
370
631
 
371
632
  :root,
372
- [data-lace-dark-tokens] {
633
+ [data-lace-dark-tokens],
634
+ [data-lace-paper="blueprint"] {
373
635
  /* ── Brand aliases (prefer semantic tokens) ── */
374
636
  --lace-green: var(--lace-color-green-500);
375
- --lace-green-bright: var(--lace-color-green-300);
376
- --lace-gunmetal: var(--lace-color-teal-700);
377
- --lace-gunmetal-light: var(--lace-color-teal-600);
378
- --lace-night: var(--lace-color-neutral-900);
379
- --lace-cyan: var(--lace-color-cyan-500);
380
637
  --lace-grey: var(--lace-color-neutral-100);
381
638
 
382
639
  /* ── Chat ── */
@@ -387,27 +644,10 @@
387
644
  /* ── Surface aliases (prefer semantic tokens) ── */
388
645
  --lace-bg-surface: var(--lace-color-bg-surface);
389
646
  --lace-bg-surface-alt: var(--lace-color-bg-surface-alt);
390
- --lace-bg-input: var(--lace-color-bg-input);
391
647
  --lace-bg-context-menu: var(--lace-color-bg-context-menu);
392
648
  --lace-border-default: var(--lace-color-border-default);
393
- --lace-border-input: var(--lace-color-border-input);
394
- --lace-border-input-hover: var(--lace-color-border-input-hover);
395
649
  --lace-border-subtle: var(--lace-color-border-subtle);
396
650
 
397
- /* ── Text aliases (prefer semantic tokens) ── */
398
- --lace-text-danger: var(--lace-color-text-danger);
399
- --lace-text-danger-light: var(--lace-color-text-danger-soft);
400
- --lace-text-link: var(--lace-color-text-link);
401
- --lace-text-muted: var(--lace-color-text-muted);
402
- --lace-text-label: var(--lace-color-text-label);
403
- --lace-text-description: var(--lace-color-text-description);
404
-
405
- /* ── Alpha variants (prefer semantic tokens) ── */
406
- --lace-green-alpha-10: var(--lace-color-green-alpha-10);
407
- --lace-green-alpha-15: var(--lace-color-green-alpha-15);
408
- --lace-green-alpha-20: var(--lace-color-green-alpha-20);
409
- --lace-green-alpha-60: var(--lace-color-green-alpha-60);
410
-
411
651
  /* ── Button ──
412
652
  * The primary is the brand accent, used sparingly: the one call to
413
653
  * action of a surface. green-500 holds its value in both themes, and
@@ -416,10 +656,7 @@
416
656
  --lace-btn-primary-dim: var(--lace-color-green-300);
417
657
  --lace-btn-secondary-bg: #2d2d2d;
418
658
  --lace-btn-secondary-hover: #3a3a3a;
419
- --lace-btn-success: var(--lace-color-success-strong);
420
659
  --lace-btn-success-hover: var(--lace-color-success-hover);
421
- --lace-btn-danger-bg: var(--lace-color-red-700);
422
- --lace-btn-danger-hover: #8a3535;
423
660
  --lace-btn-ghost-hover: var(--lace-color-accent-alpha-subtle);
424
661
  --lace-btn-text-primary: var(--lace-color-text-on-accent);
425
662
  --lace-btn-text-disabled: var(--lace-color-white-alpha-40);
@@ -431,12 +668,9 @@
431
668
  --lace-modal-backdrop: var(--lace-color-black-alpha-60);
432
669
  --lace-modal-shadow: var(--lace-shadow-xl);
433
670
 
434
- /* ── Panel ── */
435
- --lace-panel-shadow: 0 2px 12px var(--lace-color-black-alpha-35);
436
-
437
671
  /* ── Input ── */
438
672
  --lace-input-bg: var(--lace-color-bg-input);
439
- --lace-input-border: var(--lace-color-border-default);
673
+ --lace-input-border: var(--lace-color-border-control);
440
674
  --lace-input-border-hover: var(--lace-color-border-input-hover);
441
675
  --lace-input-border-focus: var(--lace-color-focus-ring);
442
676
  --lace-input-border-error: var(--lace-color-danger);
@@ -448,55 +682,12 @@
448
682
  --lace-input-text: var(--lace-color-text-primary);
449
683
  --lace-input-placeholder: var(--lace-color-text-muted);
450
684
 
451
- /* ── ModeToggle ── */
452
- --lace-mode-toggle-active-bg: var(--lace-btn-primary);
453
- --lace-mode-toggle-active-border: var(--lace-btn-primary);
454
- --lace-mode-toggle-active-text: var(--lace-btn-text-primary);
455
- --lace-mode-toggle-inactive-bg: transparent;
456
- --lace-mode-toggle-inactive-border: var(--lace-color-border-input);
457
- --lace-mode-toggle-inactive-text: var(--lace-color-text-muted);
458
- --lace-mode-toggle-inactive-hover-border: var(--lace-color-border-input-hover);
459
- --lace-mode-toggle-inactive-hover-text: var(--lace-color-text-primary);
460
-
461
685
  /* ── Toast ── */
462
686
  --lace-toast-success-bg: var(--lace-color-teal-700);
463
687
  --lace-toast-success-border: var(--lace-color-accent-alpha-medium);
464
688
  --lace-toast-error-bg: var(--lace-color-red-800);
465
689
  --lace-toast-error-border: var(--lace-color-red-alpha-30);
466
690
 
467
- /* ── Badge ── */
468
- --lace-badge-neutral-bg: transparent;
469
- --lace-badge-neutral-border: var(--lace-color-border-default);
470
- --lace-badge-neutral-text: var(--lace-color-text-muted);
471
- --lace-badge-info-bg: var(--lace-color-tag-blue-bg);
472
- --lace-badge-info-border: var(--lace-color-tag-blue-border);
473
- --lace-badge-info-text: var(--lace-color-tag-blue-text);
474
- --lace-badge-success-bg: var(--lace-color-green-bright-alpha-12);
475
- --lace-badge-success-border: var(--lace-color-green-bright-alpha-35);
476
- --lace-badge-success-text: var(--lace-color-success);
477
- --lace-badge-danger-bg: transparent;
478
- --lace-badge-danger-border: var(--lace-color-danger);
479
- --lace-badge-danger-text: var(--lace-color-danger);
480
- --lace-badge-warning-bg: var(--lace-color-warning-bg);
481
- --lace-badge-warning-border: transparent;
482
- --lace-badge-warning-text: var(--lace-color-warning-fg);
483
- --lace-badge-purple-bg: rgba(176, 132, 240, 0.1);
484
- --lace-badge-purple-border: rgba(176, 132, 240, 0.35);
485
- --lace-badge-purple-text: var(--lace-color-purple-400);
486
- /* Pink and orange carry CATEGORY, never severity. They are the two families
487
- * with no claim above this tier, which is what qualifies them: a label that
488
- * tells two members of one set apart must not borrow a hue that already means
489
- * status (red, amber, green), scope (blue, purple) or brand (green, cyan). */
490
- --lace-badge-pink-bg: rgba(242, 136, 198, 0.1);
491
- --lace-badge-pink-border: rgba(242, 136, 198, 0.35);
492
- --lace-badge-pink-text: var(--lace-color-pink-400);
493
- --lace-badge-orange-bg: rgba(255, 138, 76, 0.1);
494
- --lace-badge-orange-border: rgba(255, 138, 76, 0.35);
495
- --lace-badge-orange-text: var(--lace-color-orange-400);
496
- --lace-badge-gy-bg: var(--lace-color-green-500);
497
- --lace-badge-gy-border: transparent;
498
- --lace-badge-gy-text: var(--lace-color-text-on-accent);
499
-
500
691
  /* ── Canvas nodes (inline-styled; tokens listed for completeness) ── */
501
692
  /* A module call on the paper: a quiet card a step above the canvas, its
502
693
  * header a step above the card, its name in the text colour — the accent
@@ -508,7 +699,13 @@
508
699
  --lace-node-name: var(--lace-color-text-primary);
509
700
  --lace-node-pin-label: var(--lace-color-text-description);
510
701
  --lace-node-pin-label-wired: var(--lace-color-text-primary);
511
- --lace-node-selected-ring: var(--lace-color-accent);
702
+ --lace-node-selected-ring: var(--lace-color-ink);
703
+ /* A revision cloud around a card the Run in view changes: scallops of
704
+ * the ink on a band a step above the card, one reach wide. */
705
+ --lace-node-cloud-stroke: var(--lace-color-ink);
706
+ --lace-node-cloud-fill: var(--lace-color-bg-surface-alt);
707
+ --lace-node-cloud-reach: var(--lace-space-3);
708
+ --lace-node-cloud-scallop: var(--lace-space-3);
512
709
  /* A group: a dashed container drawn on the paper, its name on a chip. */
513
710
  --lace-group-border: var(--lace-color-border-input);
514
711
  --lace-group-bg: var(--lace-color-white-alpha-03);
@@ -563,26 +760,18 @@
563
760
  --lace-hover-outline: none;
564
761
  /* The card a dragged connection would connect to is outlined; at high contrast in the
565
762
  * active channel and a dashed shape, so the cue is not colour alone. */
566
- --lace-node-drop-outline: 2px solid var(--lace-color-accent);
763
+ --lace-node-drop-outline: 2px solid var(--lace-color-ink);
567
764
 
568
765
  /* ── Canvas controls + minimap ── */
569
- --lace-canvas-controls-bg: var(--lace-gunmetal);
570
- --lace-canvas-controls-bg-hover: var(--lace-gunmetal-light);
571
- --lace-canvas-controls-icon: var(--lace-color-accent);
572
- --lace-canvas-controls-icon-hover: var(--lace-color-accent-strong);
573
- --lace-canvas-controls-border: var(--lace-color-accent-alpha-medium);
574
766
  --lace-canvas-minimap-bg: #111111;
575
- --lace-canvas-minimap-border: var(--lace-color-border-default);
576
767
  --lace-canvas-minimap-mask: var(--lace-color-black-alpha-60);
577
768
  --lace-canvas-minimap-node: var(--lace-color-border-input);
578
- --lace-canvas-edge-stroke: var(--lace-color-green-alpha-50);
579
- --lace-canvas-edge-stroke-hover: var(--lace-color-accent-strong);
769
+ --lace-canvas-edge-stroke: color-mix(in srgb, var(--lace-color-ink) 50%, transparent);
580
770
  --lace-canvas-edge-stroke-selected: var(--lace-color-accent-strong);
581
771
  --lace-canvas-edge-stroke-width: 1.5px;
582
772
  --lace-canvas-edge-stroke-width-selected: 2.5px;
583
773
  --lace-canvas-edge-stroke-width-hover: 2px;
584
774
  --lace-canvas-connection-stroke: #b1b1b7;
585
- --lace-canvas-grid-dot: var(--lace-color-green-alpha-04);
586
775
 
587
776
  /* ── Tooltip ──
588
777
  * A floating label on the menus' floating surface; one declaration
@@ -593,22 +782,8 @@
593
782
  --lace-tooltip-text-muted: var(--lace-color-text-muted);
594
783
 
595
784
  /* ── Module detail panel ── */
596
- --lace-accent-blue: var(--lace-color-blue-accent);
597
- --lace-accent-green: var(--lace-color-success);
598
785
  --lace-warning-bg: var(--lace-color-warning-bg);
599
786
  --lace-warning-fg: var(--lace-color-warning-fg);
600
-
601
- /* ── Policy sidebar ── */
602
- --lace-policy-preview-badge-bg: var(--lace-color-white-alpha-06);
603
- --lace-policy-section-divider: var(--lace-color-white-alpha-08);
604
- --lace-policy-rule-fired-bg: var(--lace-color-amber-alpha-08);
605
- --lace-policy-rule-default-bg: var(--lace-color-white-alpha-03);
606
- --lace-policy-predicate-eval-bg: var(--lace-color-white-alpha-04);
607
-
608
- /* ── Tag pill (prefer the Badge primitive) ── */
609
- --lace-tag-border: var(--lace-color-tag-blue-border);
610
- --lace-tag-bg: var(--lace-color-tag-blue-bg);
611
- --lace-tag-text: var(--lace-color-tag-blue-text);
612
787
  }
613
788
 
614
789
  /* ══════════════════════════════════════════════════════════════════════
@@ -622,45 +797,38 @@
622
797
  * ══════════════════════════════════════════════════════════════════════ */
623
798
 
624
799
  [data-theme="light"],
625
- [data-theme="high-contrast-light"] {
800
+ [data-theme="high-contrast-light"],
801
+ [data-theme="light"] [data-lace-paper="blueprint"],
802
+ [data-theme="high-contrast-light"] [data-lace-paper="blueprint"] {
626
803
  /* ── Tier-2: Surface ── */
627
- --lace-color-bg-canvas: #ffffff;
628
- --lace-color-bg-surface: #f8fafc;
629
- --lace-color-bg-surface-alt: #f1f5f9;
804
+ --lace-color-bg-canvas: var(--lace-color-warm-50);
805
+ --lace-color-bg-surface: var(--lace-color-neutral-white);
806
+ --lace-color-bg-surface-alt: var(--lace-color-warm-100);
630
807
  --lace-color-bg-input: #ffffff;
631
808
  --lace-color-bg-context-menu: #ffffff;
632
809
 
633
810
  /* ── Tier-2: Border ── */
634
- --lace-color-border-default: #cbd5e1;
811
+ --lace-color-border-default: var(--lace-color-neutral-900-alpha-10);
635
812
  --lace-color-border-subtle: #e2e8f0;
636
- --lace-color-border-input: #cbd5e1;
637
- --lace-color-border-input-hover: #94a3b8;
813
+ --lace-color-border-input: var(--lace-color-neutral-900-alpha-20);
814
+ /* A text control's resting edge, 3:1 by WCAG 2.2 SC 1.4.11: #7a7a7a is 3.99:1 on bg-canvas,
815
+ * 4.29:1 on bg-surface and bg-input, 3.85:1 on bg-surface-alt. Hover darkens it further. */
816
+ --lace-color-border-control: #7a7a7a;
817
+ --lace-color-border-input-hover: #4b5563;
638
818
 
639
819
  /* ── Tier-2: Text ── */
640
- --lace-color-text-primary: #0f172a;
820
+ --lace-color-text-primary: var(--lace-color-neutral-900);
641
821
  --lace-color-text-label: #1f2937;
642
- --lace-color-text-muted: #64748b;
643
- --lace-color-text-description: #475569;
644
- --lace-color-text-accent: #3d6600;
645
- --lace-color-text-link: var(--lace-color-blue-deep-700);
822
+ --lace-color-text-muted: var(--lace-color-warm-600);
823
+ --lace-color-text-description: var(--lace-color-warm-700);
646
824
  --lace-color-text-danger: #dc2626;
647
825
  --lace-color-text-danger-soft: #ef4444;
648
- --lace-color-text-faint: #94a3b8;
649
826
 
650
827
  /* ── Tier-2: Row ── */
651
828
  --lace-color-row-hover: rgba(0, 0, 0, 0.02);
652
829
 
653
- /* ── Tier-2: Badge: purple ── */
654
- --lace-color-badge-purple: #7c3aed;
655
- --lace-color-badge-purple-bg: #faf5ff;
656
-
657
- /* ── Tier-2: Accent ──
658
- * Two-color brand system in light: --lace-color-green-500 (Tier-1,
659
- * theme-neutral #cefe65) stays bright lime for brand stamps / glow
660
- * effects on dark text-on-lime patches; --lace-color-accent (this
661
- * Tier-2) darkens to #3d6600 for icons / accent text where neon lime
662
- * would be illegible on white. Both are intentional. */
663
- --lace-color-accent: #3d6600;
830
+ /* ── Tier-2: Accent (the fill stays lime; ink darkens to olive) ── */
831
+ --lace-color-ink: var(--lace-color-green-800);
664
832
  --lace-color-accent-alpha-subtle: rgba(132, 204, 22, 0.08);
665
833
  --lace-color-accent-alpha-medium: rgba(132, 204, 22, 0.16);
666
834
  --lace-color-accent-strong: #2d4a00;
@@ -668,7 +836,6 @@
668
836
  /* ── Tier-2: Status ── */
669
837
  --lace-color-success: var(--lace-color-green-deep-700);
670
838
  --lace-color-success-hover: var(--lace-color-green-deep-800);
671
- --lace-color-success-strong: var(--lace-color-green-deep-900);
672
839
  --lace-color-danger: #dc2626;
673
840
  --lace-color-danger-bg-soft: #fef2f2;
674
841
  /* Darker than the dark theme's, not lighter — the light theme's danger text
@@ -678,17 +845,7 @@
678
845
  --lace-color-danger-fg: #b91c1c;
679
846
  --lace-color-warning-bg: #fffbeb;
680
847
  --lace-color-warning-fg: var(--lace-color-amber-deep-700);
681
-
682
- /* ── Tier-2: Scope chip ── */
683
- --lace-scope-org-bg: #eff6ff;
684
- --lace-scope-org-fg: var(--lace-color-blue-deep-700);
685
- --lace-scope-org-border: #bfdbfe;
686
- --lace-scope-team-bg: #ecfdf5;
687
- --lace-scope-team-fg: var(--lace-color-green-deep-700);
688
- --lace-scope-team-border: #a7f3d0;
689
- --lace-scope-aggregate-bg: #faf5ff;
690
- --lace-scope-aggregate-fg: var(--lace-color-purple-700);
691
- --lace-scope-aggregate-border: #e9d5ff;
848
+ --lace-color-info: var(--lace-color-blue-deep-700);
692
849
 
693
850
  /* ── Tier-2: Forbidden state ── */
694
851
  --lace-forbidden-bg: #f1f5f9;
@@ -696,17 +853,20 @@
696
853
  --lace-forbidden-border: #cbd5e1;
697
854
  --lace-forbidden-icon: #64748b;
698
855
 
699
- /* ── Tier-2: Aggregate banner ── */
700
- --lace-banner-aggregate-bg: #faf5ff;
701
- --lace-banner-aggregate-fg: var(--lace-color-purple-700);
702
- --lace-banner-aggregate-border: #e9d5ff;
703
-
704
856
  /* ── Tier-2: Severity banner (bg/fg cascade from the status tokens) ── */
705
857
  --lace-banner-warning-border: #fde68a;
706
858
  --lace-banner-error-border: #fecaca;
707
859
 
708
860
  /* ── Tier-2: Focus ── */
709
- --lace-color-focus-ring: var(--lace-color-accent);
861
+ --lace-color-focus-ring: var(--lace-color-ink);
862
+
863
+ /* ── Tier-2: Series (each hue's darker stroke) ── */
864
+ --lace-color-series-1: var(--lace-color-cyan-700);
865
+ --lace-color-series-2: var(--lace-color-purple-700);
866
+ --lace-color-series-3: var(--lace-color-amber-600);
867
+ --lace-color-series-4: var(--lace-color-pink-700);
868
+ --lace-color-series-5: var(--lace-color-orange-700);
869
+ --lace-color-series-6: var(--lace-color-green-700);
710
870
 
711
871
  /* ── Tier-2: Paper grid (ink-on-white instead of green-on-dark) ── */
712
872
  --lace-paper-thread-fine: var(--lace-color-neutral-900-alpha-04);
@@ -723,15 +883,7 @@
723
883
  --lace-btn-primary-dim: var(--lace-color-green-300);
724
884
  --lace-btn-secondary-bg: #f1f5f9;
725
885
  --lace-btn-secondary-hover: #e2e8f0;
726
- --lace-btn-danger-bg: #fef2f2;
727
- --lace-btn-danger-hover: #fee2e2;
728
886
  --lace-btn-text-disabled: rgba(0, 0, 0, 0.35);
729
- /* btn-success points at success base (deep-700, ~7:1 with white)
730
- * rather than success-strong (deep-900, too dark). Dark theme uses
731
- * success-strong for white-text contrast on dark surfaces; light
732
- * gets the conventional emerald-700 success-action hue. */
733
- --lace-btn-success: var(--lace-color-success);
734
- /* btn-success-hover cascades correctly via success-hover */
735
887
 
736
888
  /* ── Tier-3: Toast (alpha-over-dark won't work on light) ── */
737
889
  --lace-toast-success-bg: #ecfdf5;
@@ -739,35 +891,6 @@
739
891
  --lace-toast-error-bg: #fef2f2;
740
892
  --lace-toast-error-border: #fecaca;
741
893
 
742
- /* ── Tier-3: Badge (light-friendly bg/border) ──
743
- * Success/danger text cascade from Tier-2; only the bg/border
744
- * pairs need explicit light values (alpha-over-dark would be
745
- * invisible on white). */
746
- --lace-badge-neutral-text: #64748b;
747
- --lace-badge-info-bg: #eff6ff;
748
- --lace-badge-info-border: #bfdbfe;
749
- --lace-badge-info-text: var(--lace-color-blue-deep-700);
750
- --lace-badge-success-bg: #ecfdf5;
751
- --lace-badge-success-border: #a7f3d0;
752
- --lace-badge-danger-bg: transparent;
753
- --lace-badge-warning-bg: var(--lace-color-warning-bg);
754
- --lace-badge-warning-border: var(--lace-color-amber-deep-700);
755
- --lace-badge-warning-text: var(--lace-color-amber-deep-700);
756
- --lace-badge-purple-bg: #faf5ff;
757
- --lace-badge-purple-border: #e9d5ff;
758
- --lace-badge-purple-text: var(--lace-color-purple-700);
759
- --lace-badge-pink-bg: #fdf2f8;
760
- --lace-badge-pink-border: #fbcfe8;
761
- --lace-badge-pink-text: var(--lace-color-pink-700);
762
- --lace-badge-orange-bg: #fff7ed;
763
- --lace-badge-orange-border: #fed7aa;
764
- --lace-badge-orange-text: var(--lace-color-orange-700);
765
- --lace-badge-gy-bg: var(--lace-color-green-500);
766
- --lace-badge-gy-border: transparent;
767
- --lace-badge-gy-text: var(--lace-color-text-on-accent);
768
-
769
- /* ── Tier-3: ModeToggle (cascades from --lace-btn-primary above) ── */
770
-
771
894
  /* ── Tier-3: Canvas pin rings (3:1 against the card) ── */
772
895
  --lace-pin-string-ring: var(--lace-pin-string-stroke);
773
896
  --lace-pin-number-ring: var(--lace-pin-number-stroke);
@@ -778,36 +901,73 @@
778
901
  --lace-pin-any-ring: var(--lace-pin-any-stroke);
779
902
 
780
903
  /* ── Tier-3: Canvas controls + minimap ── */
781
- --lace-canvas-controls-bg: #f8fafc;
782
- --lace-canvas-controls-bg-hover: #e2e8f0;
783
- --lace-canvas-controls-icon: #3d6600;
784
- --lace-canvas-controls-icon-hover: #2d4a00;
785
- --lace-canvas-controls-border: rgba(132, 204, 22, 0.24);
786
904
  --lace-canvas-minimap-bg: #ffffff;
787
- --lace-canvas-minimap-border: #cbd5e1;
788
905
  --lace-canvas-minimap-mask: rgba(0, 0, 0, 0.08);
789
- --lace-canvas-edge-stroke: var(--lace-color-accent);
790
- --lace-canvas-edge-stroke-hover: #2d4a00;
906
+ --lace-canvas-edge-stroke: var(--lace-color-ink);
791
907
  --lace-canvas-edge-stroke-selected: #2d4a00;
792
- --lace-canvas-grid-dot: rgba(0, 0, 0, 0.06);
793
908
  --lace-group-bg: var(--lace-color-neutral-900-alpha-04);
909
+ }
910
+
911
+ /* ══════════════════════════════════════════════════════════════════════
912
+ * BLUEPRINT
913
+ *
914
+ * The paper the past is drawn on. `[data-lace-paper="blueprint"]` on a region's
915
+ * root (the kit's `BlueprintRegion`) re-points, in every theme, the paper's
916
+ * ground, its threads and the ink to one blue, so a page drawn as of an earlier
917
+ * revision cannot pass for now:
918
+ * - A blueprint is a contact print of a drawing as it stood: white lines on a
919
+ * Prussian-blue ground (Herschel's cyanotype, 1842), a copy that holds no
920
+ * colour of its own. So the region keeps the drawing (its pitch, 20 and
921
+ * 100 px, and its thread width, one device pixel on a 2x screen and 1px on
922
+ * 1x, are the paper recipe's) and draws it in the one blueprint ink: the
923
+ * brand's lime, which marks what is selected, what acts and what needs
924
+ * you, is not on it.
925
+ * https://en.wikipedia.org/wiki/Blueprint
926
+ * - Time Machine draws its timeline down the screen's right edge and marks the
927
+ * selected backup on it; Figma shows a version as a snapshot to pan, left
928
+ * by "Edit current version"; Google Docs' version view returns by "Back".
929
+ * Each draws the past apart from the document and names one way back,
930
+ * which the revision rule, the as-of banner and Back to now (Esc) take.
931
+ * https://support.apple.com/guide/mac-help/restore-files-mh11422/mac
932
+ * https://help.figma.com/hc/en-us/articles/360038006754-View-a-file-s-version-history
933
+ * https://support.google.com/docs/answer/190843
934
+ * The region is a theme scope, as `[data-lace-dark-tokens]` is: it is listed with :root
935
+ * in the semantic and component tiers, with the light themes in the light block and in
936
+ * the high-contrast remap, so every alias recomputes on the region from what the region
937
+ * re-points, rather than inheriting the value :root computed. The re-points below come
938
+ * after the light block and outrank it, so they hold in every theme; the high-contrast
939
+ * remap comes after them, so a high-contrast theme keeps its edges and rings and draws
940
+ * no threads here.
941
+ * ══════════════════════════════════════════════════════════════════════ */
942
+
943
+ [data-lace-paper="blueprint"],
944
+ [data-theme="light"] [data-lace-paper="blueprint"],
945
+ [data-theme="light"][data-lace-paper="blueprint"],
946
+ [data-theme="high-contrast-light"] [data-lace-paper="blueprint"],
947
+ [data-theme="high-contrast-light"][data-lace-paper="blueprint"] {
948
+ --lace-color-bg-canvas: var(--lace-color-cool-900);
949
+ --lace-paper-thread-fine: var(--lace-color-blue-accent-alpha-05);
950
+ --lace-paper-thread-major: var(--lace-color-blue-accent-alpha-11);
951
+ --lace-color-ink: var(--lace-color-blue-accent);
952
+ /* The accent is the ink: nothing on the blueprint is lime, and a fill drawn on it is the
953
+ * ink's, its tints the ink's at the accent's strengths. */
954
+ --lace-color-accent: var(--lace-color-ink);
955
+ --lace-color-accent-alpha-subtle: color-mix(in srgb, var(--lace-color-ink) 10%, transparent);
956
+ --lace-color-accent-alpha-medium: color-mix(in srgb, var(--lace-color-ink) 20%, transparent);
957
+ --lace-color-accent-strong: var(--lace-color-ink);
958
+ /* The label on the ink is the ground: dark on the dark theme's light blue, light on the
959
+ * light theme's deep one. */
960
+ --lace-color-text-on-accent: var(--lace-color-bg-canvas);
961
+ }
794
962
 
795
- /* ── Tier-3: Module detail panel ──
796
- * --lace-accent-green cascades from Tier-2 success. Blue accent
797
- * shifts from canvas brand-cyan to deep blue for legibility. */
798
- --lace-accent-blue: var(--lace-color-blue-deep-700);
799
-
800
- /* ── Tier-3: Tag pill ── */
801
- --lace-tag-border: #bfdbfe;
802
- --lace-tag-bg: #eff6ff;
803
- --lace-tag-text: var(--lace-color-blue-deep-700);
804
-
805
- /* ── Tier-3: Policy sidebar (alpha-over-white instead of alpha-over-black) ── */
806
- --lace-policy-preview-badge-bg: rgba(0, 0, 0, 0.05);
807
- --lace-policy-section-divider: rgba(0, 0, 0, 0.08);
808
- --lace-policy-rule-fired-bg: rgba(245, 166, 35, 0.1);
809
- --lace-policy-rule-default-bg: rgba(0, 0, 0, 0.03);
810
- --lace-policy-predicate-eval-bg: rgba(0, 0, 0, 0.04);
963
+ [data-theme="light"] [data-lace-paper="blueprint"],
964
+ [data-theme="light"][data-lace-paper="blueprint"],
965
+ [data-theme="high-contrast-light"] [data-lace-paper="blueprint"],
966
+ [data-theme="high-contrast-light"][data-lace-paper="blueprint"] {
967
+ --lace-color-bg-canvas: var(--lace-color-cool-100);
968
+ --lace-paper-thread-fine: var(--lace-color-blue-deep-alpha-07);
969
+ --lace-paper-thread-major: var(--lace-color-blue-deep-alpha-14);
970
+ --lace-color-ink: var(--lace-color-blue-deep-800);
811
971
  }
812
972
 
813
973
  /* ══════════════════════════════════════════════════════════════════════
@@ -832,31 +992,28 @@
832
992
  [data-theme="high-contrast"],
833
993
  [data-theme="high-contrast-light"],
834
994
  [data-theme="high-contrast"] [data-lace-dark-tokens],
835
- [data-theme="high-contrast-light"] [data-lace-dark-tokens] {
995
+ [data-theme="high-contrast-light"] [data-lace-dark-tokens],
996
+ [data-theme="high-contrast"] [data-lace-paper="blueprint"],
997
+ [data-theme="high-contrast"][data-lace-paper="blueprint"],
998
+ [data-theme="high-contrast-light"] [data-lace-paper="blueprint"],
999
+ [data-theme="high-contrast-light"][data-lace-paper="blueprint"] {
836
1000
  --lace-color-border-default: var(--lace-hc-edge);
837
1001
  --lace-color-border-subtle: var(--lace-hc-edge);
838
1002
  --lace-color-border-input: var(--lace-hc-edge);
1003
+ --lace-color-border-control: var(--lace-hc-edge);
839
1004
  --lace-color-border-input-hover: var(--lace-hc-edge);
840
1005
  --lace-color-focus-ring: var(--lace-hc-focus);
841
1006
  --lace-group-border: var(--lace-hc-edge);
842
1007
  --lace-forbidden-border: var(--lace-hc-edge);
843
1008
  --lace-card-border: var(--lace-hc-edge);
844
- --lace-badge-gy-border: var(--lace-hc-edge);
845
- --lace-badge-info-border: var(--lace-hc-edge);
846
- --lace-badge-purple-border: var(--lace-hc-edge);
847
- --lace-badge-success-border: var(--lace-hc-edge);
848
- --lace-badge-warning-border: var(--lace-hc-edge);
1009
+ --lace-color-accent-edge: var(--lace-hc-edge);
849
1010
  --lace-banner-error-border: var(--lace-hc-edge);
850
1011
  --lace-banner-warning-border: var(--lace-hc-edge);
851
- --lace-mode-toggle-active-border: var(--lace-hc-edge);
852
1012
  --lace-toast-error-border: var(--lace-hc-edge);
853
1013
  --lace-toast-success-border: var(--lace-hc-edge);
854
1014
  --lace-node-rename-border: var(--lace-hc-edge);
855
1015
  --lace-green: var(--lace-hc-active);
856
- --lace-canvas-controls-border: var(--lace-hc-edge);
857
- --lace-canvas-minimap-border: var(--lace-hc-edge);
858
1016
  --lace-canvas-edge-stroke: var(--lace-hc-edge);
859
- --lace-canvas-edge-stroke-hover: var(--lace-hc-active);
860
1017
  --lace-canvas-edge-stroke-selected: var(--lace-hc-active);
861
1018
  --lace-canvas-connection-stroke: var(--lace-hc-active);
862
1019
  --lace-node-selected-ring: var(--lace-hc-active);
@@ -864,6 +1021,8 @@
864
1021
  --lace-node-new-border: var(--lace-hc-edge);
865
1022
  --lace-node-bg: var(--lace-hc-surface);
866
1023
  --lace-node-header-bg: var(--lace-hc-surface);
1024
+ --lace-node-cloud-stroke: var(--lace-hc-edge);
1025
+ --lace-node-cloud-fill: var(--lace-hc-surface);
867
1026
  --lace-paper-thread-fine: transparent;
868
1027
  --lace-paper-thread-major: transparent;
869
1028
  --lace-pin-string-ring: var(--lace-hc-edge);
@@ -909,17 +1068,26 @@
909
1068
  * without requiring each component to restate them.
910
1069
  * ══════════════════════════════════════════════════════════════════════ */
911
1070
 
1071
+ /* The root sets no font size, so a rem is the reader's own default and a length spelled in rems
1072
+ * (a Tailwind step: `p-4`, `h-6`) draws the size it names. */
912
1073
  html,
913
1074
  body {
914
- font-family: var(--lace-font-sans);
915
- font-size: var(--lace-font-size-md);
916
- line-height: var(--lace-line-height-normal);
917
1075
  color: var(--lace-color-text-primary);
918
1076
  background: var(--lace-color-bg-canvas);
919
1077
  -webkit-font-smoothing: antialiased;
920
1078
  -moz-osx-font-smoothing: grayscale;
921
1079
  }
922
1080
 
1081
+ /* Text with no role of its own reads the body role of the set it sits in: the document's body,
1082
+ * and the root of every region inside it that declares a set (the canvas, a prose region, a
1083
+ * figure, a floating layer), so the text there takes that set's body, not the one it inherits.
1084
+ * A part names a role only where its text is not body. */
1085
+ body,
1086
+ [data-lace-type-set]:not(:root) {
1087
+ font: var(--lace-text-body);
1088
+ letter-spacing: var(--lace-text-body-tracking);
1089
+ }
1090
+
923
1091
  *,
924
1092
  *::before,
925
1093
  *::after {
@@ -948,6 +1116,15 @@ body {
948
1116
  * `.lace-paper-layers` on an element that positions itself and only
949
1117
  * wants the grid recipe.
950
1118
  *
1119
+ * `.lace-paper-frame` — THE FRAME, applied with `.lace-paper` on the shell
1120
+ * root: a mask that keeps the paper full at the window's edges, at 60%
1121
+ * strength to `--lace-paper-frame-hold` and gone at
1122
+ * `--lace-paper-frame-depth` from each edge.
1123
+ *
1124
+ * `.lace-paper-vignette` — THE VIGNETTE, applied with `.lace-paper-layers`
1125
+ * behind a centred column: a mask that clears the column's middle and
1126
+ * keeps the paper at the box's edges.
1127
+ *
951
1128
  * The canvas mounts `.lace-paper-layers` on a layer filling its flow pane
952
1129
  * behind the graph, at the shell paper's own pitch and threads: a backdrop
953
1130
  * that stays put while the graph pans and zooms over it
@@ -997,6 +1174,61 @@ body {
997
1174
  pointer-events: none;
998
1175
  }
999
1176
 
1177
+ /* Two masks, across then down, added together: each is opaque at its two edges. */
1178
+ .lace-paper-frame {
1179
+ -webkit-mask-image:
1180
+ linear-gradient(
1181
+ 90deg,
1182
+ var(--lace-color-neutral-black),
1183
+ var(--lace-color-black-alpha-60) var(--lace-paper-frame-hold),
1184
+ transparent var(--lace-paper-frame-depth),
1185
+ transparent calc(100% - var(--lace-paper-frame-depth)),
1186
+ var(--lace-color-black-alpha-60) calc(100% - var(--lace-paper-frame-hold)),
1187
+ var(--lace-color-neutral-black)
1188
+ ),
1189
+ linear-gradient(
1190
+ var(--lace-color-neutral-black),
1191
+ var(--lace-color-black-alpha-60) var(--lace-paper-frame-hold),
1192
+ transparent var(--lace-paper-frame-depth),
1193
+ transparent calc(100% - var(--lace-paper-frame-depth)),
1194
+ var(--lace-color-black-alpha-60) calc(100% - var(--lace-paper-frame-hold)),
1195
+ var(--lace-color-neutral-black)
1196
+ );
1197
+ mask-image:
1198
+ linear-gradient(
1199
+ 90deg,
1200
+ var(--lace-color-neutral-black),
1201
+ var(--lace-color-black-alpha-60) var(--lace-paper-frame-hold),
1202
+ transparent var(--lace-paper-frame-depth),
1203
+ transparent calc(100% - var(--lace-paper-frame-depth)),
1204
+ var(--lace-color-black-alpha-60) calc(100% - var(--lace-paper-frame-hold)),
1205
+ var(--lace-color-neutral-black)
1206
+ ),
1207
+ linear-gradient(
1208
+ var(--lace-color-neutral-black),
1209
+ var(--lace-color-black-alpha-60) var(--lace-paper-frame-hold),
1210
+ transparent var(--lace-paper-frame-depth),
1211
+ transparent calc(100% - var(--lace-paper-frame-depth)),
1212
+ var(--lace-color-black-alpha-60) calc(100% - var(--lace-paper-frame-hold)),
1213
+ var(--lace-color-neutral-black)
1214
+ );
1215
+ }
1216
+
1217
+ /* The paper behind a centred column: gone across the column's middle, full from 80% of the
1218
+ * way out, so the threads frame the content and never cross it. */
1219
+ .lace-paper-vignette {
1220
+ -webkit-mask-image: radial-gradient(
1221
+ ellipse 55% 50% at 50% 50%,
1222
+ transparent 40%,
1223
+ var(--lace-color-neutral-black) 80%
1224
+ );
1225
+ mask-image: radial-gradient(
1226
+ ellipse 55% 50% at 50% 50%,
1227
+ transparent 40%,
1228
+ var(--lace-color-neutral-black) 80%
1229
+ );
1230
+ }
1231
+
1000
1232
  @media (forced-colors: active), print {
1001
1233
  .lace-paper,
1002
1234
  .lace-paper-layers {
@@ -1008,7 +1240,8 @@ body {
1008
1240
  * It is the last rule so it outranks each theme block at equal specificity. */
1009
1241
  @media (forced-colors: active) {
1010
1242
  :root,
1011
- [data-lace-dark-tokens] {
1243
+ [data-lace-dark-tokens],
1244
+ [data-lace-paper="blueprint"] {
1012
1245
  --lace-hc-edge: CanvasText;
1013
1246
  --lace-hc-active: Highlight;
1014
1247
  --lace-hc-focus: Highlight;
@@ -1016,27 +1249,20 @@ body {
1016
1249
  --lace-color-border-default: var(--lace-hc-edge);
1017
1250
  --lace-color-border-subtle: var(--lace-hc-edge);
1018
1251
  --lace-color-border-input: var(--lace-hc-edge);
1252
+ --lace-color-border-control: var(--lace-hc-edge);
1019
1253
  --lace-color-border-input-hover: var(--lace-hc-edge);
1020
1254
  --lace-color-focus-ring: var(--lace-hc-focus);
1021
1255
  --lace-group-border: var(--lace-hc-edge);
1022
1256
  --lace-forbidden-border: var(--lace-hc-edge);
1023
1257
  --lace-card-border: var(--lace-hc-edge);
1024
- --lace-badge-gy-border: var(--lace-hc-edge);
1025
- --lace-badge-info-border: var(--lace-hc-edge);
1026
- --lace-badge-purple-border: var(--lace-hc-edge);
1027
- --lace-badge-success-border: var(--lace-hc-edge);
1028
- --lace-badge-warning-border: var(--lace-hc-edge);
1258
+ --lace-color-accent-edge: var(--lace-hc-edge);
1029
1259
  --lace-banner-error-border: var(--lace-hc-edge);
1030
1260
  --lace-banner-warning-border: var(--lace-hc-edge);
1031
- --lace-mode-toggle-active-border: var(--lace-hc-edge);
1032
1261
  --lace-toast-error-border: var(--lace-hc-edge);
1033
1262
  --lace-toast-success-border: var(--lace-hc-edge);
1034
1263
  --lace-node-rename-border: var(--lace-hc-edge);
1035
1264
  --lace-green: var(--lace-hc-active);
1036
- --lace-canvas-controls-border: var(--lace-hc-edge);
1037
- --lace-canvas-minimap-border: var(--lace-hc-edge);
1038
1265
  --lace-canvas-edge-stroke: var(--lace-hc-edge);
1039
- --lace-canvas-edge-stroke-hover: var(--lace-hc-active);
1040
1266
  --lace-canvas-edge-stroke-selected: var(--lace-hc-active);
1041
1267
  --lace-canvas-connection-stroke: var(--lace-hc-active);
1042
1268
  --lace-node-selected-ring: var(--lace-hc-active);
@@ -1044,6 +1270,8 @@ body {
1044
1270
  --lace-node-new-border: var(--lace-hc-edge);
1045
1271
  --lace-node-bg: var(--lace-hc-surface);
1046
1272
  --lace-node-header-bg: var(--lace-hc-surface);
1273
+ --lace-node-cloud-stroke: var(--lace-hc-edge);
1274
+ --lace-node-cloud-fill: var(--lace-hc-surface);
1047
1275
  --lace-paper-thread-fine: transparent;
1048
1276
  --lace-paper-thread-major: transparent;
1049
1277
  --lace-pin-string-ring: var(--lace-hc-edge);