@zazz-ui/core 0.1.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 (260) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/LICENSE +21 -0
  3. package/README.md +61 -0
  4. package/dist/sri.json +75 -0
  5. package/dist/zazz.css +1 -0
  6. package/dist/zazz.js +1 -0
  7. package/examples/about.html +590 -0
  8. package/examples/components.html +1040 -0
  9. package/examples/forms.html +511 -0
  10. package/examples/index.html +268 -0
  11. package/examples/layout.html +320 -0
  12. package/examples/products.html +846 -0
  13. package/examples/responsive.html +339 -0
  14. package/package.json +85 -0
  15. package/src/base/_layers.css +12 -0
  16. package/src/base/_layout.css +568 -0
  17. package/src/base/_reset.css +515 -0
  18. package/src/base/_typography.css +495 -0
  19. package/src/base/_utilities.css +6628 -0
  20. package/src/base/_variables.css +682 -0
  21. package/src/base/_view-transitions.css +103 -0
  22. package/src/base/command-score.d.ts +12 -0
  23. package/src/base/command-score.d.ts.map +1 -0
  24. package/src/base/command-score.js +151 -0
  25. package/src/base/command-score.ts +192 -0
  26. package/src/base/dialog-lifecycle.d.ts +11 -0
  27. package/src/base/dialog-lifecycle.d.ts.map +1 -0
  28. package/src/base/dialog-lifecycle.js +65 -0
  29. package/src/base/dialog-lifecycle.ts +80 -0
  30. package/src/base/embla.d.ts +90 -0
  31. package/src/base/embla.d.ts.map +1 -0
  32. package/src/base/embla.js +643 -0
  33. package/src/base/embla.ts +791 -0
  34. package/src/base/hotkeys.d.ts +82 -0
  35. package/src/base/hotkeys.d.ts.map +1 -0
  36. package/src/base/hotkeys.js +141 -0
  37. package/src/base/hotkeys.ts +195 -0
  38. package/src/base/navigation.d.ts +2 -0
  39. package/src/base/navigation.d.ts.map +1 -0
  40. package/src/base/navigation.js +136 -0
  41. package/src/base/navigation.ts +151 -0
  42. package/src/base/reveal.d.ts +80 -0
  43. package/src/base/reveal.d.ts.map +1 -0
  44. package/src/base/reveal.js +305 -0
  45. package/src/base/reveal.ts +379 -0
  46. package/src/base/signals.d.ts +89 -0
  47. package/src/base/signals.d.ts.map +1 -0
  48. package/src/base/signals.js +134 -0
  49. package/src/base/signals.ts +164 -0
  50. package/src/base/typeahead.d.ts +105 -0
  51. package/src/base/typeahead.d.ts.map +1 -0
  52. package/src/base/typeahead.js +411 -0
  53. package/src/base/typeahead.ts +500 -0
  54. package/src/base/utils.d.ts +56 -0
  55. package/src/base/utils.d.ts.map +1 -0
  56. package/src/base/utils.js +88 -0
  57. package/src/base/utils.ts +98 -0
  58. package/src/base/zazz-element.d.ts +44 -0
  59. package/src/base/zazz-element.d.ts.map +1 -0
  60. package/src/base/zazz-element.js +59 -0
  61. package/src/base/zazz-element.ts +73 -0
  62. package/src/globals.d.ts +148 -0
  63. package/src/head.d.ts +95 -0
  64. package/src/head.d.ts.map +1 -0
  65. package/src/head.js +311 -0
  66. package/src/head.ts +433 -0
  67. package/src/index.css +71 -0
  68. package/src/index.d.ts +36 -0
  69. package/src/index.d.ts.map +1 -0
  70. package/src/index.js +35 -0
  71. package/src/index.ts +36 -0
  72. package/src/manifest.d.ts +90 -0
  73. package/src/manifest.d.ts.map +1 -0
  74. package/src/manifest.js +614 -0
  75. package/src/manifest.ts +667 -0
  76. package/src/primitives/accordion/accordion.css +104 -0
  77. package/src/primitives/accordion/accordion.html +69 -0
  78. package/src/primitives/alert-dialog/alert-dialog.css +38 -0
  79. package/src/primitives/alert-dialog/alert-dialog.html +53 -0
  80. package/src/primitives/autocomplete/autocomplete-groups.html +77 -0
  81. package/src/primitives/autocomplete/autocomplete.css +114 -0
  82. package/src/primitives/autocomplete/autocomplete.d.ts +30 -0
  83. package/src/primitives/autocomplete/autocomplete.d.ts.map +1 -0
  84. package/src/primitives/autocomplete/autocomplete.html +66 -0
  85. package/src/primitives/autocomplete/autocomplete.js +41 -0
  86. package/src/primitives/autocomplete/autocomplete.ts +46 -0
  87. package/src/primitives/avatar/avatar.html +44 -0
  88. package/src/primitives/badge/badge-icon.html +36 -0
  89. package/src/primitives/badge/badge.css +251 -0
  90. package/src/primitives/badge/badge.html +7 -0
  91. package/src/primitives/breadcrumbs/breadcrumbs.html +9 -0
  92. package/src/primitives/button/button-icon-only.html +84 -0
  93. package/src/primitives/button/button-icon.html +82 -0
  94. package/src/primitives/button/button.css +319 -0
  95. package/src/primitives/button/button.html +8 -0
  96. package/src/primitives/button-group/button-group-vertical.html +6 -0
  97. package/src/primitives/button-group/button-group.css +94 -0
  98. package/src/primitives/button-group/button-group.html +64 -0
  99. package/src/primitives/card/card-subgrid.html +118 -0
  100. package/src/primitives/card/card.html +53 -0
  101. package/src/primitives/carousel/carousel.css +61 -0
  102. package/src/primitives/carousel/carousel.d.ts +16 -0
  103. package/src/primitives/carousel/carousel.d.ts.map +1 -0
  104. package/src/primitives/carousel/carousel.html +315 -0
  105. package/src/primitives/carousel/carousel.js +73 -0
  106. package/src/primitives/carousel/carousel.ts +84 -0
  107. package/src/primitives/checkbox/checkbox-tasklist.html +71 -0
  108. package/src/primitives/checkbox/checkbox.css +82 -0
  109. package/src/primitives/checkbox/checkbox.d.ts +21 -0
  110. package/src/primitives/checkbox/checkbox.d.ts.map +1 -0
  111. package/src/primitives/checkbox/checkbox.html +17 -0
  112. package/src/primitives/checkbox/checkbox.js +190 -0
  113. package/src/primitives/checkbox/checkbox.ts +219 -0
  114. package/src/primitives/combobox/combobox-multiselect.html +91 -0
  115. package/src/primitives/combobox/combobox.css +307 -0
  116. package/src/primitives/combobox/combobox.d.ts +100 -0
  117. package/src/primitives/combobox/combobox.d.ts.map +1 -0
  118. package/src/primitives/combobox/combobox.html +73 -0
  119. package/src/primitives/combobox/combobox.js +503 -0
  120. package/src/primitives/combobox/combobox.ts +559 -0
  121. package/src/primitives/command/command-actions.d.ts +31 -0
  122. package/src/primitives/command/command-actions.d.ts.map +1 -0
  123. package/src/primitives/command/command-actions.html +89 -0
  124. package/src/primitives/command/command-actions.js +70 -0
  125. package/src/primitives/command/command-actions.ts +77 -0
  126. package/src/primitives/command/command-dialog.html +77 -0
  127. package/src/primitives/command/command.css +151 -0
  128. package/src/primitives/command/command.d.ts +52 -0
  129. package/src/primitives/command/command.d.ts.map +1 -0
  130. package/src/primitives/command/command.html +119 -0
  131. package/src/primitives/command/command.js +146 -0
  132. package/src/primitives/command/command.ts +157 -0
  133. package/src/primitives/dialog/dialog-with-form.html +200 -0
  134. package/src/primitives/dialog/dialog.css +229 -0
  135. package/src/primitives/dialog/dialog.html +90 -0
  136. package/src/primitives/fields/fields.css +278 -0
  137. package/src/primitives/input/input-icon-leading.html +19 -0
  138. package/src/primitives/input/input-icon-trailing.html +18 -0
  139. package/src/primitives/input/input.css +114 -0
  140. package/src/primitives/input/input.html +61 -0
  141. package/src/primitives/input-group/input-group-password-group.html +108 -0
  142. package/src/primitives/input-group/input-group.css +215 -0
  143. package/src/primitives/input-group/input-group.html +132 -0
  144. package/src/primitives/kbd/kbd-group.html +18 -0
  145. package/src/primitives/kbd/kbd.css +87 -0
  146. package/src/primitives/kbd/kbd.html +7 -0
  147. package/src/primitives/lightbox/lightbox.css +459 -0
  148. package/src/primitives/lightbox/lightbox.d.ts +7 -0
  149. package/src/primitives/lightbox/lightbox.d.ts.map +1 -0
  150. package/src/primitives/lightbox/lightbox.html +665 -0
  151. package/src/primitives/lightbox/lightbox.js +96 -0
  152. package/src/primitives/lightbox/lightbox.ts +113 -0
  153. package/src/primitives/menu/menu-interest.html +52 -0
  154. package/src/primitives/menu/menu.css +55 -0
  155. package/src/primitives/menu/menu.d.ts +38 -0
  156. package/src/primitives/menu/menu.d.ts.map +1 -0
  157. package/src/primitives/menu/menu.html +70 -0
  158. package/src/primitives/menu/menu.js +117 -0
  159. package/src/primitives/menu/menu.ts +131 -0
  160. package/src/primitives/menubar/menubar-help-search.html +103 -0
  161. package/src/primitives/menubar/menubar.html +166 -0
  162. package/src/primitives/meter/meter.css +178 -0
  163. package/src/primitives/meter/meter.html +38 -0
  164. package/src/primitives/mobile-menu/mobile-menu.css +145 -0
  165. package/src/primitives/mobile-menu/mobile-menu.html +614 -0
  166. package/src/primitives/navigation-menu/navigation-menu-featured.html +76 -0
  167. package/src/primitives/navigation-menu/navigation-menu-icon-grid.html +158 -0
  168. package/src/primitives/navigation-menu/navigation-menu-interest.html +103 -0
  169. package/src/primitives/navigation-menu/navigation-menu-megamenu.html +141 -0
  170. package/src/primitives/navigation-menu/navigation-menu-simple.html +96 -0
  171. package/src/primitives/navigation-menu/navigation-menu.css +295 -0
  172. package/src/primitives/navigation-menu/navigation-menu.html +576 -0
  173. package/src/primitives/otp/otp.css +126 -0
  174. package/src/primitives/otp/otp.d.ts +89 -0
  175. package/src/primitives/otp/otp.d.ts.map +1 -0
  176. package/src/primitives/otp/otp.html +22 -0
  177. package/src/primitives/otp/otp.js +226 -0
  178. package/src/primitives/otp/otp.ts +279 -0
  179. package/src/primitives/password-group/password-group.css +238 -0
  180. package/src/primitives/password-group/password-group.d.ts +25 -0
  181. package/src/primitives/password-group/password-group.d.ts.map +1 -0
  182. package/src/primitives/password-group/password-group.html +109 -0
  183. package/src/primitives/password-group/password-group.js +76 -0
  184. package/src/primitives/password-group/password-group.ts +95 -0
  185. package/src/primitives/popover/popover.css +233 -0
  186. package/src/primitives/progress/progress-indeterminate.html +1 -0
  187. package/src/primitives/progress/progress.css +105 -0
  188. package/src/primitives/progress/progress.html +7 -0
  189. package/src/primitives/prose/prose.html +65 -0
  190. package/src/primitives/radio/radio.css +84 -0
  191. package/src/primitives/radio/radio.html +17 -0
  192. package/src/primitives/reveal/reveal.css +167 -0
  193. package/src/primitives/select/multiselect.d.ts +43 -0
  194. package/src/primitives/select/multiselect.d.ts.map +1 -0
  195. package/src/primitives/select/multiselect.js +147 -0
  196. package/src/primitives/select/multiselect.ts +188 -0
  197. package/src/primitives/select/select-align.html +49 -0
  198. package/src/primitives/select/select-multiple.html +12 -0
  199. package/src/primitives/select/select-sides.html +65 -0
  200. package/src/primitives/select/select.css +481 -0
  201. package/src/primitives/select/select.html +16 -0
  202. package/src/primitives/separator/separator.css +49 -0
  203. package/src/primitives/separator/separator.html +16 -0
  204. package/src/primitives/slider/slider.css +122 -0
  205. package/src/primitives/slider/slider.html +1 -0
  206. package/src/primitives/switch/switch.css +126 -0
  207. package/src/primitives/switch/switch.html +13 -0
  208. package/src/primitives/table/table-alternating.html +36 -0
  209. package/src/primitives/table/table-grid.html +30 -0
  210. package/src/primitives/table/table-size-sm.html +26 -0
  211. package/src/primitives/table/table.css +158 -0
  212. package/src/primitives/table/table.html +45 -0
  213. package/src/primitives/tabs/tabs.css +328 -0
  214. package/src/primitives/tabs/tabs.d.ts +35 -0
  215. package/src/primitives/tabs/tabs.d.ts.map +1 -0
  216. package/src/primitives/tabs/tabs.html +75 -0
  217. package/src/primitives/tabs/tabs.js +84 -0
  218. package/src/primitives/tabs/tabs.ts +93 -0
  219. package/src/primitives/textarea/textarea.css +78 -0
  220. package/src/primitives/textarea/textarea.html +10 -0
  221. package/src/primitives/toaster/toaster.css +309 -0
  222. package/src/primitives/toaster/toaster.d.ts +138 -0
  223. package/src/primitives/toaster/toaster.d.ts.map +1 -0
  224. package/src/primitives/toaster/toaster.html +77 -0
  225. package/src/primitives/toaster/toaster.js +736 -0
  226. package/src/primitives/toaster/toaster.ts +823 -0
  227. package/src/primitives/toggle/toggle.css +295 -0
  228. package/src/primitives/toggle/toggle.html +68 -0
  229. package/src/primitives/toggle-group/toggle-group-multiple.html +14 -0
  230. package/src/primitives/toggle-group/toggle-group-vertical.html +14 -0
  231. package/src/primitives/toggle-group/toggle-group.css +73 -0
  232. package/src/primitives/toggle-group/toggle-group.html +53 -0
  233. package/src/primitives/toolbar/toolbar.html +45 -0
  234. package/src/primitives/tooltip/tooltip-disabled.html +19 -0
  235. package/src/primitives/tooltip/tooltip-sides.html +57 -0
  236. package/src/primitives/tooltip/tooltip-with-kbd.html +31 -0
  237. package/src/primitives/tooltip/tooltip.css +235 -0
  238. package/src/primitives/tooltip/tooltip.html +12 -0
  239. package/src/primitives/utilities/aspect-ratio.html +17 -0
  240. package/src/primitives/utilities/basis.html +27 -0
  241. package/src/primitives/utilities/col-span.html +23 -0
  242. package/src/primitives/utilities/compose.html +19 -0
  243. package/src/primitives/utilities/flex-align.html +26 -0
  244. package/src/primitives/utilities/flex-direction.html +36 -0
  245. package/src/primitives/utilities/flex-grow.html +17 -0
  246. package/src/primitives/utilities/gap.html +62 -0
  247. package/src/primitives/utilities/grid-cols.html +20 -0
  248. package/src/primitives/utilities/grid-pile.html +5 -0
  249. package/src/primitives/utilities/grid-responsive.html +31 -0
  250. package/src/primitives/utilities/margin-auto.html +13 -0
  251. package/src/primitives/utilities/object-fit.html +41 -0
  252. package/src/primitives/utilities/order.html +17 -0
  253. package/src/primitives/utilities/overflow.html +26 -0
  254. package/src/primitives/utilities/padding-compose.html +23 -0
  255. package/src/primitives/utilities/padding.html +30 -0
  256. package/src/primitives/utilities/position.html +13 -0
  257. package/src/primitives/utilities/responsive-flex.html +22 -0
  258. package/src/primitives/utilities/responsive-grid.html +31 -0
  259. package/src/primitives/utilities/size.html +22 -0
  260. package/src/primitives/utilities/width.html +22 -0
@@ -0,0 +1,495 @@
1
+ /**
2
+ * _typography.css — Prose (.ui-prose) and figcaption reset
3
+ *
4
+ * @layer variables, reset, components, utilities
5
+ * @requires layers.css, _variables.css, _reset.css (figcaption baseline)
6
+ * @uses Type tokens — consumes --font-family-*, --font-size-*,
7
+ * --font-weight-*, --leading-*, --tracking-* from _variables.css;
8
+ * exposes .text-* (scale) and Tailwind-style .font-* (weight) utilities
9
+ * @uses font-optical-sizing — heading optical size
10
+ * @tokens --ui-prose-* (@layer variables)
11
+ */
12
+
13
+ @layer variables {
14
+ :root {
15
+ --ui-prose-figcaption-margin: var(--gap-xs) 0 0 0;
16
+ --ui-prose-img-radius: var(--radius-md);
17
+ --ui-prose-img-border: none;
18
+ --ui-prose-link-color: var(--primary);
19
+ }
20
+ }
21
+
22
+ @layer zazz.components {
23
+ /* ===========================================================================
24
+ TYPOGRAPHY — prose component styles
25
+ =========================================================================== */
26
+
27
+ :where(.ui-prose) {
28
+ flex-direction: column;
29
+ display: flex;
30
+ }
31
+
32
+ :where(.ui-prose h1) {
33
+ font-family: var(--font-family-heading);
34
+ font-size: var(--font-size-h1);
35
+ line-height: var(--leading-h1);
36
+ font-weight: var(--font-weight-heading);
37
+ letter-spacing: var(--tracking-h1);
38
+ text-wrap: balance;
39
+ font-optical-sizing: auto;
40
+ }
41
+
42
+ :where(.ui-prose h2) {
43
+ font-family: var(--font-family-heading);
44
+ font-size: var(--font-size-h2);
45
+ line-height: var(--leading-h2);
46
+ font-weight: var(--font-weight-heading);
47
+ letter-spacing: var(--tracking-h2);
48
+ text-wrap: balance;
49
+ font-optical-sizing: auto;
50
+ }
51
+
52
+ :where(.ui-prose h3) {
53
+ font-family: var(--font-family-heading);
54
+ font-size: var(--font-size-h3);
55
+ line-height: var(--leading-h3);
56
+ font-weight: var(--font-weight-heading);
57
+ letter-spacing: var(--tracking-h3);
58
+ text-wrap: balance;
59
+ font-optical-sizing: auto;
60
+ }
61
+
62
+ :where(.ui-prose h4) {
63
+ font-family: var(--font-family-heading);
64
+ font-size: var(--font-size-h4);
65
+ line-height: var(--leading-h4);
66
+ font-weight: var(--font-weight-heading);
67
+ letter-spacing: var(--tracking-h4);
68
+ text-wrap: balance;
69
+ font-optical-sizing: auto;
70
+ }
71
+
72
+ :where(.ui-prose h5) {
73
+ font-family: var(--font-family-heading);
74
+ font-size: var(--font-size-h5);
75
+ line-height: var(--leading-h5);
76
+ font-weight: var(--font-weight-heading);
77
+ letter-spacing: var(--tracking-h5);
78
+ text-wrap: balance;
79
+ font-optical-sizing: auto;
80
+ }
81
+
82
+ :where(.ui-prose h6) {
83
+ font-family: var(--font-family-heading);
84
+ font-size: var(--font-size-h6);
85
+ line-height: var(--leading-h6);
86
+ font-weight: var(--font-weight-heading);
87
+ letter-spacing: var(--tracking-h6);
88
+ text-wrap: balance;
89
+ font-optical-sizing: auto;
90
+ }
91
+
92
+ :where(.ui-prose p) {
93
+ font-size: var(--font-size-md);
94
+ line-height: var(--leading-md);
95
+ letter-spacing: var(--tracking-md);
96
+ }
97
+
98
+ :where(.ui-prose a) {
99
+ color: var(--ui-prose-link-color);
100
+ text-decoration-line: var(--decoration-line);
101
+ text-decoration-style: var(--decoration-style);
102
+ text-decoration-color: var(--decoration-color);
103
+ text-underline-offset: var(--decoration-offset);
104
+ text-decoration-thickness: var(--decoration-thickness);
105
+ transition: var(--default-transition);
106
+ }
107
+
108
+ :where(.ui-prose a:hover) {
109
+ text-decoration-color: var(--decoration-color--hover);
110
+ text-underline-offset: var(--decoration-offset--hover);
111
+ }
112
+
113
+ :where(.ui-prose a:active) {
114
+ text-decoration-color: var(--decoration-color--active);
115
+ text-underline-offset: var(--decoration-offset--active);
116
+ }
117
+
118
+ :where(.ui-prose strong, .ui-prose b) {
119
+ font-weight: var(--font-weight-strong);
120
+ }
121
+
122
+ :where(.ui-prose em, .ui-prose i) {
123
+ font-style: italic;
124
+ }
125
+
126
+ :where(.ui-prose figure) {
127
+ inline-size: 100%;
128
+ max-inline-size: 100%;
129
+ display: flex;
130
+ flex-direction: column;
131
+ }
132
+
133
+ :where(.ui-prose figure:has(img, video)) {
134
+ gap: var(--ui-prose-figcaption-gap);
135
+ }
136
+
137
+ :where(.ui-prose img, .ui-prose video) {
138
+ border-radius: var(--ui-prose-img-radius);
139
+ border: var(--ui-prose-img-border);
140
+ }
141
+
142
+ :where(.ui-prose figure:has(img, video) > figcaption) {
143
+ display: flex;
144
+ margin: var(--ui-prose-figcaption-margin);
145
+ font-style: italic;
146
+ font-family: var(--font-family-body);
147
+ font-size: var(--font-size-sm);
148
+ line-height: var(--leading-md);
149
+ font-weight: var(--font-weight-body);
150
+ letter-spacing: var(--tracking-md);
151
+ }
152
+
153
+ :where(.ui-prose figcaption:has(+ :where(ul, ol, dl))) {
154
+ font-weight: var(--font-weight-strong);
155
+ }
156
+
157
+ :where(.ui-prose ul) {
158
+ list-style: disc;
159
+ padding-inline-start: var(--gap-md);
160
+ }
161
+
162
+ :where(.ui-prose ol) {
163
+ list-style: decimal;
164
+ padding-inline-start: var(--gap-md);
165
+ }
166
+
167
+ :where(.ui-prose dl > dd) {
168
+ padding-inline-start: var(--gap-md);
169
+ }
170
+
171
+ :where(.ui-prose dl > dt) {
172
+ font-weight: var(--font-weight-strong);
173
+
174
+ &::after {
175
+ content: ":";
176
+ }
177
+ }
178
+
179
+ :where(.ui-prose blockquote) {
180
+ padding-inline-start: var(--gap-sm);
181
+ border-inline-start: 1px solid var(--border);
182
+ font-style: italic;
183
+ }
184
+
185
+ :where(.ui-prose blockquote > cite) {
186
+ color: var(--muted-foreground);
187
+ padding-inline-start: var(--gap-xs);
188
+ font-style: normal;
189
+ font-size: var(--font-size-sm);
190
+ line-height: var(--leading-sm);
191
+ font-weight: var(--font-weight-body);
192
+ letter-spacing: var(--tracking-sm);
193
+ }
194
+
195
+ /* ===========================================================================
196
+ PARAGRAPH RHYTHM — top margin on non-first blocks within .ui-prose
197
+ =========================================================================== */
198
+
199
+ :where(.ui-prose hgroup:not(:first-child)) {
200
+ font-size: var(--font-size-xl);
201
+ margin-block-start: var(--paragraph-spacing-xl);
202
+ }
203
+
204
+ :where(.ui-prose ul:not(:first-child)) {
205
+ margin-block-start: var(--paragraph-spacing-md);
206
+ }
207
+
208
+ :where(.ui-prose ol:not(:first-child)) {
209
+ margin-block-start: var(--paragraph-spacing-md);
210
+ }
211
+
212
+ :where(.ui-prose dl:not(:first-child)) {
213
+ margin-block-start: var(--paragraph-spacing-md);
214
+ }
215
+
216
+ :where(
217
+ .ui-prose figure :where(ul, ol, dl):first-child,
218
+ .ui-prose figure > figcaption + :where(ul, ol, dl):nth-child(2)
219
+ ) {
220
+ margin-block-start: 0rem;
221
+ }
222
+
223
+ :where(.ui-prose .text-display:not(:first-child)) {
224
+ margin-block-start: var(--paragraph-spacing-display);
225
+ }
226
+
227
+ :where(.ui-prose .text-h1:not(:first-child), .ui-prose h1:not(:first-child)) {
228
+ margin-block-start: var(--paragraph-spacing-display);
229
+ }
230
+
231
+ :where(.ui-prose .text-h2:not(:first-child), .ui-prose h2:not(:first-child)) {
232
+ margin-block-start: var(--paragraph-spacing-h2);
233
+ }
234
+
235
+ :where(.ui-prose .text-h3:not(:first-child), .ui-prose h3:not(:first-child)) {
236
+ margin-block-start: var(--paragraph-spacing-h3);
237
+ }
238
+
239
+ :where(.ui-prose .text-h4:not(:first-child), .ui-prose h4:not(:first-child)) {
240
+ margin-block-start: var(--paragraph-spacing-h4);
241
+ }
242
+
243
+ :where(.ui-prose .text-h5:not(:first-child), .ui-prose h5:not(:first-child)) {
244
+ margin-block-start: var(--paragraph-spacing-h5);
245
+ }
246
+
247
+ :where(.ui-prose .text-h6:not(:first-child), .ui-prose h6:not(:first-child)) {
248
+ margin-block-start: var(--paragraph-spacing-h6);
249
+ }
250
+
251
+ :where(.ui-prose .text-xl:not(:first-child)) {
252
+ margin-block-start: var(--paragraph-spacing-xl);
253
+ }
254
+
255
+ :where(.ui-prose .text-lg:not(:first-child)) {
256
+ margin-block-start: var(--paragraph-spacing-lg);
257
+ }
258
+
259
+ :where(.ui-prose .text-md:not(:first-child), .ui-prose p:not(:first-child)) {
260
+ margin-block-start: var(--paragraph-spacing-md);
261
+ }
262
+
263
+ :where(.ui-prose .text-sm:not(:first-child)) {
264
+ margin-block-start: var(--paragraph-spacing-sm);
265
+ }
266
+
267
+ :where(.ui-prose .text-xs:not(:first-child)) {
268
+ margin-block-start: var(--paragraph-spacing-xs);
269
+ }
270
+
271
+ :where(.ui-prose .text-eyebrow:not(:first-child)) {
272
+ margin-block-start: var(--paragraph-spacing-eyebrow);
273
+ }
274
+
275
+ :where(.ui-prose hr:first-child) {
276
+ margin-block-end: calc(var(--gap-md) * var(--paragraph-spacing-multiplier));
277
+ }
278
+
279
+ :where(.ui-prose hr:not(:first-child)) {
280
+ margin-block: calc(var(--gap-lg) * var(--paragraph-spacing-multiplier));
281
+ }
282
+
283
+ :where(.ui-prose .text-eyebrow + *) {
284
+ margin-block-start: var(--paragraph-spacing-xs);
285
+ }
286
+
287
+ :where(.ui-prose figure:not(:first-child)) {
288
+ margin-block-start: var(--paragraph-spacing-md);
289
+ }
290
+
291
+ :where(.ui-prose figure:not(:first-child):has(:is(img, video))) {
292
+ margin-block-start: calc(var(--paragraph-spacing-md) * 2);
293
+ }
294
+
295
+ :where(.ui-prose dl > dt:not(:first-child)) {
296
+ margin-block-start: var(--paragraph-spacing-md);
297
+ }
298
+
299
+ :where(.ui-prose blockquote:not(:first-child)) {
300
+ margin-block-start: var(--paragraph-spacing-lg);
301
+ }
302
+
303
+ :where(.ui-prose blockquote:not(:last-child)) {
304
+ margin-block-end: var(--paragraph-spacing-lg);
305
+ }
306
+ }
307
+
308
+ @layer zazz.utilities {
309
+ /* ===========================================================================
310
+ TYPOGRAPHY — type scale, weight & link utilities
311
+ =========================================================================== */
312
+
313
+ :where(.text-display) {
314
+ font-family: var(--font-family-heading);
315
+ font-size: var(--font-size-display);
316
+ line-height: var(--leading-display);
317
+ font-weight: var(--font-weight-heading);
318
+ letter-spacing: var(--tracking-display);
319
+ text-wrap: balance;
320
+ font-optical-sizing: auto;
321
+ }
322
+
323
+ :where(.text-h1) {
324
+ font-family: var(--font-family-heading);
325
+ font-size: var(--font-size-h1);
326
+ line-height: var(--leading-h1);
327
+ font-weight: var(--font-weight-heading);
328
+ letter-spacing: var(--tracking-h1);
329
+ text-wrap: balance;
330
+ font-optical-sizing: auto;
331
+ }
332
+
333
+ :where(.text-h2) {
334
+ font-family: var(--font-family-heading);
335
+ font-size: var(--font-size-h2);
336
+ line-height: var(--leading-h2);
337
+ font-weight: var(--font-weight-heading);
338
+ letter-spacing: var(--tracking-h2);
339
+ text-wrap: balance;
340
+ font-optical-sizing: auto;
341
+ }
342
+
343
+ :where(.text-h3) {
344
+ font-family: var(--font-family-heading);
345
+ font-size: var(--font-size-h3);
346
+ line-height: var(--leading-h3);
347
+ font-weight: var(--font-weight-heading);
348
+ letter-spacing: var(--tracking-h3);
349
+ text-wrap: balance;
350
+ font-optical-sizing: auto;
351
+ }
352
+
353
+ :where(.text-h4) {
354
+ font-family: var(--font-family-heading);
355
+ font-size: var(--font-size-h4);
356
+ line-height: var(--leading-h4);
357
+ font-weight: var(--font-weight-heading);
358
+ letter-spacing: var(--tracking-h4);
359
+ text-wrap: balance;
360
+ font-optical-sizing: auto;
361
+ }
362
+
363
+ :where(.text-h5) {
364
+ font-family: var(--font-family-heading);
365
+ font-size: var(--font-size-h5);
366
+ line-height: var(--leading-h5);
367
+ font-weight: var(--font-weight-heading);
368
+ letter-spacing: var(--tracking-h5);
369
+ text-wrap: balance;
370
+ font-optical-sizing: auto;
371
+ }
372
+
373
+ :where(.text-h6) {
374
+ font-family: var(--font-family-heading);
375
+ font-size: var(--font-size-h6);
376
+ line-height: var(--leading-h6);
377
+ font-weight: var(--font-weight-heading);
378
+ letter-spacing: var(--tracking-h6);
379
+ text-wrap: balance;
380
+ font-optical-sizing: auto;
381
+ }
382
+
383
+ :where(.text-xl) {
384
+ font-size: var(--font-size-xl);
385
+ line-height: var(--leading-xl);
386
+ letter-spacing: var(--tracking-xl);
387
+ }
388
+
389
+ :where(.text-lg) {
390
+ font-size: var(--font-size-lg);
391
+ line-height: var(--leading-lg);
392
+ letter-spacing: var(--tracking-lg);
393
+ }
394
+
395
+ :where(.text-md) {
396
+ font-size: var(--font-size-md);
397
+ line-height: var(--leading-md);
398
+ letter-spacing: var(--tracking-md);
399
+ }
400
+
401
+ :where(.text-sm) {
402
+ font-size: var(--font-size-sm);
403
+ line-height: var(--leading-sm);
404
+ letter-spacing: var(--tracking-sm);
405
+ }
406
+
407
+ :where(.text-xs) {
408
+ font-size: var(--font-size-xs);
409
+ line-height: var(--leading-xs);
410
+ letter-spacing: var(--tracking-xs);
411
+ }
412
+
413
+ :where(.text-eyebrow) {
414
+ display: inline-flex;
415
+ font-size: var(--font-size-eyebrow);
416
+ line-height: var(--leading-eyebrow);
417
+ font-weight: var(--font-weight-eyebrow);
418
+ letter-spacing: var(--tracking-eyebrow);
419
+ text-transform: uppercase;
420
+ }
421
+
422
+ :where(.text-link) {
423
+ color: var(--primary);
424
+ text-decoration-line: var(--decoration-line);
425
+ text-decoration-style: var(--decoration-style);
426
+ text-decoration-color: var(--decoration-color);
427
+ text-underline-offset: var(--decoration-offset);
428
+ text-decoration-thickness: var(--decoration-thickness);
429
+ transition: var(--default-transition);
430
+ }
431
+
432
+ :where(.text-link:hover) {
433
+ text-decoration-color: var(--decoration-color--hover);
434
+ text-underline-offset: var(--decoration-offset--hover);
435
+ }
436
+
437
+ :where(.text-link:active) {
438
+ text-decoration-color: var(--decoration-color--active);
439
+ text-underline-offset: var(--decoration-offset--active);
440
+ }
441
+
442
+ /* Base font weights */
443
+ :where(.font-thin) {
444
+ font-weight: 100;
445
+ }
446
+
447
+ :where(.font-extralight) {
448
+ font-weight: 200;
449
+ }
450
+
451
+ :where(.font-light) {
452
+ font-weight: 300;
453
+ }
454
+
455
+ :where(.font-normal) {
456
+ font-weight: 400;
457
+ }
458
+
459
+ :where(.font-medium) {
460
+ font-weight: 500;
461
+ }
462
+
463
+ :where(.font-semibold) {
464
+ font-weight: 600;
465
+ }
466
+
467
+ :where(.font-bold) {
468
+ font-weight: 700;
469
+ }
470
+
471
+ :where(.font-extrabold) {
472
+ font-weight: 800;
473
+ }
474
+
475
+ :where(.font-black) {
476
+ font-weight: 900;
477
+ }
478
+
479
+ /* Semantic font weights */
480
+ :where(.font-body) {
481
+ font-weight: var(--font-weight-body);
482
+ }
483
+
484
+ :where(.font-heading) {
485
+ font-weight: var(--font-weight-heading);
486
+ }
487
+
488
+ :where(.font-strong) {
489
+ font-weight: var(--font-weight-strong);
490
+ }
491
+
492
+ :where(.italic) {
493
+ font-style: italic;
494
+ }
495
+ }