@ttoss/fsl-theme 2.1.1 → 2.1.3

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.
Files changed (48) hide show
  1. package/README.md +2 -2
  2. package/dist/{Types-a_sfpbha.d.cts → Types-8o6d09ll.d.cts} +23 -24
  3. package/dist/{Types-a_sfpbha.d.mts → Types-8o6d09ll.d.mts} +23 -24
  4. package/dist/{baseBundle-CXdxj_re.mjs → baseBundle-BpCf8Cc9.mjs} +1 -1
  5. package/dist/{baseBundle-a9LDsqYy.cjs → baseBundle-DaO6jyk3.cjs} +1 -1
  6. package/dist/{createTheme-Bm9LVQ4w.mjs → createTheme-C05ONnLw.mjs} +108 -93
  7. package/dist/{createTheme-B7H0xSVp.cjs → createTheme-r7mUCPFX.cjs} +108 -93
  8. package/dist/css-BVePVvTJ.mjs +96 -0
  9. package/dist/css-CKvOE4mT.cjs +113 -0
  10. package/dist/css.cjs +5 -41
  11. package/dist/css.d.cts +22 -2
  12. package/dist/css.d.mts +22 -2
  13. package/dist/css.mjs +3 -41
  14. package/dist/dataviz/index.cjs +2 -2
  15. package/dist/dataviz/index.d.cts +1 -1
  16. package/dist/dataviz/index.d.mts +1 -1
  17. package/dist/dataviz/index.mjs +1 -1
  18. package/dist/dtcg.cjs +11 -16
  19. package/dist/dtcg.d.cts +3 -3
  20. package/dist/dtcg.d.mts +3 -3
  21. package/dist/dtcg.mjs +11 -16
  22. package/dist/{index-BmZQVd3G.d.cts → index-CIkVRaGC.d.cts} +1 -1
  23. package/dist/{index-XZsRrMTF.d.mts → index-OP4B-9hU.d.mts} +1 -1
  24. package/dist/index.cjs +1 -1
  25. package/dist/index.d.cts +3 -3
  26. package/dist/index.d.mts +3 -3
  27. package/dist/index.mjs +1 -1
  28. package/dist/{react-DQErMGJz.cjs → react-C1WRCOFF.cjs} +43 -9
  29. package/dist/{react-BwnHHvJj.d.mts → react-C9QSshf3.d.mts} +30 -3
  30. package/dist/{react-2D_CNVF2.d.cts → react-CZDLBN6v.d.cts} +30 -3
  31. package/dist/react.cjs +2 -1
  32. package/dist/react.d.cts +2 -2
  33. package/dist/react.d.mts +2 -2
  34. package/dist/react.mjs +38 -10
  35. package/dist/themes/bruttal.cjs +2 -2
  36. package/dist/themes/bruttal.d.cts +1 -1
  37. package/dist/themes/bruttal.d.mts +1 -1
  38. package/dist/themes/bruttal.mjs +2 -2
  39. package/dist/{toCssVars-CWTlp9St.mjs → toCssVars-CTGqZ_t3.mjs} +5 -5
  40. package/dist/{toCssVars-D0BR23cP.cjs → toCssVars-NGi4K2Oc.cjs} +5 -5
  41. package/dist/vars.cjs +2 -2
  42. package/dist/vars.d.cts +1 -1
  43. package/dist/vars.d.mts +1 -1
  44. package/dist/vars.mjs +2 -2
  45. package/dist/{withDataviz-Ln3sEwb7.mjs → withDataviz-BKqs0un0.mjs} +1 -1
  46. package/dist/{withDataviz-DrUtw8cc.cjs → withDataviz-BzDgnXPu.cjs} +1 -1
  47. package/llms.txt +10 -10
  48. package/package.json +1 -1
@@ -52,15 +52,17 @@ var baseTheme = {
52
52
  },
53
53
  neutral: {
54
54
  0: "#ffffff",
55
- 50: "#f8fafc",
56
- 100: "#f1f5f9",
57
- 200: "#e2e8f0",
58
- 300: "#cbd5e1",
59
- 400: "#94a3b8",
60
- 500: "#64748b",
61
- 700: "#334155",
62
- 900: "#0f172a",
63
- 1e3: "#020617"
55
+ 50: "#fafafa",
56
+ 100: "#f4f4f5",
57
+ 200: "#e4e4e7",
58
+ 300: "#d4d4d8",
59
+ 400: "#a1a1aa",
60
+ 500: "#71717a",
61
+ 600: "#52525b",
62
+ 700: "#3f3f46",
63
+ 800: "#27272a",
64
+ 900: "#18181b",
65
+ 1e3: "#09090b"
64
66
  },
65
67
  red: {
66
68
  100: "#fee2e2",
@@ -131,7 +133,7 @@ var baseTheme = {
131
133
  },
132
134
  font: {
133
135
  family: {
134
- sans: "ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, \"Apple Color Emoji\", \"Segoe UI Emoji\"",
136
+ sans: "\"Inter Variable\", Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, \"Apple Color Emoji\", \"Segoe UI Emoji\"",
135
137
  serif: "ui-serif, Georgia, Cambria, \"Times New Roman\", Times, serif",
136
138
  mono: "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace"
137
139
  },
@@ -239,16 +241,8 @@ var baseTheme = {
239
241
  }
240
242
  },
241
243
  hit: {
242
- fine: {
243
- min: "clamp(28px, 1.75rem, 32px)",
244
- base: "clamp(32px, 2rem, 40px)",
245
- prominent: "clamp(40px, 2.5rem, 48px)"
246
- },
247
- coarse: {
248
- min: "32px",
249
- base: "48px",
250
- prominent: "56px"
251
- }
244
+ fine: "clamp(32px, 2rem, 36px)",
245
+ coarse: "48px"
252
246
  }
253
247
  },
254
248
  radii: {
@@ -358,7 +352,7 @@ var baseTheme = {
358
352
  focused: "{core.colors.brand.500}",
359
353
  disabled: "{core.colors.neutral.200}",
360
354
  pressed: "{core.colors.neutral.400}",
361
- expanded: "{core.colors.brand.500}"
355
+ expanded: "{core.colors.neutral.500}"
362
356
  },
363
357
  text: {
364
358
  default: "{core.colors.neutral.900}",
@@ -432,7 +426,7 @@ var baseTheme = {
432
426
  focused: "{core.colors.brand.500}",
433
427
  disabled: "{core.colors.neutral.200}",
434
428
  pressed: "{core.colors.neutral.300}",
435
- expanded: "{core.colors.brand.500}"
429
+ expanded: "{core.colors.neutral.500}"
436
430
  },
437
431
  text: {
438
432
  default: "{core.colors.neutral.700}",
@@ -451,10 +445,10 @@ var baseTheme = {
451
445
  hover: "{core.colors.neutral.50}",
452
446
  active: "{core.colors.neutral.50}",
453
447
  disabled: "{core.colors.neutral.100}",
454
- selected: "{core.colors.brand.50}",
448
+ selected: "{core.colors.neutral.100}",
455
449
  droptarget: "{core.colors.neutral.50}",
456
- checked: "{core.colors.brand.500}",
457
- indeterminate: "{core.colors.brand.300}",
450
+ checked: "{core.colors.neutral.1000}",
451
+ indeterminate: "{core.colors.neutral.1000}",
458
452
  pressed: "{core.colors.neutral.100}",
459
453
  expanded: "{core.colors.neutral.50}",
460
454
  invalid: "{core.colors.neutral.0}"
@@ -462,14 +456,14 @@ var baseTheme = {
462
456
  border: {
463
457
  default: "{core.colors.neutral.300}",
464
458
  hover: "{core.colors.neutral.500}",
465
- active: "{core.colors.brand.500}",
459
+ active: "{core.colors.neutral.500}",
466
460
  focused: "{core.colors.brand.500}",
467
461
  disabled: "{core.colors.neutral.200}",
468
- selected: "{core.colors.brand.500}",
469
- checked: "{core.colors.brand.500}",
470
- indeterminate: "{core.colors.brand.300}",
462
+ selected: "{core.colors.neutral.1000}",
463
+ checked: "{core.colors.neutral.1000}",
464
+ indeterminate: "{core.colors.neutral.1000}",
471
465
  pressed: "{core.colors.neutral.500}",
472
- expanded: "{core.colors.brand.500}",
466
+ expanded: "{core.colors.neutral.500}",
473
467
  invalid: "{core.colors.red.600}"
474
468
  },
475
469
  text: {
@@ -477,7 +471,7 @@ var baseTheme = {
477
471
  disabled: "{core.colors.neutral.500}",
478
472
  checked: "{core.colors.neutral.0}",
479
473
  invalid: "{core.colors.neutral.900}",
480
- indeterminate: "{core.colors.neutral.900}"
474
+ indeterminate: "{core.colors.neutral.0}"
481
475
  }
482
476
  },
483
477
  secondary: {
@@ -486,30 +480,30 @@ var baseTheme = {
486
480
  hover: "{core.colors.neutral.50}",
487
481
  active: "{core.colors.neutral.100}",
488
482
  disabled: "{core.colors.neutral.100}",
489
- selected: "{core.colors.brand.50}",
483
+ selected: "{core.colors.neutral.100}",
490
484
  droptarget: "{core.colors.neutral.50}",
491
- checked: "{core.colors.brand.500}",
492
- indeterminate: "{core.colors.brand.300}",
485
+ checked: "{core.colors.neutral.1000}",
486
+ indeterminate: "{core.colors.neutral.1000}",
493
487
  pressed: "{core.colors.neutral.100}",
494
488
  expanded: "{core.colors.neutral.50}"
495
489
  },
496
490
  border: {
497
491
  default: "{core.colors.neutral.200}",
498
492
  hover: "{core.colors.neutral.300}",
499
- active: "{core.colors.brand.500}",
493
+ active: "{core.colors.neutral.500}",
500
494
  focused: "{core.colors.brand.500}",
501
495
  disabled: "{core.colors.neutral.200}",
502
- selected: "{core.colors.brand.500}",
503
- checked: "{core.colors.brand.500}",
504
- indeterminate: "{core.colors.brand.300}",
496
+ selected: "{core.colors.neutral.1000}",
497
+ checked: "{core.colors.neutral.1000}",
498
+ indeterminate: "{core.colors.neutral.1000}",
505
499
  pressed: "{core.colors.neutral.300}",
506
- expanded: "{core.colors.brand.500}"
500
+ expanded: "{core.colors.neutral.500}"
507
501
  },
508
502
  text: {
509
503
  default: "{core.colors.neutral.900}",
510
504
  disabled: "{core.colors.neutral.500}",
511
505
  checked: "{core.colors.neutral.0}",
512
- indeterminate: "{core.colors.neutral.900}"
506
+ indeterminate: "{core.colors.neutral.0}"
513
507
  }
514
508
  },
515
509
  negative: {
@@ -596,7 +590,7 @@ var baseTheme = {
596
590
  checked: "{core.colors.neutral.500}",
597
591
  indeterminate: "{core.colors.neutral.300}",
598
592
  pressed: "{core.colors.neutral.500}",
599
- expanded: "{core.colors.brand.500}"
593
+ expanded: "{core.colors.neutral.500}"
600
594
  },
601
595
  text: {
602
596
  default: "{core.colors.neutral.700}",
@@ -612,8 +606,8 @@ var baseTheme = {
612
606
  hover: "{core.colors.neutral.50}",
613
607
  active: "{core.colors.neutral.100}",
614
608
  disabled: "{core.colors.neutral.100}",
615
- selected: "{core.colors.brand.50}",
616
- droptarget: "{core.colors.brand.50}",
609
+ selected: "{core.colors.neutral.100}",
610
+ droptarget: "{core.colors.neutral.100}",
617
611
  visited: "{core.colors.neutral.50}"
618
612
  },
619
613
  border: {
@@ -622,8 +616,8 @@ var baseTheme = {
622
616
  active: "{core.colors.neutral.300}",
623
617
  focused: "{core.colors.brand.500}",
624
618
  disabled: "{core.colors.neutral.100}",
625
- selected: "{core.colors.brand.300}",
626
- droptarget: "{core.colors.brand.300}"
619
+ selected: "{core.colors.neutral.400}",
620
+ droptarget: "{core.colors.neutral.400}"
627
621
  },
628
622
  text: {
629
623
  default: "{core.colors.neutral.900}",
@@ -637,7 +631,7 @@ var baseTheme = {
637
631
  hover: "{core.colors.neutral.100}",
638
632
  active: "{core.colors.neutral.200}",
639
633
  disabled: "{core.colors.neutral.100}",
640
- selected: "{core.colors.brand.50}",
634
+ selected: "{core.colors.neutral.100}",
641
635
  droptarget: "{core.colors.neutral.100}",
642
636
  visited: "{core.colors.neutral.100}"
643
637
  },
@@ -647,7 +641,7 @@ var baseTheme = {
647
641
  active: "{core.colors.neutral.300}",
648
642
  focused: "{core.colors.brand.500}",
649
643
  disabled: "{core.colors.neutral.100}",
650
- selected: "{core.colors.brand.300}"
644
+ selected: "{core.colors.neutral.400}"
651
645
  },
652
646
  text: {
653
647
  default: "{core.colors.neutral.700}",
@@ -843,16 +837,18 @@ var baseTheme = {
843
837
  },
844
838
  border: {
845
839
  default: "{core.colors.neutral.0}",
846
- focused: "{core.colors.brand.500}"
840
+ focused: "{core.colors.brand.500}",
841
+ selected: "{core.colors.neutral.1000}",
842
+ current: "{core.colors.neutral.1000}"
847
843
  },
848
844
  text: {
849
- default: "{core.colors.brand.700}",
850
- hover: "{core.colors.brand.900}",
851
- active: "{core.colors.brand.900}",
845
+ default: "{core.colors.neutral.800}",
846
+ hover: "{core.colors.neutral.1000}",
847
+ active: "{core.colors.neutral.1000}",
852
848
  disabled: "{core.colors.neutral.500}",
853
- current: "{core.colors.brand.900}",
849
+ current: "{core.colors.neutral.1000}",
854
850
  visited: "{core.colors.neutral.500}",
855
- expanded: "{core.colors.brand.900}"
851
+ expanded: "{core.colors.neutral.1000}"
856
852
  }
857
853
  },
858
854
  secondary: {
@@ -861,9 +857,9 @@ var baseTheme = {
861
857
  hover: "{core.colors.neutral.100}",
862
858
  active: "{core.colors.neutral.200}",
863
859
  disabled: "{core.colors.neutral.100}",
864
- selected: "{core.colors.brand.50}",
860
+ selected: "{core.colors.neutral.100}",
865
861
  droptarget: "{core.colors.neutral.100}",
866
- current: "{core.colors.brand.100}",
862
+ current: "{core.colors.neutral.200}",
867
863
  visited: "{core.colors.neutral.100}",
868
864
  expanded: "{core.colors.neutral.100}"
869
865
  },
@@ -873,15 +869,15 @@ var baseTheme = {
873
869
  active: "{core.colors.neutral.300}",
874
870
  focused: "{core.colors.brand.500}",
875
871
  disabled: "{core.colors.neutral.200}",
876
- selected: "{core.colors.brand.400}",
877
- current: "{core.colors.brand.500}"
872
+ selected: "{core.colors.neutral.1000}",
873
+ current: "{core.colors.neutral.1000}"
878
874
  },
879
875
  text: {
880
876
  default: "{core.colors.neutral.700}",
881
877
  hover: "{core.colors.neutral.900}",
882
878
  disabled: "{core.colors.neutral.500}",
883
- selected: "{core.colors.brand.700}",
884
- current: "{core.colors.brand.700}",
879
+ selected: "{core.colors.neutral.1000}",
880
+ current: "{core.colors.neutral.1000}",
885
881
  visited: "{core.colors.neutral.700}",
886
882
  expanded: "{core.colors.neutral.900}"
887
883
  }
@@ -953,6 +949,11 @@ var baseTheme = {
953
949
  raised: "{core.elevation.level.2}",
954
950
  overlay: "{core.elevation.level.3}",
955
951
  blocking: "{core.elevation.level.4}"
952
+ },
953
+ tonal: {
954
+ raised: "{core.colors.neutral.0}",
955
+ overlay: "{core.colors.neutral.0}",
956
+ blocking: "{core.colors.neutral.0}"
956
957
  }
957
958
  },
958
959
  text: {
@@ -1108,9 +1109,9 @@ var baseTheme = {
1108
1109
  spacing: {
1109
1110
  inset: {
1110
1111
  control: {
1111
- sm: "{core.spacing.3}",
1112
- md: "{core.spacing.4}",
1113
- lg: "{core.spacing.6}"
1112
+ sm: "{core.spacing.1}",
1113
+ md: "{core.spacing.2}",
1114
+ lg: "{core.spacing.4}"
1114
1115
  },
1115
1116
  surface: {
1116
1117
  sm: "{core.spacing.4}",
@@ -1145,11 +1146,7 @@ var baseTheme = {
1145
1146
  }
1146
1147
  },
1147
1148
  sizing: {
1148
- hit: {
1149
- min: "{core.sizing.hit.fine.min}",
1150
- base: "{core.sizing.hit.fine.base}",
1151
- prominent: "{core.sizing.hit.fine.prominent}"
1152
- },
1149
+ hit: "{core.sizing.hit.fine}",
1153
1150
  icon: {
1154
1151
  sm: "{core.sizing.ramp.ui.2}",
1155
1152
  md: "{core.sizing.ramp.ui.3}",
@@ -1356,23 +1353,31 @@ var darkAlternate = {
1356
1353
  hover: "{core.colors.neutral.500}",
1357
1354
  active: "{core.colors.neutral.500}",
1358
1355
  disabled: "{core.colors.neutral.900}",
1359
- selected: "{core.colors.brand.700}",
1356
+ selected: "{core.colors.neutral.800}",
1360
1357
  droptarget: "{core.colors.neutral.700}",
1361
1358
  pressed: "{core.colors.neutral.500}",
1362
1359
  expanded: "{core.colors.neutral.500}",
1363
- invalid: "{core.colors.neutral.700}"
1360
+ invalid: "{core.colors.neutral.700}",
1361
+ checked: "{core.colors.neutral.0}",
1362
+ indeterminate: "{core.colors.neutral.0}"
1364
1363
  },
1365
1364
  border: {
1366
1365
  default: "{core.colors.neutral.500}",
1367
1366
  hover: "{core.colors.neutral.300}",
1367
+ active: "{core.colors.neutral.300}",
1368
1368
  focused: "{core.colors.brand.500}",
1369
1369
  disabled: "{core.colors.neutral.700}",
1370
- invalid: "{core.colors.red.300}"
1370
+ invalid: "{core.colors.red.300}",
1371
+ selected: "{core.colors.neutral.300}",
1372
+ checked: "{core.colors.neutral.0}",
1373
+ indeterminate: "{core.colors.neutral.0}"
1371
1374
  },
1372
1375
  text: {
1373
1376
  default: "{core.colors.neutral.0}",
1374
1377
  disabled: "{core.colors.neutral.500}",
1375
- invalid: "{core.colors.neutral.0}"
1378
+ invalid: "{core.colors.neutral.0}",
1379
+ checked: "{core.colors.neutral.900}",
1380
+ indeterminate: "{core.colors.neutral.900}"
1376
1381
  }
1377
1382
  },
1378
1383
  secondary: {
@@ -1381,27 +1386,30 @@ var darkAlternate = {
1381
1386
  hover: "{core.colors.neutral.500}",
1382
1387
  active: "{core.colors.neutral.500}",
1383
1388
  disabled: "{core.colors.neutral.900}",
1384
- selected: "{core.colors.brand.700}",
1389
+ selected: "{core.colors.neutral.800}",
1385
1390
  droptarget: "{core.colors.neutral.700}",
1386
1391
  pressed: "{core.colors.neutral.500}",
1387
- expanded: "{core.colors.neutral.500}"
1392
+ expanded: "{core.colors.neutral.500}",
1393
+ checked: "{core.colors.neutral.0}",
1394
+ indeterminate: "{core.colors.neutral.0}"
1388
1395
  },
1389
1396
  border: {
1390
1397
  default: "{core.colors.neutral.500}",
1391
1398
  hover: "{core.colors.neutral.300}",
1392
- active: "{core.colors.brand.500}",
1399
+ active: "{core.colors.neutral.300}",
1393
1400
  focused: "{core.colors.brand.500}",
1394
1401
  disabled: "{core.colors.neutral.700}",
1395
- selected: "{core.colors.brand.500}",
1396
- checked: "{core.colors.brand.500}",
1397
- indeterminate: "{core.colors.brand.300}",
1402
+ selected: "{core.colors.neutral.300}",
1403
+ checked: "{core.colors.neutral.0}",
1404
+ indeterminate: "{core.colors.neutral.0}",
1398
1405
  pressed: "{core.colors.neutral.300}",
1399
- expanded: "{core.colors.brand.500}"
1406
+ expanded: "{core.colors.neutral.300}"
1400
1407
  },
1401
1408
  text: {
1402
1409
  default: "{core.colors.neutral.0}",
1403
1410
  disabled: "{core.colors.neutral.500}",
1404
- checked: "{core.colors.neutral.0}"
1411
+ checked: "{core.colors.neutral.900}",
1412
+ indeterminate: "{core.colors.neutral.900}"
1405
1413
  }
1406
1414
  },
1407
1415
  negative: {
@@ -1463,7 +1471,7 @@ var darkAlternate = {
1463
1471
  hover: "{core.colors.neutral.700}",
1464
1472
  active: "{core.colors.neutral.700}",
1465
1473
  disabled: "{core.colors.neutral.700}",
1466
- selected: "{core.colors.brand.900}",
1474
+ selected: "{core.colors.neutral.700}",
1467
1475
  droptarget: "{core.colors.neutral.700}",
1468
1476
  visited: "{core.colors.neutral.700}"
1469
1477
  },
@@ -1481,7 +1489,7 @@ var darkAlternate = {
1481
1489
  hover: "{core.colors.neutral.500}",
1482
1490
  active: "{core.colors.neutral.500}",
1483
1491
  disabled: "{core.colors.neutral.700}",
1484
- selected: "{core.colors.brand.900}",
1492
+ selected: "{core.colors.neutral.500}",
1485
1493
  droptarget: "{core.colors.neutral.700}",
1486
1494
  visited: "{core.colors.neutral.700}"
1487
1495
  },
@@ -1637,16 +1645,18 @@ var darkAlternate = {
1637
1645
  },
1638
1646
  border: {
1639
1647
  default: "{core.colors.neutral.900}",
1640
- focused: "{core.colors.brand.400}"
1648
+ focused: "{core.colors.brand.400}",
1649
+ selected: "{core.colors.neutral.0}",
1650
+ current: "{core.colors.neutral.0}"
1641
1651
  },
1642
1652
  text: {
1643
- default: "{core.colors.brand.300}",
1644
- hover: "{core.colors.brand.100}",
1645
- active: "{core.colors.brand.100}",
1653
+ default: "{core.colors.neutral.200}",
1654
+ hover: "{core.colors.neutral.0}",
1655
+ active: "{core.colors.neutral.0}",
1646
1656
  disabled: "{core.colors.neutral.500}",
1647
- current: "{core.colors.brand.100}",
1657
+ current: "{core.colors.neutral.0}",
1648
1658
  visited: "{core.colors.neutral.300}",
1649
- expanded: "{core.colors.brand.100}"
1659
+ expanded: "{core.colors.neutral.0}"
1650
1660
  }
1651
1661
  },
1652
1662
  secondary: {
@@ -1654,8 +1664,8 @@ var darkAlternate = {
1654
1664
  default: "{core.colors.neutral.900}",
1655
1665
  hover: "{core.colors.neutral.700}",
1656
1666
  active: "{core.colors.neutral.700}",
1657
- selected: "{core.colors.brand.900}",
1658
- current: "{core.colors.brand.900}",
1667
+ selected: "{core.colors.neutral.700}",
1668
+ current: "{core.colors.neutral.700}",
1659
1669
  visited: "{core.colors.neutral.900}",
1660
1670
  expanded: "{core.colors.neutral.700}",
1661
1671
  disabled: "{core.colors.neutral.700}",
@@ -1666,15 +1676,15 @@ var darkAlternate = {
1666
1676
  hover: "{core.colors.neutral.500}",
1667
1677
  active: "{core.colors.neutral.500}",
1668
1678
  focused: "{core.colors.brand.400}",
1669
- selected: "{core.colors.brand.500}",
1670
- current: "{core.colors.brand.500}"
1679
+ selected: "{core.colors.neutral.300}",
1680
+ current: "{core.colors.neutral.300}"
1671
1681
  },
1672
1682
  text: {
1673
1683
  default: "{core.colors.neutral.300}",
1674
1684
  hover: "{core.colors.neutral.0}",
1675
1685
  disabled: "{core.colors.neutral.500}",
1676
- selected: "{core.colors.brand.300}",
1677
- current: "{core.colors.brand.300}",
1686
+ selected: "{core.colors.neutral.0}",
1687
+ current: "{core.colors.neutral.0}",
1678
1688
  visited: "{core.colors.neutral.300}",
1679
1689
  expanded: "{core.colors.neutral.50}"
1680
1690
  }
@@ -1744,6 +1754,11 @@ var darkAlternate = {
1744
1754
  raised: "{core.elevation.emphatic.2}",
1745
1755
  overlay: "{core.elevation.emphatic.3}",
1746
1756
  blocking: "{core.elevation.emphatic.4}"
1757
+ },
1758
+ tonal: {
1759
+ raised: "{core.colors.neutral.800}",
1760
+ overlay: "{core.colors.neutral.700}",
1761
+ blocking: "{core.colors.neutral.700}"
1747
1762
  }
1748
1763
  }
1749
1764
  }
@@ -0,0 +1,96 @@
1
+ /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
+ import { n as toCssVars } from "./toCssVars-CTGqZ_t3.mjs";
3
+
4
+ //#region src/roots/preflight.ts
5
+ /**
6
+ * The theme's base stylesheet as a raw CSS string — box-sizing reset, body
7
+ * typography/colour bound to semantic tokens, and the reduced-motion guard.
8
+ * Inject once at the app root. Requires the `--tt-*` custom properties to be
9
+ * present (via `getThemeStylesContent` / `<ThemeStyles>` / `<ThemeProvider>`).
10
+ */
11
+ var PREFLIGHT_CSS = `*,
12
+ *::before,
13
+ *::after {
14
+ box-sizing: border-box;
15
+ }
16
+
17
+ html,
18
+ body {
19
+ margin: 0;
20
+ padding: 0;
21
+ }
22
+
23
+ body {
24
+ font-family: var(--tt-text-body-md-font-family, system-ui, sans-serif);
25
+ font-size: var(--tt-text-body-md-font-size);
26
+ line-height: var(--tt-text-body-md-line-height);
27
+ color: var(--tt-colors-informational-primary-text-default);
28
+ background-color: var(--tt-colors-informational-primary-background-default);
29
+ -webkit-font-smoothing: antialiased;
30
+ text-rendering: optimizeLegibility;
31
+ }
32
+
33
+ @media (prefers-reduced-motion: reduce) {
34
+ *,
35
+ *::before,
36
+ *::after {
37
+ animation-duration: 0.01ms !important;
38
+ animation-iteration-count: 1 !important;
39
+ transition-duration: 0.01ms !important;
40
+ scroll-behavior: auto !important;
41
+ }
42
+ }`;
43
+ /**
44
+ * Returns the theme's base stylesheet — see {@link PREFLIGHT_CSS}. A function
45
+ * for API symmetry with `getThemeStylesContent`; the value is static.
46
+ *
47
+ * @example
48
+ * ```ts
49
+ * import { getPreflightStyles } from '@ttoss/fsl-theme/css';
50
+ * res.type('text/css').send(getPreflightStyles());
51
+ * ```
52
+ */
53
+ var getPreflightStyles = () => {
54
+ return PREFLIGHT_CSS;
55
+ };
56
+
57
+ //#endregion
58
+ //#region src/css.ts
59
+ /**
60
+ * Returns the full CSS string for a theme bundle — all `--tt-*` custom
61
+ * properties, coarse-pointer overrides, reduced-motion overrides, and
62
+ * container query progressive enhancement — ready to inject into a
63
+ * `<style>` tag or serve as a static `.css` file.
64
+ *
65
+ * Symmetric counterpart to `getThemeScriptContent()` for CSS.
66
+ * Use `<ThemeStyles>` from `@ttoss/fsl-theme/react` for React apps.
67
+ *
68
+ * When `themeId` is omitted (canonical 1-theme model), CSS targets `:root` and
69
+ * the alternate mode selector becomes `:root[data-tt-mode="dark"]`. Pass
70
+ * `themeId` only for multi-theme scenarios (Storybook, micro-frontends).
71
+ *
72
+ * @example
73
+ * ```ts
74
+ * // Canonical: no themeId needed (CSS goes to :root)
75
+ * import { createTheme } from '@ttoss/fsl-theme';
76
+ * import { getThemeStylesContent } from '@ttoss/fsl-theme/css';
77
+ *
78
+ * const myBundle = createTheme();
79
+ *
80
+ * app.get('/theme.css', (_, res) => {
81
+ * res.type('text/css').send(getThemeStylesContent(myBundle));
82
+ * });
83
+ *
84
+ * // Multi-theme: explicit themeId for scoping
85
+ * res.type('text/css').send(getThemeStylesContent(myBundle, 'myTheme'));
86
+ * ```
87
+ */
88
+ var getThemeStylesContent = (bundle, themeId, options) => {
89
+ return toCssVars(bundle, {
90
+ themeId,
91
+ systemModeFallback: options?.systemModeFallback
92
+ }).toCssString();
93
+ };
94
+
95
+ //#endregion
96
+ export { PREFLIGHT_CSS as n, getPreflightStyles as r, getThemeStylesContent as t };
@@ -0,0 +1,113 @@
1
+ /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
+ const require_toCssVars = require('./toCssVars-NGi4K2Oc.cjs');
3
+
4
+ //#region src/roots/preflight.ts
5
+ /**
6
+ * The theme's base stylesheet as a raw CSS string — box-sizing reset, body
7
+ * typography/colour bound to semantic tokens, and the reduced-motion guard.
8
+ * Inject once at the app root. Requires the `--tt-*` custom properties to be
9
+ * present (via `getThemeStylesContent` / `<ThemeStyles>` / `<ThemeProvider>`).
10
+ */
11
+ var PREFLIGHT_CSS = `*,
12
+ *::before,
13
+ *::after {
14
+ box-sizing: border-box;
15
+ }
16
+
17
+ html,
18
+ body {
19
+ margin: 0;
20
+ padding: 0;
21
+ }
22
+
23
+ body {
24
+ font-family: var(--tt-text-body-md-font-family, system-ui, sans-serif);
25
+ font-size: var(--tt-text-body-md-font-size);
26
+ line-height: var(--tt-text-body-md-line-height);
27
+ color: var(--tt-colors-informational-primary-text-default);
28
+ background-color: var(--tt-colors-informational-primary-background-default);
29
+ -webkit-font-smoothing: antialiased;
30
+ text-rendering: optimizeLegibility;
31
+ }
32
+
33
+ @media (prefers-reduced-motion: reduce) {
34
+ *,
35
+ *::before,
36
+ *::after {
37
+ animation-duration: 0.01ms !important;
38
+ animation-iteration-count: 1 !important;
39
+ transition-duration: 0.01ms !important;
40
+ scroll-behavior: auto !important;
41
+ }
42
+ }`;
43
+ /**
44
+ * Returns the theme's base stylesheet — see {@link PREFLIGHT_CSS}. A function
45
+ * for API symmetry with `getThemeStylesContent`; the value is static.
46
+ *
47
+ * @example
48
+ * ```ts
49
+ * import { getPreflightStyles } from '@ttoss/fsl-theme/css';
50
+ * res.type('text/css').send(getPreflightStyles());
51
+ * ```
52
+ */
53
+ var getPreflightStyles = () => {
54
+ return PREFLIGHT_CSS;
55
+ };
56
+
57
+ //#endregion
58
+ //#region src/css.ts
59
+ /**
60
+ * Returns the full CSS string for a theme bundle — all `--tt-*` custom
61
+ * properties, coarse-pointer overrides, reduced-motion overrides, and
62
+ * container query progressive enhancement — ready to inject into a
63
+ * `<style>` tag or serve as a static `.css` file.
64
+ *
65
+ * Symmetric counterpart to `getThemeScriptContent()` for CSS.
66
+ * Use `<ThemeStyles>` from `@ttoss/fsl-theme/react` for React apps.
67
+ *
68
+ * When `themeId` is omitted (canonical 1-theme model), CSS targets `:root` and
69
+ * the alternate mode selector becomes `:root[data-tt-mode="dark"]`. Pass
70
+ * `themeId` only for multi-theme scenarios (Storybook, micro-frontends).
71
+ *
72
+ * @example
73
+ * ```ts
74
+ * // Canonical: no themeId needed (CSS goes to :root)
75
+ * import { createTheme } from '@ttoss/fsl-theme';
76
+ * import { getThemeStylesContent } from '@ttoss/fsl-theme/css';
77
+ *
78
+ * const myBundle = createTheme();
79
+ *
80
+ * app.get('/theme.css', (_, res) => {
81
+ * res.type('text/css').send(getThemeStylesContent(myBundle));
82
+ * });
83
+ *
84
+ * // Multi-theme: explicit themeId for scoping
85
+ * res.type('text/css').send(getThemeStylesContent(myBundle, 'myTheme'));
86
+ * ```
87
+ */
88
+ var getThemeStylesContent = (bundle, themeId, options) => {
89
+ return require_toCssVars.toCssVars(bundle, {
90
+ themeId,
91
+ systemModeFallback: options?.systemModeFallback
92
+ }).toCssString();
93
+ };
94
+
95
+ //#endregion
96
+ Object.defineProperty(exports, 'PREFLIGHT_CSS', {
97
+ enumerable: true,
98
+ get: function () {
99
+ return PREFLIGHT_CSS;
100
+ }
101
+ });
102
+ Object.defineProperty(exports, 'getPreflightStyles', {
103
+ enumerable: true,
104
+ get: function () {
105
+ return getPreflightStyles;
106
+ }
107
+ });
108
+ Object.defineProperty(exports, 'getThemeStylesContent', {
109
+ enumerable: true,
110
+ get: function () {
111
+ return getThemeStylesContent;
112
+ }
113
+ });