@phcdevworks/spectre-tokens 4.10.0 → 4.12.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/dist/index.cjs CHANGED
@@ -192,6 +192,26 @@ var coreTokens = {
192
192
  "danger": "{colors.error.600}",
193
193
  "cta": "{colors.brand.600}",
194
194
  "thickness": "0.25rem"
195
+ },
196
+ "light": {
197
+ "bg": "{colors.neutral.100}",
198
+ "text": "{colors.neutral.700}",
199
+ "heading": "{colors.neutral.900}",
200
+ "muted": "{colors.neutral.600}",
201
+ "link": "{colors.neutral.700}",
202
+ "linkHover": "{colors.brand.700}",
203
+ "border": "{colors.neutral.200}",
204
+ "divider": "{colors.neutral.200}",
205
+ "chipBg": "{colors.neutral.200}",
206
+ "accent": {
207
+ "neutral": "{colors.neutral.600}",
208
+ "brand": "{colors.brand.600}",
209
+ "info": "{colors.info.600}",
210
+ "success": "{colors.success.600}",
211
+ "warning": "{colors.warning.600}",
212
+ "danger": "{colors.error.600}",
213
+ "cta": "{colors.brand.600}"
214
+ }
195
215
  }
196
216
  },
197
217
  "modal": {
@@ -630,7 +650,12 @@ var coreTokens = {
630
650
  "bg": "{colors.warning.100}",
631
651
  "text": "{colors.warning.900}"
632
652
  },
633
- "hr": "{colors.neutral.200}"
653
+ "hr": "{colors.neutral.200}",
654
+ "kbd": {
655
+ "bg": "{colors.neutral.100}",
656
+ "border": "{colors.neutral.300}",
657
+ "text": "{colors.neutral.900}"
658
+ }
634
659
  },
635
660
  "externalAuthButton": {
636
661
  "bg": "{colors.white}",
@@ -694,6 +719,56 @@ var coreTokens = {
694
719
  "text": "{colors.neutral.900}",
695
720
  "disabledText": "{colors.neutral.400}",
696
721
  "requiredIndicatorText": "{colors.error.600}"
722
+ },
723
+ "skeleton": {
724
+ "base": "{colors.neutral.200}",
725
+ "shimmer": "{colors.neutral.100}"
726
+ },
727
+ "selection": {
728
+ "bg": "{colors.brand.100}",
729
+ "text": "{colors.neutral.900}"
730
+ },
731
+ "caret": {
732
+ "color": "{colors.brand.600}"
733
+ },
734
+ "scrollbar": {
735
+ "track": "{colors.neutral.100}",
736
+ "thumb": "{colors.neutral.400}",
737
+ "thumbHover": "{colors.neutral.500}"
738
+ },
739
+ "chart": {
740
+ "bg": "{colors.white}",
741
+ "grid": "{colors.neutral.200}",
742
+ "axis": "{colors.neutral.500}",
743
+ "label": "{colors.neutral.600}",
744
+ "series": {
745
+ "1": "{colors.brand.600}",
746
+ "2": "{colors.palette.amber.600}",
747
+ "3": "{colors.palette.violet.800}",
748
+ "4": "{colors.palette.cyan.600}",
749
+ "5": "{colors.palette.pink.600}",
750
+ "6": "{colors.palette.emerald.800}",
751
+ "7": "{colors.palette.lime.700}",
752
+ "8": "{colors.palette.orange.800}"
753
+ },
754
+ "sequential": {
755
+ "1": "{colors.brand.100}",
756
+ "2": "{colors.brand.200}",
757
+ "3": "{colors.brand.300}",
758
+ "4": "{colors.brand.400}",
759
+ "5": "{colors.brand.600}",
760
+ "6": "{colors.brand.800}",
761
+ "7": "{colors.brand.900}"
762
+ },
763
+ "diverging": {
764
+ "1": "{colors.palette.red.700}",
765
+ "2": "{colors.palette.red.400}",
766
+ "3": "{colors.palette.red.200}",
767
+ "4": "{colors.neutral.200}",
768
+ "5": "{colors.palette.blue.200}",
769
+ "6": "{colors.palette.blue.400}",
770
+ "7": "{colors.palette.blue.700}"
771
+ }
697
772
  }
698
773
  },
699
774
  "buttons": {
@@ -858,6 +933,40 @@ var coreTokens = {
858
933
  "text": "{colors.neutral.400}"
859
934
  }
860
935
  },
936
+ "control": {
937
+ "sm": {
938
+ "height": "2rem",
939
+ "paddingInline": "0.75rem",
940
+ "iconSize": "{icons.sm}"
941
+ },
942
+ "md": {
943
+ "height": "2.5rem",
944
+ "paddingInline": "1rem",
945
+ "iconSize": "{icons.md}"
946
+ },
947
+ "lg": {
948
+ "height": "3rem",
949
+ "paddingInline": "1.25rem",
950
+ "iconSize": "{icons.lg}"
951
+ },
952
+ "compact": {
953
+ "sm": {
954
+ "height": "1.5rem",
955
+ "paddingInline": "0.5rem",
956
+ "iconSize": "{icons.xs}"
957
+ },
958
+ "md": {
959
+ "height": "2rem",
960
+ "paddingInline": "0.75rem",
961
+ "iconSize": "{icons.sm}"
962
+ },
963
+ "lg": {
964
+ "height": "2.5rem",
965
+ "paddingInline": "1rem",
966
+ "iconSize": "{icons.md}"
967
+ }
968
+ }
969
+ },
861
970
  "modes": {
862
971
  "default": {
863
972
  "surface": {
@@ -888,6 +997,13 @@ var coreTokens = {
888
997
  "brand": "{colors.brand.600}"
889
998
  }
890
999
  },
1000
+ "forms": {
1001
+ "default": {
1002
+ "bg": "{colors.white}",
1003
+ "text": "{colors.neutral.900}",
1004
+ "placeholder": "{colors.neutral.500}"
1005
+ }
1006
+ },
891
1007
  "component": {
892
1008
  "card": {
893
1009
  "text": "{colors.neutral.900}",
@@ -1033,6 +1149,26 @@ var coreTokens = {
1033
1149
  "warning": "{colors.warning.600}",
1034
1150
  "danger": "{colors.error.600}",
1035
1151
  "cta": "{colors.brand.600}"
1152
+ },
1153
+ "light": {
1154
+ "bg": "{colors.neutral.100}",
1155
+ "text": "{colors.neutral.700}",
1156
+ "heading": "{colors.neutral.900}",
1157
+ "muted": "{colors.neutral.600}",
1158
+ "link": "{colors.neutral.700}",
1159
+ "linkHover": "{colors.brand.700}",
1160
+ "border": "{colors.neutral.200}",
1161
+ "divider": "{colors.neutral.200}",
1162
+ "chipBg": "{colors.neutral.200}",
1163
+ "accent": {
1164
+ "neutral": "{colors.neutral.600}",
1165
+ "brand": "{colors.brand.600}",
1166
+ "info": "{colors.info.600}",
1167
+ "success": "{colors.success.600}",
1168
+ "warning": "{colors.warning.600}",
1169
+ "danger": "{colors.error.600}",
1170
+ "cta": "{colors.brand.600}"
1171
+ }
1036
1172
  }
1037
1173
  },
1038
1174
  "modal": {
@@ -1463,7 +1599,12 @@ var coreTokens = {
1463
1599
  "bg": "{colors.warning.100}",
1464
1600
  "text": "{colors.warning.900}"
1465
1601
  },
1466
- "hr": "{colors.neutral.200}"
1602
+ "hr": "{colors.neutral.200}",
1603
+ "kbd": {
1604
+ "bg": "{colors.neutral.100}",
1605
+ "border": "{colors.neutral.300}",
1606
+ "text": "{colors.neutral.900}"
1607
+ }
1467
1608
  },
1468
1609
  "externalAuthButton": {
1469
1610
  "bg": "{colors.white}",
@@ -1519,6 +1660,56 @@ var coreTokens = {
1519
1660
  "text": "{colors.neutral.900}",
1520
1661
  "disabledText": "{colors.neutral.400}",
1521
1662
  "requiredIndicatorText": "{colors.error.600}"
1663
+ },
1664
+ "skeleton": {
1665
+ "base": "{colors.neutral.200}",
1666
+ "shimmer": "{colors.neutral.100}"
1667
+ },
1668
+ "selection": {
1669
+ "bg": "{colors.brand.100}",
1670
+ "text": "{colors.neutral.900}"
1671
+ },
1672
+ "caret": {
1673
+ "color": "{colors.brand.600}"
1674
+ },
1675
+ "scrollbar": {
1676
+ "track": "{colors.neutral.100}",
1677
+ "thumb": "{colors.neutral.400}",
1678
+ "thumbHover": "{colors.neutral.500}"
1679
+ },
1680
+ "chart": {
1681
+ "bg": "{colors.white}",
1682
+ "grid": "{colors.neutral.200}",
1683
+ "axis": "{colors.neutral.500}",
1684
+ "label": "{colors.neutral.600}",
1685
+ "series": {
1686
+ "1": "{colors.brand.600}",
1687
+ "2": "{colors.palette.amber.600}",
1688
+ "3": "{colors.palette.violet.800}",
1689
+ "4": "{colors.palette.cyan.600}",
1690
+ "5": "{colors.palette.pink.600}",
1691
+ "6": "{colors.palette.emerald.800}",
1692
+ "7": "{colors.palette.lime.700}",
1693
+ "8": "{colors.palette.orange.800}"
1694
+ },
1695
+ "sequential": {
1696
+ "1": "{colors.brand.100}",
1697
+ "2": "{colors.brand.200}",
1698
+ "3": "{colors.brand.300}",
1699
+ "4": "{colors.brand.400}",
1700
+ "5": "{colors.brand.600}",
1701
+ "6": "{colors.brand.800}",
1702
+ "7": "{colors.brand.900}"
1703
+ },
1704
+ "diverging": {
1705
+ "1": "{colors.palette.red.700}",
1706
+ "2": "{colors.palette.red.400}",
1707
+ "3": "{colors.palette.red.200}",
1708
+ "4": "{colors.neutral.200}",
1709
+ "5": "{colors.palette.blue.200}",
1710
+ "6": "{colors.palette.blue.400}",
1711
+ "7": "{colors.palette.blue.700}"
1712
+ }
1522
1713
  }
1523
1714
  }
1524
1715
  },
@@ -1551,6 +1742,13 @@ var coreTokens = {
1551
1742
  "brand": "{colors.brand.400}"
1552
1743
  }
1553
1744
  },
1745
+ "forms": {
1746
+ "default": {
1747
+ "bg": "{colors.neutral.700}",
1748
+ "text": "{colors.neutral.100}",
1749
+ "placeholder": "{colors.neutral.300}"
1750
+ }
1751
+ },
1554
1752
  "component": {
1555
1753
  "card": {
1556
1754
  "text": "{colors.neutral.100}",
@@ -1699,6 +1897,26 @@ var coreTokens = {
1699
1897
  "warning": "{colors.warning.400}",
1700
1898
  "danger": "{colors.error.400}",
1701
1899
  "cta": "{colors.brand.400}"
1900
+ },
1901
+ "light": {
1902
+ "bg": "{colors.neutral.200}",
1903
+ "text": "{colors.neutral.800}",
1904
+ "heading": "{colors.neutral.900}",
1905
+ "muted": "{colors.neutral.600}",
1906
+ "link": "{colors.neutral.700}",
1907
+ "linkHover": "{colors.brand.700}",
1908
+ "border": "{colors.neutral.300}",
1909
+ "divider": "{colors.neutral.300}",
1910
+ "chipBg": "{colors.neutral.300}",
1911
+ "accent": {
1912
+ "neutral": "{colors.neutral.600}",
1913
+ "brand": "{colors.brand.600}",
1914
+ "info": "{colors.info.600}",
1915
+ "success": "{colors.success.600}",
1916
+ "warning": "{colors.warning.600}",
1917
+ "danger": "{colors.error.600}",
1918
+ "cta": "{colors.brand.600}"
1919
+ }
1702
1920
  }
1703
1921
  },
1704
1922
  "modal": {
@@ -2129,7 +2347,12 @@ var coreTokens = {
2129
2347
  "bg": "{colors.warning.900}",
2130
2348
  "text": "{colors.warning.200}"
2131
2349
  },
2132
- "hr": "{colors.neutral.700}"
2350
+ "hr": "{colors.neutral.700}",
2351
+ "kbd": {
2352
+ "bg": "{colors.neutral.800}",
2353
+ "border": "{colors.neutral.600}",
2354
+ "text": "{colors.neutral.50}"
2355
+ }
2133
2356
  },
2134
2357
  "externalAuthButton": {
2135
2358
  "bg": "{colors.neutral.800}",
@@ -2185,161 +2408,1102 @@ var coreTokens = {
2185
2408
  "text": "{colors.neutral.50}",
2186
2409
  "disabledText": "{colors.neutral.600}",
2187
2410
  "requiredIndicatorText": "{colors.error.400}"
2411
+ },
2412
+ "skeleton": {
2413
+ "base": "{colors.neutral.700}",
2414
+ "shimmer": "{colors.neutral.600}"
2415
+ },
2416
+ "selection": {
2417
+ "bg": "{colors.brand.800}",
2418
+ "text": "{colors.white}"
2419
+ },
2420
+ "caret": {
2421
+ "color": "{colors.brand.400}"
2422
+ },
2423
+ "scrollbar": {
2424
+ "track": "{colors.neutral.900}",
2425
+ "thumb": "{colors.neutral.600}",
2426
+ "thumbHover": "{colors.neutral.500}"
2427
+ },
2428
+ "chart": {
2429
+ "bg": "{colors.neutral.800}",
2430
+ "grid": "{colors.neutral.700}",
2431
+ "axis": "{colors.neutral.400}",
2432
+ "label": "{colors.neutral.300}",
2433
+ "series": {
2434
+ "1": "{colors.brand.400}",
2435
+ "2": "{colors.palette.amber.300}",
2436
+ "3": "{colors.palette.violet.400}",
2437
+ "4": "{colors.palette.cyan.300}",
2438
+ "5": "{colors.palette.pink.300}",
2439
+ "6": "{colors.palette.teal.400}",
2440
+ "7": "{colors.palette.lime.300}",
2441
+ "8": "{colors.palette.orange.400}"
2442
+ },
2443
+ "sequential": {
2444
+ "1": "{colors.brand.900}",
2445
+ "2": "{colors.brand.800}",
2446
+ "3": "{colors.brand.700}",
2447
+ "4": "{colors.brand.500}",
2448
+ "5": "{colors.brand.400}",
2449
+ "6": "{colors.brand.300}",
2450
+ "7": "{colors.brand.100}"
2451
+ },
2452
+ "diverging": {
2453
+ "1": "{colors.palette.red.300}",
2454
+ "2": "{colors.palette.red.500}",
2455
+ "3": "{colors.palette.red.800}",
2456
+ "4": "{colors.neutral.600}",
2457
+ "5": "{colors.palette.blue.800}",
2458
+ "6": "{colors.palette.blue.500}",
2459
+ "7": "{colors.palette.blue.300}"
2460
+ }
2188
2461
  }
2189
2462
  }
2190
- }
2191
- },
2192
- "colors": {
2193
- "brand": {
2194
- "50": "#eef4ff",
2195
- "100": "#d9e7ff",
2196
- "200": "#b9d2ff",
2197
- "300": "#8ab6ff",
2198
- "400": "#5a92ff",
2199
- "500": "#336df4",
2200
- "600": "#1f57db",
2201
- "700": "#1946b4",
2202
- "800": "#173b8f",
2203
- "900": "#16336f"
2204
- },
2205
- "neutral": {
2206
- "50": "#f7f8fb",
2207
- "100": "#eef1f6",
2208
- "200": "#d9dfeb",
2209
- "300": "#b7c1d4",
2210
- "400": "#8a96ad",
2211
- "500": "#657287",
2212
- "600": "#4b576a",
2213
- "700": "#374253",
2214
- "800": "#222b38",
2215
- "900": "#141b24"
2216
- },
2217
- "accent": {
2218
- "50": "#f6f2ff",
2219
- "100": "#eee5ff",
2220
- "200": "#ddccff",
2221
- "300": "#c3a7ff",
2222
- "400": "#a279ff",
2223
- "500": "#854ff7",
2224
- "600": "#7135dd",
2225
- "700": "#5d28b8",
2226
- "800": "#4d2393",
2227
- "900": "#401f75"
2228
- },
2229
- "success": {
2230
- "50": "#f0fdf4",
2231
- "100": "#dcfce7",
2232
- "200": "#bbf7d0",
2233
- "300": "#86efac",
2234
- "400": "#4ade80",
2235
- "500": "#22c55e",
2236
- "600": "#16a34a",
2237
- "700": "#15803d",
2238
- "800": "#166534",
2239
- "900": "#14532d"
2240
- },
2241
- "warning": {
2242
- "50": "#fffbea",
2243
- "100": "#fff1c2",
2244
- "200": "#ffe08a",
2245
- "300": "#ffd24d",
2246
- "400": "#ffc21a",
2247
- "500": "#f5ad00",
2248
- "600": "#d48806",
2249
- "700": "#ad6800",
2250
- "800": "#8f5200",
2251
- "900": "#734000"
2252
- },
2253
- "error": {
2254
- "50": "#fef2f2",
2255
- "100": "#fee2e2",
2256
- "200": "#fecaca",
2257
- "300": "#fca5a5",
2258
- "400": "#f87171",
2259
- "500": "#ef4444",
2260
- "600": "#dc2626",
2261
- "700": "#b91c1c",
2262
- "800": "#991b1b",
2263
- "900": "#7f1d1d"
2264
- },
2265
- "info": {
2266
- "50": "#f0f9ff",
2267
- "100": "#e0f2fe",
2268
- "200": "#bae6fd",
2269
- "300": "#7dd3fc",
2270
- "400": "#38bdf8",
2271
- "500": "#0ea5e9",
2272
- "600": "#0369a1",
2273
- "700": "#075985",
2274
- "800": "#0c4a6e",
2275
- "900": "#082f49"
2276
- },
2277
- "indigo": {
2278
- "500": "#5b6ee1",
2279
- "600": "#4d61db"
2280
- },
2281
- "violet": {
2282
- "600": "#6f3fd7"
2283
- },
2284
- "focus": {
2285
- "primary": "{colors.brand.500}",
2286
- "error": "{colors.error.500}",
2287
- "info": "{colors.info.600}"
2288
2463
  },
2289
- "white": "#ffffff",
2290
- "black": "#000000",
2291
- "palette": {
2292
- "red": {
2293
- "50": "#fef2f2",
2294
- "100": "#ffe2e2",
2295
- "200": "#ffc9c9",
2296
- "300": "#ffa2a2",
2297
- "400": "#ff6467",
2298
- "500": "#fb2c36",
2299
- "600": "#e7000b",
2300
- "700": "#c10007",
2301
- "800": "#9f0712",
2302
- "900": "#82181a",
2303
- "950": "#460809"
2304
- },
2305
- "orange": {
2306
- "50": "#fff7ed",
2307
- "100": "#ffedd4",
2308
- "200": "#ffd6a7",
2309
- "300": "#ffb86a",
2310
- "400": "#ff8904",
2311
- "500": "#ff6900",
2312
- "600": "#f54900",
2313
- "700": "#ca3500",
2314
- "800": "#9f2d00",
2315
- "900": "#7e2a0c",
2316
- "950": "#441306"
2464
+ "highContrast": {
2465
+ "surface": {
2466
+ "page": "{colors.white}",
2467
+ "card": "{colors.white}",
2468
+ "input": "{colors.white}",
2469
+ "overlay": "{colors.black} / 0.6",
2470
+ "subtle": "{colors.neutral.50}",
2471
+ "hero": "linear-gradient(135deg, {colors.indigo.500} 0%, {colors.violet.600} 100%)",
2472
+ "hover": "{colors.neutral.100}",
2473
+ "selected": "{colors.info.50}",
2474
+ "active": "{colors.neutral.200}",
2475
+ "divider": "{colors.neutral.700}"
2317
2476
  },
2318
- "amber": {
2319
- "50": "#fffbeb",
2320
- "100": "#fef3c6",
2321
- "200": "#fee685",
2322
- "300": "#ffd230",
2323
- "400": "#ffb900",
2324
- "500": "#fe9a00",
2325
- "600": "#e17100",
2326
- "700": "#bb4d00",
2327
- "800": "#973c00",
2328
- "900": "#7b3306",
2329
- "950": "#461901"
2477
+ "text": {
2478
+ "onPage": {
2479
+ "default": "{colors.neutral.900}",
2480
+ "muted": "{colors.neutral.600}",
2481
+ "subtle": "{colors.neutral.600}",
2482
+ "meta": "{colors.neutral.600}",
2483
+ "brand": "{colors.brand.700}"
2484
+ },
2485
+ "onSurface": {
2486
+ "default": "{colors.neutral.900}",
2487
+ "muted": "{colors.neutral.600}",
2488
+ "subtle": "{colors.neutral.600}",
2489
+ "meta": "{colors.neutral.600}",
2490
+ "brand": "{colors.brand.700}"
2491
+ }
2330
2492
  },
2331
- "yellow": {
2332
- "50": "#fefce8",
2333
- "100": "#fef9c2",
2334
- "200": "#fff085",
2335
- "300": "#ffdf20",
2336
- "400": "#fdc700",
2337
- "500": "#f0b100",
2338
- "600": "#d08700",
2339
- "700": "#a65f00",
2340
- "800": "#894b00",
2341
- "900": "#733e0a",
2342
- "950": "#432004"
2493
+ "forms": {
2494
+ "default": {
2495
+ "bg": "{colors.white}",
2496
+ "text": "{colors.neutral.900}",
2497
+ "placeholder": "{colors.neutral.600}"
2498
+ },
2499
+ "valid": {
2500
+ "border": "{colors.success.700}",
2501
+ "bg": "{colors.success.50}",
2502
+ "text": "{colors.success.900}"
2503
+ },
2504
+ "invalid": {
2505
+ "border": "{colors.error.700}",
2506
+ "bg": "{colors.error.50}",
2507
+ "text": "{colors.error.800}"
2508
+ }
2509
+ },
2510
+ "component": {
2511
+ "card": {
2512
+ "text": "{colors.neutral.900}",
2513
+ "textMuted": "{colors.neutral.600}",
2514
+ "accent": {
2515
+ "neutral": "{colors.neutral.600}",
2516
+ "brand": "{colors.brand.600}",
2517
+ "info": "{colors.info.600}",
2518
+ "success": "{colors.success.600}",
2519
+ "warning": "{colors.warning.600}",
2520
+ "danger": "{colors.error.600}",
2521
+ "cta": "{colors.brand.600}"
2522
+ }
2523
+ },
2524
+ "choiceCard": {
2525
+ "bg": "{colors.white}",
2526
+ "text": "{colors.neutral.900}",
2527
+ "border": "{colors.neutral.700}",
2528
+ "hoverBorder": "{colors.neutral.700}",
2529
+ "selectedBg": "{colors.info.50}",
2530
+ "selectedBorder": "{colors.brand.600}",
2531
+ "disabledBg": "{colors.neutral.50}",
2532
+ "disabledText": "{colors.neutral.400}",
2533
+ "focusRing": "{buttons.primary.focusRing}"
2534
+ },
2535
+ "input": {
2536
+ "text": "{colors.neutral.900}",
2537
+ "placeholder": "{colors.neutral.600}"
2538
+ },
2539
+ "button": {
2540
+ "textDefault": "{colors.neutral.900}",
2541
+ "textOnPrimary": "{colors.white}"
2542
+ },
2543
+ "badge": {
2544
+ "neutralBg": "{colors.neutral.100}",
2545
+ "neutralBgHover": "{colors.neutral.200}",
2546
+ "neutralText": "{colors.neutral.700}",
2547
+ "brandBg": "{colors.brand.100}",
2548
+ "brandBgHover": "{colors.brand.200}",
2549
+ "brandText": "{colors.brand.900}",
2550
+ "infoBg": "{colors.info.100}",
2551
+ "infoBgHover": "{colors.info.200}",
2552
+ "infoText": "{colors.info.800}",
2553
+ "successBg": "{colors.success.100}",
2554
+ "successText": "{colors.success.900}",
2555
+ "warningBg": "{colors.warning.100}",
2556
+ "warningText": "{colors.warning.900}",
2557
+ "dangerBg": "{colors.error.100}",
2558
+ "dangerText": "{colors.error.900}",
2559
+ "accent": {
2560
+ "neutral": "{colors.neutral.600}",
2561
+ "brand": "{colors.brand.600}",
2562
+ "info": "{colors.info.600}",
2563
+ "success": "{colors.success.600}",
2564
+ "warning": "{colors.warning.600}",
2565
+ "danger": "{colors.error.600}",
2566
+ "cta": "{colors.brand.600}"
2567
+ }
2568
+ },
2569
+ "iconBox": {
2570
+ "bg": "{colors.white}",
2571
+ "border": "{colors.neutral.700}",
2572
+ "iconDefault": "{colors.info.700}",
2573
+ "iconSuccess": "{colors.success.600}",
2574
+ "iconWarning": "{colors.warning.600}",
2575
+ "iconDanger": "{colors.error.800}"
2576
+ },
2577
+ "testimonial": {
2578
+ "bg": "{colors.white}",
2579
+ "bgHover": "{colors.neutral.50}",
2580
+ "border": "{colors.neutral.700}",
2581
+ "text": "{colors.neutral.700}",
2582
+ "authorName": "{colors.neutral.900}",
2583
+ "authorTitle": "{colors.neutral.700}",
2584
+ "quoteMark": "{colors.neutral.700}",
2585
+ "accent": {
2586
+ "neutral": "{colors.neutral.600}",
2587
+ "brand": "{colors.brand.600}",
2588
+ "info": "{colors.info.600}",
2589
+ "success": "{colors.success.600}",
2590
+ "warning": "{colors.warning.600}",
2591
+ "danger": "{colors.error.600}",
2592
+ "cta": "{colors.brand.600}"
2593
+ }
2594
+ },
2595
+ "pricingCard": {
2596
+ "bg": "{colors.white}",
2597
+ "bgHover": "{colors.neutral.50}",
2598
+ "border": "{colors.neutral.700}",
2599
+ "featuredBg": "{colors.info.700}",
2600
+ "featuredText": "{colors.white}",
2601
+ "featuredBadgeBg": "{colors.warning.500}",
2602
+ "featuredBadgeText": "{colors.neutral.900}",
2603
+ "price": "{colors.neutral.900}",
2604
+ "priceDescription": "{colors.neutral.700}",
2605
+ "accent": {
2606
+ "neutral": "{colors.neutral.600}",
2607
+ "brand": "{colors.brand.600}",
2608
+ "info": "{colors.info.600}",
2609
+ "success": "{colors.success.600}",
2610
+ "warning": "{colors.warning.600}",
2611
+ "danger": "{colors.error.600}",
2612
+ "cta": "{colors.brand.600}"
2613
+ }
2614
+ },
2615
+ "rating": {
2616
+ "starFilled": "{colors.warning.500}",
2617
+ "starEmpty": "{colors.neutral.200}",
2618
+ "text": "{colors.neutral.600}"
2619
+ },
2620
+ "nav": {
2621
+ "bg": "{colors.white}",
2622
+ "text": "{colors.neutral.900}",
2623
+ "link": "{colors.neutral.700}",
2624
+ "linkHover": "{colors.brand.600}",
2625
+ "linkActive": "{colors.brand.700}",
2626
+ "border": "{colors.neutral.700}",
2627
+ "accent": {
2628
+ "neutral": "{colors.neutral.600}",
2629
+ "brand": "{colors.brand.600}",
2630
+ "info": "{colors.info.600}",
2631
+ "success": "{colors.success.600}",
2632
+ "warning": "{colors.warning.600}",
2633
+ "danger": "{colors.error.600}",
2634
+ "cta": "{colors.brand.600}"
2635
+ }
2636
+ },
2637
+ "footer": {
2638
+ "bg": "{colors.neutral.900}",
2639
+ "text": "{colors.neutral.50}",
2640
+ "heading": "{colors.white}",
2641
+ "muted": "{colors.neutral.300}",
2642
+ "link": "{colors.neutral.300}",
2643
+ "linkHover": "{colors.brand.300}",
2644
+ "border": "{colors.neutral.700}",
2645
+ "divider": "{colors.neutral.800}",
2646
+ "chipBg": "{colors.neutral.800}",
2647
+ "accent": {
2648
+ "neutral": "{colors.neutral.600}",
2649
+ "brand": "{colors.brand.600}",
2650
+ "info": "{colors.info.600}",
2651
+ "success": "{colors.success.600}",
2652
+ "warning": "{colors.warning.600}",
2653
+ "danger": "{colors.error.600}",
2654
+ "cta": "{colors.brand.600}"
2655
+ },
2656
+ "light": {
2657
+ "bg": "{colors.neutral.100}",
2658
+ "text": "{colors.neutral.700}",
2659
+ "heading": "{colors.neutral.900}",
2660
+ "muted": "{colors.neutral.700}",
2661
+ "link": "{colors.neutral.700}",
2662
+ "linkHover": "{colors.brand.700}",
2663
+ "border": "{colors.neutral.700}",
2664
+ "divider": "{colors.neutral.700}",
2665
+ "chipBg": "{colors.neutral.200}",
2666
+ "accent": {
2667
+ "neutral": "{colors.neutral.600}",
2668
+ "brand": "{colors.brand.600}",
2669
+ "info": "{colors.info.600}",
2670
+ "success": "{colors.success.600}",
2671
+ "warning": "{colors.warning.600}",
2672
+ "danger": "{colors.error.600}",
2673
+ "cta": "{colors.brand.600}"
2674
+ }
2675
+ }
2676
+ },
2677
+ "modal": {
2678
+ "bg": "{colors.white}",
2679
+ "shadow": "0 20px 48px -12px {colors.black} / 0.20",
2680
+ "border": "{colors.neutral.700}",
2681
+ "overlay": "{colors.black} / 0.6",
2682
+ "accent": {
2683
+ "neutral": "{colors.neutral.600}",
2684
+ "brand": "{colors.brand.600}",
2685
+ "info": "{colors.info.600}",
2686
+ "success": "{colors.success.600}",
2687
+ "warning": "{colors.warning.600}",
2688
+ "danger": "{colors.error.600}",
2689
+ "cta": "{colors.brand.600}"
2690
+ }
2691
+ },
2692
+ "toast": {
2693
+ "neutral": {
2694
+ "bg": "{colors.neutral.50}",
2695
+ "text": "{colors.neutral.800}",
2696
+ "border": "{colors.neutral.700}",
2697
+ "icon": "{colors.neutral.600}"
2698
+ },
2699
+ "success": {
2700
+ "bg": "{colors.success.50}",
2701
+ "text": "{colors.success.900}",
2702
+ "border": "{colors.success.600}",
2703
+ "icon": "{colors.success.600}"
2704
+ },
2705
+ "warning": {
2706
+ "bg": "{colors.warning.50}",
2707
+ "text": "{colors.warning.900}",
2708
+ "border": "{colors.warning.600}",
2709
+ "icon": "{colors.warning.600}"
2710
+ },
2711
+ "danger": {
2712
+ "bg": "{colors.error.50}",
2713
+ "text": "{colors.error.800}",
2714
+ "border": "{colors.error.600}",
2715
+ "icon": "{colors.error.600}"
2716
+ },
2717
+ "info": {
2718
+ "bg": "{colors.info.50}",
2719
+ "text": "{colors.info.800}",
2720
+ "border": "{colors.info.600}",
2721
+ "icon": "{colors.info.600}"
2722
+ },
2723
+ "accent": {
2724
+ "neutral": "{colors.neutral.600}",
2725
+ "brand": "{colors.brand.600}",
2726
+ "info": "{colors.info.600}",
2727
+ "success": "{colors.success.600}",
2728
+ "warning": "{colors.warning.600}",
2729
+ "danger": "{colors.error.600}",
2730
+ "cta": "{colors.brand.600}"
2731
+ }
2732
+ },
2733
+ "tooltip": {
2734
+ "bg": "{colors.neutral.900}",
2735
+ "text": "{colors.white}",
2736
+ "border": "{colors.neutral.700}",
2737
+ "accent": {
2738
+ "neutral": "{colors.neutral.600}",
2739
+ "brand": "{colors.brand.600}",
2740
+ "info": "{colors.info.600}",
2741
+ "success": "{colors.success.600}",
2742
+ "warning": "{colors.warning.600}",
2743
+ "danger": "{colors.error.600}",
2744
+ "cta": "{colors.brand.600}"
2745
+ }
2746
+ },
2747
+ "dropdown": {
2748
+ "bg": "{colors.white}",
2749
+ "border": "{colors.neutral.700}",
2750
+ "item": {
2751
+ "default": "transparent",
2752
+ "hover": "{colors.neutral.100}",
2753
+ "active": "{colors.info.50}",
2754
+ "text": "{colors.neutral.900}",
2755
+ "disabledText": "{colors.neutral.400}",
2756
+ "selectedBg": "{colors.info.100}",
2757
+ "selectedText": "{colors.info.800}"
2758
+ },
2759
+ "accent": {
2760
+ "neutral": "{colors.neutral.600}",
2761
+ "brand": "{colors.brand.600}",
2762
+ "info": "{colors.info.600}",
2763
+ "success": "{colors.success.600}",
2764
+ "warning": "{colors.warning.600}",
2765
+ "danger": "{colors.error.600}",
2766
+ "cta": "{colors.brand.600}"
2767
+ },
2768
+ "header": "{colors.neutral.500}",
2769
+ "divider": "{colors.neutral.700}"
2770
+ },
2771
+ "tabs": {
2772
+ "list": {
2773
+ "bg": "{colors.white}",
2774
+ "border": "{colors.neutral.700}"
2775
+ },
2776
+ "item": {
2777
+ "text": "{colors.neutral.600}",
2778
+ "hover": {
2779
+ "bg": "{colors.neutral.100}"
2780
+ },
2781
+ "active": {
2782
+ "text": "{colors.neutral.900}",
2783
+ "indicator": "{colors.brand.600}"
2784
+ },
2785
+ "focus": {
2786
+ "ringColor": "{buttons.primary.focusRing}"
2787
+ },
2788
+ "disabled": {
2789
+ "text": "{colors.neutral.400}"
2790
+ }
2791
+ },
2792
+ "pill": {
2793
+ "active": {
2794
+ "bg": "{colors.brand.700}",
2795
+ "text": "{colors.white}"
2796
+ }
2797
+ },
2798
+ "panel": {
2799
+ "bg": "{colors.white}"
2800
+ }
2801
+ },
2802
+ "accordion": {
2803
+ "bg": "{colors.white}",
2804
+ "text": "{colors.neutral.900}",
2805
+ "border": "{colors.neutral.700}",
2806
+ "header": {
2807
+ "hoverBg": "{colors.neutral.50}"
2808
+ },
2809
+ "icon": {
2810
+ "collapsed": "{colors.neutral.500}",
2811
+ "expanded": "{colors.neutral.900}"
2812
+ }
2813
+ },
2814
+ "breadcrumb": {
2815
+ "item": {
2816
+ "text": "{colors.neutral.600}",
2817
+ "hover": {
2818
+ "text": "{colors.brand.600}"
2819
+ },
2820
+ "active": {
2821
+ "text": "{colors.neutral.900}"
2822
+ }
2823
+ },
2824
+ "separator": "{colors.neutral.400}"
2825
+ },
2826
+ "listGroup": {
2827
+ "bg": "{colors.white}",
2828
+ "border": "{colors.neutral.700}",
2829
+ "text": "{colors.neutral.700}",
2830
+ "heading": "{colors.neutral.900}",
2831
+ "muted": "{colors.neutral.500}",
2832
+ "item": {
2833
+ "hover": {
2834
+ "bg": "{colors.neutral.50}"
2835
+ },
2836
+ "active": {
2837
+ "bg": "{colors.brand.700}",
2838
+ "text": "{colors.white}"
2839
+ },
2840
+ "selected": {
2841
+ "bg": "{colors.info.50}"
2842
+ },
2843
+ "disabled": {
2844
+ "text": "{colors.neutral.400}"
2845
+ }
2846
+ },
2847
+ "accent": {
2848
+ "neutral": "{colors.neutral.600}",
2849
+ "brand": "{colors.brand.600}",
2850
+ "info": "{colors.info.600}",
2851
+ "success": "{colors.success.600}",
2852
+ "warning": "{colors.warning.600}",
2853
+ "danger": "{colors.error.600}",
2854
+ "cta": "{colors.brand.600}",
2855
+ "thickness": "0.25rem"
2856
+ }
2857
+ },
2858
+ "offcanvas": {
2859
+ "bg": "{colors.white}",
2860
+ "text": "{colors.neutral.900}",
2861
+ "border": "{colors.neutral.700}",
2862
+ "overlay": "{colors.black} / 0.6"
2863
+ },
2864
+ "carousel": {
2865
+ "indicator": {
2866
+ "default": "{colors.white} / 0.5",
2867
+ "active": "{colors.white}"
2868
+ },
2869
+ "control": {
2870
+ "icon": "{colors.white}",
2871
+ "bg": "{colors.black} / 0.3"
2872
+ },
2873
+ "caption": {
2874
+ "bg": "{colors.black} / 0.4",
2875
+ "text": "{colors.white}"
2876
+ }
2877
+ },
2878
+ "table": {
2879
+ "header": {
2880
+ "bg": "{colors.neutral.50}",
2881
+ "text": "{colors.neutral.700}"
2882
+ },
2883
+ "text": "{colors.neutral.900}",
2884
+ "divider": "{colors.neutral.700}",
2885
+ "stripeBg": "{colors.neutral.50}",
2886
+ "hoverBg": "{colors.neutral.100}",
2887
+ "selectedBg": "{colors.info.50}",
2888
+ "row": {
2889
+ "neutral": {
2890
+ "bg": "{colors.neutral.100}",
2891
+ "text": "{colors.neutral.700}"
2892
+ },
2893
+ "info": {
2894
+ "bg": "{colors.info.100}",
2895
+ "text": "{colors.info.800}"
2896
+ },
2897
+ "success": {
2898
+ "bg": "{colors.success.100}",
2899
+ "text": "{colors.success.900}"
2900
+ },
2901
+ "warning": {
2902
+ "bg": "{colors.warning.100}",
2903
+ "text": "{colors.warning.900}"
2904
+ },
2905
+ "danger": {
2906
+ "bg": "{colors.error.100}",
2907
+ "text": "{colors.error.900}"
2908
+ }
2909
+ }
2910
+ },
2911
+ "alert": {
2912
+ "neutral": {
2913
+ "bg": "{colors.neutral.100}",
2914
+ "text": "{colors.neutral.700}",
2915
+ "border": "{colors.neutral.700}",
2916
+ "icon": "{colors.neutral.600}"
2917
+ },
2918
+ "brand": {
2919
+ "bg": "{colors.brand.50}",
2920
+ "text": "{colors.brand.700}",
2921
+ "border": "{colors.brand.600}",
2922
+ "icon": "{colors.brand.600}"
2923
+ },
2924
+ "info": {
2925
+ "bg": "{colors.info.50}",
2926
+ "text": "{colors.info.700}",
2927
+ "border": "{colors.info.600}",
2928
+ "icon": "{colors.info.600}"
2929
+ },
2930
+ "success": {
2931
+ "bg": "{colors.success.50}",
2932
+ "text": "{colors.success.900}",
2933
+ "border": "{colors.success.600}",
2934
+ "icon": "{colors.success.600}"
2935
+ },
2936
+ "warning": {
2937
+ "bg": "{colors.warning.50}",
2938
+ "text": "{colors.warning.900}",
2939
+ "border": "{colors.warning.600}",
2940
+ "icon": "{colors.warning.600}"
2941
+ },
2942
+ "danger": {
2943
+ "bg": "{colors.error.50}",
2944
+ "text": "{colors.error.800}",
2945
+ "border": "{colors.error.600}",
2946
+ "icon": "{colors.error.600}"
2947
+ }
2948
+ },
2949
+ "pagination": {
2950
+ "item": {
2951
+ "text": "{colors.neutral.700}",
2952
+ "hover": {
2953
+ "bg": "{colors.neutral.100}"
2954
+ },
2955
+ "active": {
2956
+ "bg": "{colors.brand.700}",
2957
+ "text": "{colors.white}"
2958
+ },
2959
+ "disabled": {
2960
+ "text": "{colors.neutral.400}"
2961
+ }
2962
+ }
2963
+ },
2964
+ "stepper": {
2965
+ "step": {
2966
+ "pending": {
2967
+ "bg": "{colors.neutral.200}",
2968
+ "text": "{colors.neutral.700}"
2969
+ },
2970
+ "active": {
2971
+ "bg": "{colors.brand.700}",
2972
+ "text": "{colors.white}"
2973
+ },
2974
+ "done": {
2975
+ "bg": "{colors.success.800}",
2976
+ "text": "{colors.white}"
2977
+ }
2978
+ },
2979
+ "connector": "{colors.neutral.200}",
2980
+ "label": {
2981
+ "text": "{colors.neutral.700}"
2982
+ }
2983
+ },
2984
+ "popover": {
2985
+ "bg": "{colors.white}",
2986
+ "text": "{colors.neutral.900}",
2987
+ "muted": "{colors.neutral.600}",
2988
+ "border": "{colors.neutral.700}",
2989
+ "shadow": "0 12px 32px -8px {colors.black} / 0.18",
2990
+ "arrow": "{colors.white}"
2991
+ },
2992
+ "progress": {
2993
+ "track": {
2994
+ "bg": "{colors.neutral.200}"
2995
+ },
2996
+ "indicator": {
2997
+ "neutral": "{colors.neutral.600}",
2998
+ "brand": "{colors.brand.600}",
2999
+ "info": "{colors.info.600}",
3000
+ "success": "{colors.success.600}",
3001
+ "warning": "{colors.warning.600}",
3002
+ "danger": "{colors.error.600}"
3003
+ },
3004
+ "label": {
3005
+ "text": "{colors.neutral.700}"
3006
+ }
3007
+ },
3008
+ "loadingIndicator": {
3009
+ "default": "{colors.neutral.600}",
3010
+ "muted": "{colors.neutral.400}",
3011
+ "inverse": "{colors.white}",
3012
+ "brand": "{colors.brand.600}",
3013
+ "info": "{colors.info.600}",
3014
+ "success": "{colors.success.600}",
3015
+ "warning": "{colors.warning.600}",
3016
+ "danger": "{colors.error.600}"
3017
+ },
3018
+ "switch": {
3019
+ "trackBg": "{colors.neutral.300}",
3020
+ "trackCheckedBg": "{colors.info.600}",
3021
+ "thumbBg": "{colors.white}",
3022
+ "trackDisabledBg": "{colors.neutral.100}",
3023
+ "thumbDisabledBg": "{colors.neutral.200}",
3024
+ "focusRing": "{buttons.primary.focusRing}"
3025
+ },
3026
+ "range": {
3027
+ "trackBg": "{colors.neutral.200}",
3028
+ "trackFilledBg": "{colors.info.600}",
3029
+ "thumbBg": "{colors.white}",
3030
+ "thumbBorder": "{colors.info.600}",
3031
+ "trackDisabledBg": "{colors.neutral.100}",
3032
+ "thumbDisabledBorder": "{colors.neutral.700}",
3033
+ "focusRing": "{buttons.primary.focusRing}"
3034
+ },
3035
+ "fileInput": {
3036
+ "bg": "{colors.white}",
3037
+ "border": "{colors.neutral.700}",
3038
+ "text": "{colors.neutral.900}",
3039
+ "actionBg": "{colors.neutral.100}",
3040
+ "actionText": "{colors.neutral.700}",
3041
+ "disabledBg": "{colors.neutral.50}",
3042
+ "disabledBorder": "{colors.neutral.700}",
3043
+ "disabledText": "{colors.neutral.400}",
3044
+ "focusBorder": "{colors.info.600}"
3045
+ },
3046
+ "inputGroup": {
3047
+ "addonBg": "{colors.neutral.100}",
3048
+ "addonText": "{colors.neutral.700}",
3049
+ "addonBorder": "{colors.neutral.700}",
3050
+ "focusBorder": "{colors.info.600}",
3051
+ "disabledBg": "{colors.neutral.50}",
3052
+ "disabledText": "{colors.neutral.400}"
3053
+ },
3054
+ "datepicker": {
3055
+ "panel": {
3056
+ "bg": "{colors.white}",
3057
+ "border": "{colors.neutral.700}"
3058
+ },
3059
+ "header": {
3060
+ "text": "{colors.neutral.900}"
3061
+ },
3062
+ "weekday": {
3063
+ "text": "{colors.neutral.400}"
3064
+ }
3065
+ },
3066
+ "day": {
3067
+ "default": {
3068
+ "text": "{colors.neutral.900}",
3069
+ "hover": {
3070
+ "bg": "{colors.neutral.100}"
3071
+ }
3072
+ },
3073
+ "selected": {
3074
+ "bg": "{colors.brand.700}",
3075
+ "text": "{colors.white}"
3076
+ },
3077
+ "today": {
3078
+ "ringColor": "{buttons.primary.focusRing}"
3079
+ },
3080
+ "outsideMonth": {
3081
+ "text": "{colors.neutral.300}"
3082
+ },
3083
+ "disabled": {
3084
+ "text": "{colors.neutral.400}"
3085
+ }
3086
+ },
3087
+ "prose": {
3088
+ "blockquote": {
3089
+ "border": "{colors.neutral.600}",
3090
+ "text": "{colors.neutral.600}"
3091
+ },
3092
+ "code": {
3093
+ "bg": "{colors.neutral.100}",
3094
+ "text": "{colors.neutral.900}"
3095
+ },
3096
+ "codeBlock": {
3097
+ "bg": "{colors.neutral.100}",
3098
+ "text": "{colors.neutral.900}",
3099
+ "border": "{colors.neutral.700}"
3100
+ },
3101
+ "mark": {
3102
+ "bg": "{colors.warning.100}",
3103
+ "text": "{colors.warning.900}"
3104
+ },
3105
+ "hr": "{colors.neutral.700}",
3106
+ "kbd": {
3107
+ "bg": "{colors.neutral.100}",
3108
+ "border": "{colors.neutral.700}",
3109
+ "text": "{colors.neutral.900}"
3110
+ }
3111
+ },
3112
+ "externalAuthButton": {
3113
+ "bg": "{colors.white}",
3114
+ "text": "{colors.neutral.900}",
3115
+ "border": "{colors.neutral.700}",
3116
+ "hoverBg": "{colors.neutral.50}",
3117
+ "activeBg": "{colors.neutral.100}",
3118
+ "disabledBg": "{colors.neutral.50}",
3119
+ "disabledText": "{colors.neutral.400}",
3120
+ "focusRing": "{buttons.primary.focusRing}"
3121
+ },
3122
+ "checkbox": {
3123
+ "bg": "{colors.white}",
3124
+ "border": "{colors.neutral.700}",
3125
+ "checkedBg": "{colors.info.700}",
3126
+ "checkedBorder": "{colors.info.600}",
3127
+ "text": "{colors.white}",
3128
+ "disabledBg": "{colors.neutral.50}",
3129
+ "disabledBorder": "{colors.neutral.700}"
3130
+ },
3131
+ "radio": {
3132
+ "bg": "{colors.white}",
3133
+ "border": "{colors.neutral.700}",
3134
+ "checkedBg": "{colors.info.700}",
3135
+ "checkedBorder": "{colors.info.600}",
3136
+ "text": "{colors.white}",
3137
+ "disabledBg": "{colors.neutral.50}",
3138
+ "disabledBorder": "{colors.neutral.700}"
3139
+ },
3140
+ "select": {
3141
+ "bg": "{colors.white}",
3142
+ "border": "{colors.neutral.700}",
3143
+ "text": "{colors.neutral.900}",
3144
+ "placeholderText": "{colors.neutral.600}",
3145
+ "disabledBg": "{colors.neutral.50}",
3146
+ "disabledBorder": "{colors.neutral.700}",
3147
+ "focusBorder": "{colors.info.600}"
3148
+ },
3149
+ "textarea": {
3150
+ "bg": "{colors.white}",
3151
+ "border": "{colors.neutral.700}",
3152
+ "text": "{colors.neutral.900}",
3153
+ "placeholder": "{colors.neutral.600}",
3154
+ "disabledBg": "{colors.neutral.50}",
3155
+ "disabledBorder": "{colors.neutral.700}",
3156
+ "focusBorder": "{colors.info.600}"
3157
+ },
3158
+ "fieldset": {
3159
+ "border": "{colors.neutral.700}",
3160
+ "legendText": "{colors.neutral.900}"
3161
+ },
3162
+ "label": {
3163
+ "text": "{colors.neutral.900}",
3164
+ "disabledText": "{colors.neutral.400}",
3165
+ "requiredIndicatorText": "{colors.error.600}"
3166
+ },
3167
+ "skeleton": {
3168
+ "base": "{colors.neutral.200}",
3169
+ "shimmer": "{colors.neutral.100}"
3170
+ },
3171
+ "selection": {
3172
+ "bg": "{colors.brand.100}",
3173
+ "text": "{colors.neutral.900}"
3174
+ },
3175
+ "caret": {
3176
+ "color": "{colors.brand.600}"
3177
+ },
3178
+ "scrollbar": {
3179
+ "track": "{colors.neutral.700}",
3180
+ "thumb": "{colors.neutral.400}",
3181
+ "thumbHover": "{colors.neutral.500}"
3182
+ },
3183
+ "chart": {
3184
+ "bg": "{colors.white}",
3185
+ "grid": "{colors.neutral.200}",
3186
+ "axis": "{colors.neutral.500}",
3187
+ "label": "{colors.neutral.600}",
3188
+ "series": {
3189
+ "1": "{colors.brand.600}",
3190
+ "2": "{colors.palette.amber.600}",
3191
+ "3": "{colors.palette.violet.800}",
3192
+ "4": "{colors.palette.cyan.600}",
3193
+ "5": "{colors.palette.pink.600}",
3194
+ "6": "{colors.palette.emerald.800}",
3195
+ "7": "{colors.palette.lime.700}",
3196
+ "8": "{colors.palette.orange.800}"
3197
+ },
3198
+ "sequential": {
3199
+ "1": "{colors.brand.100}",
3200
+ "2": "{colors.brand.200}",
3201
+ "3": "{colors.brand.300}",
3202
+ "4": "{colors.brand.400}",
3203
+ "5": "{colors.brand.600}",
3204
+ "6": "{colors.brand.800}",
3205
+ "7": "{colors.brand.900}"
3206
+ },
3207
+ "diverging": {
3208
+ "1": "{colors.palette.red.700}",
3209
+ "2": "{colors.palette.red.400}",
3210
+ "3": "{colors.palette.red.200}",
3211
+ "4": "{colors.neutral.200}",
3212
+ "5": "{colors.palette.blue.200}",
3213
+ "6": "{colors.palette.blue.400}",
3214
+ "7": "{colors.palette.blue.700}"
3215
+ }
3216
+ }
3217
+ },
3218
+ "buttons": {
3219
+ "primary": {
3220
+ "bg": "{colors.info.700}",
3221
+ "bgHover": "{colors.info.800}",
3222
+ "bgActive": "{colors.info.900}",
3223
+ "bgDisabled": "{colors.neutral.200}",
3224
+ "text": "{colors.white}",
3225
+ "textDisabled": "{colors.neutral.400}",
3226
+ "focusRing": "{colors.info.500} / 0.4",
3227
+ "focusVisible": "{colors.info.500} / 0.4"
3228
+ },
3229
+ "secondary": {
3230
+ "bg": "{colors.white}",
3231
+ "bgHover": "{colors.neutral.50}",
3232
+ "bgActive": "{colors.neutral.100}",
3233
+ "bgDisabled": "{colors.neutral.50}",
3234
+ "text": "{colors.info.800}",
3235
+ "textDisabled": "{colors.neutral.400}",
3236
+ "border": "{colors.info.800}",
3237
+ "borderDisabled": "{colors.neutral.200}",
3238
+ "focusRing": "{colors.info.500} / 0.4",
3239
+ "focusVisible": "{colors.info.500} / 0.4"
3240
+ },
3241
+ "ghost": {
3242
+ "bg": "transparent",
3243
+ "bgHover": "{colors.info.50}",
3244
+ "bgActive": "{colors.info.100}",
3245
+ "bgDisabled": "transparent",
3246
+ "text": "{colors.info.800}",
3247
+ "textDisabled": "{colors.neutral.400}",
3248
+ "focusRing": "{colors.info.500} / 0.4",
3249
+ "focusVisible": "{colors.info.500} / 0.4"
3250
+ },
3251
+ "danger": {
3252
+ "bg": "{colors.error.800}",
3253
+ "bgHover": "{colors.error.900}",
3254
+ "bgActive": "{colors.error.900}",
3255
+ "bgDisabled": "{colors.error.200}",
3256
+ "text": "{colors.white}",
3257
+ "textDisabled": "{colors.neutral.400}",
3258
+ "focusRing": "{colors.error.500} / 0.4",
3259
+ "focusVisible": "{colors.error.500} / 0.4"
3260
+ },
3261
+ "success": {
3262
+ "bg": "{colors.success.800}",
3263
+ "bgHover": "{colors.success.900}",
3264
+ "bgActive": "{colors.success.900}",
3265
+ "bgDisabled": "{colors.success.200}",
3266
+ "text": "{colors.white}",
3267
+ "textDisabled": "{colors.neutral.400}",
3268
+ "focusRing": "{colors.success.500} / 0.4",
3269
+ "focusVisible": "{colors.success.500} / 0.4"
3270
+ },
3271
+ "warning": {
3272
+ "bg": "{colors.warning.900}",
3273
+ "bgHover": "{colors.palette.amber.950}",
3274
+ "bgActive": "{colors.palette.amber.950}",
3275
+ "bgDisabled": "{colors.warning.200}",
3276
+ "text": "{colors.white}",
3277
+ "textDisabled": "{colors.neutral.400}",
3278
+ "focusRing": "{colors.warning.500} / 0.4",
3279
+ "focusVisible": "{colors.warning.500} / 0.4"
3280
+ },
3281
+ "link": {
3282
+ "bg": "transparent",
3283
+ "bgHover": "transparent",
3284
+ "bgActive": "transparent",
3285
+ "bgDisabled": "transparent",
3286
+ "text": "{colors.info.700}",
3287
+ "textHover": "{colors.info.800}",
3288
+ "textActive": "{colors.info.900}",
3289
+ "textDisabled": "{colors.neutral.400}",
3290
+ "focusRing": "{colors.info.500} / 0.4",
3291
+ "focusVisible": "{colors.info.500} / 0.4"
3292
+ },
3293
+ "light": {
3294
+ "bg": "{colors.neutral.100}",
3295
+ "bgHover": "{colors.neutral.200}",
3296
+ "bgActive": "{colors.neutral.300}",
3297
+ "bgDisabled": "{colors.neutral.50}",
3298
+ "text": "{colors.neutral.900}",
3299
+ "textDisabled": "{colors.neutral.400}",
3300
+ "focusRing": "{colors.neutral.400} / 0.4",
3301
+ "focusVisible": "{colors.neutral.400} / 0.4"
3302
+ },
3303
+ "dark": {
3304
+ "bg": "{colors.neutral.900}",
3305
+ "bgHover": "{colors.neutral.800}",
3306
+ "bgActive": "{colors.neutral.700}",
3307
+ "bgDisabled": "{colors.neutral.200}",
3308
+ "text": "{colors.white}",
3309
+ "textDisabled": "{colors.neutral.400}",
3310
+ "focusRing": "{colors.neutral.500} / 0.4",
3311
+ "focusVisible": "{colors.neutral.500} / 0.4"
3312
+ },
3313
+ "cta": {
3314
+ "bg": "{colors.brand.700}",
3315
+ "bgHover": "{colors.brand.800}",
3316
+ "bgActive": "{colors.brand.900}",
3317
+ "bgDisabled": "{colors.brand.200}",
3318
+ "text": "{colors.white}",
3319
+ "textDisabled": "{colors.neutral.400}",
3320
+ "shadow": "0 4px 14px 0 {colors.brand.500} / 0.39",
3321
+ "focusRing": "{colors.brand.500} / 0.4"
3322
+ },
3323
+ "accent": {
3324
+ "bg": "{colors.accent.700}",
3325
+ "bgHover": "{colors.accent.800}",
3326
+ "bgActive": "{colors.accent.900}",
3327
+ "bgDisabled": "{colors.accent.200}",
3328
+ "text": "{colors.white}",
3329
+ "textDisabled": "{colors.neutral.400}",
3330
+ "focusRing": "{colors.accent.500} / 0.4",
3331
+ "focusVisible": "{colors.accent.500} / 0.4"
3332
+ },
3333
+ "inverse": {
3334
+ "bg": "{colors.white} / 0.12",
3335
+ "bgHover": "{colors.white} / 0.2",
3336
+ "bgActive": "{colors.white} / 0.28",
3337
+ "bgDisabled": "{colors.white} / 0.08",
3338
+ "text": "{colors.white}",
3339
+ "textDisabled": "{colors.neutral.400}",
3340
+ "border": "{colors.white} / 0.3",
3341
+ "borderDisabled": "{colors.white} / 0.16",
3342
+ "focusRing": "{colors.info.500} / 0.4",
3343
+ "focusVisible": "{colors.info.500} / 0.4"
3344
+ }
3345
+ },
3346
+ "link": {
3347
+ "default": "{colors.brand.700}",
3348
+ "hover": "{colors.brand.800}",
3349
+ "active": "{colors.brand.900}",
3350
+ "visited": "{colors.accent.700}",
3351
+ "onInverse": "{colors.neutral.300}",
3352
+ "onInverseHover": "{colors.brand.300}"
3353
+ }
3354
+ }
3355
+ },
3356
+ "colors": {
3357
+ "brand": {
3358
+ "50": "#eef4ff",
3359
+ "100": "#d9e7ff",
3360
+ "200": "#b9d2ff",
3361
+ "300": "#8ab6ff",
3362
+ "400": "#5a92ff",
3363
+ "500": "#336df4",
3364
+ "600": "#1f57db",
3365
+ "700": "#1946b4",
3366
+ "800": "#173b8f",
3367
+ "900": "#16336f"
3368
+ },
3369
+ "neutral": {
3370
+ "50": "#f7f8fb",
3371
+ "100": "#eef1f6",
3372
+ "200": "#d9dfeb",
3373
+ "300": "#b7c1d4",
3374
+ "400": "#8a96ad",
3375
+ "500": "#657287",
3376
+ "600": "#4b576a",
3377
+ "700": "#374253",
3378
+ "800": "#222b38",
3379
+ "900": "#141b24"
3380
+ },
3381
+ "accent": {
3382
+ "50": "#f6f2ff",
3383
+ "100": "#eee5ff",
3384
+ "200": "#ddccff",
3385
+ "300": "#c3a7ff",
3386
+ "400": "#a279ff",
3387
+ "500": "#854ff7",
3388
+ "600": "#7135dd",
3389
+ "700": "#5d28b8",
3390
+ "800": "#4d2393",
3391
+ "900": "#401f75"
3392
+ },
3393
+ "success": {
3394
+ "50": "#f0fdf4",
3395
+ "100": "#dcfce7",
3396
+ "200": "#bbf7d0",
3397
+ "300": "#86efac",
3398
+ "400": "#4ade80",
3399
+ "500": "#22c55e",
3400
+ "600": "#16a34a",
3401
+ "700": "#15803d",
3402
+ "800": "#166534",
3403
+ "900": "#14532d"
3404
+ },
3405
+ "warning": {
3406
+ "50": "#fffbea",
3407
+ "100": "#fff1c2",
3408
+ "200": "#ffe08a",
3409
+ "300": "#ffd24d",
3410
+ "400": "#ffc21a",
3411
+ "500": "#f5ad00",
3412
+ "600": "#d48806",
3413
+ "700": "#ad6800",
3414
+ "800": "#8f5200",
3415
+ "900": "#734000"
3416
+ },
3417
+ "error": {
3418
+ "50": "#fef2f2",
3419
+ "100": "#fee2e2",
3420
+ "200": "#fecaca",
3421
+ "300": "#fca5a5",
3422
+ "400": "#f87171",
3423
+ "500": "#ef4444",
3424
+ "600": "#dc2626",
3425
+ "700": "#b91c1c",
3426
+ "800": "#991b1b",
3427
+ "900": "#7f1d1d"
3428
+ },
3429
+ "info": {
3430
+ "50": "#f0f9ff",
3431
+ "100": "#e0f2fe",
3432
+ "200": "#bae6fd",
3433
+ "300": "#7dd3fc",
3434
+ "400": "#38bdf8",
3435
+ "500": "#0ea5e9",
3436
+ "600": "#0369a1",
3437
+ "700": "#075985",
3438
+ "800": "#0c4a6e",
3439
+ "900": "#082f49"
3440
+ },
3441
+ "indigo": {
3442
+ "500": "#5b6ee1",
3443
+ "600": "#4d61db"
3444
+ },
3445
+ "violet": {
3446
+ "600": "#6f3fd7"
3447
+ },
3448
+ "focus": {
3449
+ "primary": "{colors.brand.500}",
3450
+ "error": "{colors.error.500}",
3451
+ "info": "{colors.info.600}"
3452
+ },
3453
+ "white": "#ffffff",
3454
+ "black": "#000000",
3455
+ "palette": {
3456
+ "red": {
3457
+ "50": "#fef2f2",
3458
+ "100": "#ffe2e2",
3459
+ "200": "#ffc9c9",
3460
+ "300": "#ffa2a2",
3461
+ "400": "#ff6467",
3462
+ "500": "#fb2c36",
3463
+ "600": "#e7000b",
3464
+ "700": "#c10007",
3465
+ "800": "#9f0712",
3466
+ "900": "#82181a",
3467
+ "950": "#460809"
3468
+ },
3469
+ "orange": {
3470
+ "50": "#fff7ed",
3471
+ "100": "#ffedd4",
3472
+ "200": "#ffd6a7",
3473
+ "300": "#ffb86a",
3474
+ "400": "#ff8904",
3475
+ "500": "#ff6900",
3476
+ "600": "#f54900",
3477
+ "700": "#ca3500",
3478
+ "800": "#9f2d00",
3479
+ "900": "#7e2a0c",
3480
+ "950": "#441306"
3481
+ },
3482
+ "amber": {
3483
+ "50": "#fffbeb",
3484
+ "100": "#fef3c6",
3485
+ "200": "#fee685",
3486
+ "300": "#ffd230",
3487
+ "400": "#ffb900",
3488
+ "500": "#fe9a00",
3489
+ "600": "#e17100",
3490
+ "700": "#bb4d00",
3491
+ "800": "#973c00",
3492
+ "900": "#7b3306",
3493
+ "950": "#461901"
3494
+ },
3495
+ "yellow": {
3496
+ "50": "#fefce8",
3497
+ "100": "#fef9c2",
3498
+ "200": "#fff085",
3499
+ "300": "#ffdf20",
3500
+ "400": "#fdc700",
3501
+ "500": "#f0b100",
3502
+ "600": "#d08700",
3503
+ "700": "#a65f00",
3504
+ "800": "#894b00",
3505
+ "900": "#733e0a",
3506
+ "950": "#432004"
2343
3507
  },
2344
3508
  "lime": {
2345
3509
  "50": "#f7fee7",
@@ -2742,6 +3906,9 @@ var coreTokens = {
2742
3906
  "72": "4.5rem",
2743
3907
  "80": "5rem",
2744
3908
  "96": "6rem",
3909
+ "128": "8rem",
3910
+ "160": "10rem",
3911
+ "192": "12rem",
2745
3912
  "240": "15rem"
2746
3913
  },
2747
3914
  "radii": {
@@ -2998,33 +4165,117 @@ var coreTokens = {
2998
4165
  "padding": {
2999
4166
  "sm": "1.5rem",
3000
4167
  "md": "2rem",
3001
- "lg": "3rem"
4168
+ "lg": "3rem",
4169
+ "xl": "4rem",
4170
+ "2xl": "5rem",
4171
+ "3xl": "6rem",
4172
+ "4xl": "8rem"
3002
4173
  },
3003
4174
  "gap": {
3004
4175
  "sm": "1rem",
3005
4176
  "md": "1.5rem",
3006
- "lg": "2rem"
4177
+ "lg": "2rem",
4178
+ "xl": "2.5rem",
4179
+ "2xl": "3rem",
4180
+ "3xl": "4rem",
4181
+ "4xl": "5rem"
3007
4182
  }
3008
4183
  },
3009
4184
  "stack": {
3010
4185
  "gap": {
3011
4186
  "sm": "0.5rem",
3012
- "md": "0.75rem",
3013
- "lg": "1rem"
4187
+ "md": "1rem",
4188
+ "lg": "1.5rem",
4189
+ "xl": "2.5rem",
4190
+ "2xl": "3rem",
4191
+ "3xl": "4rem",
4192
+ "4xl": "5rem"
3014
4193
  }
3015
4194
  },
3016
4195
  "container": {
3017
4196
  "paddingInline": {
3018
4197
  "sm": "1rem",
3019
4198
  "md": "1.5rem",
3020
- "lg": "2rem"
4199
+ "lg": "2rem",
4200
+ "xl": "2.5rem",
4201
+ "2xl": "3rem",
4202
+ "3xl": "4rem",
4203
+ "4xl": "5rem"
3021
4204
  },
3022
4205
  "maxWidth": "72rem",
3023
4206
  "maxWidthProse": "65ch",
3024
4207
  "maxWidthWide": "80rem"
3025
4208
  },
4209
+ "hero": {
4210
+ "paddingTop": {
4211
+ "sm": "{layout.section.padding.2xl}",
4212
+ "md": "{layout.section.padding.3xl}",
4213
+ "lg": "{layout.section.padding.4xl}"
4214
+ },
4215
+ "paddingBottom": {
4216
+ "sm": "{layout.section.padding.xl}",
4217
+ "md": "{layout.section.padding.2xl}",
4218
+ "lg": "{layout.section.padding.3xl}"
4219
+ }
4220
+ },
3026
4221
  "sidebar": {
3027
4222
  "width": "16rem"
4223
+ },
4224
+ "responsive": {
4225
+ "lg": {
4226
+ "section": {
4227
+ "padding": {
4228
+ "xl": "6rem",
4229
+ "2xl": "8rem",
4230
+ "3xl": "10rem",
4231
+ "4xl": "12rem"
4232
+ },
4233
+ "gap": {
4234
+ "xl": "3rem",
4235
+ "2xl": "4rem",
4236
+ "3xl": "6rem",
4237
+ "4xl": "8rem"
4238
+ }
4239
+ },
4240
+ "stack": {
4241
+ "gap": {
4242
+ "xl": "3rem",
4243
+ "2xl": "4rem",
4244
+ "3xl": "6rem",
4245
+ "4xl": "8rem"
4246
+ }
4247
+ },
4248
+ "container": {
4249
+ "paddingInline": {
4250
+ "xl": "3rem",
4251
+ "2xl": "4rem",
4252
+ "3xl": "6rem",
4253
+ "4xl": "8rem"
4254
+ }
4255
+ }
4256
+ }
4257
+ }
4258
+ },
4259
+ "elevation": {
4260
+ "flat": {
4261
+ "shadow": "{shadows.none}",
4262
+ "surface": "{surface.page}",
4263
+ "zIndex": "{zIndex.base}"
4264
+ },
4265
+ "raised": {
4266
+ "shadow": "{shadows.md}",
4267
+ "surface": "{surface.card}",
4268
+ "zIndex": "{zIndex.base}"
4269
+ },
4270
+ "overlay": {
4271
+ "shadow": "{shadows.lg}",
4272
+ "surface": "{surface.card}",
4273
+ "zIndex": "{zIndex.dropdown}"
4274
+ },
4275
+ "modal": {
4276
+ "shadow": "{shadows.2xl}",
4277
+ "surface": "{surface.card}",
4278
+ "zIndex": "{zIndex.modal}"
3028
4279
  }
3029
4280
  },
3030
4281
  "font": {
@@ -3272,6 +4523,22 @@ var toVariableName = (prefix, ...parts) => {
3272
4523
  return `--${prefix}-${filtered.join("-")}`;
3273
4524
  };
3274
4525
  var isPlainObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
4526
+ var kebabCase = (segment) => formatKey(segment.replace(/([a-z0-9])([A-Z])/g, "$1-$2"));
4527
+ var LAYOUT_SCALES = [
4528
+ { path: ["section", "padding"], varParts: ["section", "padding"] },
4529
+ { path: ["section", "gap"], varParts: ["section", "gap"] },
4530
+ { path: ["stack", "gap"], varParts: ["stack", "gap"] },
4531
+ { path: ["container", "paddingInline"], varParts: ["container", "padding-inline"] }
4532
+ ];
4533
+ var layoutScale = (node, [group, scale]) => {
4534
+ const groupNode = isPlainObject(node) ? node[group] : void 0;
4535
+ const scaleNode = isPlainObject(groupNode) ? groupNode[scale] : void 0;
4536
+ return isPlainObject(scaleNode) ? scaleNode : {};
4537
+ };
4538
+ var layoutResponsive = (layout) => {
4539
+ const responsive = isPlainObject(layout) ? layout.responsive : void 0;
4540
+ return isPlainObject(responsive) ? responsive : {};
4541
+ };
3275
4542
  var resolveTokenReference = (tokens2, reference) => {
3276
4543
  const path = reference.slice(1, -1).split(".");
3277
4544
  let current = tokens2;
@@ -3365,26 +4632,30 @@ var createCssVariableMap = (tokens2, options = {}) => {
3365
4632
  }
3366
4633
  if (baseTokens.layout) {
3367
4634
  const layout = baseTokens.layout;
3368
- if (layout.section?.padding) {
3369
- Object.entries(layout.section.padding).forEach(([key, value]) => {
3370
- assign(toVariableName(prefix, "layout", "section", "padding", key), value);
3371
- });
3372
- }
3373
- if (layout.section?.gap) {
3374
- Object.entries(layout.section.gap).forEach(([key, value]) => {
3375
- assign(toVariableName(prefix, "layout", "section", "gap", key), value);
4635
+ LAYOUT_SCALES.forEach(({ path, varParts }) => {
4636
+ Object.entries(layoutScale(layout, path)).forEach(([key, value]) => {
4637
+ assign(toVariableName(prefix, "layout", ...varParts, key), value);
3376
4638
  });
3377
- }
3378
- if (layout.stack?.gap) {
3379
- Object.entries(layout.stack.gap).forEach(([key, value]) => {
3380
- assign(toVariableName(prefix, "layout", "stack", "gap", key), value);
4639
+ });
4640
+ const hero = layout.hero;
4641
+ if (hero) {
4642
+ Object.entries(hero).forEach(([edge, steps]) => {
4643
+ Object.entries(steps).forEach(([key, value]) => {
4644
+ const step = value.match(/^\{layout\.section\.padding\.([^}]+)\}$/)?.[1];
4645
+ assign(
4646
+ toVariableName(prefix, "layout", "hero", kebabCase(edge), key),
4647
+ step ? `var(${toVariableName(prefix, "layout", "section", "padding", step)})` : value
4648
+ );
4649
+ });
3381
4650
  });
3382
4651
  }
3383
- if (layout.container?.paddingInline) {
3384
- Object.entries(layout.container.paddingInline).forEach(([key, value]) => {
3385
- assign(toVariableName(prefix, "layout", "container", "padding-inline", key), value);
4652
+ Object.entries(layoutResponsive(layout)).forEach(([breakpoint, scales]) => {
4653
+ LAYOUT_SCALES.forEach(({ path, varParts }) => {
4654
+ Object.entries(layoutScale(scales, path)).forEach(([key, value]) => {
4655
+ assign(toVariableName(prefix, "layout", "responsive", breakpoint, ...varParts, key), value);
4656
+ });
3386
4657
  });
3387
- }
4658
+ });
3388
4659
  const container = layout.container;
3389
4660
  if (container?.maxWidth) {
3390
4661
  assign(toVariableName(prefix, "layout", "container", "max-width"), container.maxWidth);
@@ -3400,6 +4671,33 @@ var createCssVariableMap = (tokens2, options = {}) => {
3400
4671
  assign(toVariableName(prefix, "layout", "sidebar", "width"), sidebar.width);
3401
4672
  }
3402
4673
  }
4674
+ const control = baseTokens.control;
4675
+ if (isPlainObject(control)) {
4676
+ const assignControlSizes = (sizes, parts) => {
4677
+ Object.entries(sizes).forEach(([size, fields]) => {
4678
+ if (size === "compact" || !isPlainObject(fields)) return;
4679
+ Object.entries(fields).forEach(([field, value]) => {
4680
+ assign(toVariableName(prefix, "control", ...parts, size, kebabCase(field)), value);
4681
+ });
4682
+ });
4683
+ };
4684
+ assignControlSizes(control, []);
4685
+ if (isPlainObject(control.compact)) assignControlSizes(control.compact, ["compact"]);
4686
+ }
4687
+ const elevation = baseTokens.elevation;
4688
+ if (isPlainObject(elevation)) {
4689
+ const elevationVarParts = { shadows: ["shadow"], surface: ["surface"], zIndex: ["z-index"] };
4690
+ Object.entries(elevation).forEach(([level, fields]) => {
4691
+ Object.entries(fields).forEach(([field, value]) => {
4692
+ const [namespace, ...rest] = value.match(/^\{([^}]+)\}$/)?.[1]?.split(".") ?? [];
4693
+ const varParts = namespace ? elevationVarParts[namespace] : void 0;
4694
+ assign(
4695
+ toVariableName(prefix, "elevation", level, kebabCase(field)),
4696
+ varParts ? `var(${toVariableName(prefix, ...varParts, ...rest.map(kebabCase))})` : value
4697
+ );
4698
+ });
4699
+ });
4700
+ }
3403
4701
  const border = baseTokens.border;
3404
4702
  if (border?.width) {
3405
4703
  Object.entries(border.width).forEach(([key, value]) => {
@@ -3471,6 +4769,16 @@ var createCssVariableMap = (tokens2, options = {}) => {
3471
4769
  if (body) {
3472
4770
  assignRole(["body"], body);
3473
4771
  }
4772
+ const display = baseTokens.typography?.display;
4773
+ if (display) {
4774
+ Object.entries(display).forEach(([level, entry]) => {
4775
+ assignRole(["display", level], entry);
4776
+ });
4777
+ }
4778
+ const lead = baseTokens.typography?.lead;
4779
+ if (lead) {
4780
+ assignRole(["lead"], lead);
4781
+ }
3474
4782
  Object.entries(baseTokens.shadows).forEach(([key, value]) => {
3475
4783
  if (typeof value === "string") {
3476
4784
  assign(toVariableName(prefix, "shadow", key), value);
@@ -3536,9 +4844,9 @@ var generateCssVariables = (tokens2, options = {}) => {
3536
4844
  const selector = options.selector ?? DEFAULT_SELECTOR;
3537
4845
  const prefix = options.prefix ?? DEFAULT_PREFIX;
3538
4846
  const declarations = createCssVariableMap(tokens2, { ...options, prefix });
3539
- const mapLines = Object.entries(declarations).map(([name, value]) => ` ${name}: ${value};`);
3540
4847
  const defaultMode = tokens2.modes?.default ?? {};
3541
4848
  const darkMode = tokens2.modes?.dark ?? {};
4849
+ const highContrastMode = tokens2.modes?.highContrast ?? {};
3542
4850
  const surfaceAliases = tokens2.surface ?? {};
3543
4851
  const textAliases = tokens2.text ?? {};
3544
4852
  const componentAliases = tokens2.component ?? {};
@@ -3546,15 +4854,23 @@ var generateCssVariables = (tokens2, options = {}) => {
3546
4854
  const componentVarParts = (group, kebabGroup, path) => LEGACY_COMPONENT_PREFIX_GROUPS.has(group) ? ["component", kebabGroup, ...path] : [kebabGroup, ...path];
3547
4855
  const baseLines = [];
3548
4856
  const darkLines = [];
4857
+ const highContrastLines = [];
4858
+ const modeScopedNames = /* @__PURE__ */ new Set();
3549
4859
  const addBase = (name, value) => {
3550
- if (value !== void 0) baseLines.push(` ${name}: ${value};`);
4860
+ if (value === void 0) return;
4861
+ modeScopedNames.add(name);
4862
+ baseLines.push(` ${name}: ${value};`);
3551
4863
  };
3552
4864
  const addDark = (name, value) => {
3553
4865
  if (value !== void 0) darkLines.push(` ${name}: ${value};`);
3554
4866
  };
4867
+ const addHighContrast = (name, value) => {
4868
+ if (value !== void 0) highContrastLines.push(` ${name}: ${value};`);
4869
+ };
3555
4870
  const walkSemanticGroup = (namespace, varPartsFor, aliasSrc) => {
3556
4871
  const defaultNode = defaultMode[namespace];
3557
4872
  const darkNode = darkMode[namespace];
4873
+ const highContrastNode = highContrastMode[namespace];
3558
4874
  const paths = /* @__PURE__ */ new Set();
3559
4875
  const collectPaths = (node, path) => {
3560
4876
  if (node === void 0) return;
@@ -3569,6 +4885,7 @@ var generateCssVariables = (tokens2, options = {}) => {
3569
4885
  };
3570
4886
  collectPaths(defaultNode, []);
3571
4887
  collectPaths(darkNode, []);
4888
+ collectPaths(highContrastNode, []);
3572
4889
  collectPaths(aliasSrc, []);
3573
4890
  paths.forEach((joinedPath) => {
3574
4891
  const path = joinedPath.split(".");
@@ -3576,8 +4893,10 @@ var generateCssVariables = (tokens2, options = {}) => {
3576
4893
  const aliasCandidate = getPath(aliasSrc, path);
3577
4894
  const baseValue = pickSemantic(tokens2, getPath(defaultNode, path), aliasCandidate);
3578
4895
  const darkValue = pickSemantic(tokens2, getPath(darkNode, path), getPath(defaultNode, path), aliasCandidate);
4896
+ const highContrastValue = pickSemantic(tokens2, getPath(highContrastNode, path), getPath(defaultNode, path), aliasCandidate);
3579
4897
  addBase(varName, baseValue);
3580
4898
  addDark(varName, darkValue);
4899
+ addHighContrast(varName, highContrastValue);
3581
4900
  });
3582
4901
  };
3583
4902
  const kebabPathSegment = (segment) => formatKey(segment.replace(/([a-z0-9])([A-Z])/g, "$1-$2"));
@@ -3602,21 +4921,100 @@ var generateCssVariables = (tokens2, options = {}) => {
3602
4921
  },
3603
4922
  componentAliases
3604
4923
  );
4924
+ walkSemanticGroup(
4925
+ "forms",
4926
+ (path) => ["form", ...path.map(kebabPathSegment)],
4927
+ void 0
4928
+ );
4929
+ const highContrastLink = getPath(highContrastMode, ["link"]);
3605
4930
  Object.entries(linkTokens).forEach(([key, value]) => {
3606
4931
  const varName = toVariableName(prefix, "link", kebabPathSegment(key));
3607
4932
  const resolved = pickSemantic(tokens2, value);
3608
4933
  addBase(varName, resolved);
3609
4934
  addDark(varName, resolved);
4935
+ addHighContrast(varName, pickSemantic(tokens2, getPath(highContrastLink, [key]), value));
3610
4936
  });
4937
+ const highContrastButtons = getPath(highContrastMode, ["buttons"]);
4938
+ if (isPlainObject(highContrastButtons)) {
4939
+ Object.entries(highContrastButtons).forEach(([variant, states]) => {
4940
+ Object.entries(states).forEach(([state, value]) => {
4941
+ addHighContrast(toVariableName(prefix, "button", variant, state), pickSemantic(tokens2, value));
4942
+ });
4943
+ });
4944
+ }
4945
+ const mapLines = Object.entries(declarations).filter(([name]) => !modeScopedNames.has(name)).map(([name, value]) => ` ${name}: ${value};`);
3611
4946
  const rootBlock = `${selector} {
3612
4947
  ${[...baseLines, ...mapLines].join("\n")}
3613
4948
  }`;
3614
- const darkBlock = `${selector}[data-spectre-theme="dark"] {
3615
- ${darkLines.join("\n")}
4949
+ const toEntries = (lines) => new Map(
4950
+ lines.map((line) => {
4951
+ const separator = line.indexOf(":");
4952
+ return [line.slice(0, separator).trim(), line.slice(separator + 1).trim().replace(/;$/, "")];
4953
+ })
4954
+ );
4955
+ const baseEntries = toEntries(baseLines);
4956
+ const darkEntries = toEntries(darkLines);
4957
+ const highContrastEntries = toEntries(highContrastLines);
4958
+ const rootValues = new Map([...Object.entries(declarations), ...baseEntries]);
4959
+ const modeVarying = [.../* @__PURE__ */ new Set([...baseEntries.keys(), ...darkEntries.keys(), ...highContrastEntries.keys()])];
4960
+ const modeVaryingSet = new Set(modeVarying);
4961
+ const dependentLines = [...rootValues].filter(
4962
+ ([name, value]) => !modeVaryingSet.has(name) && Array.from(value.matchAll(/var\((--[a-z0-9-]+)/g)).some((match) => modeVaryingSet.has(match[1]))
4963
+ ).map(([name, value]) => `${name}: ${value};`);
4964
+ const modeLines = (entries) => [
4965
+ ...modeVarying.flatMap((name) => {
4966
+ const value = entries.get(name) ?? rootValues.get(name);
4967
+ return value === void 0 ? [] : [`${name}: ${value};`];
4968
+ }),
4969
+ ...dependentLines
4970
+ ];
4971
+ const themeSelectors = (theme) => [
4972
+ `${selector}[data-spectre-theme="${theme}"]`,
4973
+ `${selector} [data-spectre-theme="${theme}"]`
4974
+ ];
4975
+ const modeBlock = (selectors, lines, indent = "") => `${indent}${selectors.join(`,
4976
+ ${indent}`)} {
4977
+ ${lines.map((line) => `${indent} ${line}`).join("\n")}
4978
+ ${indent}}`;
4979
+ const darkBlock = modeBlock(themeSelectors("dark"), modeLines(darkEntries));
4980
+ const highContrastBlock = modeBlock(themeSelectors("high-contrast"), modeLines(highContrastEntries));
4981
+ const lightBlock = modeBlock([...themeSelectors("light"), ...themeSelectors("system")], modeLines(baseEntries));
4982
+ const systemDarkBlock = `@media (prefers-color-scheme: dark) {
4983
+ ${modeBlock(themeSelectors("system"), modeLines(darkEntries), " ")}
4984
+ }`;
4985
+ const control = tokens2.control;
4986
+ const compact = isPlainObject(control) && isPlainObject(control.compact) ? control.compact : {};
4987
+ const densityLines = Object.entries(compact).flatMap(
4988
+ ([size, fields]) => Object.keys(fields).map((field) => {
4989
+ const name = toVariableName(prefix, "control", size, kebabCase(field));
4990
+ return ` ${name}: var(${toVariableName(prefix, "control", "compact", size, kebabCase(field))});`;
4991
+ })
4992
+ );
4993
+ const densityBlocks = densityLines.length > 0 ? [`[data-spectre-density="compact"] {
4994
+ ${densityLines.join("\n")}
4995
+ }`] : [];
4996
+ const breakpoints = tokens2.breakpoints;
4997
+ const responsiveBlocks = Object.entries(layoutResponsive(tokens2.layout)).map(([breakpoint, scales]) => {
4998
+ const minWidth = breakpoints[breakpoint];
4999
+ if (minWidth === void 0) {
5000
+ throw new Error(`layout.responsive.${breakpoint} does not name a breakpoints entry`);
5001
+ }
5002
+ const lines = LAYOUT_SCALES.flatMap(
5003
+ ({ path, varParts }) => Object.keys(layoutScale(scales, path)).map((key) => {
5004
+ const name = toVariableName(prefix, "layout", ...varParts, key);
5005
+ const source = toVariableName(prefix, "layout", "responsive", breakpoint, ...varParts, key);
5006
+ return ` ${name}: var(${source});`;
5007
+ })
5008
+ );
5009
+ return `@media (min-width: ${resolveValue(tokens2, minWidth)}) {
5010
+ ${selector} {
5011
+ ${lines.join("\n")}
5012
+ }
3616
5013
  }`;
3617
- return `${rootBlock}
3618
- ${darkBlock}
3619
- `;
5014
+ });
5015
+ return [rootBlock, darkBlock, highContrastBlock, lightBlock, systemDarkBlock, ...densityBlocks, ...responsiveBlocks].join(
5016
+ "\n"
5017
+ ) + "\n";
3620
5018
  };
3621
5019
 
3622
5020
  // src/index.ts