@behavioral-agentic-design-system/core 0.1.4 → 0.2.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/src/tokens.json CHANGED
@@ -1,267 +1,161 @@
1
1
  {
2
2
  "$schema": "https://tokens.studio/schema/draft.json",
3
3
  "version": "0.2.0",
4
-
5
4
  "color": {
6
5
  "primitive": {
7
6
  "blue": {
8
- "50": { "$value": "#EBF0FF", "$type": "color", "$description": "Lightest blue tint" },
9
- "100": { "$value": "#D1DFFF", "$type": "color" },
10
- "200": { "$value": "#7BA8FF", "$type": "color" },
11
- "300": { "$value": "#8BD6E5", "$type": "color" },
12
- "400": { "$value": "#4080FF", "$type": "color" },
13
- "500": { "$value": "#025FFF", "$type": "color", "$description": "Primary brand color" },
14
- "600": { "$value": "#0020D6", "$type": "color" },
15
- "700": { "$value": "#0E295E", "$type": "color", "$description": "Secondary brand color" },
16
- "800": { "$value": "#0A1D42", "$type": "color" },
17
- "850": { "$value": "#09142A", "$type": "color", "$description": "Dark mode card surface" },
18
- "900": { "$value": "#051A3F", "$type": "color", "$description": "Darkest blue" },
19
- "950": { "$value": "#040D20", "$type": "color", "$description": "Dark mode page background — deepest brand blue" }
20
- },
21
- "slate": {
22
- "100": { "$value": "#B8D6E5", "$type": "color", "$description": "Light blue-gray — secondary text on dark backgrounds" },
23
- "300": { "$value": "#7292A1", "$type": "color", "$description": "Mid blue-gray — input borders on dark backgrounds" },
24
- "500": { "$value": "#324852", "$type": "color", "$description": "Deep blue-gray — default borders/dividers on dark backgrounds" }
25
- },
26
- "cream": {
27
- "100": { "$value": "#FFECDC", "$type": "color", "$description": "Warm accent highlight" }
28
- },
29
- "coral": {
30
- "500": { "$value": "#DB6A58", "$type": "color", "$description": "Brand coral. Use for accents and status indicators. Does not meet AA 4.5:1 on white text — pair with coral.700 for primary CTA usage." },
31
- "700": { "$value": "#A03A2A", "$type": "color", "$description": "Dark accessible coral — meets AA 4.5:1 on white for error text and primary CTAs" }
32
- },
33
- "orange": {
34
- "500": { "$value": "#FF5532", "$type": "color", "$description": "Warning/attention color" }
35
- },
36
- "green": {
37
- "500": { "$value": "#10B981", "$type": "color", "$description": "Success/positive color (light variant)" },
38
- "700": { "$value": "#047857", "$type": "color", "$description": "Dark accessible green — meets 3:1 on white for status indicators" }
39
- },
40
- "neutral": {
41
- "0": { "$value": "#FFFFFF", "$type": "color" },
42
- "50": { "$value": "#FAFCFC", "$type": "color" },
43
- "100": { "$value": "#F5F5F5", "$type": "color" },
44
- "200": { "$value": "#E5E5E5", "$type": "color", "$description": "Decorative borders, dividers (exempt from 3:1)" },
45
- "300": { "$value": "#767676", "$type": "color", "$description": "Functional borders — meets WCAG 1.4.11 (3:1) for inputs and UI components" },
46
- "400": { "$value": "#ABABAB", "$type": "color" },
47
- "500": { "$value": "#887B73", "$type": "color" },
48
- "700": { "$value": "#555555", "$type": "color" },
49
- "900": { "$value": "#1A1A1A", "$type": "color" }
50
- }
51
- },
52
- "semantic": {
53
- "action": {
54
- "primary": {
55
- "$value": "{color.primitive.blue.500}",
7
+ "50": {
8
+ "$value": "#EBF0FF",
56
9
  "$type": "color",
57
- "$description": "Primary buttons, CTAs, links",
58
- "$extensions": {
59
- "BADS.wcag": { "pairWith": "color.semantic.text.on-primary", "level": "AA", "useCase": "normal-text" }
60
- }
10
+ "$description": "Lightest blue tint"
61
11
  },
62
- "primary-hover": {
63
- "$value": "{color.primitive.blue.600}",
64
- "$type": "color",
65
- "$description": "Primary button hover state",
66
- "$extensions": {
67
- "BADS.wcag": { "pairWith": "color.semantic.text.on-primary", "level": "AA", "useCase": "normal-text" }
68
- }
12
+ "100": {
13
+ "$value": "#D1DFFF",
14
+ "$type": "color"
69
15
  },
70
- "secondary": {
71
- "$value": "{color.primitive.blue.700}",
72
- "$type": "color",
73
- "$description": "Secondary buttons",
74
- "$extensions": {
75
- "BADS.wcag": { "pairWith": "color.semantic.text.on-primary", "level": "AA", "useCase": "normal-text" }
76
- }
16
+ "200": {
17
+ "$value": "#7BA8FF",
18
+ "$type": "color"
77
19
  },
78
- "destructive": {
79
- "$value": "{color.primitive.orange.500}",
80
- "$type": "color",
81
- "$description": "Delete, remove, destructive actions",
82
- "$extensions": {
83
- "BADS.wcag": { "pairWith": "color.semantic.text.on-primary", "level": "AA", "useCase": "large-text", "note": "Orange/white pairing only meets AA for large text (18pt+ or 14pt bold). Use for buttons sized lg or with bold weight." }
84
- }
20
+ "300": {
21
+ "$value": "#8BD6E5",
22
+ "$type": "color"
85
23
  },
86
- "disabled": {
87
- "$value": "{color.primitive.neutral.400}",
88
- "$type": "color",
89
- "$description": "Disabled buttons and controls",
90
- "$extensions": {
91
- "BADS.wcag": { "exempt": true, "reason": "WCAG 1.4.3 — disabled controls are exempt from contrast requirements" },
92
- "BADS.modes": { "dark": "{color.primitive.slate.500}" }
93
- }
94
- }
95
- },
96
- "surface": {
97
- "page": {
98
- "$value": "{color.primitive.neutral.50}",
99
- "$type": "color",
100
- "$description": "Page background",
101
- "$extensions": {
102
- "BADS.modes": { "dark": "{color.primitive.blue.950}" }
103
- }
24
+ "400": {
25
+ "$value": "#4080FF",
26
+ "$type": "color"
104
27
  },
105
- "card": {
106
- "$value": "{color.primitive.neutral.0}",
28
+ "500": {
29
+ "$value": "#025FFF",
107
30
  "$type": "color",
108
- "$description": "Card backgrounds, elevated surfaces",
109
- "$extensions": {
110
- "BADS.modes": { "dark": "{color.primitive.blue.850}" }
111
- }
31
+ "$description": "Primary brand color"
32
+ },
33
+ "600": {
34
+ "$value": "#0020D6",
35
+ "$type": "color"
112
36
  },
113
- "muted": {
114
- "$value": "{color.primitive.neutral.50}",
37
+ "700": {
38
+ "$value": "#0E295E",
115
39
  "$type": "color",
116
- "$description": "Muted backgrounds, secondary panels",
117
- "$extensions": {
118
- "BADS.modes": { "dark": "{color.primitive.blue.700}" }
119
- }
40
+ "$description": "Secondary brand color"
120
41
  },
121
- "sidebar": {
122
- "$value": "{color.primitive.neutral.50}",
42
+ "800": {
43
+ "$value": "#0A1D42",
44
+ "$type": "color"
45
+ },
46
+ "850": {
47
+ "$value": "#09142A",
123
48
  "$type": "color",
124
- "$description": "Sidebar background (light mode)",
125
- "$extensions": {
126
- "BADS.modes": { "dark": "{color.primitive.blue.950}" }
127
- }
49
+ "$description": "Dark mode card surface"
128
50
  },
129
- "sidebar-dark": {
130
- "$value": "{color.primitive.blue.800}",
51
+ "900": {
52
+ "$value": "#051A3F",
131
53
  "$type": "color",
132
- "$description": "Sidebar background — dark variant available regardless of mode (for split layouts)"
54
+ "$description": "Darkest blue"
133
55
  },
134
- "overlay": {
135
- "$value": "{color.primitive.neutral.900}",
56
+ "950": {
57
+ "$value": "#040D20",
136
58
  "$type": "color",
137
- "$description": "Modal overlays, scrims (with opacity)"
59
+ "$description": "Dark mode page background — deepest brand blue"
138
60
  }
139
61
  },
140
- "text": {
141
- "primary": {
142
- "$value": "{color.primitive.neutral.900}",
143
- "$type": "color",
144
- "$description": "Body text, headings",
145
- "$extensions": {
146
- "BADS.wcag": { "pairWith": "color.semantic.surface.card", "level": "AAA", "useCase": "normal-text" },
147
- "BADS.modes": { "dark": "{color.primitive.neutral.50}" }
148
- }
149
- },
150
- "secondary": {
151
- "$value": "{color.primitive.neutral.500}",
152
- "$type": "color",
153
- "$description": "Muted text, descriptions",
154
- "$extensions": {
155
- "BADS.wcag": { "pairWith": "color.semantic.surface.card", "level": "AA", "useCase": "large-text", "note": "Neutral-500 only meets AA for large text. Use for captions/labels at 18pt+ or restrict to non-essential text." },
156
- "BADS.modes": { "dark": "{color.primitive.slate.100}" }
157
- }
158
- },
159
- "on-primary": {
160
- "$value": "{color.primitive.neutral.50}",
62
+ "slate": {
63
+ "100": {
64
+ "$value": "#B8D6E5",
161
65
  "$type": "color",
162
- "$description": "Text on primary-colored backgrounds",
163
- "$extensions": {
164
- "BADS.wcag": { "pairWith": "color.semantic.action.primary", "level": "AA", "useCase": "normal-text" }
165
- }
66
+ "$description": "Light blue-gray — secondary text on dark backgrounds"
166
67
  },
167
- "on-dark": {
168
- "$value": "{color.primitive.neutral.50}",
68
+ "300": {
69
+ "$value": "#7292A1",
169
70
  "$type": "color",
170
- "$description": "Text on dark backgrounds",
171
- "$extensions": {
172
- "BADS.wcag": { "pairWith": "color.semantic.surface.sidebar-dark", "level": "AAA", "useCase": "normal-text" }
173
- }
71
+ "$description": "Mid blue-gray — input borders on dark backgrounds"
174
72
  },
175
- "link": {
176
- "$value": "{color.primitive.blue.500}",
177
- "$type": "color",
178
- "$description": "Hyperlinks, clickable text",
179
- "$extensions": {
180
- "BADS.wcag": { "pairWith": "color.semantic.surface.card", "level": "AA", "useCase": "normal-text", "note": "Brand blue (#025FFF) hits ~5.1:1 on white — passes AA normal text but not AAA. Underline links to satisfy WCAG 1.4.1 (color isn't the only indicator)." },
181
- "BADS.modes": { "dark": "{color.primitive.blue.300}" }
182
- }
183
- },
184
- "error": {
185
- "$value": "{color.primitive.coral.700}",
73
+ "500": {
74
+ "$value": "#324852",
186
75
  "$type": "color",
187
- "$description": "Error messages — uses dark coral to stay on-brand and meet AA contrast",
188
- "$extensions": {
189
- "BADS.wcag": { "pairWith": "color.semantic.surface.card", "level": "AA", "useCase": "normal-text", "note": "Switched from orange.500 to coral.700 for brand consistency with status.error and to pass AA contrast." },
190
- "BADS.modes": { "dark": "{color.primitive.coral.500}" }
191
- }
76
+ "$description": "Deep blue-gray — default borders/dividers on dark backgrounds"
192
77
  }
193
78
  },
194
- "border": {
195
- "default": {
196
- "$value": "{color.primitive.neutral.200}",
79
+ "cream": {
80
+ "100": {
81
+ "$value": "#FFECDC",
197
82
  "$type": "color",
198
- "$description": "Card borders, dividers",
199
- "$extensions": {
200
- "BADS.wcag": { "exempt": true, "reason": "Decorative border, not load-bearing for meaning" },
201
- "BADS.modes": { "dark": "{color.primitive.slate.500}" }
202
- }
203
- },
204
- "input": {
205
- "$value": "{color.primitive.neutral.300}",
83
+ "$description": "Warm accent highlight"
84
+ }
85
+ },
86
+ "coral": {
87
+ "500": {
88
+ "$value": "#DB6A58",
206
89
  "$type": "color",
207
- "$description": "Form input borders — uses functional-border primitive that meets WCAG 1.4.11",
208
- "$extensions": {
209
- "BADS.wcag": { "pairWith": "color.semantic.surface.card", "level": "AA", "useCase": "ui-component", "note": "Switched from neutral.200 to neutral.300 for accessible input boundaries. Decorative borders still use neutral.200 via border.default." },
210
- "BADS.modes": { "dark": "{color.primitive.slate.300}" }
211
- }
212
- },
213
- "focus": {
214
- "$value": "{color.primitive.blue.500}",
90
+ "$description": "Brand coral. Use for accents and status indicators. Does not meet AA 4.5:1 on white text — pair with coral.700 for primary CTA usage."
91
+ },
92
+ "700": {
93
+ "$value": "#A03A2A",
215
94
  "$type": "color",
216
- "$description": "Focus rings",
217
- "$extensions": {
218
- "BADS.wcag": { "pairWith": "color.semantic.surface.card", "level": "AAA", "useCase": "ui-component", "minimumRequired": "3:1 per WCAG 1.4.11" },
219
- "BADS.modes": { "dark": "{color.primitive.neutral.50}" }
220
- }
221
- },
222
- "error": {
223
- "$value": "{color.primitive.orange.500}",
95
+ "$description": "Dark accessible coral — meets AA 4.5:1 on white for error text and primary CTAs"
96
+ }
97
+ },
98
+ "orange": {
99
+ "500": {
100
+ "$value": "#FF5532",
224
101
  "$type": "color",
225
- "$description": "Error state borders",
226
- "$extensions": {
227
- "BADS.wcag": { "pairWith": "color.semantic.surface.card", "level": "AA", "useCase": "ui-component", "minimumRequired": "3:1 per WCAG 1.4.11" }
228
- }
102
+ "$description": "Warning/attention color"
229
103
  }
230
104
  },
231
- "status": {
232
- "success": {
233
- "$value": "{color.primitive.green.700}",
105
+ "green": {
106
+ "500": {
107
+ "$value": "#10B981",
234
108
  "$type": "color",
235
- "$extensions": {
236
- "BADS.wcag": { "pairWith": "color.semantic.surface.card", "level": "AA", "useCase": "ui-component", "note": "Always pair status color with text or icon — color cannot be the only indicator (WCAG 1.4.1)." },
237
- "BADS.modes": { "dark": "{color.primitive.green.500}" }
238
- }
109
+ "$description": "Success/positive color (light variant)"
239
110
  },
240
- "warning": {
241
- "$value": "{color.primitive.orange.500}",
111
+ "700": {
112
+ "$value": "#047857",
242
113
  "$type": "color",
243
- "$extensions": {
244
- "BADS.wcag": { "pairWith": "color.semantic.surface.card", "level": "AA", "useCase": "ui-component", "note": "Always pair status color with text or icon — color cannot be the only indicator (WCAG 1.4.1)." }
245
- }
114
+ "$description": "Dark accessible green — meets 3:1 on white for status indicators"
115
+ }
116
+ },
117
+ "neutral": {
118
+ "0": {
119
+ "$value": "#FFFFFF",
120
+ "$type": "color"
121
+ },
122
+ "50": {
123
+ "$value": "#FAFCFC",
124
+ "$type": "color"
125
+ },
126
+ "100": {
127
+ "$value": "#F5F5F5",
128
+ "$type": "color"
246
129
  },
247
- "error": {
248
- "$value": "{color.primitive.coral.500}",
130
+ "200": {
131
+ "$value": "#E5E5E5",
249
132
  "$type": "color",
250
- "$extensions": {
251
- "BADS.wcag": { "pairWith": "color.semantic.surface.card", "level": "AA", "useCase": "ui-component", "note": "Always pair status color with text or icon — color cannot be the only indicator (WCAG 1.4.1)." }
252
- }
133
+ "$description": "Decorative borders, dividers (exempt from 3:1)"
253
134
  },
254
- "info": {
255
- "$value": "{color.primitive.blue.400}",
135
+ "300": {
136
+ "$value": "#767676",
256
137
  "$type": "color",
257
- "$extensions": {
258
- "BADS.wcag": { "pairWith": "color.semantic.surface.card", "level": "AA", "useCase": "ui-component", "note": "Always pair status color with text or icon — color cannot be the only indicator (WCAG 1.4.1)." }
259
- }
138
+ "$description": "Functional borders — meets WCAG 1.4.11 (3:1) for inputs and UI components"
139
+ },
140
+ "400": {
141
+ "$value": "#ABABAB",
142
+ "$type": "color"
143
+ },
144
+ "500": {
145
+ "$value": "#887B73",
146
+ "$type": "color"
147
+ },
148
+ "700": {
149
+ "$value": "#555555",
150
+ "$type": "color"
151
+ },
152
+ "900": {
153
+ "$value": "#1A1A1A",
154
+ "$type": "color"
260
155
  }
261
156
  }
262
157
  }
263
158
  },
264
-
265
159
  "fontFamily": {
266
160
  "sans": {
267
161
  "$value": "'Hyperlegible Sans', ui-sans-serif, sans-serif, system-ui",
@@ -279,144 +173,411 @@
279
173
  "$description": "Monospace (code, captions). JetBrains Mono is the default fallback."
280
174
  }
281
175
  },
282
-
283
176
  "fontSize": {
284
- "xs": { "$value": "14px", "$type": "dimension", "$description": "Captions, labels. Floor for legibility." },
285
- "sm": { "$value": "16px", "$type": "dimension", "$description": "Secondary text. Sits just under body." },
286
- "base": { "$value": "18px", "$type": "dimension", "$description": "Body text baseline. 18px reads comfortably across devices and is generous for low-vision users without feeling oversized." },
287
- "lg": { "$value": "20px", "$type": "dimension" },
288
- "xl": { "$value": "24px", "$type": "dimension" },
289
- "2xl": { "$value": "28px", "$type": "dimension" },
290
- "3xl": { "$value": "32px", "$type": "dimension" }
177
+ "xs": {
178
+ "$value": "14px",
179
+ "$type": "dimension",
180
+ "$description": "Captions, labels. WCAG AA floor — never lower in upstream BADS."
181
+ },
182
+ "sm": {
183
+ "$value": "16px",
184
+ "$type": "dimension",
185
+ "$description": "Secondary text. Sits just under body."
186
+ },
187
+ "base": {
188
+ "$value": "18px",
189
+ "$type": "dimension",
190
+ "$description": "Body text baseline. Default type scale computes from this."
191
+ },
192
+ "lg": {
193
+ "$value": "20px",
194
+ "$type": "dimension"
195
+ },
196
+ "xl": {
197
+ "$value": "24px",
198
+ "$type": "dimension"
199
+ },
200
+ "2xl": {
201
+ "$value": "28px",
202
+ "$type": "dimension"
203
+ },
204
+ "3xl": {
205
+ "$value": "32px",
206
+ "$type": "dimension"
207
+ },
208
+ "4xl": {
209
+ "$value": "36px",
210
+ "$type": "dimension",
211
+ "$description": "Marketing tier — display size. Landing-page section heads, large pricing numbers."
212
+ },
213
+ "5xl": {
214
+ "$value": "48px",
215
+ "$type": "dimension",
216
+ "$description": "Marketing tier — display size. Sub-hero, feature-grid headlines."
217
+ },
218
+ "6xl": {
219
+ "$value": "60px",
220
+ "$type": "dimension",
221
+ "$description": "Marketing tier — display size. Hero headlines on mid-density pages."
222
+ },
223
+ "7xl": {
224
+ "$value": "72px",
225
+ "$type": "dimension",
226
+ "$description": "Marketing tier — display size. Hero headlines on hero-led pages."
227
+ },
228
+ "8xl": {
229
+ "$value": "96px",
230
+ "$type": "dimension",
231
+ "$description": "Marketing tier — display size. Editorial / brand-statement scale."
232
+ }
291
233
  },
292
-
293
234
  "fontWeight": {
294
- "regular": { "$value": "400", "$type": "fontWeight" },
295
- "medium": { "$value": "500", "$type": "fontWeight" },
296
- "bold": { "$value": "700", "$type": "fontWeight" }
235
+ "regular": {
236
+ "$value": "400",
237
+ "$type": "fontWeight"
238
+ },
239
+ "medium": {
240
+ "$value": "500",
241
+ "$type": "fontWeight"
242
+ },
243
+ "bold": {
244
+ "$value": "700",
245
+ "$type": "fontWeight"
246
+ }
297
247
  },
298
-
299
248
  "lineHeight": {
300
- "tight": { "$value": "1.2", "$type": "lineHeight" },
301
- "snug": { "$value": "1.3", "$type": "lineHeight" },
302
- "normal": { "$value": "1.5", "$type": "lineHeight" },
303
- "relaxed": { "$value": "1.6", "$type": "lineHeight" }
249
+ "tight": {
250
+ "$value": "1.2",
251
+ "$type": "lineHeight"
252
+ },
253
+ "snug": {
254
+ "$value": "1.3",
255
+ "$type": "lineHeight"
256
+ },
257
+ "normal": {
258
+ "$value": "1.5",
259
+ "$type": "lineHeight"
260
+ },
261
+ "relaxed": {
262
+ "$value": "1.6",
263
+ "$type": "lineHeight"
264
+ }
304
265
  },
305
-
306
266
  "spacing": {
307
- "0": { "$value": "0px", "$type": "dimension" },
308
- "1": { "$value": "4px", "$type": "dimension" },
309
- "2": { "$value": "8px", "$type": "dimension" },
310
- "3": { "$value": "12px", "$type": "dimension" },
311
- "4": { "$value": "16px", "$type": "dimension" },
312
- "5": { "$value": "20px", "$type": "dimension" },
313
- "6": { "$value": "24px", "$type": "dimension" },
314
- "8": { "$value": "32px", "$type": "dimension" },
315
- "12": { "$value": "48px", "$type": "dimension" },
316
- "16": { "$value": "64px", "$type": "dimension" }
267
+ "0": {
268
+ "$value": "0px",
269
+ "$type": "dimension"
270
+ },
271
+ "1": {
272
+ "$value": "4px",
273
+ "$type": "dimension"
274
+ },
275
+ "2": {
276
+ "$value": "8px",
277
+ "$type": "dimension"
278
+ },
279
+ "3": {
280
+ "$value": "12px",
281
+ "$type": "dimension"
282
+ },
283
+ "4": {
284
+ "$value": "16px",
285
+ "$type": "dimension"
286
+ },
287
+ "5": {
288
+ "$value": "20px",
289
+ "$type": "dimension"
290
+ },
291
+ "6": {
292
+ "$value": "24px",
293
+ "$type": "dimension"
294
+ },
295
+ "8": {
296
+ "$value": "32px",
297
+ "$type": "dimension"
298
+ },
299
+ "12": {
300
+ "$value": "48px",
301
+ "$type": "dimension"
302
+ },
303
+ "16": {
304
+ "$value": "64px",
305
+ "$type": "dimension"
306
+ }
317
307
  },
318
-
319
308
  "borderRadius": {
320
- "none": { "$value": "0px", "$type": "dimension" },
321
- "sm": { "$value": "2px", "$type": "dimension" },
322
- "md": { "$value": "4px", "$type": "dimension" },
323
- "lg": { "$value": "8px", "$type": "dimension" },
324
- "xl": { "$value": "12px", "$type": "dimension" },
325
- "full": { "$value": "9999px", "$type": "dimension" }
309
+ "none": {
310
+ "$value": "0px",
311
+ "$type": "dimension"
312
+ },
313
+ "sm": {
314
+ "$value": "2px",
315
+ "$type": "dimension"
316
+ },
317
+ "md": {
318
+ "$value": "4px",
319
+ "$type": "dimension"
320
+ },
321
+ "lg": {
322
+ "$value": "0.625rem",
323
+ "$type": "dimension",
324
+ "$description": "Default component radius. Maps to --radius CSS var. shadcn default."
325
+ },
326
+ "xl": {
327
+ "$value": "12px",
328
+ "$type": "dimension"
329
+ },
330
+ "full": {
331
+ "$value": "9999px",
332
+ "$type": "dimension"
333
+ }
326
334
  },
327
-
328
335
  "shadow": {
329
- "none": { "$value": "none", "$type": "shadow" },
330
- "xs": { "$value": "0 1px 3px 0px hsl(0 0% 0% / 0.05)", "$type": "shadow" },
331
- "sm": { "$value": "0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10)", "$type": "shadow" },
332
- "md": { "$value": "0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 2px 4px -1px hsl(0 0% 0% / 0.10)", "$type": "shadow" },
333
- "lg": { "$value": "0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 4px 6px -1px hsl(0 0% 0% / 0.10)", "$type": "shadow" },
334
- "xl": { "$value": "0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 8px 10px -1px hsl(0 0% 0% / 0.10)", "$type": "shadow" }
336
+ "none": {
337
+ "$value": "none",
338
+ "$type": "shadow"
339
+ },
340
+ "xs": {
341
+ "$value": "0 1px 3px 0px hsl(0 0% 0% / 0.05)",
342
+ "$type": "shadow"
343
+ },
344
+ "sm": {
345
+ "$value": "0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10)",
346
+ "$type": "shadow"
347
+ },
348
+ "md": {
349
+ "$value": "0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 2px 4px -1px hsl(0 0% 0% / 0.10)",
350
+ "$type": "shadow"
351
+ },
352
+ "lg": {
353
+ "$value": "0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 4px 6px -1px hsl(0 0% 0% / 0.10)",
354
+ "$type": "shadow"
355
+ },
356
+ "xl": {
357
+ "$value": "0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 8px 10px -1px hsl(0 0% 0% / 0.10)",
358
+ "$type": "shadow"
359
+ }
335
360
  },
336
-
337
361
  "breakpoint": {
338
- "mobile": { "$value": "320px", "$type": "dimension" },
339
- "tablet": { "$value": "640px", "$type": "dimension" },
340
- "desktop": { "$value": "1024px", "$type": "dimension" },
341
- "wide": { "$value": "1280px", "$type": "dimension" }
362
+ "mobile": {
363
+ "$value": "320px",
364
+ "$type": "dimension"
365
+ },
366
+ "tablet": {
367
+ "$value": "640px",
368
+ "$type": "dimension"
369
+ },
370
+ "desktop": {
371
+ "$value": "1024px",
372
+ "$type": "dimension"
373
+ },
374
+ "wide": {
375
+ "$value": "1280px",
376
+ "$type": "dimension"
377
+ }
342
378
  },
343
-
344
379
  "duration": {
345
- "fast": { "$value": "150ms", "$type": "dimension" },
346
- "base": { "$value": "200ms", "$type": "dimension" },
347
- "slow": { "$value": "300ms", "$type": "dimension" }
380
+ "fast": {
381
+ "$value": "150ms",
382
+ "$type": "dimension"
383
+ },
384
+ "base": {
385
+ "$value": "200ms",
386
+ "$type": "dimension"
387
+ },
388
+ "slow": {
389
+ "$value": "300ms",
390
+ "$type": "dimension"
391
+ }
348
392
  },
349
-
350
393
  "easing": {
351
- "ease-in": { "$value": "cubic-bezier(0.4, 0, 1, 1)", "$type": "cubic-bezier" },
352
- "ease-out": { "$value": "cubic-bezier(0, 0, 0.2, 1)", "$type": "cubic-bezier" },
353
- "ease-in-out": { "$value": "cubic-bezier(0.4, 0, 0.2, 1)", "$type": "cubic-bezier" },
354
- "ease-spring": { "$value": "cubic-bezier(0.34, 1.56, 0.64, 1)", "$type": "cubic-bezier" }
394
+ "ease-in": {
395
+ "$value": "cubic-bezier(0.4, 0, 1, 1)",
396
+ "$type": "cubic-bezier"
397
+ },
398
+ "ease-out": {
399
+ "$value": "cubic-bezier(0, 0, 0.2, 1)",
400
+ "$type": "cubic-bezier"
401
+ },
402
+ "ease-in-out": {
403
+ "$value": "cubic-bezier(0.4, 0, 0.2, 1)",
404
+ "$type": "cubic-bezier"
405
+ },
406
+ "ease-spring": {
407
+ "$value": "cubic-bezier(0.34, 1.56, 0.64, 1)",
408
+ "$type": "cubic-bezier"
409
+ }
355
410
  },
356
-
357
411
  "typography": {
358
412
  "heading-xl": {
359
- "fontSize": { "$value": "{fontSize.3xl}", "$type": "dimension" },
360
- "fontWeight": { "$value": "{fontWeight.bold}", "$type": "fontWeight" },
361
- "lineHeight": { "$value": "{lineHeight.tight}", "$type": "lineHeight" }
413
+ "fontSize": {
414
+ "$value": "{fontSize.3xl}",
415
+ "$type": "dimension"
416
+ },
417
+ "fontWeight": {
418
+ "$value": "{fontWeight.bold}",
419
+ "$type": "fontWeight"
420
+ },
421
+ "lineHeight": {
422
+ "$value": "{lineHeight.tight}",
423
+ "$type": "lineHeight"
424
+ }
362
425
  },
363
426
  "heading-lg": {
364
- "fontSize": { "$value": "{fontSize.2xl}", "$type": "dimension" },
365
- "fontWeight": { "$value": "{fontWeight.bold}", "$type": "fontWeight" },
366
- "lineHeight": { "$value": "{lineHeight.snug}", "$type": "lineHeight" }
427
+ "fontSize": {
428
+ "$value": "{fontSize.2xl}",
429
+ "$type": "dimension"
430
+ },
431
+ "fontWeight": {
432
+ "$value": "{fontWeight.bold}",
433
+ "$type": "fontWeight"
434
+ },
435
+ "lineHeight": {
436
+ "$value": "{lineHeight.snug}",
437
+ "$type": "lineHeight"
438
+ }
367
439
  },
368
440
  "heading-md": {
369
- "fontSize": { "$value": "{fontSize.xl}", "$type": "dimension" },
370
- "fontWeight": { "$value": "{fontWeight.bold}", "$type": "fontWeight" },
371
- "lineHeight": { "$value": "{lineHeight.snug}", "$type": "lineHeight" }
441
+ "fontSize": {
442
+ "$value": "{fontSize.xl}",
443
+ "$type": "dimension"
444
+ },
445
+ "fontWeight": {
446
+ "$value": "{fontWeight.bold}",
447
+ "$type": "fontWeight"
448
+ },
449
+ "lineHeight": {
450
+ "$value": "{lineHeight.snug}",
451
+ "$type": "lineHeight"
452
+ }
372
453
  },
373
454
  "heading-sm": {
374
- "fontSize": { "$value": "{fontSize.lg}", "$type": "dimension" },
375
- "fontWeight": { "$value": "{fontWeight.medium}", "$type": "fontWeight" },
376
- "lineHeight": { "$value": "{lineHeight.normal}", "$type": "lineHeight" }
455
+ "fontSize": {
456
+ "$value": "{fontSize.lg}",
457
+ "$type": "dimension"
458
+ },
459
+ "fontWeight": {
460
+ "$value": "{fontWeight.medium}",
461
+ "$type": "fontWeight"
462
+ },
463
+ "lineHeight": {
464
+ "$value": "{lineHeight.normal}",
465
+ "$type": "lineHeight"
466
+ }
377
467
  },
378
468
  "body": {
379
- "fontSize": { "$value": "{fontSize.base}", "$type": "dimension" },
380
- "fontWeight": { "$value": "{fontWeight.medium}", "$type": "fontWeight" },
381
- "lineHeight": { "$value": "{lineHeight.relaxed}", "$type": "lineHeight" },
469
+ "fontSize": {
470
+ "$value": "{fontSize.base}",
471
+ "$type": "dimension"
472
+ },
473
+ "fontWeight": {
474
+ "$value": "{fontWeight.medium}",
475
+ "$type": "fontWeight"
476
+ },
477
+ "lineHeight": {
478
+ "$value": "{lineHeight.relaxed}",
479
+ "$type": "lineHeight"
480
+ },
382
481
  "$description": "Body text uses 500 (medium) as the accessibility baseline. 400 (regular) renders too thin at small sizes and on high-DPI screens, especially for low-vision users."
383
482
  },
384
483
  "body-sm": {
385
- "fontSize": { "$value": "{fontSize.sm}", "$type": "dimension" },
386
- "fontWeight": { "$value": "{fontWeight.medium}", "$type": "fontWeight" },
387
- "lineHeight": { "$value": "{lineHeight.normal}", "$type": "lineHeight" }
484
+ "fontSize": {
485
+ "$value": "{fontSize.sm}",
486
+ "$type": "dimension"
487
+ },
488
+ "fontWeight": {
489
+ "$value": "{fontWeight.medium}",
490
+ "$type": "fontWeight"
491
+ },
492
+ "lineHeight": {
493
+ "$value": "{lineHeight.normal}",
494
+ "$type": "lineHeight"
495
+ }
388
496
  },
389
497
  "caption": {
390
- "fontSize": { "$value": "{fontSize.xs}", "$type": "dimension" },
391
- "fontWeight": { "$value": "{fontWeight.medium}", "$type": "fontWeight" },
392
- "lineHeight": { "$value": "{lineHeight.normal}", "$type": "lineHeight" }
498
+ "fontSize": {
499
+ "$value": "{fontSize.xs}",
500
+ "$type": "dimension"
501
+ },
502
+ "fontWeight": {
503
+ "$value": "{fontWeight.medium}",
504
+ "$type": "fontWeight"
505
+ },
506
+ "lineHeight": {
507
+ "$value": "{lineHeight.normal}",
508
+ "$type": "lineHeight"
509
+ }
393
510
  },
394
511
  "code": {
395
- "fontFamily": { "$value": "{fontFamily.mono}", "$type": "fontFamily" },
396
- "fontSize": { "$value": "{fontSize.sm}", "$type": "dimension" },
397
- "fontWeight": { "$value": "{fontWeight.regular}", "$type": "fontWeight" }
512
+ "fontFamily": {
513
+ "$value": "{fontFamily.mono}",
514
+ "$type": "fontFamily"
515
+ },
516
+ "fontSize": {
517
+ "$value": "{fontSize.sm}",
518
+ "$type": "dimension"
519
+ },
520
+ "fontWeight": {
521
+ "$value": "{fontWeight.regular}",
522
+ "$type": "fontWeight"
523
+ }
398
524
  }
399
525
  },
400
-
401
526
  "component": {
402
527
  "button": {
403
528
  "primary": {
404
- "background": { "$value": "{color.semantic.action.primary}", "$type": "color" },
405
- "text": { "$value": "{color.semantic.text.on-primary}", "$type": "color" },
406
- "background-hover": { "$value": "{color.semantic.action.primary-hover}", "$type": "color" },
407
- "border-radius": { "$value": "{borderRadius.lg}", "$type": "dimension" },
408
- "padding-x": { "$value": "{spacing.3}", "$type": "dimension" },
409
- "padding-y": { "$value": "{spacing.2}", "$type": "dimension" }
529
+ "background": {
530
+ "$value": "{color.semantic.action.primary}",
531
+ "$type": "color"
532
+ },
533
+ "text": {
534
+ "$value": "{color.semantic.text.on-primary}",
535
+ "$type": "color"
536
+ },
537
+ "background-hover": {
538
+ "$value": "{color.semantic.action.primary-hover}",
539
+ "$type": "color"
540
+ },
541
+ "border-radius": {
542
+ "$value": "{borderRadius.lg}",
543
+ "$type": "dimension"
544
+ },
545
+ "padding-x": {
546
+ "$value": "{spacing.3}",
547
+ "$type": "dimension"
548
+ },
549
+ "padding-y": {
550
+ "$value": "{spacing.2}",
551
+ "$type": "dimension"
552
+ }
410
553
  },
411
554
  "secondary": {
412
- "background": { "$value": "transparent", "$type": "color" },
413
- "border": { "$value": "{color.semantic.border.default}", "$type": "color" },
414
- "text": { "$value": "{color.semantic.text.primary}", "$type": "color" },
415
- "border-radius": { "$value": "{borderRadius.lg}", "$type": "dimension" }
555
+ "background": {
556
+ "$value": "transparent",
557
+ "$type": "color"
558
+ },
559
+ "border": {
560
+ "$value": "{color.semantic.border.default}",
561
+ "$type": "color"
562
+ },
563
+ "text": {
564
+ "$value": "{color.semantic.text.primary}",
565
+ "$type": "color"
566
+ },
567
+ "border-radius": {
568
+ "$value": "{borderRadius.lg}",
569
+ "$type": "dimension"
570
+ }
416
571
  },
417
572
  "destructive": {
418
- "background": { "$value": "{color.semantic.action.destructive}", "$type": "color" },
419
- "text": { "$value": "{color.semantic.text.on-primary}", "$type": "color" }
573
+ "background": {
574
+ "$value": "{color.semantic.action.destructive}",
575
+ "$type": "color"
576
+ },
577
+ "text": {
578
+ "$value": "{color.semantic.text.on-primary}",
579
+ "$type": "color"
580
+ }
420
581
  }
421
582
  },
422
583
  "input": {
@@ -434,22 +595,64 @@
434
595
  "seeAlso": "layer-2-ethics-responsibility/decision-trees.json"
435
596
  }
436
597
  },
437
- "background": { "$value": "{color.semantic.surface.card}", "$type": "color" },
438
- "border": { "$value": "{color.semantic.border.input}", "$type": "color" },
439
- "border-focus": { "$value": "{color.semantic.border.focus}", "$type": "color" },
440
- "text": { "$value": "{color.semantic.text.primary}", "$type": "color" },
441
- "placeholder": { "$value": "{color.semantic.text.secondary}", "$type": "color" },
442
- "border-radius": { "$value": "{borderRadius.lg}", "$type": "dimension" },
443
- "padding-x": { "$value": "{spacing.3}", "$type": "dimension" },
444
- "padding-y": { "$value": "{spacing.2}", "$type": "dimension" }
598
+ "background": {
599
+ "$value": "{color.semantic.surface.card}",
600
+ "$type": "color"
601
+ },
602
+ "border": {
603
+ "$value": "{color.semantic.border.input}",
604
+ "$type": "color"
605
+ },
606
+ "border-focus": {
607
+ "$value": "{color.semantic.border.focus}",
608
+ "$type": "color"
609
+ },
610
+ "text": {
611
+ "$value": "{color.semantic.text.primary}",
612
+ "$type": "color"
613
+ },
614
+ "placeholder": {
615
+ "$value": "{color.semantic.text.secondary}",
616
+ "$type": "color"
617
+ },
618
+ "border-radius": {
619
+ "$value": "{borderRadius.lg}",
620
+ "$type": "dimension"
621
+ },
622
+ "padding-x": {
623
+ "$value": "{spacing.3}",
624
+ "$type": "dimension"
625
+ },
626
+ "padding-y": {
627
+ "$value": "{spacing.2}",
628
+ "$type": "dimension"
629
+ }
445
630
  },
446
631
  "card": {
447
- "background": { "$value": "{color.semantic.surface.card}", "$type": "color" },
448
- "border": { "$value": "{color.semantic.border.default}", "$type": "color" },
449
- "text": { "$value": "{color.semantic.text.primary}", "$type": "color" },
450
- "border-radius": { "$value": "{borderRadius.lg}", "$type": "dimension" },
451
- "padding": { "$value": "{spacing.4}", "$type": "dimension" },
452
- "shadow": { "$value": "{shadow.sm}", "$type": "shadow" }
632
+ "background": {
633
+ "$value": "{color.semantic.surface.card}",
634
+ "$type": "color"
635
+ },
636
+ "border": {
637
+ "$value": "{color.semantic.border.default}",
638
+ "$type": "color"
639
+ },
640
+ "text": {
641
+ "$value": "{color.semantic.text.primary}",
642
+ "$type": "color"
643
+ },
644
+ "border-radius": {
645
+ "$value": "{borderRadius.lg}",
646
+ "$type": "dimension"
647
+ },
648
+ "padding": {
649
+ "$value": "{spacing.4}",
650
+ "$type": "dimension"
651
+ },
652
+ "shadow": {
653
+ "$value": "{shadow.sm}",
654
+ "$type": "shadow"
655
+ }
453
656
  },
454
657
  "modal": {
455
658
  "$description": "Modals interrupt the user — use sparingly and never to coerce action",
@@ -468,9 +671,364 @@
468
671
  "seeAlso": "layer-2-ethics-responsibility/anti-patterns.md"
469
672
  }
470
673
  },
471
- "overlay": { "$value": "{color.semantic.surface.overlay}", "$type": "color" },
472
- "background": { "$value": "{color.semantic.surface.card}", "$type": "color" },
473
- "shadow": { "$value": "{shadow.xl}", "$type": "shadow" }
674
+ "overlay": {
675
+ "$value": "{color.semantic.surface.overlay}",
676
+ "$type": "color"
677
+ },
678
+ "background": {
679
+ "$value": "{color.semantic.surface.card}",
680
+ "$type": "color"
681
+ },
682
+ "shadow": {
683
+ "$value": "{shadow.xl}",
684
+ "$type": "shadow"
685
+ }
686
+ }
687
+ },
688
+ "theme": {
689
+ "$description": "Theme tokens — values feed directly into the published styles.css and the preview app's globals.css. The build script (scripts/build-tokens.js) regenerates both files from these values. Edit here, then run `pnpm build:tokens`.",
690
+ "light": {
691
+ "background": {
692
+ "$value": "oklch(1 0 0)",
693
+ "$type": "color",
694
+ "$description": "Page background"
695
+ },
696
+ "foreground": {
697
+ "$value": "oklch(0.1450 0 0)",
698
+ "$type": "color",
699
+ "$description": "Default text on background"
700
+ },
701
+ "card": {
702
+ "$value": "oklch(1 0 0)",
703
+ "$type": "color",
704
+ "$description": "Surface for cards"
705
+ },
706
+ "card-foreground": {
707
+ "$value": "oklch(0.1450 0 0)",
708
+ "$type": "color"
709
+ },
710
+ "popover": {
711
+ "$value": "oklch(1 0 0)",
712
+ "$type": "color",
713
+ "$description": "Popover/dropdown surface"
714
+ },
715
+ "popover-foreground": {
716
+ "$value": "oklch(0.1450 0 0)",
717
+ "$type": "color"
718
+ },
719
+ "primary": {
720
+ "$value": "#1F1F1F",
721
+ "$type": "color",
722
+ "$description": "Primary brand. Override per client. Default = shadcn near-black."
723
+ },
724
+ "primary-foreground": {
725
+ "$value": "#FAFAFA",
726
+ "$type": "color",
727
+ "$description": "Text on primary. Auto-derived from luminance for custom colors."
728
+ },
729
+ "secondary": {
730
+ "$value": "oklch(0.9700 0 0)",
731
+ "$type": "color"
732
+ },
733
+ "secondary-foreground": {
734
+ "$value": "oklch(0.2050 0 0)",
735
+ "$type": "color"
736
+ },
737
+ "muted": {
738
+ "$value": "oklch(0.9700 0 0)",
739
+ "$type": "color",
740
+ "$description": "Subtle background for de-emphasized surfaces"
741
+ },
742
+ "muted-foreground": {
743
+ "$value": "oklch(0.3700 0 0)",
744
+ "$type": "color",
745
+ "$description": "Captions, labels, secondary text. ~7.5:1 on white (AAA)."
746
+ },
747
+ "accent": {
748
+ "$value": "oklch(0.9700 0 0)",
749
+ "$type": "color"
750
+ },
751
+ "accent-foreground": {
752
+ "$value": "oklch(0.2050 0 0)",
753
+ "$type": "color"
754
+ },
755
+ "destructive": {
756
+ "$value": "oklch(0.4400 0.2300 27.3250)",
757
+ "$type": "color",
758
+ "$description": "Errors, delete, dangerous actions. Tuned for AAA 7:1 with white foreground."
759
+ },
760
+ "destructive-foreground": {
761
+ "$value": "oklch(1 0 0)",
762
+ "$type": "color"
763
+ },
764
+ "border": {
765
+ "$value": "oklch(0.6100 0 0)",
766
+ "$type": "color",
767
+ "$description": "Default border. AAA non-text: ≥3:1 on background."
768
+ },
769
+ "input": {
770
+ "$value": "oklch(0.6100 0 0)",
771
+ "$type": "color",
772
+ "$description": "Input border. AAA non-text: ≥3:1 on card."
773
+ },
774
+ "ring": {
775
+ "$value": "oklch(0.4500 0 0)",
776
+ "$type": "color",
777
+ "$description": "Focus ring base. AAA non-text + 2.4.13: ≥3:1 on every surface. Tracks --primary when brand color changes (luminance-clamped to keep 3:1)."
778
+ },
779
+ "chart-1": {
780
+ "$value": "oklch(0.5800 0.2000 252)",
781
+ "$type": "color",
782
+ "$description": "Tuned for AAA 3:1 on white card. Cool blue."
783
+ },
784
+ "chart-2": {
785
+ "$value": "oklch(0.5500 0.1800 145)",
786
+ "$type": "color",
787
+ "$description": "Tuned for AAA 3:1 on white card. Green."
788
+ },
789
+ "chart-3": {
790
+ "$value": "oklch(0.5800 0.1800 50)",
791
+ "$type": "color",
792
+ "$description": "Tuned for AAA 3:1 on white card. Amber."
793
+ },
794
+ "chart-4": {
795
+ "$value": "oklch(0.5300 0.2100 320)",
796
+ "$type": "color",
797
+ "$description": "Tuned for AAA 3:1 on white card. Magenta."
798
+ },
799
+ "chart-5": {
800
+ "$value": "oklch(0.5500 0.2000 25)",
801
+ "$type": "color",
802
+ "$description": "Tuned for AAA 3:1 on white card. Red-orange."
803
+ },
804
+ "sidebar": {
805
+ "$value": "oklch(0.9850 0 0)",
806
+ "$type": "color"
807
+ },
808
+ "sidebar-foreground": {
809
+ "$value": "oklch(0.1450 0 0)",
810
+ "$type": "color"
811
+ },
812
+ "sidebar-primary": {
813
+ "$value": "oklch(0.2050 0 0)",
814
+ "$type": "color"
815
+ },
816
+ "sidebar-primary-foreground": {
817
+ "$value": "oklch(0.9850 0 0)",
818
+ "$type": "color"
819
+ },
820
+ "sidebar-accent": {
821
+ "$value": "oklch(0.9700 0 0)",
822
+ "$type": "color"
823
+ },
824
+ "sidebar-accent-foreground": {
825
+ "$value": "oklch(0.2050 0 0)",
826
+ "$type": "color"
827
+ },
828
+ "sidebar-border": {
829
+ "$value": "oklch(0.6100 0 0)",
830
+ "$type": "color",
831
+ "$description": "AAA non-text 3:1 on sidebar."
832
+ },
833
+ "sidebar-ring": {
834
+ "$value": "oklch(0.4500 0 0)",
835
+ "$type": "color",
836
+ "$description": "AAA non-text 3:1 on sidebar."
837
+ },
838
+ "semantic-text-primary": {
839
+ "$value": "var(--foreground)",
840
+ "$type": "color"
841
+ },
842
+ "semantic-text-secondary": {
843
+ "$value": "var(--muted-foreground)",
844
+ "$type": "color"
845
+ },
846
+ "semantic-text-on-primary": {
847
+ "$value": "var(--primary-foreground)",
848
+ "$type": "color"
849
+ },
850
+ "semantic-surface-page": {
851
+ "$value": "var(--background)",
852
+ "$type": "color"
853
+ },
854
+ "semantic-surface-card": {
855
+ "$value": "var(--card)",
856
+ "$type": "color"
857
+ },
858
+ "semantic-surface-overlay": {
859
+ "$value": "oklch(0.145 0 0 / 0.8)",
860
+ "$type": "color"
861
+ },
862
+ "semantic-border-default": {
863
+ "$value": "var(--border)",
864
+ "$type": "color"
865
+ },
866
+ "semantic-border-input": {
867
+ "$value": "var(--input)",
868
+ "$type": "color"
869
+ },
870
+ "semantic-border-focus": {
871
+ "$value": "var(--ring)",
872
+ "$type": "color"
873
+ },
874
+ "semantic-action-primary": {
875
+ "$value": "var(--primary)",
876
+ "$type": "color"
877
+ },
878
+ "semantic-action-primary-hover": {
879
+ "$value": "oklch(from var(--primary) calc(l + 0.1) c h)",
880
+ "$type": "color"
881
+ },
882
+ "semantic-action-destructive": {
883
+ "$value": "var(--destructive)",
884
+ "$type": "color"
885
+ }
886
+ },
887
+ "dark": {
888
+ "background": {
889
+ "$value": "oklch(0.1450 0 0)",
890
+ "$type": "color"
891
+ },
892
+ "foreground": {
893
+ "$value": "oklch(0.9850 0 0)",
894
+ "$type": "color"
895
+ },
896
+ "card": {
897
+ "$value": "oklch(0.2050 0 0)",
898
+ "$type": "color"
899
+ },
900
+ "card-foreground": {
901
+ "$value": "oklch(0.9850 0 0)",
902
+ "$type": "color"
903
+ },
904
+ "popover": {
905
+ "$value": "oklch(0.2690 0 0)",
906
+ "$type": "color"
907
+ },
908
+ "popover-foreground": {
909
+ "$value": "oklch(0.9850 0 0)",
910
+ "$type": "color"
911
+ },
912
+ "primary": {
913
+ "$value": "#FAFAFA",
914
+ "$type": "color",
915
+ "$description": "Inverted in dark mode so primary buttons read against the dark page. Near-white surface, near-black text. Brand picker overrides this with a luminance-adjusted variant when a brand color is selected."
916
+ },
917
+ "primary-foreground": {
918
+ "$value": "#1F1F1F",
919
+ "$type": "color",
920
+ "$description": "Near-black text on the inverted dark-mode primary surface."
921
+ },
922
+ "secondary": {
923
+ "$value": "oklch(0.2690 0 0)",
924
+ "$type": "color"
925
+ },
926
+ "secondary-foreground": {
927
+ "$value": "oklch(0.9850 0 0)",
928
+ "$type": "color"
929
+ },
930
+ "muted": {
931
+ "$value": "oklch(0.2690 0 0)",
932
+ "$type": "color"
933
+ },
934
+ "muted-foreground": {
935
+ "$value": "oklch(0.7800 0 0)",
936
+ "$type": "color",
937
+ "$description": "Captions, labels, secondary text. ~9:1 on dark bg (AAA)."
938
+ },
939
+ "accent": {
940
+ "$value": "oklch(0.3710 0 0)",
941
+ "$type": "color"
942
+ },
943
+ "accent-foreground": {
944
+ "$value": "oklch(0.9850 0 0)",
945
+ "$type": "color"
946
+ },
947
+ "destructive": {
948
+ "$value": "oklch(0.7500 0.1600 22.2160)",
949
+ "$type": "color",
950
+ "$description": "Errors, delete, dangerous actions. Light red in dark mode pairs with dark foreground to satisfy AAA 7:1 text + 3:1 non-text against page bg."
951
+ },
952
+ "destructive-foreground": {
953
+ "$value": "oklch(0.1500 0 0)",
954
+ "$type": "color",
955
+ "$description": "Dark text on light-red destructive surface for AAA 7:1 in dark mode."
956
+ },
957
+ "border": {
958
+ "$value": "oklch(0.5500 0 0)",
959
+ "$type": "color",
960
+ "$description": "AAA non-text: ≥3:1 on dark background AND card."
961
+ },
962
+ "input": {
963
+ "$value": "oklch(0.5500 0 0)",
964
+ "$type": "color",
965
+ "$description": "AAA non-text: ≥3:1 on dark card."
966
+ },
967
+ "ring": {
968
+ "$value": "oklch(0.7000 0 0)",
969
+ "$type": "color",
970
+ "$description": "Focus ring base, dark mode. AAA non-text 3:1 on dark."
971
+ },
972
+ "chart-1": {
973
+ "$value": "oklch(0.7800 0.1600 220)",
974
+ "$type": "color",
975
+ "$description": "Tuned for AAA 3:1 on dark card. Bright cyan-blue."
976
+ },
977
+ "chart-2": {
978
+ "$value": "oklch(0.7400 0.1800 145)",
979
+ "$type": "color",
980
+ "$description": "Tuned for AAA 3:1 on dark card. Bright green."
981
+ },
982
+ "chart-3": {
983
+ "$value": "oklch(0.8000 0.1700 80)",
984
+ "$type": "color",
985
+ "$description": "Tuned for AAA 3:1 on dark card. Amber."
986
+ },
987
+ "chart-4": {
988
+ "$value": "oklch(0.7200 0.2000 320)",
989
+ "$type": "color",
990
+ "$description": "Tuned for AAA 3:1 on dark card. Magenta."
991
+ },
992
+ "chart-5": {
993
+ "$value": "oklch(0.7400 0.1900 35)",
994
+ "$type": "color",
995
+ "$description": "Tuned for AAA 3:1 on dark card. Orange."
996
+ },
997
+ "sidebar": {
998
+ "$value": "oklch(0.2050 0 0)",
999
+ "$type": "color"
1000
+ },
1001
+ "sidebar-foreground": {
1002
+ "$value": "oklch(0.9850 0 0)",
1003
+ "$type": "color"
1004
+ },
1005
+ "sidebar-primary": {
1006
+ "$value": "oklch(0.4200 0.2000 264.3760)",
1007
+ "$type": "color",
1008
+ "$description": "Tuned for AAA 7:1 with white foreground."
1009
+ },
1010
+ "sidebar-primary-foreground": {
1011
+ "$value": "oklch(0.9850 0 0)",
1012
+ "$type": "color"
1013
+ },
1014
+ "sidebar-accent": {
1015
+ "$value": "oklch(0.2690 0 0)",
1016
+ "$type": "color"
1017
+ },
1018
+ "sidebar-accent-foreground": {
1019
+ "$value": "oklch(0.9850 0 0)",
1020
+ "$type": "color"
1021
+ },
1022
+ "sidebar-border": {
1023
+ "$value": "oklch(0.5500 0 0)",
1024
+ "$type": "color",
1025
+ "$description": "AAA non-text 3:1 on dark sidebar."
1026
+ },
1027
+ "sidebar-ring": {
1028
+ "$value": "oklch(0.7000 0 0)",
1029
+ "$type": "color",
1030
+ "$description": "AAA non-text 3:1 on dark sidebar."
1031
+ }
474
1032
  }
475
1033
  }
476
1034
  }