@atelic-action/ui 7.2.0 → 8.0.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.
Files changed (105) hide show
  1. package/README.md +312 -126
  2. package/package.json +14 -10
  3. package/src/app/ErrorFallback.tsx +6 -2
  4. package/src/app/context/AppContext.tsx +10 -1
  5. package/src/app/index.ts +0 -1
  6. package/src/app/layout/AppPage.tsx +36 -7
  7. package/src/app/layout/DesktopRail.tsx +9 -2
  8. package/src/app/layout/MobileMenu.tsx +5 -1
  9. package/src/app/layout/PageError.tsx +6 -3
  10. package/src/app/layout/PageSkeleton.tsx +33 -26
  11. package/src/app/layout/UserMenu.tsx +12 -6
  12. package/src/app/ui/alert.tsx +41 -11
  13. package/src/app/ui/badge.tsx +1 -1
  14. package/src/app/ui/button.tsx +2 -1
  15. package/src/app/ui/command.tsx +86 -21
  16. package/src/app/ui/country-dropdown.tsx +26 -47
  17. package/src/app/ui/form.tsx +46 -7
  18. package/src/app/ui/pagination.tsx +1 -1
  19. package/src/app/ui/progress.tsx +26 -12
  20. package/src/app/ui/search-input.tsx +16 -3
  21. package/src/app/ui/select.tsx +8 -3
  22. package/src/app/ui/slider.tsx +62 -15
  23. package/src/artifact/ArtifactShell.tsx +5 -1
  24. package/src/artifact/ErrorFallback.tsx +8 -1
  25. package/src/artifact/artifactConfig.ts +1 -1
  26. package/src/chrome/BrandLockup.tsx +71 -16
  27. package/src/chrome/ClosingBar.tsx +5 -3
  28. package/src/chrome/ContactDock.tsx +329 -0
  29. package/src/chrome/Footer.tsx +32 -9
  30. package/src/chrome/NavBadge.tsx +8 -0
  31. package/src/chrome/NavMegaPanel.tsx +388 -0
  32. package/src/chrome/SiteHeader.tsx +235 -18
  33. package/src/chrome/SiteMenu.tsx +197 -19
  34. package/src/chrome/SiteShell.tsx +130 -13
  35. package/src/chrome/StickyCTABar.tsx +56 -2
  36. package/src/chrome/brandMark.ts +56 -0
  37. package/src/chrome/icons.ts +58 -0
  38. package/src/chrome/index.ts +16 -0
  39. package/src/chrome/navSections.ts +55 -0
  40. package/src/components/ColumnChart.tsx +27 -2
  41. package/src/components/DataTable.tsx +104 -85
  42. package/src/components/Disclosure.tsx +3 -1
  43. package/src/components/Hint.tsx +3 -24
  44. package/src/components/NotFound.tsx +4 -1
  45. package/src/components/StarRating.tsx +45 -19
  46. package/src/components/ThresholdScale.tsx +36 -26
  47. package/src/email/atoms.tsx +13 -57
  48. package/src/email/frame.tsx +4 -6
  49. package/src/email/index.ts +4 -10
  50. package/src/email/scoreboard.tsx +107 -186
  51. package/src/email/text.ts +30 -0
  52. package/src/email/theme.tsx +76 -9
  53. package/src/hooks/useDismiss.ts +39 -0
  54. package/src/lib/useScrollsSideways.ts +26 -0
  55. package/src/primitives/Button.tsx +2 -0
  56. package/src/primitives/ProseBlocks.tsx +6 -1
  57. package/src/primitives/SectionHeading.tsx +3 -1
  58. package/src/primitives/StarRow.tsx +23 -8
  59. package/src/sections/BlogIndex.tsx +17 -3
  60. package/src/sections/BlogPost.tsx +10 -1
  61. package/src/sections/CTASection.tsx +2 -2
  62. package/src/sections/CalloutPanel.tsx +34 -0
  63. package/src/sections/ComparisonTable.tsx +23 -2
  64. package/src/sections/ContactForm.tsx +61 -17
  65. package/src/sections/FAQBrowser.tsx +11 -2
  66. package/src/sections/FeatureGrid.tsx +6 -2
  67. package/src/sections/FullBleedVideo.tsx +158 -0
  68. package/src/sections/Gallery.tsx +6 -4
  69. package/src/sections/Hero.tsx +63 -39
  70. package/src/sections/JumpRail.tsx +7 -0
  71. package/src/sections/LegalPage.tsx +10 -2
  72. package/src/sections/LinkColumns.tsx +64 -0
  73. package/src/sections/LocationSection.tsx +28 -5
  74. package/src/sections/Locations.tsx +17 -4
  75. package/src/sections/LogoMarquee.tsx +43 -11
  76. package/src/sections/MapEmbed.tsx +13 -9
  77. package/src/sections/PageHero.tsx +16 -2
  78. package/src/sections/ProcessSteps.tsx +27 -4
  79. package/src/sections/ProfileCards.tsx +12 -2
  80. package/src/sections/ProofStrip.tsx +44 -0
  81. package/src/sections/RevealSlider.tsx +28 -7
  82. package/src/sections/ReviewCarousel.tsx +17 -4
  83. package/src/sections/ReviewWall.tsx +2 -2
  84. package/src/sections/SplitSection.tsx +2 -1
  85. package/src/sections/index.ts +15 -6
  86. package/src/sections/siteConfig.ts +66 -3
  87. package/src/styles/app.css +24 -2
  88. package/src/styles/artifact.css +20 -8
  89. package/src/styles/base.css +42 -13
  90. package/src/styles/chrome.css +935 -47
  91. package/src/styles/components.css +104 -65
  92. package/src/styles/defaults.css +137 -0
  93. package/src/styles/gate.css +21 -10
  94. package/src/styles/primitives.css +97 -35
  95. package/src/styles/sections.css +477 -437
  96. package/src/styles/star-rating.css +1 -4
  97. package/src/tokens/palettes.ts +24 -4
  98. package/src/types.ts +212 -2
  99. package/src/app/CardErrorBoundary.tsx +0 -39
  100. package/src/sections/CTABanner.tsx +0 -93
  101. package/src/sections/DeviceShowcase.tsx +0 -39
  102. package/src/sections/MediaBand.tsx +0 -20
  103. package/src/sections/MenuList.tsx +0 -44
  104. package/src/sections/PressQuotes.tsx +0 -51
  105. package/src/sections/SocialStrip.tsx +0 -83
@@ -1,3 +1,4 @@
1
+ @import "./defaults.css";
1
2
  @import "./star-rating.css";
2
3
 
3
4
  /* Layout defaults for the components under src/components. A site's own
@@ -15,15 +16,17 @@
15
16
  `--primary` and `--card` hold something else (shadcn keeps bare HSL
16
17
  channels there) sets the `--ui-` names and leaves its own alone. */
17
18
  @layer atelic-ui {
19
+ /* The opener's padding is a share of the section spacing (base.css), with
20
+ the spacing it had before 8.0.0 where no base sheet sets the token. */
18
21
  .atelic-ui .not-found-hero {
19
- padding-top: clamp(40px, 7vw, 86px);
20
- padding-bottom: clamp(28px, 5vw, 60px);
22
+ padding-top: calc(var(--section-space) * 0.72);
23
+ padding-bottom: calc(var(--section-space) * 0.5);
21
24
  }
22
25
  /* SiteShell's main clears the fixed header for the page. A shell that does
23
26
  not (ArtifactShell, whose documents clear it in their own sheet) leaves
24
27
  the 404 to clear it here, or its heading sits under the header. */
25
28
  .atelic-ui main:not(.clears-nav) .not-found-hero {
26
- padding-top: calc(var(--nav-height, 72px) + clamp(40px, 7vw, 86px));
29
+ padding-top: calc(var(--nav-height, 72px) + var(--section-space) * 0.72);
27
30
  }
28
31
  .atelic-ui .not-found-hero h1 {
29
32
  margin: 16px 0 0;
@@ -37,21 +40,8 @@
37
40
  margin-top: 22px;
38
41
  }
39
42
 
40
- /* ---- Tones: the one palette this package carries, because good, a
41
- warning, and broken read green, amber, and red whatever the brand is.
42
- A site's theme may restate any of these on .atelic-ui. A component sets
43
+ /* ---- Tones: the palette sits with the defaults above. A component sets
43
44
  data-tone, and --tone, --tone-fill, and --tone-bg follow. ---- */
44
- .atelic-ui {
45
- --tone-good: #1b7f3b;
46
- --tone-good-fill: #37a35c;
47
- --tone-good-bg: #eaf6ee;
48
- --tone-warn: #a84500;
49
- --tone-warn-fill: #e8a317;
50
- --tone-warn-bg: #fff3df;
51
- --tone-bad: #b3261e;
52
- --tone-bad-fill: #d9483f;
53
- --tone-bad-bg: #fdecea;
54
- }
55
45
  .atelic-ui [data-tone="good"] {
56
46
  --tone: var(--tone-good);
57
47
  --tone-fill: var(--tone-good-fill);
@@ -68,7 +58,7 @@
68
58
  --tone-bg: var(--tone-bad-bg);
69
59
  }
70
60
  .atelic-ui [data-tone="info"] {
71
- --tone: var(--ui-primary, var(--primary));
61
+ --tone: var(--primary-ink, var(--ui-primary, var(--primary)));
72
62
  --tone-fill: var(--primary-bright);
73
63
  --tone-bg: var(--primary-tint);
74
64
  }
@@ -90,6 +80,10 @@
90
80
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
91
81
  }
92
82
  }
83
+ /* A stat's track may be narrower than its figure (rule 5). */
84
+ .atelic-ui .stat {
85
+ min-width: 0;
86
+ }
93
87
  .atelic-ui .stat-row.is-center .stat {
94
88
  text-align: center;
95
89
  }
@@ -99,19 +93,27 @@
99
93
  align-items: center;
100
94
  gap: 0.12em;
101
95
  font-size: clamp(2.2rem, 5vw, 3rem);
102
- font-weight: 800;
96
+ font-weight: var(--weight-heavy);
103
97
  letter-spacing: -0.03em;
104
- color: var(--tone, var(--ui-primary, var(--primary)));
98
+ color: var(--tone, var(--primary-ink, var(--ui-primary, var(--primary))));
105
99
  line-height: 1;
106
100
  font-variant-numeric: tabular-nums;
107
101
  }
108
- /* The figure with its denominator and unit never breaks; the change
109
- beside it is the one piece that may wrap under it on a narrow phone. */
102
+ /* The figure with its denominator and unit stays one group: they are its
103
+ flex items, and a flex line never wraps. A figure given as words
104
+ ("Since 1981") wraps between them inside its own item instead of
105
+ pushing the page wider than a phone, and a single word too long for
106
+ the column breaks. The change beside it is the one piece that may wrap
107
+ under it on a narrow phone. */
110
108
  .atelic-ui .stat-figure {
111
109
  display: inline-flex;
112
110
  align-items: center;
113
111
  gap: 0.12em;
114
- white-space: nowrap;
112
+ min-width: 0;
113
+ max-width: 100%;
114
+ /* anywhere, not break-word: only anywhere lowers this inline flex
115
+ item's minimum width, so a one word figure breaks in its column. */
116
+ overflow-wrap: anywhere;
115
117
  }
116
118
  .atelic-ui .stat-row.is-center .stat .num {
117
119
  justify-content: center;
@@ -123,13 +125,13 @@
123
125
  }
124
126
  .atelic-ui .stat .lbl {
125
127
  font-size: 0.95rem;
126
- font-weight: 650;
128
+ font-weight: var(--weight-strong);
127
129
  color: var(--ink);
128
130
  margin-top: 8px;
129
131
  }
130
132
  .atelic-ui .stat-period {
131
133
  margin-left: 0.5em;
132
- font-weight: 400;
134
+ font-weight: var(--weight-regular);
133
135
  color: var(--neutral-500);
134
136
  }
135
137
  .atelic-ui .stat-delta {
@@ -147,7 +149,7 @@
147
149
  display: inline-flex;
148
150
  align-items: center;
149
151
  gap: 2px;
150
- font-weight: 700;
152
+ font-weight: var(--weight-bold);
151
153
  color: var(--tone);
152
154
  }
153
155
  .atelic-ui .stat-delta-change svg {
@@ -169,7 +171,7 @@
169
171
  margin-left: 0.2em;
170
172
  margin-bottom: 0.08em;
171
173
  font-size: 0.42em;
172
- font-weight: 600;
174
+ font-weight: var(--weight-semibold);
173
175
  letter-spacing: 0;
174
176
  color: var(--neutral-500);
175
177
  }
@@ -179,7 +181,7 @@
179
181
  align-self: flex-end;
180
182
  margin-bottom: 0.08em;
181
183
  font-size: 0.42em;
182
- font-weight: 600;
184
+ font-weight: var(--weight-semibold);
183
185
  letter-spacing: 0;
184
186
  color: var(--neutral-500);
185
187
  }
@@ -194,7 +196,7 @@
194
196
  margin-left: 0.4em;
195
197
  margin-bottom: 0.14em;
196
198
  font-size: 0.34em;
197
- font-weight: 700;
199
+ font-weight: var(--weight-bold);
198
200
  letter-spacing: 0;
199
201
  color: var(--tone, var(--neutral-500));
200
202
  }
@@ -228,7 +230,7 @@
228
230
  .atelic-ui .stat-row.is-quiet .stat .num {
229
231
  align-items: baseline;
230
232
  gap: 4px;
231
- font: 300 var(--stat-size, 28px) / 1 var(--font-sans);
233
+ font: var(--weight-light) var(--stat-size, 28px) / 1 var(--font-sans);
232
234
  /* After the shorthand, which would otherwise reset it. */
233
235
  font-variant-numeric: tabular-nums;
234
236
  letter-spacing: -0.02em;
@@ -246,11 +248,11 @@
246
248
  align-self: baseline;
247
249
  margin-bottom: 0;
248
250
  margin-left: 0;
249
- font: 500 12px / 1 var(--font-mono);
251
+ font: var(--weight-medium) 12px / 1 var(--font-mono);
250
252
  }
251
253
  .atelic-ui .stat-row.is-quiet .stat .lbl {
252
254
  margin-top: 7px;
253
- font: 500 10px / 1.2 var(--font-sans);
255
+ font: var(--weight-medium) 10px / 1.2 var(--font-sans);
254
256
  letter-spacing: 0.1em;
255
257
  text-transform: uppercase;
256
258
  color: var(--neutral-500);
@@ -284,7 +286,7 @@
284
286
  background: transparent;
285
287
  padding: 0;
286
288
  text-align: left;
287
- font: 500 17px / 1 var(--font-sans);
289
+ font: var(--weight-medium) 17px / 1 var(--font-sans);
288
290
  letter-spacing: -0.01em;
289
291
  color: var(--ink);
290
292
  cursor: pointer;
@@ -349,7 +351,7 @@
349
351
  min-width: 0;
350
352
  }
351
353
  .atelic-ui .disclosure-label {
352
- font-weight: 650;
354
+ font-weight: var(--weight-strong);
353
355
  color: var(--ink);
354
356
  }
355
357
  .atelic-ui .disclosure-summary {
@@ -357,7 +359,7 @@
357
359
  text-wrap: pretty;
358
360
  }
359
361
  .atelic-ui .is-native > .disclosure-head:hover .disclosure-label {
360
- color: var(--ui-primary, var(--primary));
362
+ color: var(--primary-ink, var(--ui-primary, var(--primary)));
361
363
  }
362
364
  .atelic-ui .is-native > .disclosure-head .disclosure-chevron {
363
365
  transition: transform 0.15s;
@@ -410,7 +412,7 @@
410
412
  border: 0;
411
413
  border-bottom: 2px solid transparent;
412
414
  background: transparent;
413
- font: 500 16px / 1.2 var(--font-sans);
415
+ font: var(--weight-medium) 16px / 1.2 var(--font-sans);
414
416
  color: var(--ink-soft);
415
417
  /* Stays on one line until a label is wider than the row, then wraps. */
416
418
  max-width: 100%;
@@ -483,7 +485,7 @@
483
485
  flex: none;
484
486
  }
485
487
  .atelic-ui .callout-title {
486
- font-weight: 650;
488
+ font-weight: var(--weight-strong);
487
489
  color: var(--ink);
488
490
  text-wrap: pretty;
489
491
  }
@@ -526,7 +528,7 @@
526
528
  }
527
529
  .atelic-ui .checklist-label {
528
530
  display: block;
529
- font-weight: 600;
531
+ font-weight: var(--weight-semibold);
530
532
  color: var(--ink);
531
533
  }
532
534
  .atelic-ui .checklist li[data-tone="bad"] .checklist-label {
@@ -578,7 +580,7 @@
578
580
  border-radius: 999px;
579
581
  font-family: var(--font-mono);
580
582
  font-size: 7pt;
581
- font-weight: 600;
583
+ font-weight: var(--weight-semibold);
582
584
  letter-spacing: 0.08em;
583
585
  text-transform: uppercase;
584
586
  color: var(--ink-soft);
@@ -589,24 +591,24 @@
589
591
  /* The orange sits between the yellow's hue and the red's so the four
590
592
  stay apart on paper, and its letter clears AA on its own tint. */
591
593
  .atelic-ui .op-grade[data-grade="a"] {
592
- color: #1b7f3b;
593
- border-color: #1b7f3b;
594
- background: #eaf6ee;
594
+ color: var(--grade-a);
595
+ border-color: var(--grade-a-line);
596
+ background: var(--grade-a-bg);
595
597
  }
596
598
  .atelic-ui .op-grade[data-grade="b"] {
597
- color: #9a6b00;
598
- border-color: #c99a1a;
599
- background: #fdf5dc;
599
+ color: var(--grade-b);
600
+ border-color: var(--grade-b-line);
601
+ background: var(--grade-b-bg);
600
602
  }
601
603
  .atelic-ui .op-grade[data-grade="c"] {
602
- color: #a84500;
603
- border-color: #e8650a;
604
- background: #fff0e3;
604
+ color: var(--grade-c);
605
+ border-color: var(--grade-c-line);
606
+ background: var(--grade-c-bg);
605
607
  }
606
608
  .atelic-ui .op-grade[data-grade="d"] {
607
- color: #b3261e;
608
- border-color: #b3261e;
609
- background: #fdecea;
609
+ color: var(--grade-d);
610
+ border-color: var(--grade-d-line);
611
+ background: var(--grade-d-bg);
610
612
  }
611
613
  @media screen and (max-width: 899px) {
612
614
  .atelic-ui .op-grade {
@@ -631,7 +633,7 @@
631
633
  margin: 0;
632
634
  font-family: var(--font-mono);
633
635
  font-size: 13px;
634
- font-weight: 500;
636
+ font-weight: var(--weight-medium);
635
637
  letter-spacing: 0.1em;
636
638
  text-transform: uppercase;
637
639
  color: var(--neutral-500);
@@ -683,7 +685,7 @@
683
685
  background: var(--surface-alt, var(--neutral-100));
684
686
  font-family: var(--font-mono);
685
687
  font-size: 11.5px;
686
- font-weight: 500;
688
+ font-weight: var(--weight-medium);
687
689
  letter-spacing: 0.1em;
688
690
  text-transform: uppercase;
689
691
  color: var(--ink-soft);
@@ -741,7 +743,7 @@
741
743
  .atelic-ui .rc-name {
742
744
  grid-column: 2;
743
745
  font-size: 16px;
744
- font-weight: 650;
746
+ font-weight: var(--weight-strong);
745
747
  letter-spacing: -0.01em;
746
748
  line-height: 1.35;
747
749
  color: var(--ink);
@@ -765,7 +767,7 @@
765
767
  .atelic-ui .rc-line a {
766
768
  position: relative;
767
769
  z-index: 1;
768
- color: var(--ui-primary, var(--primary));
770
+ color: var(--primary-ink, var(--ui-primary, var(--primary)));
769
771
  text-decoration: underline;
770
772
  text-underline-offset: 2px;
771
773
  }
@@ -845,7 +847,7 @@
845
847
  .atelic-ui .rc-row:has(.rc-name a):focus-within .rc-name,
846
848
  .atelic-ui .rc-row:has(.rc-name a):hover .rc-go,
847
849
  .atelic-ui .rc-row:has(.rc-name a):focus-within .rc-go {
848
- color: var(--ui-primary, var(--primary));
850
+ color: var(--primary-ink, var(--ui-primary, var(--primary)));
849
851
  }
850
852
 
851
853
  /* ---- The charts' shared key: a swatch, a label, a figure ---- */
@@ -865,7 +867,7 @@
865
867
  gap: 7px;
866
868
  }
867
869
  .atelic-ui .chart-key b {
868
- font-weight: 650;
870
+ font-weight: var(--weight-strong);
869
871
  color: var(--ink);
870
872
  font-variant-numeric: tabular-nums;
871
873
  }
@@ -916,6 +918,15 @@
916
918
  gap: 12px;
917
919
  min-width: 0;
918
920
  }
921
+ /* With no bars the plot says so in the quiet words of the chart's labels. */
922
+ .atelic-ui .column-chart-empty {
923
+ flex: 1 1 auto;
924
+ padding: 18px 0;
925
+ border-bottom: 1px solid var(--neutral-200);
926
+ font-size: 0.82rem;
927
+ color: var(--ink-soft);
928
+ text-align: center;
929
+ }
919
930
  .atelic-ui .column-chart-group {
920
931
  flex: 1 1 0;
921
932
  min-width: 0;
@@ -968,7 +979,7 @@
968
979
  font-family: var(--font-sans);
969
980
  font-size: 0.8rem;
970
981
  letter-spacing: 0;
971
- font-weight: 650;
982
+ font-weight: var(--weight-strong);
972
983
  color: var(--ink);
973
984
  font-variant-numeric: tabular-nums;
974
985
  }
@@ -1016,7 +1027,7 @@
1016
1027
  box-shadow: 0 0 0 1.5px var(--tone-fill);
1017
1028
  }
1018
1029
  .atelic-ui .threshold-scale-value {
1019
- font-weight: 700;
1030
+ font-weight: var(--weight-bold);
1020
1031
  font-variant-numeric: tabular-nums;
1021
1032
  color: var(--tone);
1022
1033
  text-align: right;
@@ -1030,7 +1041,7 @@
1030
1041
  }
1031
1042
  .atelic-ui .threshold-scale-axis > span {
1032
1043
  color: var(--tone);
1033
- font-weight: 600;
1044
+ font-weight: var(--weight-semibold);
1034
1045
  white-space: nowrap;
1035
1046
  overflow: hidden;
1036
1047
  text-overflow: ellipsis;
@@ -1088,11 +1099,11 @@
1088
1099
  border: 1px solid var(--neutral-200);
1089
1100
  border-radius: var(--radius-sm);
1090
1101
  background: var(--ui-card, var(--card));
1091
- box-shadow: var(--shadow-md, 0 6px 20px rgb(0 0 0 / 0.1));
1102
+ box-shadow: var(--shadow-md, 0 6px 20px color-mix(in srgb, var(--shade) 10%, transparent));
1092
1103
  color: var(--ink);
1093
1104
  font-family: var(--font-sans, inherit);
1094
1105
  font-size: 0.8rem;
1095
- font-weight: 400;
1106
+ font-weight: var(--weight-regular);
1096
1107
  line-height: 1.45;
1097
1108
  letter-spacing: normal;
1098
1109
  text-transform: none;
@@ -1126,6 +1137,31 @@
1126
1137
  display: block;
1127
1138
  width: 100%;
1128
1139
  }
1140
+ /* Stacked, a row is a flex line: its cells shrink to the screen and a
1141
+ long word in one breaks (defaults.css, Long words), table or not. */
1142
+ .atelic-ui .data-table {
1143
+ min-width: 0;
1144
+ }
1145
+ .atelic-ui .data-table table {
1146
+ overflow-wrap: anywhere;
1147
+ }
1148
+ .atelic-ui .data-table tbody th,
1149
+ .atelic-ui .data-table td {
1150
+ min-width: 0;
1151
+ }
1152
+ /* The table's own box. Wide, a table with more columns than the page
1153
+ has room for scrolls inside it and the page never does (Component
1154
+ Rules 5 and 6); the component makes it focusable and names it only
1155
+ while it scrolls, so a keyboard can scroll it. */
1156
+ .atelic-ui .data-table-scroll {
1157
+ min-width: 0;
1158
+ max-width: 100%;
1159
+ overflow-x: auto;
1160
+ }
1161
+ .atelic-ui .data-table-scroll:focus-visible {
1162
+ outline: 2px solid var(--primary);
1163
+ outline-offset: 2px;
1164
+ }
1129
1165
  .atelic-ui .data-table thead {
1130
1166
  position: absolute;
1131
1167
  width: 1px;
@@ -1173,7 +1209,7 @@
1173
1209
  .atelic-ui .data-table tbody th {
1174
1210
  width: 100%;
1175
1211
  text-align: left;
1176
- font-weight: 400;
1212
+ font-weight: var(--weight-regular);
1177
1213
  }
1178
1214
  .atelic-ui .data-table td {
1179
1215
  display: inline-flex;
@@ -1217,6 +1253,9 @@
1217
1253
  .atelic-ui .data-table table {
1218
1254
  display: table;
1219
1255
  border-collapse: collapse;
1256
+ /* A cell keeps its longest word, so a table wider than the page
1257
+ scrolls in its box rather than breaking words to fit. */
1258
+ overflow-wrap: break-word;
1220
1259
  }
1221
1260
  .atelic-ui .data-table tbody {
1222
1261
  display: table-row-group;
@@ -1243,7 +1282,7 @@
1243
1282
  border-bottom: 1px solid var(--neutral-100);
1244
1283
  text-align: left;
1245
1284
  vertical-align: middle;
1246
- font-weight: 400;
1285
+ font-weight: var(--weight-regular);
1247
1286
  }
1248
1287
  .atelic-ui .data-table tbody th {
1249
1288
  width: auto;
@@ -1292,7 +1331,7 @@
1292
1331
  }
1293
1332
  .atelic-ui .data-table thead th button:hover,
1294
1333
  .atelic-ui .data-table thead th button[data-active] {
1295
- color: var(--ui-primary, var(--primary));
1334
+ color: var(--primary-ink, var(--ui-primary, var(--primary)));
1296
1335
  }
1297
1336
  .atelic-ui .data-table thead th button svg {
1298
1337
  flex: none;
@@ -0,0 +1,137 @@
1
+ /* The token defaults: every token the package's sheets read beyond the
2
+ theme contract, each at the value the sheets used before it was a token,
3
+ so a theme sets one only to change it. They sit on :where(.atelic-ui),
4
+ which weighs nothing, so a theme's own .atelic-ui rule, base.css's density
5
+ settings, and any band that restates one all win.
6
+
7
+ Every layered sheet imports this one first, so a consumer that loads any
8
+ sheet alone (an app with components.css, a page with primitives.css) has
9
+ every default the sheet reads. This is the one place they are declared;
10
+ README.md, Tokens, documents each. A raw color anywhere else in a layered
11
+ sheet fails tst/no-raw-colors.test.ts. The one rule beside them that is
12
+ not a token, the long word break (below), sits here for the same reason:
13
+ every sheet needs it, so every sheet gets it from here. */
14
+ @layer atelic-ui {
15
+ :where(.atelic-ui) {
16
+ /* Anything set on the primary fill (--primary-fill): a primary
17
+ button's words, the dock's head, the split hero's copy, a badge.
18
+ The fill itself and --primary-ink, the primary's words on the page
19
+ surface, are read in place with --primary as their fallback, so a
20
+ band that restates --primary carries both with it. */
21
+ --on-primary: #fff;
22
+ /* Anything set on a dark band or over a photograph: the footer's
23
+ headings, the transparent header, a hero's headline. */
24
+ --on-dark: #fff;
25
+ /* A chip's words on a dark band, a warm off white. */
26
+ --on-dark-chip: #efe7da;
27
+ /* Quiet body text on a dark band, such as a process step's line. */
28
+ --on-dark-quiet: rgb(248 244 237 / 0.74);
29
+ /* The quietest text on a dark band, the closing bar's copyright and
30
+ credit: 5.23 to 1 on a #151515 band. A light ground's gray
31
+ (--neutral-500) is too dark for it there. */
32
+ --on-dark-faint: rgb(248 244 237 / 0.52);
33
+ /* Pure shadow: a lightbox's backdrop, a caption's wash, a headline's
34
+ text shadow, a darker press on a dark button. */
35
+ --shade: #000;
36
+ /* The warm wash a hero lays over its photograph. */
37
+ --scrim: #140f0b;
38
+ /* The hatching of a placeholder before photography exists. */
39
+ --placeholder-ink: #8a7c68;
40
+ /* The light bar's hover behind a nav entry. */
41
+ --hover-tint: rgb(33 28 23 / 0.06);
42
+ /* The footer rating's stars when the theme sets no --star-fill. */
43
+ --review-gold: #f5b301;
44
+ /* The tones: the one palette this package carries, because good, a
45
+ warning, and broken read green, amber, and red whatever the brand
46
+ is. A site's theme may restate any of them. A component sets
47
+ data-tone, and --tone, --tone-fill, and --tone-bg follow (below). */
48
+ --tone-good: #197538;
49
+ --tone-good-fill: #37a35c;
50
+ --tone-good-bg: #eaf6ee;
51
+ --tone-warn: #a84500;
52
+ --tone-warn-fill: #e8a317;
53
+ --tone-warn-bg: #fff3df;
54
+ --tone-bad: #b3261e;
55
+ --tone-bad-fill: #d9483f;
56
+ --tone-bad-bg: #fdecea;
57
+ /* The four grades, A to D: green, yellow, orange, red, whatever the
58
+ brand is, each as words, a rule, and a ground. A grade whose value is
59
+ a tone's reads the tone, so a theme restating the tone moves both. */
60
+ --grade-a: var(--tone-good);
61
+ --grade-a-line: var(--tone-good);
62
+ --grade-a-bg: var(--tone-good-bg);
63
+ --grade-b: #8a5f00;
64
+ --grade-b-line: #c99a1a;
65
+ --grade-b-bg: #fdf5dc;
66
+ --grade-c: var(--tone-warn);
67
+ --grade-c-line: #e8650a;
68
+ --grade-c-bg: #fff0e3;
69
+ --grade-d: var(--tone-bad);
70
+ --grade-d-line: var(--tone-bad);
71
+ --grade-d-bg: var(--tone-bad-bg);
72
+ /* The weights every sheet asks for, by name. A font kit with only 400
73
+ and 700 maps each to one of those (medium to 400, semibold and
74
+ heavy to 700, say), so the browser synthesizes nothing. Strong is
75
+ the report components' in between weight for a label that has to
76
+ stand out of semibold text; light is a stat row's large figure. */
77
+ --weight-light: 300;
78
+ --weight-regular: 400;
79
+ --weight-medium: 500;
80
+ --weight-semibold: 600;
81
+ --weight-strong: 650;
82
+ --weight-bold: 700;
83
+ --weight-heavy: 800;
84
+ /* Three theme tokens a theme is expected to set, as every template's
85
+ does, given plain neutral values here so a theme without them still
86
+ draws something and no site's brand leaks into another's: the
87
+ raised shadow (an image frame, the map's chip, a card), the higher
88
+ one (a lifted frame, a panel), both in plain black at a low alpha,
89
+ and the script face of a sign off, a generic chain of the system
90
+ scripts, since the package bundles no font. */
91
+ --shadow-md: 0 4px 14px rgb(0 0 0 / 0.08), 0 12px 32px rgb(0 0 0 / 0.06);
92
+ --shadow-lg: 0 10px 30px rgb(0 0 0 / 0.12), 0 30px 70px rgb(0 0 0 / 0.1);
93
+ --font-script: "Brush Script MT", "Segoe Script", "Snell Roundhand", cursive;
94
+ /* The header mark's height; its width follows the image's ratio. */
95
+ --brand-mark-height: 30px;
96
+ /* The section spacing where no base sheet sets it (an app importing
97
+ this sheet alone): the roomier rhythm sites had before 8.0.0.
98
+ base.css's density settings outrank this. */
99
+ --section-space: clamp(56px, 9vw, 120px);
100
+ --block-gap: 44px;
101
+ --card-min: 240px;
102
+ }
103
+
104
+ /* ---- Long words ----
105
+ A word too long for its line (a bare URL, a long address, a handle)
106
+ breaks where it must instead of scrolling a phone sideways. Ordinary
107
+ words still wrap at spaces: the break happens only when a word alone
108
+ overflows its line. It is anywhere and not break-word because only
109
+ anywhere lowers a flex or grid item's minimum content width, so the
110
+ tracks a word sits in can shrink to the screen (Component Rules 5).
111
+ Set once on the root and inherited, so every text element under it has
112
+ it, whichever sheets a consumer loads. A table keeps break-word:
113
+ anywhere would collapse an auto table's columns below their longest
114
+ ordinary word, and a wide table scrolls in its own box instead (rule
115
+ 6). Both weigh nothing, so any component rule that holds a run whole
116
+ (the brand's name, a price, a phone number) wins without a fight.
117
+ stories/foundations/LongWords.stories.tsx holds the crowded rows. */
118
+ :where(.atelic-ui) {
119
+ overflow-wrap: anywhere;
120
+ }
121
+ :where(.atelic-ui table) {
122
+ overflow-wrap: break-word;
123
+ }
124
+ /* A phone number is one thing to read and dial, so it never breaks, at
125
+ its spaces or its hyphen, wherever it is set (Component Rules 17). */
126
+ :where(.atelic-ui a[href^="tel:"]) {
127
+ white-space: nowrap;
128
+ }
129
+
130
+ /* A ::backdrop inherits no custom property before Safari 17.4 and Chrome
131
+ 122, so a backdrop that reads --shade finds nothing there. The shade is
132
+ given to the backdrop itself under its own name, which a backdrop reads
133
+ as its fallback; where the backdrop inherits, the theme's --shade wins. */
134
+ :where(.atelic-ui) ::backdrop {
135
+ --backdrop-shade: #000;
136
+ }
137
+ }
@@ -1,3 +1,4 @@
1
+ @import "./defaults.css";
1
2
  /* The access gate's two faces: the sign in screen (GateLogin) and the
2
3
  confidential watermark (Watermark). Every value is a theme token, so the
3
4
  gate recolors with the rest of a site. Scoped under `.atelic-ui`,
@@ -23,9 +24,12 @@
23
24
  font-family: var(--font-serif);
24
25
  font-style: italic;
25
26
  font-size: 24px;
26
- color: var(--ui-primary, var(--primary));
27
+ color: var(--primary-ink, var(--ui-primary, var(--primary)));
27
28
  }
29
+ /* The label beside the name keeps its word whole, so a long name
30
+ wraps at its spaces rather than squeezing the label mid word. */
28
31
  .atelic-ui .gate-brand-sub {
32
+ overflow-wrap: normal;
29
33
  font-family: var(--font-mono);
30
34
  font-size: 11px;
31
35
  letter-spacing: 0.22em;
@@ -47,7 +51,7 @@
47
51
  font-size: 12px;
48
52
  letter-spacing: 0.18em;
49
53
  text-transform: uppercase;
50
- color: var(--ui-primary, var(--primary));
54
+ color: var(--primary-ink, var(--ui-primary, var(--primary)));
51
55
  margin: 0 0 16px;
52
56
  }
53
57
  .atelic-ui .gate-headline {
@@ -81,7 +85,7 @@
81
85
  font-family: var(--font-sans);
82
86
  font-size: 15px;
83
87
  /* The pill, matching the primary Button, so the pair reads as one
84
- control set (Forni's review of the SkySpec gate, 2026-08-25). */
88
+ control set (Forni's review of a client's gate, 2026-08-25). */
85
89
  padding: 15px 22px;
86
90
  border-radius: var(--radius-pill);
87
91
  border: 1px solid var(--neutral-200);
@@ -103,12 +107,16 @@
103
107
  font-size: 11.5px;
104
108
  color: var(--neutral-500);
105
109
  }
110
+ /* The link is told from the words around it by an underline, not by its
111
+ color alone (WCAG 1.4.1); the hover thickens it. */
106
112
  .atelic-ui .gate-fine a {
107
- color: var(--ui-primary, var(--primary));
108
- text-decoration: none;
113
+ color: var(--primary-ink, var(--ui-primary, var(--primary)));
114
+ text-decoration: underline;
115
+ text-decoration-thickness: 1px;
116
+ text-underline-offset: 2px;
109
117
  }
110
118
  .atelic-ui .gate-fine a:hover {
111
- text-decoration: underline;
119
+ text-decoration-thickness: 2px;
112
120
  }
113
121
 
114
122
  .atelic-ui .gate-sent {
@@ -139,7 +147,7 @@
139
147
  .atelic-ui .gate-link-button {
140
148
  background: none;
141
149
  border: none;
142
- color: var(--ui-primary, var(--primary));
150
+ color: var(--primary-ink, var(--ui-primary, var(--primary)));
143
151
  cursor: pointer;
144
152
  font: inherit;
145
153
  padding: 0;
@@ -167,12 +175,15 @@
167
175
  letter-spacing: 0.03em;
168
176
  background: var(--surface-dark);
169
177
  color: var(--surface);
170
- box-shadow: var(--shadow-md, 0 8px 24px -10px rgba(0, 0, 0, 0.5));
178
+ box-shadow: var(
179
+ --shadow-md,
180
+ 0 8px 24px -10px color-mix(in srgb, var(--shade) 50%, transparent)
181
+ );
171
182
  pointer-events: none;
172
183
  }
173
184
  .atelic-ui .gate-wm b {
174
- color: #fff;
175
- font-weight: 600;
185
+ color: var(--on-dark);
186
+ font-weight: var(--weight-semibold);
176
187
  }
177
188
  .atelic-ui .gate-wm-dot {
178
189
  width: 7px;