@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.js CHANGED
@@ -164,6 +164,26 @@ var coreTokens = {
164
164
  "danger": "{colors.error.600}",
165
165
  "cta": "{colors.brand.600}",
166
166
  "thickness": "0.25rem"
167
+ },
168
+ "light": {
169
+ "bg": "{colors.neutral.100}",
170
+ "text": "{colors.neutral.700}",
171
+ "heading": "{colors.neutral.900}",
172
+ "muted": "{colors.neutral.600}",
173
+ "link": "{colors.neutral.700}",
174
+ "linkHover": "{colors.brand.700}",
175
+ "border": "{colors.neutral.200}",
176
+ "divider": "{colors.neutral.200}",
177
+ "chipBg": "{colors.neutral.200}",
178
+ "accent": {
179
+ "neutral": "{colors.neutral.600}",
180
+ "brand": "{colors.brand.600}",
181
+ "info": "{colors.info.600}",
182
+ "success": "{colors.success.600}",
183
+ "warning": "{colors.warning.600}",
184
+ "danger": "{colors.error.600}",
185
+ "cta": "{colors.brand.600}"
186
+ }
167
187
  }
168
188
  },
169
189
  "modal": {
@@ -602,7 +622,12 @@ var coreTokens = {
602
622
  "bg": "{colors.warning.100}",
603
623
  "text": "{colors.warning.900}"
604
624
  },
605
- "hr": "{colors.neutral.200}"
625
+ "hr": "{colors.neutral.200}",
626
+ "kbd": {
627
+ "bg": "{colors.neutral.100}",
628
+ "border": "{colors.neutral.300}",
629
+ "text": "{colors.neutral.900}"
630
+ }
606
631
  },
607
632
  "externalAuthButton": {
608
633
  "bg": "{colors.white}",
@@ -666,6 +691,56 @@ var coreTokens = {
666
691
  "text": "{colors.neutral.900}",
667
692
  "disabledText": "{colors.neutral.400}",
668
693
  "requiredIndicatorText": "{colors.error.600}"
694
+ },
695
+ "skeleton": {
696
+ "base": "{colors.neutral.200}",
697
+ "shimmer": "{colors.neutral.100}"
698
+ },
699
+ "selection": {
700
+ "bg": "{colors.brand.100}",
701
+ "text": "{colors.neutral.900}"
702
+ },
703
+ "caret": {
704
+ "color": "{colors.brand.600}"
705
+ },
706
+ "scrollbar": {
707
+ "track": "{colors.neutral.100}",
708
+ "thumb": "{colors.neutral.400}",
709
+ "thumbHover": "{colors.neutral.500}"
710
+ },
711
+ "chart": {
712
+ "bg": "{colors.white}",
713
+ "grid": "{colors.neutral.200}",
714
+ "axis": "{colors.neutral.500}",
715
+ "label": "{colors.neutral.600}",
716
+ "series": {
717
+ "1": "{colors.brand.600}",
718
+ "2": "{colors.palette.amber.600}",
719
+ "3": "{colors.palette.violet.800}",
720
+ "4": "{colors.palette.cyan.600}",
721
+ "5": "{colors.palette.pink.600}",
722
+ "6": "{colors.palette.emerald.800}",
723
+ "7": "{colors.palette.lime.700}",
724
+ "8": "{colors.palette.orange.800}"
725
+ },
726
+ "sequential": {
727
+ "1": "{colors.brand.100}",
728
+ "2": "{colors.brand.200}",
729
+ "3": "{colors.brand.300}",
730
+ "4": "{colors.brand.400}",
731
+ "5": "{colors.brand.600}",
732
+ "6": "{colors.brand.800}",
733
+ "7": "{colors.brand.900}"
734
+ },
735
+ "diverging": {
736
+ "1": "{colors.palette.red.700}",
737
+ "2": "{colors.palette.red.400}",
738
+ "3": "{colors.palette.red.200}",
739
+ "4": "{colors.neutral.200}",
740
+ "5": "{colors.palette.blue.200}",
741
+ "6": "{colors.palette.blue.400}",
742
+ "7": "{colors.palette.blue.700}"
743
+ }
669
744
  }
670
745
  },
671
746
  "buttons": {
@@ -830,6 +905,40 @@ var coreTokens = {
830
905
  "text": "{colors.neutral.400}"
831
906
  }
832
907
  },
908
+ "control": {
909
+ "sm": {
910
+ "height": "2rem",
911
+ "paddingInline": "0.75rem",
912
+ "iconSize": "{icons.sm}"
913
+ },
914
+ "md": {
915
+ "height": "2.5rem",
916
+ "paddingInline": "1rem",
917
+ "iconSize": "{icons.md}"
918
+ },
919
+ "lg": {
920
+ "height": "3rem",
921
+ "paddingInline": "1.25rem",
922
+ "iconSize": "{icons.lg}"
923
+ },
924
+ "compact": {
925
+ "sm": {
926
+ "height": "1.5rem",
927
+ "paddingInline": "0.5rem",
928
+ "iconSize": "{icons.xs}"
929
+ },
930
+ "md": {
931
+ "height": "2rem",
932
+ "paddingInline": "0.75rem",
933
+ "iconSize": "{icons.sm}"
934
+ },
935
+ "lg": {
936
+ "height": "2.5rem",
937
+ "paddingInline": "1rem",
938
+ "iconSize": "{icons.md}"
939
+ }
940
+ }
941
+ },
833
942
  "modes": {
834
943
  "default": {
835
944
  "surface": {
@@ -860,6 +969,13 @@ var coreTokens = {
860
969
  "brand": "{colors.brand.600}"
861
970
  }
862
971
  },
972
+ "forms": {
973
+ "default": {
974
+ "bg": "{colors.white}",
975
+ "text": "{colors.neutral.900}",
976
+ "placeholder": "{colors.neutral.500}"
977
+ }
978
+ },
863
979
  "component": {
864
980
  "card": {
865
981
  "text": "{colors.neutral.900}",
@@ -1005,6 +1121,26 @@ var coreTokens = {
1005
1121
  "warning": "{colors.warning.600}",
1006
1122
  "danger": "{colors.error.600}",
1007
1123
  "cta": "{colors.brand.600}"
1124
+ },
1125
+ "light": {
1126
+ "bg": "{colors.neutral.100}",
1127
+ "text": "{colors.neutral.700}",
1128
+ "heading": "{colors.neutral.900}",
1129
+ "muted": "{colors.neutral.600}",
1130
+ "link": "{colors.neutral.700}",
1131
+ "linkHover": "{colors.brand.700}",
1132
+ "border": "{colors.neutral.200}",
1133
+ "divider": "{colors.neutral.200}",
1134
+ "chipBg": "{colors.neutral.200}",
1135
+ "accent": {
1136
+ "neutral": "{colors.neutral.600}",
1137
+ "brand": "{colors.brand.600}",
1138
+ "info": "{colors.info.600}",
1139
+ "success": "{colors.success.600}",
1140
+ "warning": "{colors.warning.600}",
1141
+ "danger": "{colors.error.600}",
1142
+ "cta": "{colors.brand.600}"
1143
+ }
1008
1144
  }
1009
1145
  },
1010
1146
  "modal": {
@@ -1435,7 +1571,12 @@ var coreTokens = {
1435
1571
  "bg": "{colors.warning.100}",
1436
1572
  "text": "{colors.warning.900}"
1437
1573
  },
1438
- "hr": "{colors.neutral.200}"
1574
+ "hr": "{colors.neutral.200}",
1575
+ "kbd": {
1576
+ "bg": "{colors.neutral.100}",
1577
+ "border": "{colors.neutral.300}",
1578
+ "text": "{colors.neutral.900}"
1579
+ }
1439
1580
  },
1440
1581
  "externalAuthButton": {
1441
1582
  "bg": "{colors.white}",
@@ -1491,6 +1632,56 @@ var coreTokens = {
1491
1632
  "text": "{colors.neutral.900}",
1492
1633
  "disabledText": "{colors.neutral.400}",
1493
1634
  "requiredIndicatorText": "{colors.error.600}"
1635
+ },
1636
+ "skeleton": {
1637
+ "base": "{colors.neutral.200}",
1638
+ "shimmer": "{colors.neutral.100}"
1639
+ },
1640
+ "selection": {
1641
+ "bg": "{colors.brand.100}",
1642
+ "text": "{colors.neutral.900}"
1643
+ },
1644
+ "caret": {
1645
+ "color": "{colors.brand.600}"
1646
+ },
1647
+ "scrollbar": {
1648
+ "track": "{colors.neutral.100}",
1649
+ "thumb": "{colors.neutral.400}",
1650
+ "thumbHover": "{colors.neutral.500}"
1651
+ },
1652
+ "chart": {
1653
+ "bg": "{colors.white}",
1654
+ "grid": "{colors.neutral.200}",
1655
+ "axis": "{colors.neutral.500}",
1656
+ "label": "{colors.neutral.600}",
1657
+ "series": {
1658
+ "1": "{colors.brand.600}",
1659
+ "2": "{colors.palette.amber.600}",
1660
+ "3": "{colors.palette.violet.800}",
1661
+ "4": "{colors.palette.cyan.600}",
1662
+ "5": "{colors.palette.pink.600}",
1663
+ "6": "{colors.palette.emerald.800}",
1664
+ "7": "{colors.palette.lime.700}",
1665
+ "8": "{colors.palette.orange.800}"
1666
+ },
1667
+ "sequential": {
1668
+ "1": "{colors.brand.100}",
1669
+ "2": "{colors.brand.200}",
1670
+ "3": "{colors.brand.300}",
1671
+ "4": "{colors.brand.400}",
1672
+ "5": "{colors.brand.600}",
1673
+ "6": "{colors.brand.800}",
1674
+ "7": "{colors.brand.900}"
1675
+ },
1676
+ "diverging": {
1677
+ "1": "{colors.palette.red.700}",
1678
+ "2": "{colors.palette.red.400}",
1679
+ "3": "{colors.palette.red.200}",
1680
+ "4": "{colors.neutral.200}",
1681
+ "5": "{colors.palette.blue.200}",
1682
+ "6": "{colors.palette.blue.400}",
1683
+ "7": "{colors.palette.blue.700}"
1684
+ }
1494
1685
  }
1495
1686
  }
1496
1687
  },
@@ -1523,6 +1714,13 @@ var coreTokens = {
1523
1714
  "brand": "{colors.brand.400}"
1524
1715
  }
1525
1716
  },
1717
+ "forms": {
1718
+ "default": {
1719
+ "bg": "{colors.neutral.700}",
1720
+ "text": "{colors.neutral.100}",
1721
+ "placeholder": "{colors.neutral.300}"
1722
+ }
1723
+ },
1526
1724
  "component": {
1527
1725
  "card": {
1528
1726
  "text": "{colors.neutral.100}",
@@ -1671,6 +1869,26 @@ var coreTokens = {
1671
1869
  "warning": "{colors.warning.400}",
1672
1870
  "danger": "{colors.error.400}",
1673
1871
  "cta": "{colors.brand.400}"
1872
+ },
1873
+ "light": {
1874
+ "bg": "{colors.neutral.200}",
1875
+ "text": "{colors.neutral.800}",
1876
+ "heading": "{colors.neutral.900}",
1877
+ "muted": "{colors.neutral.600}",
1878
+ "link": "{colors.neutral.700}",
1879
+ "linkHover": "{colors.brand.700}",
1880
+ "border": "{colors.neutral.300}",
1881
+ "divider": "{colors.neutral.300}",
1882
+ "chipBg": "{colors.neutral.300}",
1883
+ "accent": {
1884
+ "neutral": "{colors.neutral.600}",
1885
+ "brand": "{colors.brand.600}",
1886
+ "info": "{colors.info.600}",
1887
+ "success": "{colors.success.600}",
1888
+ "warning": "{colors.warning.600}",
1889
+ "danger": "{colors.error.600}",
1890
+ "cta": "{colors.brand.600}"
1891
+ }
1674
1892
  }
1675
1893
  },
1676
1894
  "modal": {
@@ -2101,7 +2319,12 @@ var coreTokens = {
2101
2319
  "bg": "{colors.warning.900}",
2102
2320
  "text": "{colors.warning.200}"
2103
2321
  },
2104
- "hr": "{colors.neutral.700}"
2322
+ "hr": "{colors.neutral.700}",
2323
+ "kbd": {
2324
+ "bg": "{colors.neutral.800}",
2325
+ "border": "{colors.neutral.600}",
2326
+ "text": "{colors.neutral.50}"
2327
+ }
2105
2328
  },
2106
2329
  "externalAuthButton": {
2107
2330
  "bg": "{colors.neutral.800}",
@@ -2157,161 +2380,1102 @@ var coreTokens = {
2157
2380
  "text": "{colors.neutral.50}",
2158
2381
  "disabledText": "{colors.neutral.600}",
2159
2382
  "requiredIndicatorText": "{colors.error.400}"
2383
+ },
2384
+ "skeleton": {
2385
+ "base": "{colors.neutral.700}",
2386
+ "shimmer": "{colors.neutral.600}"
2387
+ },
2388
+ "selection": {
2389
+ "bg": "{colors.brand.800}",
2390
+ "text": "{colors.white}"
2391
+ },
2392
+ "caret": {
2393
+ "color": "{colors.brand.400}"
2394
+ },
2395
+ "scrollbar": {
2396
+ "track": "{colors.neutral.900}",
2397
+ "thumb": "{colors.neutral.600}",
2398
+ "thumbHover": "{colors.neutral.500}"
2399
+ },
2400
+ "chart": {
2401
+ "bg": "{colors.neutral.800}",
2402
+ "grid": "{colors.neutral.700}",
2403
+ "axis": "{colors.neutral.400}",
2404
+ "label": "{colors.neutral.300}",
2405
+ "series": {
2406
+ "1": "{colors.brand.400}",
2407
+ "2": "{colors.palette.amber.300}",
2408
+ "3": "{colors.palette.violet.400}",
2409
+ "4": "{colors.palette.cyan.300}",
2410
+ "5": "{colors.palette.pink.300}",
2411
+ "6": "{colors.palette.teal.400}",
2412
+ "7": "{colors.palette.lime.300}",
2413
+ "8": "{colors.palette.orange.400}"
2414
+ },
2415
+ "sequential": {
2416
+ "1": "{colors.brand.900}",
2417
+ "2": "{colors.brand.800}",
2418
+ "3": "{colors.brand.700}",
2419
+ "4": "{colors.brand.500}",
2420
+ "5": "{colors.brand.400}",
2421
+ "6": "{colors.brand.300}",
2422
+ "7": "{colors.brand.100}"
2423
+ },
2424
+ "diverging": {
2425
+ "1": "{colors.palette.red.300}",
2426
+ "2": "{colors.palette.red.500}",
2427
+ "3": "{colors.palette.red.800}",
2428
+ "4": "{colors.neutral.600}",
2429
+ "5": "{colors.palette.blue.800}",
2430
+ "6": "{colors.palette.blue.500}",
2431
+ "7": "{colors.palette.blue.300}"
2432
+ }
2160
2433
  }
2161
2434
  }
2162
- }
2163
- },
2164
- "colors": {
2165
- "brand": {
2166
- "50": "#eef4ff",
2167
- "100": "#d9e7ff",
2168
- "200": "#b9d2ff",
2169
- "300": "#8ab6ff",
2170
- "400": "#5a92ff",
2171
- "500": "#336df4",
2172
- "600": "#1f57db",
2173
- "700": "#1946b4",
2174
- "800": "#173b8f",
2175
- "900": "#16336f"
2176
- },
2177
- "neutral": {
2178
- "50": "#f7f8fb",
2179
- "100": "#eef1f6",
2180
- "200": "#d9dfeb",
2181
- "300": "#b7c1d4",
2182
- "400": "#8a96ad",
2183
- "500": "#657287",
2184
- "600": "#4b576a",
2185
- "700": "#374253",
2186
- "800": "#222b38",
2187
- "900": "#141b24"
2188
- },
2189
- "accent": {
2190
- "50": "#f6f2ff",
2191
- "100": "#eee5ff",
2192
- "200": "#ddccff",
2193
- "300": "#c3a7ff",
2194
- "400": "#a279ff",
2195
- "500": "#854ff7",
2196
- "600": "#7135dd",
2197
- "700": "#5d28b8",
2198
- "800": "#4d2393",
2199
- "900": "#401f75"
2200
- },
2201
- "success": {
2202
- "50": "#f0fdf4",
2203
- "100": "#dcfce7",
2204
- "200": "#bbf7d0",
2205
- "300": "#86efac",
2206
- "400": "#4ade80",
2207
- "500": "#22c55e",
2208
- "600": "#16a34a",
2209
- "700": "#15803d",
2210
- "800": "#166534",
2211
- "900": "#14532d"
2212
- },
2213
- "warning": {
2214
- "50": "#fffbea",
2215
- "100": "#fff1c2",
2216
- "200": "#ffe08a",
2217
- "300": "#ffd24d",
2218
- "400": "#ffc21a",
2219
- "500": "#f5ad00",
2220
- "600": "#d48806",
2221
- "700": "#ad6800",
2222
- "800": "#8f5200",
2223
- "900": "#734000"
2224
- },
2225
- "error": {
2226
- "50": "#fef2f2",
2227
- "100": "#fee2e2",
2228
- "200": "#fecaca",
2229
- "300": "#fca5a5",
2230
- "400": "#f87171",
2231
- "500": "#ef4444",
2232
- "600": "#dc2626",
2233
- "700": "#b91c1c",
2234
- "800": "#991b1b",
2235
- "900": "#7f1d1d"
2236
- },
2237
- "info": {
2238
- "50": "#f0f9ff",
2239
- "100": "#e0f2fe",
2240
- "200": "#bae6fd",
2241
- "300": "#7dd3fc",
2242
- "400": "#38bdf8",
2243
- "500": "#0ea5e9",
2244
- "600": "#0369a1",
2245
- "700": "#075985",
2246
- "800": "#0c4a6e",
2247
- "900": "#082f49"
2248
- },
2249
- "indigo": {
2250
- "500": "#5b6ee1",
2251
- "600": "#4d61db"
2252
- },
2253
- "violet": {
2254
- "600": "#6f3fd7"
2255
- },
2256
- "focus": {
2257
- "primary": "{colors.brand.500}",
2258
- "error": "{colors.error.500}",
2259
- "info": "{colors.info.600}"
2260
2435
  },
2261
- "white": "#ffffff",
2262
- "black": "#000000",
2263
- "palette": {
2264
- "red": {
2265
- "50": "#fef2f2",
2266
- "100": "#ffe2e2",
2267
- "200": "#ffc9c9",
2268
- "300": "#ffa2a2",
2269
- "400": "#ff6467",
2270
- "500": "#fb2c36",
2271
- "600": "#e7000b",
2272
- "700": "#c10007",
2273
- "800": "#9f0712",
2274
- "900": "#82181a",
2275
- "950": "#460809"
2276
- },
2277
- "orange": {
2278
- "50": "#fff7ed",
2279
- "100": "#ffedd4",
2280
- "200": "#ffd6a7",
2281
- "300": "#ffb86a",
2282
- "400": "#ff8904",
2283
- "500": "#ff6900",
2284
- "600": "#f54900",
2285
- "700": "#ca3500",
2286
- "800": "#9f2d00",
2287
- "900": "#7e2a0c",
2288
- "950": "#441306"
2436
+ "highContrast": {
2437
+ "surface": {
2438
+ "page": "{colors.white}",
2439
+ "card": "{colors.white}",
2440
+ "input": "{colors.white}",
2441
+ "overlay": "{colors.black} / 0.6",
2442
+ "subtle": "{colors.neutral.50}",
2443
+ "hero": "linear-gradient(135deg, {colors.indigo.500} 0%, {colors.violet.600} 100%)",
2444
+ "hover": "{colors.neutral.100}",
2445
+ "selected": "{colors.info.50}",
2446
+ "active": "{colors.neutral.200}",
2447
+ "divider": "{colors.neutral.700}"
2289
2448
  },
2290
- "amber": {
2291
- "50": "#fffbeb",
2292
- "100": "#fef3c6",
2293
- "200": "#fee685",
2294
- "300": "#ffd230",
2295
- "400": "#ffb900",
2296
- "500": "#fe9a00",
2297
- "600": "#e17100",
2298
- "700": "#bb4d00",
2299
- "800": "#973c00",
2300
- "900": "#7b3306",
2301
- "950": "#461901"
2449
+ "text": {
2450
+ "onPage": {
2451
+ "default": "{colors.neutral.900}",
2452
+ "muted": "{colors.neutral.600}",
2453
+ "subtle": "{colors.neutral.600}",
2454
+ "meta": "{colors.neutral.600}",
2455
+ "brand": "{colors.brand.700}"
2456
+ },
2457
+ "onSurface": {
2458
+ "default": "{colors.neutral.900}",
2459
+ "muted": "{colors.neutral.600}",
2460
+ "subtle": "{colors.neutral.600}",
2461
+ "meta": "{colors.neutral.600}",
2462
+ "brand": "{colors.brand.700}"
2463
+ }
2302
2464
  },
2303
- "yellow": {
2304
- "50": "#fefce8",
2305
- "100": "#fef9c2",
2306
- "200": "#fff085",
2307
- "300": "#ffdf20",
2308
- "400": "#fdc700",
2309
- "500": "#f0b100",
2310
- "600": "#d08700",
2311
- "700": "#a65f00",
2312
- "800": "#894b00",
2313
- "900": "#733e0a",
2314
- "950": "#432004"
2465
+ "forms": {
2466
+ "default": {
2467
+ "bg": "{colors.white}",
2468
+ "text": "{colors.neutral.900}",
2469
+ "placeholder": "{colors.neutral.600}"
2470
+ },
2471
+ "valid": {
2472
+ "border": "{colors.success.700}",
2473
+ "bg": "{colors.success.50}",
2474
+ "text": "{colors.success.900}"
2475
+ },
2476
+ "invalid": {
2477
+ "border": "{colors.error.700}",
2478
+ "bg": "{colors.error.50}",
2479
+ "text": "{colors.error.800}"
2480
+ }
2481
+ },
2482
+ "component": {
2483
+ "card": {
2484
+ "text": "{colors.neutral.900}",
2485
+ "textMuted": "{colors.neutral.600}",
2486
+ "accent": {
2487
+ "neutral": "{colors.neutral.600}",
2488
+ "brand": "{colors.brand.600}",
2489
+ "info": "{colors.info.600}",
2490
+ "success": "{colors.success.600}",
2491
+ "warning": "{colors.warning.600}",
2492
+ "danger": "{colors.error.600}",
2493
+ "cta": "{colors.brand.600}"
2494
+ }
2495
+ },
2496
+ "choiceCard": {
2497
+ "bg": "{colors.white}",
2498
+ "text": "{colors.neutral.900}",
2499
+ "border": "{colors.neutral.700}",
2500
+ "hoverBorder": "{colors.neutral.700}",
2501
+ "selectedBg": "{colors.info.50}",
2502
+ "selectedBorder": "{colors.brand.600}",
2503
+ "disabledBg": "{colors.neutral.50}",
2504
+ "disabledText": "{colors.neutral.400}",
2505
+ "focusRing": "{buttons.primary.focusRing}"
2506
+ },
2507
+ "input": {
2508
+ "text": "{colors.neutral.900}",
2509
+ "placeholder": "{colors.neutral.600}"
2510
+ },
2511
+ "button": {
2512
+ "textDefault": "{colors.neutral.900}",
2513
+ "textOnPrimary": "{colors.white}"
2514
+ },
2515
+ "badge": {
2516
+ "neutralBg": "{colors.neutral.100}",
2517
+ "neutralBgHover": "{colors.neutral.200}",
2518
+ "neutralText": "{colors.neutral.700}",
2519
+ "brandBg": "{colors.brand.100}",
2520
+ "brandBgHover": "{colors.brand.200}",
2521
+ "brandText": "{colors.brand.900}",
2522
+ "infoBg": "{colors.info.100}",
2523
+ "infoBgHover": "{colors.info.200}",
2524
+ "infoText": "{colors.info.800}",
2525
+ "successBg": "{colors.success.100}",
2526
+ "successText": "{colors.success.900}",
2527
+ "warningBg": "{colors.warning.100}",
2528
+ "warningText": "{colors.warning.900}",
2529
+ "dangerBg": "{colors.error.100}",
2530
+ "dangerText": "{colors.error.900}",
2531
+ "accent": {
2532
+ "neutral": "{colors.neutral.600}",
2533
+ "brand": "{colors.brand.600}",
2534
+ "info": "{colors.info.600}",
2535
+ "success": "{colors.success.600}",
2536
+ "warning": "{colors.warning.600}",
2537
+ "danger": "{colors.error.600}",
2538
+ "cta": "{colors.brand.600}"
2539
+ }
2540
+ },
2541
+ "iconBox": {
2542
+ "bg": "{colors.white}",
2543
+ "border": "{colors.neutral.700}",
2544
+ "iconDefault": "{colors.info.700}",
2545
+ "iconSuccess": "{colors.success.600}",
2546
+ "iconWarning": "{colors.warning.600}",
2547
+ "iconDanger": "{colors.error.800}"
2548
+ },
2549
+ "testimonial": {
2550
+ "bg": "{colors.white}",
2551
+ "bgHover": "{colors.neutral.50}",
2552
+ "border": "{colors.neutral.700}",
2553
+ "text": "{colors.neutral.700}",
2554
+ "authorName": "{colors.neutral.900}",
2555
+ "authorTitle": "{colors.neutral.700}",
2556
+ "quoteMark": "{colors.neutral.700}",
2557
+ "accent": {
2558
+ "neutral": "{colors.neutral.600}",
2559
+ "brand": "{colors.brand.600}",
2560
+ "info": "{colors.info.600}",
2561
+ "success": "{colors.success.600}",
2562
+ "warning": "{colors.warning.600}",
2563
+ "danger": "{colors.error.600}",
2564
+ "cta": "{colors.brand.600}"
2565
+ }
2566
+ },
2567
+ "pricingCard": {
2568
+ "bg": "{colors.white}",
2569
+ "bgHover": "{colors.neutral.50}",
2570
+ "border": "{colors.neutral.700}",
2571
+ "featuredBg": "{colors.info.700}",
2572
+ "featuredText": "{colors.white}",
2573
+ "featuredBadgeBg": "{colors.warning.500}",
2574
+ "featuredBadgeText": "{colors.neutral.900}",
2575
+ "price": "{colors.neutral.900}",
2576
+ "priceDescription": "{colors.neutral.700}",
2577
+ "accent": {
2578
+ "neutral": "{colors.neutral.600}",
2579
+ "brand": "{colors.brand.600}",
2580
+ "info": "{colors.info.600}",
2581
+ "success": "{colors.success.600}",
2582
+ "warning": "{colors.warning.600}",
2583
+ "danger": "{colors.error.600}",
2584
+ "cta": "{colors.brand.600}"
2585
+ }
2586
+ },
2587
+ "rating": {
2588
+ "starFilled": "{colors.warning.500}",
2589
+ "starEmpty": "{colors.neutral.200}",
2590
+ "text": "{colors.neutral.600}"
2591
+ },
2592
+ "nav": {
2593
+ "bg": "{colors.white}",
2594
+ "text": "{colors.neutral.900}",
2595
+ "link": "{colors.neutral.700}",
2596
+ "linkHover": "{colors.brand.600}",
2597
+ "linkActive": "{colors.brand.700}",
2598
+ "border": "{colors.neutral.700}",
2599
+ "accent": {
2600
+ "neutral": "{colors.neutral.600}",
2601
+ "brand": "{colors.brand.600}",
2602
+ "info": "{colors.info.600}",
2603
+ "success": "{colors.success.600}",
2604
+ "warning": "{colors.warning.600}",
2605
+ "danger": "{colors.error.600}",
2606
+ "cta": "{colors.brand.600}"
2607
+ }
2608
+ },
2609
+ "footer": {
2610
+ "bg": "{colors.neutral.900}",
2611
+ "text": "{colors.neutral.50}",
2612
+ "heading": "{colors.white}",
2613
+ "muted": "{colors.neutral.300}",
2614
+ "link": "{colors.neutral.300}",
2615
+ "linkHover": "{colors.brand.300}",
2616
+ "border": "{colors.neutral.700}",
2617
+ "divider": "{colors.neutral.800}",
2618
+ "chipBg": "{colors.neutral.800}",
2619
+ "accent": {
2620
+ "neutral": "{colors.neutral.600}",
2621
+ "brand": "{colors.brand.600}",
2622
+ "info": "{colors.info.600}",
2623
+ "success": "{colors.success.600}",
2624
+ "warning": "{colors.warning.600}",
2625
+ "danger": "{colors.error.600}",
2626
+ "cta": "{colors.brand.600}"
2627
+ },
2628
+ "light": {
2629
+ "bg": "{colors.neutral.100}",
2630
+ "text": "{colors.neutral.700}",
2631
+ "heading": "{colors.neutral.900}",
2632
+ "muted": "{colors.neutral.700}",
2633
+ "link": "{colors.neutral.700}",
2634
+ "linkHover": "{colors.brand.700}",
2635
+ "border": "{colors.neutral.700}",
2636
+ "divider": "{colors.neutral.700}",
2637
+ "chipBg": "{colors.neutral.200}",
2638
+ "accent": {
2639
+ "neutral": "{colors.neutral.600}",
2640
+ "brand": "{colors.brand.600}",
2641
+ "info": "{colors.info.600}",
2642
+ "success": "{colors.success.600}",
2643
+ "warning": "{colors.warning.600}",
2644
+ "danger": "{colors.error.600}",
2645
+ "cta": "{colors.brand.600}"
2646
+ }
2647
+ }
2648
+ },
2649
+ "modal": {
2650
+ "bg": "{colors.white}",
2651
+ "shadow": "0 20px 48px -12px {colors.black} / 0.20",
2652
+ "border": "{colors.neutral.700}",
2653
+ "overlay": "{colors.black} / 0.6",
2654
+ "accent": {
2655
+ "neutral": "{colors.neutral.600}",
2656
+ "brand": "{colors.brand.600}",
2657
+ "info": "{colors.info.600}",
2658
+ "success": "{colors.success.600}",
2659
+ "warning": "{colors.warning.600}",
2660
+ "danger": "{colors.error.600}",
2661
+ "cta": "{colors.brand.600}"
2662
+ }
2663
+ },
2664
+ "toast": {
2665
+ "neutral": {
2666
+ "bg": "{colors.neutral.50}",
2667
+ "text": "{colors.neutral.800}",
2668
+ "border": "{colors.neutral.700}",
2669
+ "icon": "{colors.neutral.600}"
2670
+ },
2671
+ "success": {
2672
+ "bg": "{colors.success.50}",
2673
+ "text": "{colors.success.900}",
2674
+ "border": "{colors.success.600}",
2675
+ "icon": "{colors.success.600}"
2676
+ },
2677
+ "warning": {
2678
+ "bg": "{colors.warning.50}",
2679
+ "text": "{colors.warning.900}",
2680
+ "border": "{colors.warning.600}",
2681
+ "icon": "{colors.warning.600}"
2682
+ },
2683
+ "danger": {
2684
+ "bg": "{colors.error.50}",
2685
+ "text": "{colors.error.800}",
2686
+ "border": "{colors.error.600}",
2687
+ "icon": "{colors.error.600}"
2688
+ },
2689
+ "info": {
2690
+ "bg": "{colors.info.50}",
2691
+ "text": "{colors.info.800}",
2692
+ "border": "{colors.info.600}",
2693
+ "icon": "{colors.info.600}"
2694
+ },
2695
+ "accent": {
2696
+ "neutral": "{colors.neutral.600}",
2697
+ "brand": "{colors.brand.600}",
2698
+ "info": "{colors.info.600}",
2699
+ "success": "{colors.success.600}",
2700
+ "warning": "{colors.warning.600}",
2701
+ "danger": "{colors.error.600}",
2702
+ "cta": "{colors.brand.600}"
2703
+ }
2704
+ },
2705
+ "tooltip": {
2706
+ "bg": "{colors.neutral.900}",
2707
+ "text": "{colors.white}",
2708
+ "border": "{colors.neutral.700}",
2709
+ "accent": {
2710
+ "neutral": "{colors.neutral.600}",
2711
+ "brand": "{colors.brand.600}",
2712
+ "info": "{colors.info.600}",
2713
+ "success": "{colors.success.600}",
2714
+ "warning": "{colors.warning.600}",
2715
+ "danger": "{colors.error.600}",
2716
+ "cta": "{colors.brand.600}"
2717
+ }
2718
+ },
2719
+ "dropdown": {
2720
+ "bg": "{colors.white}",
2721
+ "border": "{colors.neutral.700}",
2722
+ "item": {
2723
+ "default": "transparent",
2724
+ "hover": "{colors.neutral.100}",
2725
+ "active": "{colors.info.50}",
2726
+ "text": "{colors.neutral.900}",
2727
+ "disabledText": "{colors.neutral.400}",
2728
+ "selectedBg": "{colors.info.100}",
2729
+ "selectedText": "{colors.info.800}"
2730
+ },
2731
+ "accent": {
2732
+ "neutral": "{colors.neutral.600}",
2733
+ "brand": "{colors.brand.600}",
2734
+ "info": "{colors.info.600}",
2735
+ "success": "{colors.success.600}",
2736
+ "warning": "{colors.warning.600}",
2737
+ "danger": "{colors.error.600}",
2738
+ "cta": "{colors.brand.600}"
2739
+ },
2740
+ "header": "{colors.neutral.500}",
2741
+ "divider": "{colors.neutral.700}"
2742
+ },
2743
+ "tabs": {
2744
+ "list": {
2745
+ "bg": "{colors.white}",
2746
+ "border": "{colors.neutral.700}"
2747
+ },
2748
+ "item": {
2749
+ "text": "{colors.neutral.600}",
2750
+ "hover": {
2751
+ "bg": "{colors.neutral.100}"
2752
+ },
2753
+ "active": {
2754
+ "text": "{colors.neutral.900}",
2755
+ "indicator": "{colors.brand.600}"
2756
+ },
2757
+ "focus": {
2758
+ "ringColor": "{buttons.primary.focusRing}"
2759
+ },
2760
+ "disabled": {
2761
+ "text": "{colors.neutral.400}"
2762
+ }
2763
+ },
2764
+ "pill": {
2765
+ "active": {
2766
+ "bg": "{colors.brand.700}",
2767
+ "text": "{colors.white}"
2768
+ }
2769
+ },
2770
+ "panel": {
2771
+ "bg": "{colors.white}"
2772
+ }
2773
+ },
2774
+ "accordion": {
2775
+ "bg": "{colors.white}",
2776
+ "text": "{colors.neutral.900}",
2777
+ "border": "{colors.neutral.700}",
2778
+ "header": {
2779
+ "hoverBg": "{colors.neutral.50}"
2780
+ },
2781
+ "icon": {
2782
+ "collapsed": "{colors.neutral.500}",
2783
+ "expanded": "{colors.neutral.900}"
2784
+ }
2785
+ },
2786
+ "breadcrumb": {
2787
+ "item": {
2788
+ "text": "{colors.neutral.600}",
2789
+ "hover": {
2790
+ "text": "{colors.brand.600}"
2791
+ },
2792
+ "active": {
2793
+ "text": "{colors.neutral.900}"
2794
+ }
2795
+ },
2796
+ "separator": "{colors.neutral.400}"
2797
+ },
2798
+ "listGroup": {
2799
+ "bg": "{colors.white}",
2800
+ "border": "{colors.neutral.700}",
2801
+ "text": "{colors.neutral.700}",
2802
+ "heading": "{colors.neutral.900}",
2803
+ "muted": "{colors.neutral.500}",
2804
+ "item": {
2805
+ "hover": {
2806
+ "bg": "{colors.neutral.50}"
2807
+ },
2808
+ "active": {
2809
+ "bg": "{colors.brand.700}",
2810
+ "text": "{colors.white}"
2811
+ },
2812
+ "selected": {
2813
+ "bg": "{colors.info.50}"
2814
+ },
2815
+ "disabled": {
2816
+ "text": "{colors.neutral.400}"
2817
+ }
2818
+ },
2819
+ "accent": {
2820
+ "neutral": "{colors.neutral.600}",
2821
+ "brand": "{colors.brand.600}",
2822
+ "info": "{colors.info.600}",
2823
+ "success": "{colors.success.600}",
2824
+ "warning": "{colors.warning.600}",
2825
+ "danger": "{colors.error.600}",
2826
+ "cta": "{colors.brand.600}",
2827
+ "thickness": "0.25rem"
2828
+ }
2829
+ },
2830
+ "offcanvas": {
2831
+ "bg": "{colors.white}",
2832
+ "text": "{colors.neutral.900}",
2833
+ "border": "{colors.neutral.700}",
2834
+ "overlay": "{colors.black} / 0.6"
2835
+ },
2836
+ "carousel": {
2837
+ "indicator": {
2838
+ "default": "{colors.white} / 0.5",
2839
+ "active": "{colors.white}"
2840
+ },
2841
+ "control": {
2842
+ "icon": "{colors.white}",
2843
+ "bg": "{colors.black} / 0.3"
2844
+ },
2845
+ "caption": {
2846
+ "bg": "{colors.black} / 0.4",
2847
+ "text": "{colors.white}"
2848
+ }
2849
+ },
2850
+ "table": {
2851
+ "header": {
2852
+ "bg": "{colors.neutral.50}",
2853
+ "text": "{colors.neutral.700}"
2854
+ },
2855
+ "text": "{colors.neutral.900}",
2856
+ "divider": "{colors.neutral.700}",
2857
+ "stripeBg": "{colors.neutral.50}",
2858
+ "hoverBg": "{colors.neutral.100}",
2859
+ "selectedBg": "{colors.info.50}",
2860
+ "row": {
2861
+ "neutral": {
2862
+ "bg": "{colors.neutral.100}",
2863
+ "text": "{colors.neutral.700}"
2864
+ },
2865
+ "info": {
2866
+ "bg": "{colors.info.100}",
2867
+ "text": "{colors.info.800}"
2868
+ },
2869
+ "success": {
2870
+ "bg": "{colors.success.100}",
2871
+ "text": "{colors.success.900}"
2872
+ },
2873
+ "warning": {
2874
+ "bg": "{colors.warning.100}",
2875
+ "text": "{colors.warning.900}"
2876
+ },
2877
+ "danger": {
2878
+ "bg": "{colors.error.100}",
2879
+ "text": "{colors.error.900}"
2880
+ }
2881
+ }
2882
+ },
2883
+ "alert": {
2884
+ "neutral": {
2885
+ "bg": "{colors.neutral.100}",
2886
+ "text": "{colors.neutral.700}",
2887
+ "border": "{colors.neutral.700}",
2888
+ "icon": "{colors.neutral.600}"
2889
+ },
2890
+ "brand": {
2891
+ "bg": "{colors.brand.50}",
2892
+ "text": "{colors.brand.700}",
2893
+ "border": "{colors.brand.600}",
2894
+ "icon": "{colors.brand.600}"
2895
+ },
2896
+ "info": {
2897
+ "bg": "{colors.info.50}",
2898
+ "text": "{colors.info.700}",
2899
+ "border": "{colors.info.600}",
2900
+ "icon": "{colors.info.600}"
2901
+ },
2902
+ "success": {
2903
+ "bg": "{colors.success.50}",
2904
+ "text": "{colors.success.900}",
2905
+ "border": "{colors.success.600}",
2906
+ "icon": "{colors.success.600}"
2907
+ },
2908
+ "warning": {
2909
+ "bg": "{colors.warning.50}",
2910
+ "text": "{colors.warning.900}",
2911
+ "border": "{colors.warning.600}",
2912
+ "icon": "{colors.warning.600}"
2913
+ },
2914
+ "danger": {
2915
+ "bg": "{colors.error.50}",
2916
+ "text": "{colors.error.800}",
2917
+ "border": "{colors.error.600}",
2918
+ "icon": "{colors.error.600}"
2919
+ }
2920
+ },
2921
+ "pagination": {
2922
+ "item": {
2923
+ "text": "{colors.neutral.700}",
2924
+ "hover": {
2925
+ "bg": "{colors.neutral.100}"
2926
+ },
2927
+ "active": {
2928
+ "bg": "{colors.brand.700}",
2929
+ "text": "{colors.white}"
2930
+ },
2931
+ "disabled": {
2932
+ "text": "{colors.neutral.400}"
2933
+ }
2934
+ }
2935
+ },
2936
+ "stepper": {
2937
+ "step": {
2938
+ "pending": {
2939
+ "bg": "{colors.neutral.200}",
2940
+ "text": "{colors.neutral.700}"
2941
+ },
2942
+ "active": {
2943
+ "bg": "{colors.brand.700}",
2944
+ "text": "{colors.white}"
2945
+ },
2946
+ "done": {
2947
+ "bg": "{colors.success.800}",
2948
+ "text": "{colors.white}"
2949
+ }
2950
+ },
2951
+ "connector": "{colors.neutral.200}",
2952
+ "label": {
2953
+ "text": "{colors.neutral.700}"
2954
+ }
2955
+ },
2956
+ "popover": {
2957
+ "bg": "{colors.white}",
2958
+ "text": "{colors.neutral.900}",
2959
+ "muted": "{colors.neutral.600}",
2960
+ "border": "{colors.neutral.700}",
2961
+ "shadow": "0 12px 32px -8px {colors.black} / 0.18",
2962
+ "arrow": "{colors.white}"
2963
+ },
2964
+ "progress": {
2965
+ "track": {
2966
+ "bg": "{colors.neutral.200}"
2967
+ },
2968
+ "indicator": {
2969
+ "neutral": "{colors.neutral.600}",
2970
+ "brand": "{colors.brand.600}",
2971
+ "info": "{colors.info.600}",
2972
+ "success": "{colors.success.600}",
2973
+ "warning": "{colors.warning.600}",
2974
+ "danger": "{colors.error.600}"
2975
+ },
2976
+ "label": {
2977
+ "text": "{colors.neutral.700}"
2978
+ }
2979
+ },
2980
+ "loadingIndicator": {
2981
+ "default": "{colors.neutral.600}",
2982
+ "muted": "{colors.neutral.400}",
2983
+ "inverse": "{colors.white}",
2984
+ "brand": "{colors.brand.600}",
2985
+ "info": "{colors.info.600}",
2986
+ "success": "{colors.success.600}",
2987
+ "warning": "{colors.warning.600}",
2988
+ "danger": "{colors.error.600}"
2989
+ },
2990
+ "switch": {
2991
+ "trackBg": "{colors.neutral.300}",
2992
+ "trackCheckedBg": "{colors.info.600}",
2993
+ "thumbBg": "{colors.white}",
2994
+ "trackDisabledBg": "{colors.neutral.100}",
2995
+ "thumbDisabledBg": "{colors.neutral.200}",
2996
+ "focusRing": "{buttons.primary.focusRing}"
2997
+ },
2998
+ "range": {
2999
+ "trackBg": "{colors.neutral.200}",
3000
+ "trackFilledBg": "{colors.info.600}",
3001
+ "thumbBg": "{colors.white}",
3002
+ "thumbBorder": "{colors.info.600}",
3003
+ "trackDisabledBg": "{colors.neutral.100}",
3004
+ "thumbDisabledBorder": "{colors.neutral.700}",
3005
+ "focusRing": "{buttons.primary.focusRing}"
3006
+ },
3007
+ "fileInput": {
3008
+ "bg": "{colors.white}",
3009
+ "border": "{colors.neutral.700}",
3010
+ "text": "{colors.neutral.900}",
3011
+ "actionBg": "{colors.neutral.100}",
3012
+ "actionText": "{colors.neutral.700}",
3013
+ "disabledBg": "{colors.neutral.50}",
3014
+ "disabledBorder": "{colors.neutral.700}",
3015
+ "disabledText": "{colors.neutral.400}",
3016
+ "focusBorder": "{colors.info.600}"
3017
+ },
3018
+ "inputGroup": {
3019
+ "addonBg": "{colors.neutral.100}",
3020
+ "addonText": "{colors.neutral.700}",
3021
+ "addonBorder": "{colors.neutral.700}",
3022
+ "focusBorder": "{colors.info.600}",
3023
+ "disabledBg": "{colors.neutral.50}",
3024
+ "disabledText": "{colors.neutral.400}"
3025
+ },
3026
+ "datepicker": {
3027
+ "panel": {
3028
+ "bg": "{colors.white}",
3029
+ "border": "{colors.neutral.700}"
3030
+ },
3031
+ "header": {
3032
+ "text": "{colors.neutral.900}"
3033
+ },
3034
+ "weekday": {
3035
+ "text": "{colors.neutral.400}"
3036
+ }
3037
+ },
3038
+ "day": {
3039
+ "default": {
3040
+ "text": "{colors.neutral.900}",
3041
+ "hover": {
3042
+ "bg": "{colors.neutral.100}"
3043
+ }
3044
+ },
3045
+ "selected": {
3046
+ "bg": "{colors.brand.700}",
3047
+ "text": "{colors.white}"
3048
+ },
3049
+ "today": {
3050
+ "ringColor": "{buttons.primary.focusRing}"
3051
+ },
3052
+ "outsideMonth": {
3053
+ "text": "{colors.neutral.300}"
3054
+ },
3055
+ "disabled": {
3056
+ "text": "{colors.neutral.400}"
3057
+ }
3058
+ },
3059
+ "prose": {
3060
+ "blockquote": {
3061
+ "border": "{colors.neutral.600}",
3062
+ "text": "{colors.neutral.600}"
3063
+ },
3064
+ "code": {
3065
+ "bg": "{colors.neutral.100}",
3066
+ "text": "{colors.neutral.900}"
3067
+ },
3068
+ "codeBlock": {
3069
+ "bg": "{colors.neutral.100}",
3070
+ "text": "{colors.neutral.900}",
3071
+ "border": "{colors.neutral.700}"
3072
+ },
3073
+ "mark": {
3074
+ "bg": "{colors.warning.100}",
3075
+ "text": "{colors.warning.900}"
3076
+ },
3077
+ "hr": "{colors.neutral.700}",
3078
+ "kbd": {
3079
+ "bg": "{colors.neutral.100}",
3080
+ "border": "{colors.neutral.700}",
3081
+ "text": "{colors.neutral.900}"
3082
+ }
3083
+ },
3084
+ "externalAuthButton": {
3085
+ "bg": "{colors.white}",
3086
+ "text": "{colors.neutral.900}",
3087
+ "border": "{colors.neutral.700}",
3088
+ "hoverBg": "{colors.neutral.50}",
3089
+ "activeBg": "{colors.neutral.100}",
3090
+ "disabledBg": "{colors.neutral.50}",
3091
+ "disabledText": "{colors.neutral.400}",
3092
+ "focusRing": "{buttons.primary.focusRing}"
3093
+ },
3094
+ "checkbox": {
3095
+ "bg": "{colors.white}",
3096
+ "border": "{colors.neutral.700}",
3097
+ "checkedBg": "{colors.info.700}",
3098
+ "checkedBorder": "{colors.info.600}",
3099
+ "text": "{colors.white}",
3100
+ "disabledBg": "{colors.neutral.50}",
3101
+ "disabledBorder": "{colors.neutral.700}"
3102
+ },
3103
+ "radio": {
3104
+ "bg": "{colors.white}",
3105
+ "border": "{colors.neutral.700}",
3106
+ "checkedBg": "{colors.info.700}",
3107
+ "checkedBorder": "{colors.info.600}",
3108
+ "text": "{colors.white}",
3109
+ "disabledBg": "{colors.neutral.50}",
3110
+ "disabledBorder": "{colors.neutral.700}"
3111
+ },
3112
+ "select": {
3113
+ "bg": "{colors.white}",
3114
+ "border": "{colors.neutral.700}",
3115
+ "text": "{colors.neutral.900}",
3116
+ "placeholderText": "{colors.neutral.600}",
3117
+ "disabledBg": "{colors.neutral.50}",
3118
+ "disabledBorder": "{colors.neutral.700}",
3119
+ "focusBorder": "{colors.info.600}"
3120
+ },
3121
+ "textarea": {
3122
+ "bg": "{colors.white}",
3123
+ "border": "{colors.neutral.700}",
3124
+ "text": "{colors.neutral.900}",
3125
+ "placeholder": "{colors.neutral.600}",
3126
+ "disabledBg": "{colors.neutral.50}",
3127
+ "disabledBorder": "{colors.neutral.700}",
3128
+ "focusBorder": "{colors.info.600}"
3129
+ },
3130
+ "fieldset": {
3131
+ "border": "{colors.neutral.700}",
3132
+ "legendText": "{colors.neutral.900}"
3133
+ },
3134
+ "label": {
3135
+ "text": "{colors.neutral.900}",
3136
+ "disabledText": "{colors.neutral.400}",
3137
+ "requiredIndicatorText": "{colors.error.600}"
3138
+ },
3139
+ "skeleton": {
3140
+ "base": "{colors.neutral.200}",
3141
+ "shimmer": "{colors.neutral.100}"
3142
+ },
3143
+ "selection": {
3144
+ "bg": "{colors.brand.100}",
3145
+ "text": "{colors.neutral.900}"
3146
+ },
3147
+ "caret": {
3148
+ "color": "{colors.brand.600}"
3149
+ },
3150
+ "scrollbar": {
3151
+ "track": "{colors.neutral.700}",
3152
+ "thumb": "{colors.neutral.400}",
3153
+ "thumbHover": "{colors.neutral.500}"
3154
+ },
3155
+ "chart": {
3156
+ "bg": "{colors.white}",
3157
+ "grid": "{colors.neutral.200}",
3158
+ "axis": "{colors.neutral.500}",
3159
+ "label": "{colors.neutral.600}",
3160
+ "series": {
3161
+ "1": "{colors.brand.600}",
3162
+ "2": "{colors.palette.amber.600}",
3163
+ "3": "{colors.palette.violet.800}",
3164
+ "4": "{colors.palette.cyan.600}",
3165
+ "5": "{colors.palette.pink.600}",
3166
+ "6": "{colors.palette.emerald.800}",
3167
+ "7": "{colors.palette.lime.700}",
3168
+ "8": "{colors.palette.orange.800}"
3169
+ },
3170
+ "sequential": {
3171
+ "1": "{colors.brand.100}",
3172
+ "2": "{colors.brand.200}",
3173
+ "3": "{colors.brand.300}",
3174
+ "4": "{colors.brand.400}",
3175
+ "5": "{colors.brand.600}",
3176
+ "6": "{colors.brand.800}",
3177
+ "7": "{colors.brand.900}"
3178
+ },
3179
+ "diverging": {
3180
+ "1": "{colors.palette.red.700}",
3181
+ "2": "{colors.palette.red.400}",
3182
+ "3": "{colors.palette.red.200}",
3183
+ "4": "{colors.neutral.200}",
3184
+ "5": "{colors.palette.blue.200}",
3185
+ "6": "{colors.palette.blue.400}",
3186
+ "7": "{colors.palette.blue.700}"
3187
+ }
3188
+ }
3189
+ },
3190
+ "buttons": {
3191
+ "primary": {
3192
+ "bg": "{colors.info.700}",
3193
+ "bgHover": "{colors.info.800}",
3194
+ "bgActive": "{colors.info.900}",
3195
+ "bgDisabled": "{colors.neutral.200}",
3196
+ "text": "{colors.white}",
3197
+ "textDisabled": "{colors.neutral.400}",
3198
+ "focusRing": "{colors.info.500} / 0.4",
3199
+ "focusVisible": "{colors.info.500} / 0.4"
3200
+ },
3201
+ "secondary": {
3202
+ "bg": "{colors.white}",
3203
+ "bgHover": "{colors.neutral.50}",
3204
+ "bgActive": "{colors.neutral.100}",
3205
+ "bgDisabled": "{colors.neutral.50}",
3206
+ "text": "{colors.info.800}",
3207
+ "textDisabled": "{colors.neutral.400}",
3208
+ "border": "{colors.info.800}",
3209
+ "borderDisabled": "{colors.neutral.200}",
3210
+ "focusRing": "{colors.info.500} / 0.4",
3211
+ "focusVisible": "{colors.info.500} / 0.4"
3212
+ },
3213
+ "ghost": {
3214
+ "bg": "transparent",
3215
+ "bgHover": "{colors.info.50}",
3216
+ "bgActive": "{colors.info.100}",
3217
+ "bgDisabled": "transparent",
3218
+ "text": "{colors.info.800}",
3219
+ "textDisabled": "{colors.neutral.400}",
3220
+ "focusRing": "{colors.info.500} / 0.4",
3221
+ "focusVisible": "{colors.info.500} / 0.4"
3222
+ },
3223
+ "danger": {
3224
+ "bg": "{colors.error.800}",
3225
+ "bgHover": "{colors.error.900}",
3226
+ "bgActive": "{colors.error.900}",
3227
+ "bgDisabled": "{colors.error.200}",
3228
+ "text": "{colors.white}",
3229
+ "textDisabled": "{colors.neutral.400}",
3230
+ "focusRing": "{colors.error.500} / 0.4",
3231
+ "focusVisible": "{colors.error.500} / 0.4"
3232
+ },
3233
+ "success": {
3234
+ "bg": "{colors.success.800}",
3235
+ "bgHover": "{colors.success.900}",
3236
+ "bgActive": "{colors.success.900}",
3237
+ "bgDisabled": "{colors.success.200}",
3238
+ "text": "{colors.white}",
3239
+ "textDisabled": "{colors.neutral.400}",
3240
+ "focusRing": "{colors.success.500} / 0.4",
3241
+ "focusVisible": "{colors.success.500} / 0.4"
3242
+ },
3243
+ "warning": {
3244
+ "bg": "{colors.warning.900}",
3245
+ "bgHover": "{colors.palette.amber.950}",
3246
+ "bgActive": "{colors.palette.amber.950}",
3247
+ "bgDisabled": "{colors.warning.200}",
3248
+ "text": "{colors.white}",
3249
+ "textDisabled": "{colors.neutral.400}",
3250
+ "focusRing": "{colors.warning.500} / 0.4",
3251
+ "focusVisible": "{colors.warning.500} / 0.4"
3252
+ },
3253
+ "link": {
3254
+ "bg": "transparent",
3255
+ "bgHover": "transparent",
3256
+ "bgActive": "transparent",
3257
+ "bgDisabled": "transparent",
3258
+ "text": "{colors.info.700}",
3259
+ "textHover": "{colors.info.800}",
3260
+ "textActive": "{colors.info.900}",
3261
+ "textDisabled": "{colors.neutral.400}",
3262
+ "focusRing": "{colors.info.500} / 0.4",
3263
+ "focusVisible": "{colors.info.500} / 0.4"
3264
+ },
3265
+ "light": {
3266
+ "bg": "{colors.neutral.100}",
3267
+ "bgHover": "{colors.neutral.200}",
3268
+ "bgActive": "{colors.neutral.300}",
3269
+ "bgDisabled": "{colors.neutral.50}",
3270
+ "text": "{colors.neutral.900}",
3271
+ "textDisabled": "{colors.neutral.400}",
3272
+ "focusRing": "{colors.neutral.400} / 0.4",
3273
+ "focusVisible": "{colors.neutral.400} / 0.4"
3274
+ },
3275
+ "dark": {
3276
+ "bg": "{colors.neutral.900}",
3277
+ "bgHover": "{colors.neutral.800}",
3278
+ "bgActive": "{colors.neutral.700}",
3279
+ "bgDisabled": "{colors.neutral.200}",
3280
+ "text": "{colors.white}",
3281
+ "textDisabled": "{colors.neutral.400}",
3282
+ "focusRing": "{colors.neutral.500} / 0.4",
3283
+ "focusVisible": "{colors.neutral.500} / 0.4"
3284
+ },
3285
+ "cta": {
3286
+ "bg": "{colors.brand.700}",
3287
+ "bgHover": "{colors.brand.800}",
3288
+ "bgActive": "{colors.brand.900}",
3289
+ "bgDisabled": "{colors.brand.200}",
3290
+ "text": "{colors.white}",
3291
+ "textDisabled": "{colors.neutral.400}",
3292
+ "shadow": "0 4px 14px 0 {colors.brand.500} / 0.39",
3293
+ "focusRing": "{colors.brand.500} / 0.4"
3294
+ },
3295
+ "accent": {
3296
+ "bg": "{colors.accent.700}",
3297
+ "bgHover": "{colors.accent.800}",
3298
+ "bgActive": "{colors.accent.900}",
3299
+ "bgDisabled": "{colors.accent.200}",
3300
+ "text": "{colors.white}",
3301
+ "textDisabled": "{colors.neutral.400}",
3302
+ "focusRing": "{colors.accent.500} / 0.4",
3303
+ "focusVisible": "{colors.accent.500} / 0.4"
3304
+ },
3305
+ "inverse": {
3306
+ "bg": "{colors.white} / 0.12",
3307
+ "bgHover": "{colors.white} / 0.2",
3308
+ "bgActive": "{colors.white} / 0.28",
3309
+ "bgDisabled": "{colors.white} / 0.08",
3310
+ "text": "{colors.white}",
3311
+ "textDisabled": "{colors.neutral.400}",
3312
+ "border": "{colors.white} / 0.3",
3313
+ "borderDisabled": "{colors.white} / 0.16",
3314
+ "focusRing": "{colors.info.500} / 0.4",
3315
+ "focusVisible": "{colors.info.500} / 0.4"
3316
+ }
3317
+ },
3318
+ "link": {
3319
+ "default": "{colors.brand.700}",
3320
+ "hover": "{colors.brand.800}",
3321
+ "active": "{colors.brand.900}",
3322
+ "visited": "{colors.accent.700}",
3323
+ "onInverse": "{colors.neutral.300}",
3324
+ "onInverseHover": "{colors.brand.300}"
3325
+ }
3326
+ }
3327
+ },
3328
+ "colors": {
3329
+ "brand": {
3330
+ "50": "#eef4ff",
3331
+ "100": "#d9e7ff",
3332
+ "200": "#b9d2ff",
3333
+ "300": "#8ab6ff",
3334
+ "400": "#5a92ff",
3335
+ "500": "#336df4",
3336
+ "600": "#1f57db",
3337
+ "700": "#1946b4",
3338
+ "800": "#173b8f",
3339
+ "900": "#16336f"
3340
+ },
3341
+ "neutral": {
3342
+ "50": "#f7f8fb",
3343
+ "100": "#eef1f6",
3344
+ "200": "#d9dfeb",
3345
+ "300": "#b7c1d4",
3346
+ "400": "#8a96ad",
3347
+ "500": "#657287",
3348
+ "600": "#4b576a",
3349
+ "700": "#374253",
3350
+ "800": "#222b38",
3351
+ "900": "#141b24"
3352
+ },
3353
+ "accent": {
3354
+ "50": "#f6f2ff",
3355
+ "100": "#eee5ff",
3356
+ "200": "#ddccff",
3357
+ "300": "#c3a7ff",
3358
+ "400": "#a279ff",
3359
+ "500": "#854ff7",
3360
+ "600": "#7135dd",
3361
+ "700": "#5d28b8",
3362
+ "800": "#4d2393",
3363
+ "900": "#401f75"
3364
+ },
3365
+ "success": {
3366
+ "50": "#f0fdf4",
3367
+ "100": "#dcfce7",
3368
+ "200": "#bbf7d0",
3369
+ "300": "#86efac",
3370
+ "400": "#4ade80",
3371
+ "500": "#22c55e",
3372
+ "600": "#16a34a",
3373
+ "700": "#15803d",
3374
+ "800": "#166534",
3375
+ "900": "#14532d"
3376
+ },
3377
+ "warning": {
3378
+ "50": "#fffbea",
3379
+ "100": "#fff1c2",
3380
+ "200": "#ffe08a",
3381
+ "300": "#ffd24d",
3382
+ "400": "#ffc21a",
3383
+ "500": "#f5ad00",
3384
+ "600": "#d48806",
3385
+ "700": "#ad6800",
3386
+ "800": "#8f5200",
3387
+ "900": "#734000"
3388
+ },
3389
+ "error": {
3390
+ "50": "#fef2f2",
3391
+ "100": "#fee2e2",
3392
+ "200": "#fecaca",
3393
+ "300": "#fca5a5",
3394
+ "400": "#f87171",
3395
+ "500": "#ef4444",
3396
+ "600": "#dc2626",
3397
+ "700": "#b91c1c",
3398
+ "800": "#991b1b",
3399
+ "900": "#7f1d1d"
3400
+ },
3401
+ "info": {
3402
+ "50": "#f0f9ff",
3403
+ "100": "#e0f2fe",
3404
+ "200": "#bae6fd",
3405
+ "300": "#7dd3fc",
3406
+ "400": "#38bdf8",
3407
+ "500": "#0ea5e9",
3408
+ "600": "#0369a1",
3409
+ "700": "#075985",
3410
+ "800": "#0c4a6e",
3411
+ "900": "#082f49"
3412
+ },
3413
+ "indigo": {
3414
+ "500": "#5b6ee1",
3415
+ "600": "#4d61db"
3416
+ },
3417
+ "violet": {
3418
+ "600": "#6f3fd7"
3419
+ },
3420
+ "focus": {
3421
+ "primary": "{colors.brand.500}",
3422
+ "error": "{colors.error.500}",
3423
+ "info": "{colors.info.600}"
3424
+ },
3425
+ "white": "#ffffff",
3426
+ "black": "#000000",
3427
+ "palette": {
3428
+ "red": {
3429
+ "50": "#fef2f2",
3430
+ "100": "#ffe2e2",
3431
+ "200": "#ffc9c9",
3432
+ "300": "#ffa2a2",
3433
+ "400": "#ff6467",
3434
+ "500": "#fb2c36",
3435
+ "600": "#e7000b",
3436
+ "700": "#c10007",
3437
+ "800": "#9f0712",
3438
+ "900": "#82181a",
3439
+ "950": "#460809"
3440
+ },
3441
+ "orange": {
3442
+ "50": "#fff7ed",
3443
+ "100": "#ffedd4",
3444
+ "200": "#ffd6a7",
3445
+ "300": "#ffb86a",
3446
+ "400": "#ff8904",
3447
+ "500": "#ff6900",
3448
+ "600": "#f54900",
3449
+ "700": "#ca3500",
3450
+ "800": "#9f2d00",
3451
+ "900": "#7e2a0c",
3452
+ "950": "#441306"
3453
+ },
3454
+ "amber": {
3455
+ "50": "#fffbeb",
3456
+ "100": "#fef3c6",
3457
+ "200": "#fee685",
3458
+ "300": "#ffd230",
3459
+ "400": "#ffb900",
3460
+ "500": "#fe9a00",
3461
+ "600": "#e17100",
3462
+ "700": "#bb4d00",
3463
+ "800": "#973c00",
3464
+ "900": "#7b3306",
3465
+ "950": "#461901"
3466
+ },
3467
+ "yellow": {
3468
+ "50": "#fefce8",
3469
+ "100": "#fef9c2",
3470
+ "200": "#fff085",
3471
+ "300": "#ffdf20",
3472
+ "400": "#fdc700",
3473
+ "500": "#f0b100",
3474
+ "600": "#d08700",
3475
+ "700": "#a65f00",
3476
+ "800": "#894b00",
3477
+ "900": "#733e0a",
3478
+ "950": "#432004"
2315
3479
  },
2316
3480
  "lime": {
2317
3481
  "50": "#f7fee7",
@@ -2714,6 +3878,9 @@ var coreTokens = {
2714
3878
  "72": "4.5rem",
2715
3879
  "80": "5rem",
2716
3880
  "96": "6rem",
3881
+ "128": "8rem",
3882
+ "160": "10rem",
3883
+ "192": "12rem",
2717
3884
  "240": "15rem"
2718
3885
  },
2719
3886
  "radii": {
@@ -2970,33 +4137,117 @@ var coreTokens = {
2970
4137
  "padding": {
2971
4138
  "sm": "1.5rem",
2972
4139
  "md": "2rem",
2973
- "lg": "3rem"
4140
+ "lg": "3rem",
4141
+ "xl": "4rem",
4142
+ "2xl": "5rem",
4143
+ "3xl": "6rem",
4144
+ "4xl": "8rem"
2974
4145
  },
2975
4146
  "gap": {
2976
4147
  "sm": "1rem",
2977
4148
  "md": "1.5rem",
2978
- "lg": "2rem"
4149
+ "lg": "2rem",
4150
+ "xl": "2.5rem",
4151
+ "2xl": "3rem",
4152
+ "3xl": "4rem",
4153
+ "4xl": "5rem"
2979
4154
  }
2980
4155
  },
2981
4156
  "stack": {
2982
4157
  "gap": {
2983
4158
  "sm": "0.5rem",
2984
- "md": "0.75rem",
2985
- "lg": "1rem"
4159
+ "md": "1rem",
4160
+ "lg": "1.5rem",
4161
+ "xl": "2.5rem",
4162
+ "2xl": "3rem",
4163
+ "3xl": "4rem",
4164
+ "4xl": "5rem"
2986
4165
  }
2987
4166
  },
2988
4167
  "container": {
2989
4168
  "paddingInline": {
2990
4169
  "sm": "1rem",
2991
4170
  "md": "1.5rem",
2992
- "lg": "2rem"
4171
+ "lg": "2rem",
4172
+ "xl": "2.5rem",
4173
+ "2xl": "3rem",
4174
+ "3xl": "4rem",
4175
+ "4xl": "5rem"
2993
4176
  },
2994
4177
  "maxWidth": "72rem",
2995
4178
  "maxWidthProse": "65ch",
2996
4179
  "maxWidthWide": "80rem"
2997
4180
  },
4181
+ "hero": {
4182
+ "paddingTop": {
4183
+ "sm": "{layout.section.padding.2xl}",
4184
+ "md": "{layout.section.padding.3xl}",
4185
+ "lg": "{layout.section.padding.4xl}"
4186
+ },
4187
+ "paddingBottom": {
4188
+ "sm": "{layout.section.padding.xl}",
4189
+ "md": "{layout.section.padding.2xl}",
4190
+ "lg": "{layout.section.padding.3xl}"
4191
+ }
4192
+ },
2998
4193
  "sidebar": {
2999
4194
  "width": "16rem"
4195
+ },
4196
+ "responsive": {
4197
+ "lg": {
4198
+ "section": {
4199
+ "padding": {
4200
+ "xl": "6rem",
4201
+ "2xl": "8rem",
4202
+ "3xl": "10rem",
4203
+ "4xl": "12rem"
4204
+ },
4205
+ "gap": {
4206
+ "xl": "3rem",
4207
+ "2xl": "4rem",
4208
+ "3xl": "6rem",
4209
+ "4xl": "8rem"
4210
+ }
4211
+ },
4212
+ "stack": {
4213
+ "gap": {
4214
+ "xl": "3rem",
4215
+ "2xl": "4rem",
4216
+ "3xl": "6rem",
4217
+ "4xl": "8rem"
4218
+ }
4219
+ },
4220
+ "container": {
4221
+ "paddingInline": {
4222
+ "xl": "3rem",
4223
+ "2xl": "4rem",
4224
+ "3xl": "6rem",
4225
+ "4xl": "8rem"
4226
+ }
4227
+ }
4228
+ }
4229
+ }
4230
+ },
4231
+ "elevation": {
4232
+ "flat": {
4233
+ "shadow": "{shadows.none}",
4234
+ "surface": "{surface.page}",
4235
+ "zIndex": "{zIndex.base}"
4236
+ },
4237
+ "raised": {
4238
+ "shadow": "{shadows.md}",
4239
+ "surface": "{surface.card}",
4240
+ "zIndex": "{zIndex.base}"
4241
+ },
4242
+ "overlay": {
4243
+ "shadow": "{shadows.lg}",
4244
+ "surface": "{surface.card}",
4245
+ "zIndex": "{zIndex.dropdown}"
4246
+ },
4247
+ "modal": {
4248
+ "shadow": "{shadows.2xl}",
4249
+ "surface": "{surface.card}",
4250
+ "zIndex": "{zIndex.modal}"
3000
4251
  }
3001
4252
  },
3002
4253
  "font": {
@@ -3244,6 +4495,22 @@ var toVariableName = (prefix, ...parts) => {
3244
4495
  return `--${prefix}-${filtered.join("-")}`;
3245
4496
  };
3246
4497
  var isPlainObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
4498
+ var kebabCase = (segment) => formatKey(segment.replace(/([a-z0-9])([A-Z])/g, "$1-$2"));
4499
+ var LAYOUT_SCALES = [
4500
+ { path: ["section", "padding"], varParts: ["section", "padding"] },
4501
+ { path: ["section", "gap"], varParts: ["section", "gap"] },
4502
+ { path: ["stack", "gap"], varParts: ["stack", "gap"] },
4503
+ { path: ["container", "paddingInline"], varParts: ["container", "padding-inline"] }
4504
+ ];
4505
+ var layoutScale = (node, [group, scale]) => {
4506
+ const groupNode = isPlainObject(node) ? node[group] : void 0;
4507
+ const scaleNode = isPlainObject(groupNode) ? groupNode[scale] : void 0;
4508
+ return isPlainObject(scaleNode) ? scaleNode : {};
4509
+ };
4510
+ var layoutResponsive = (layout) => {
4511
+ const responsive = isPlainObject(layout) ? layout.responsive : void 0;
4512
+ return isPlainObject(responsive) ? responsive : {};
4513
+ };
3247
4514
  var resolveTokenReference = (tokens2, reference) => {
3248
4515
  const path = reference.slice(1, -1).split(".");
3249
4516
  let current = tokens2;
@@ -3337,26 +4604,30 @@ var createCssVariableMap = (tokens2, options = {}) => {
3337
4604
  }
3338
4605
  if (baseTokens.layout) {
3339
4606
  const layout = baseTokens.layout;
3340
- if (layout.section?.padding) {
3341
- Object.entries(layout.section.padding).forEach(([key, value]) => {
3342
- assign(toVariableName(prefix, "layout", "section", "padding", key), value);
3343
- });
3344
- }
3345
- if (layout.section?.gap) {
3346
- Object.entries(layout.section.gap).forEach(([key, value]) => {
3347
- assign(toVariableName(prefix, "layout", "section", "gap", key), value);
4607
+ LAYOUT_SCALES.forEach(({ path, varParts }) => {
4608
+ Object.entries(layoutScale(layout, path)).forEach(([key, value]) => {
4609
+ assign(toVariableName(prefix, "layout", ...varParts, key), value);
3348
4610
  });
3349
- }
3350
- if (layout.stack?.gap) {
3351
- Object.entries(layout.stack.gap).forEach(([key, value]) => {
3352
- assign(toVariableName(prefix, "layout", "stack", "gap", key), value);
4611
+ });
4612
+ const hero = layout.hero;
4613
+ if (hero) {
4614
+ Object.entries(hero).forEach(([edge, steps]) => {
4615
+ Object.entries(steps).forEach(([key, value]) => {
4616
+ const step = value.match(/^\{layout\.section\.padding\.([^}]+)\}$/)?.[1];
4617
+ assign(
4618
+ toVariableName(prefix, "layout", "hero", kebabCase(edge), key),
4619
+ step ? `var(${toVariableName(prefix, "layout", "section", "padding", step)})` : value
4620
+ );
4621
+ });
3353
4622
  });
3354
4623
  }
3355
- if (layout.container?.paddingInline) {
3356
- Object.entries(layout.container.paddingInline).forEach(([key, value]) => {
3357
- assign(toVariableName(prefix, "layout", "container", "padding-inline", key), value);
4624
+ Object.entries(layoutResponsive(layout)).forEach(([breakpoint, scales]) => {
4625
+ LAYOUT_SCALES.forEach(({ path, varParts }) => {
4626
+ Object.entries(layoutScale(scales, path)).forEach(([key, value]) => {
4627
+ assign(toVariableName(prefix, "layout", "responsive", breakpoint, ...varParts, key), value);
4628
+ });
3358
4629
  });
3359
- }
4630
+ });
3360
4631
  const container = layout.container;
3361
4632
  if (container?.maxWidth) {
3362
4633
  assign(toVariableName(prefix, "layout", "container", "max-width"), container.maxWidth);
@@ -3372,6 +4643,33 @@ var createCssVariableMap = (tokens2, options = {}) => {
3372
4643
  assign(toVariableName(prefix, "layout", "sidebar", "width"), sidebar.width);
3373
4644
  }
3374
4645
  }
4646
+ const control = baseTokens.control;
4647
+ if (isPlainObject(control)) {
4648
+ const assignControlSizes = (sizes, parts) => {
4649
+ Object.entries(sizes).forEach(([size, fields]) => {
4650
+ if (size === "compact" || !isPlainObject(fields)) return;
4651
+ Object.entries(fields).forEach(([field, value]) => {
4652
+ assign(toVariableName(prefix, "control", ...parts, size, kebabCase(field)), value);
4653
+ });
4654
+ });
4655
+ };
4656
+ assignControlSizes(control, []);
4657
+ if (isPlainObject(control.compact)) assignControlSizes(control.compact, ["compact"]);
4658
+ }
4659
+ const elevation = baseTokens.elevation;
4660
+ if (isPlainObject(elevation)) {
4661
+ const elevationVarParts = { shadows: ["shadow"], surface: ["surface"], zIndex: ["z-index"] };
4662
+ Object.entries(elevation).forEach(([level, fields]) => {
4663
+ Object.entries(fields).forEach(([field, value]) => {
4664
+ const [namespace, ...rest] = value.match(/^\{([^}]+)\}$/)?.[1]?.split(".") ?? [];
4665
+ const varParts = namespace ? elevationVarParts[namespace] : void 0;
4666
+ assign(
4667
+ toVariableName(prefix, "elevation", level, kebabCase(field)),
4668
+ varParts ? `var(${toVariableName(prefix, ...varParts, ...rest.map(kebabCase))})` : value
4669
+ );
4670
+ });
4671
+ });
4672
+ }
3375
4673
  const border = baseTokens.border;
3376
4674
  if (border?.width) {
3377
4675
  Object.entries(border.width).forEach(([key, value]) => {
@@ -3443,6 +4741,16 @@ var createCssVariableMap = (tokens2, options = {}) => {
3443
4741
  if (body) {
3444
4742
  assignRole(["body"], body);
3445
4743
  }
4744
+ const display = baseTokens.typography?.display;
4745
+ if (display) {
4746
+ Object.entries(display).forEach(([level, entry]) => {
4747
+ assignRole(["display", level], entry);
4748
+ });
4749
+ }
4750
+ const lead = baseTokens.typography?.lead;
4751
+ if (lead) {
4752
+ assignRole(["lead"], lead);
4753
+ }
3446
4754
  Object.entries(baseTokens.shadows).forEach(([key, value]) => {
3447
4755
  if (typeof value === "string") {
3448
4756
  assign(toVariableName(prefix, "shadow", key), value);
@@ -3508,9 +4816,9 @@ var generateCssVariables = (tokens2, options = {}) => {
3508
4816
  const selector = options.selector ?? DEFAULT_SELECTOR;
3509
4817
  const prefix = options.prefix ?? DEFAULT_PREFIX;
3510
4818
  const declarations = createCssVariableMap(tokens2, { ...options, prefix });
3511
- const mapLines = Object.entries(declarations).map(([name, value]) => ` ${name}: ${value};`);
3512
4819
  const defaultMode = tokens2.modes?.default ?? {};
3513
4820
  const darkMode = tokens2.modes?.dark ?? {};
4821
+ const highContrastMode = tokens2.modes?.highContrast ?? {};
3514
4822
  const surfaceAliases = tokens2.surface ?? {};
3515
4823
  const textAliases = tokens2.text ?? {};
3516
4824
  const componentAliases = tokens2.component ?? {};
@@ -3518,15 +4826,23 @@ var generateCssVariables = (tokens2, options = {}) => {
3518
4826
  const componentVarParts = (group, kebabGroup, path) => LEGACY_COMPONENT_PREFIX_GROUPS.has(group) ? ["component", kebabGroup, ...path] : [kebabGroup, ...path];
3519
4827
  const baseLines = [];
3520
4828
  const darkLines = [];
4829
+ const highContrastLines = [];
4830
+ const modeScopedNames = /* @__PURE__ */ new Set();
3521
4831
  const addBase = (name, value) => {
3522
- if (value !== void 0) baseLines.push(` ${name}: ${value};`);
4832
+ if (value === void 0) return;
4833
+ modeScopedNames.add(name);
4834
+ baseLines.push(` ${name}: ${value};`);
3523
4835
  };
3524
4836
  const addDark = (name, value) => {
3525
4837
  if (value !== void 0) darkLines.push(` ${name}: ${value};`);
3526
4838
  };
4839
+ const addHighContrast = (name, value) => {
4840
+ if (value !== void 0) highContrastLines.push(` ${name}: ${value};`);
4841
+ };
3527
4842
  const walkSemanticGroup = (namespace, varPartsFor, aliasSrc) => {
3528
4843
  const defaultNode = defaultMode[namespace];
3529
4844
  const darkNode = darkMode[namespace];
4845
+ const highContrastNode = highContrastMode[namespace];
3530
4846
  const paths = /* @__PURE__ */ new Set();
3531
4847
  const collectPaths = (node, path) => {
3532
4848
  if (node === void 0) return;
@@ -3541,6 +4857,7 @@ var generateCssVariables = (tokens2, options = {}) => {
3541
4857
  };
3542
4858
  collectPaths(defaultNode, []);
3543
4859
  collectPaths(darkNode, []);
4860
+ collectPaths(highContrastNode, []);
3544
4861
  collectPaths(aliasSrc, []);
3545
4862
  paths.forEach((joinedPath) => {
3546
4863
  const path = joinedPath.split(".");
@@ -3548,8 +4865,10 @@ var generateCssVariables = (tokens2, options = {}) => {
3548
4865
  const aliasCandidate = getPath(aliasSrc, path);
3549
4866
  const baseValue = pickSemantic(tokens2, getPath(defaultNode, path), aliasCandidate);
3550
4867
  const darkValue = pickSemantic(tokens2, getPath(darkNode, path), getPath(defaultNode, path), aliasCandidate);
4868
+ const highContrastValue = pickSemantic(tokens2, getPath(highContrastNode, path), getPath(defaultNode, path), aliasCandidate);
3551
4869
  addBase(varName, baseValue);
3552
4870
  addDark(varName, darkValue);
4871
+ addHighContrast(varName, highContrastValue);
3553
4872
  });
3554
4873
  };
3555
4874
  const kebabPathSegment = (segment) => formatKey(segment.replace(/([a-z0-9])([A-Z])/g, "$1-$2"));
@@ -3574,21 +4893,100 @@ var generateCssVariables = (tokens2, options = {}) => {
3574
4893
  },
3575
4894
  componentAliases
3576
4895
  );
4896
+ walkSemanticGroup(
4897
+ "forms",
4898
+ (path) => ["form", ...path.map(kebabPathSegment)],
4899
+ void 0
4900
+ );
4901
+ const highContrastLink = getPath(highContrastMode, ["link"]);
3577
4902
  Object.entries(linkTokens).forEach(([key, value]) => {
3578
4903
  const varName = toVariableName(prefix, "link", kebabPathSegment(key));
3579
4904
  const resolved = pickSemantic(tokens2, value);
3580
4905
  addBase(varName, resolved);
3581
4906
  addDark(varName, resolved);
4907
+ addHighContrast(varName, pickSemantic(tokens2, getPath(highContrastLink, [key]), value));
3582
4908
  });
4909
+ const highContrastButtons = getPath(highContrastMode, ["buttons"]);
4910
+ if (isPlainObject(highContrastButtons)) {
4911
+ Object.entries(highContrastButtons).forEach(([variant, states]) => {
4912
+ Object.entries(states).forEach(([state, value]) => {
4913
+ addHighContrast(toVariableName(prefix, "button", variant, state), pickSemantic(tokens2, value));
4914
+ });
4915
+ });
4916
+ }
4917
+ const mapLines = Object.entries(declarations).filter(([name]) => !modeScopedNames.has(name)).map(([name, value]) => ` ${name}: ${value};`);
3583
4918
  const rootBlock = `${selector} {
3584
4919
  ${[...baseLines, ...mapLines].join("\n")}
3585
4920
  }`;
3586
- const darkBlock = `${selector}[data-spectre-theme="dark"] {
3587
- ${darkLines.join("\n")}
4921
+ const toEntries = (lines) => new Map(
4922
+ lines.map((line) => {
4923
+ const separator = line.indexOf(":");
4924
+ return [line.slice(0, separator).trim(), line.slice(separator + 1).trim().replace(/;$/, "")];
4925
+ })
4926
+ );
4927
+ const baseEntries = toEntries(baseLines);
4928
+ const darkEntries = toEntries(darkLines);
4929
+ const highContrastEntries = toEntries(highContrastLines);
4930
+ const rootValues = new Map([...Object.entries(declarations), ...baseEntries]);
4931
+ const modeVarying = [.../* @__PURE__ */ new Set([...baseEntries.keys(), ...darkEntries.keys(), ...highContrastEntries.keys()])];
4932
+ const modeVaryingSet = new Set(modeVarying);
4933
+ const dependentLines = [...rootValues].filter(
4934
+ ([name, value]) => !modeVaryingSet.has(name) && Array.from(value.matchAll(/var\((--[a-z0-9-]+)/g)).some((match) => modeVaryingSet.has(match[1]))
4935
+ ).map(([name, value]) => `${name}: ${value};`);
4936
+ const modeLines = (entries) => [
4937
+ ...modeVarying.flatMap((name) => {
4938
+ const value = entries.get(name) ?? rootValues.get(name);
4939
+ return value === void 0 ? [] : [`${name}: ${value};`];
4940
+ }),
4941
+ ...dependentLines
4942
+ ];
4943
+ const themeSelectors = (theme) => [
4944
+ `${selector}[data-spectre-theme="${theme}"]`,
4945
+ `${selector} [data-spectre-theme="${theme}"]`
4946
+ ];
4947
+ const modeBlock = (selectors, lines, indent = "") => `${indent}${selectors.join(`,
4948
+ ${indent}`)} {
4949
+ ${lines.map((line) => `${indent} ${line}`).join("\n")}
4950
+ ${indent}}`;
4951
+ const darkBlock = modeBlock(themeSelectors("dark"), modeLines(darkEntries));
4952
+ const highContrastBlock = modeBlock(themeSelectors("high-contrast"), modeLines(highContrastEntries));
4953
+ const lightBlock = modeBlock([...themeSelectors("light"), ...themeSelectors("system")], modeLines(baseEntries));
4954
+ const systemDarkBlock = `@media (prefers-color-scheme: dark) {
4955
+ ${modeBlock(themeSelectors("system"), modeLines(darkEntries), " ")}
4956
+ }`;
4957
+ const control = tokens2.control;
4958
+ const compact = isPlainObject(control) && isPlainObject(control.compact) ? control.compact : {};
4959
+ const densityLines = Object.entries(compact).flatMap(
4960
+ ([size, fields]) => Object.keys(fields).map((field) => {
4961
+ const name = toVariableName(prefix, "control", size, kebabCase(field));
4962
+ return ` ${name}: var(${toVariableName(prefix, "control", "compact", size, kebabCase(field))});`;
4963
+ })
4964
+ );
4965
+ const densityBlocks = densityLines.length > 0 ? [`[data-spectre-density="compact"] {
4966
+ ${densityLines.join("\n")}
4967
+ }`] : [];
4968
+ const breakpoints = tokens2.breakpoints;
4969
+ const responsiveBlocks = Object.entries(layoutResponsive(tokens2.layout)).map(([breakpoint, scales]) => {
4970
+ const minWidth = breakpoints[breakpoint];
4971
+ if (minWidth === void 0) {
4972
+ throw new Error(`layout.responsive.${breakpoint} does not name a breakpoints entry`);
4973
+ }
4974
+ const lines = LAYOUT_SCALES.flatMap(
4975
+ ({ path, varParts }) => Object.keys(layoutScale(scales, path)).map((key) => {
4976
+ const name = toVariableName(prefix, "layout", ...varParts, key);
4977
+ const source = toVariableName(prefix, "layout", "responsive", breakpoint, ...varParts, key);
4978
+ return ` ${name}: var(${source});`;
4979
+ })
4980
+ );
4981
+ return `@media (min-width: ${resolveValue(tokens2, minWidth)}) {
4982
+ ${selector} {
4983
+ ${lines.join("\n")}
4984
+ }
3588
4985
  }`;
3589
- return `${rootBlock}
3590
- ${darkBlock}
3591
- `;
4986
+ });
4987
+ return [rootBlock, darkBlock, highContrastBlock, lightBlock, systemDarkBlock, ...densityBlocks, ...responsiveBlocks].join(
4988
+ "\n"
4989
+ ) + "\n";
3592
4990
  };
3593
4991
 
3594
4992
  // src/index.ts