@sinnstack/ui 0.0.0-stage → 0.2.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 (280) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/LICENSE +373 -0
  3. package/README.md +186 -2
  4. package/docs/blocks.md +364 -0
  5. package/docs/data.md +128 -0
  6. package/docs/motion.md +166 -0
  7. package/docs/primitives.md +510 -0
  8. package/docs/seo.md +187 -0
  9. package/docs/tokens.md +122 -0
  10. package/package.json +141 -3
  11. package/scripts/check-contrast.mjs +180 -0
  12. package/src/blocks/BlockRenderer.astro +54 -0
  13. package/src/blocks/CTABanner.astro +121 -0
  14. package/src/blocks/CTAPair.astro +110 -0
  15. package/src/blocks/CardGrid.astro +167 -0
  16. package/src/blocks/ConsentEmbed.astro +125 -0
  17. package/src/blocks/ConsentManager.astro +147 -0
  18. package/src/blocks/ConsentScript.astro +47 -0
  19. package/src/blocks/ContactCard.astro +164 -0
  20. package/src/blocks/ContactForm.astro +224 -0
  21. package/src/blocks/ErrorPage.astro +242 -0
  22. package/src/blocks/FAQ.astro +135 -0
  23. package/src/blocks/FeatureGrid.astro +148 -0
  24. package/src/blocks/Hero.astro +171 -0
  25. package/src/blocks/HeroCarousel.astro +220 -0
  26. package/src/blocks/HighlightCards.astro +107 -0
  27. package/src/blocks/LocationHours.astro +311 -0
  28. package/src/blocks/LogoCloud.astro +135 -0
  29. package/src/blocks/MaintenancePage.astro +168 -0
  30. package/src/blocks/MediaText.astro +177 -0
  31. package/src/blocks/PageHeader.astro +126 -0
  32. package/src/blocks/ProseSection.astro +98 -0
  33. package/src/blocks/Reviews.astro +194 -0
  34. package/src/blocks/RichText.astro +57 -0
  35. package/src/blocks/StatsBand.astro +117 -0
  36. package/src/blocks/Steps.astro +141 -0
  37. package/src/blocks/Testimonials.astro +144 -0
  38. package/src/blocks/Topbar.astro +158 -0
  39. package/src/blocks/cms/card-grid.ts +80 -0
  40. package/src/blocks/cms/consent.ts +45 -0
  41. package/src/blocks/cms/contact-card.ts +88 -0
  42. package/src/blocks/cms/contact-form.ts +55 -0
  43. package/src/blocks/cms/cta-banner.ts +48 -0
  44. package/src/blocks/cms/cta-pair.ts +63 -0
  45. package/src/blocks/cms/data-base.ts +7 -0
  46. package/src/blocks/cms/data.ts +257 -0
  47. package/src/blocks/cms/faq.ts +70 -0
  48. package/src/blocks/cms/feature-grid.ts +80 -0
  49. package/src/blocks/cms/fixtures.ts +599 -0
  50. package/src/blocks/cms/hero-carousel.ts +80 -0
  51. package/src/blocks/cms/hero.ts +77 -0
  52. package/src/blocks/cms/highlight-cards.ts +76 -0
  53. package/src/blocks/cms/images.ts +38 -0
  54. package/src/blocks/cms/index.ts +87 -0
  55. package/src/blocks/cms/location-hours.ts +149 -0
  56. package/src/blocks/cms/logo-cloud.ts +62 -0
  57. package/src/blocks/cms/media-text.ts +44 -0
  58. package/src/blocks/cms/page-header.ts +49 -0
  59. package/src/blocks/cms/pages.ts +81 -0
  60. package/src/blocks/cms/prose-section.ts +45 -0
  61. package/src/blocks/cms/reviews.ts +101 -0
  62. package/src/blocks/cms/shared.ts +115 -0
  63. package/src/blocks/cms/stats-band.ts +61 -0
  64. package/src/blocks/cms/steps.ts +67 -0
  65. package/src/blocks/cms/testimonials.ts +80 -0
  66. package/src/blocks/cms/topbar.ts +64 -0
  67. package/src/blocks/cms/types.ts +63 -0
  68. package/src/blocks/consent.ts +14 -0
  69. package/src/blocks/icons.ts +47 -0
  70. package/src/blocks/index.ts +42 -0
  71. package/src/blocks/internal/Actions.astro +29 -0
  72. package/src/blocks/internal/BlockHeader.astro +45 -0
  73. package/src/blocks/internal/BlockShell.astro +58 -0
  74. package/src/blocks/internal/CarouselScript.astro +7 -0
  75. package/src/blocks/internal/ConsentEmbedScript.astro +7 -0
  76. package/src/blocks/internal/ConsentManagerScript.astro +7 -0
  77. package/src/blocks/internal/HoursScript.astro +7 -0
  78. package/src/blocks/internal/Placeholder.astro +13 -0
  79. package/src/blocks/internal/RichTextNode.astro +133 -0
  80. package/src/blocks/internal/StandaloneDocument.astro +53 -0
  81. package/src/blocks/internal/tina.ts +19 -0
  82. package/src/blocks/internal/util.ts +23 -0
  83. package/src/blocks/lib/consent.ts +96 -0
  84. package/src/blocks/lib/contact.ts +86 -0
  85. package/src/blocks/lib/error-pages.ts +119 -0
  86. package/src/blocks/lib/faq.ts +37 -0
  87. package/src/blocks/lib/hours.ts +201 -0
  88. package/src/blocks/lib/maintenance.ts +129 -0
  89. package/src/blocks/lib/reviews.ts +22 -0
  90. package/src/blocks/lib/rich-text.ts +143 -0
  91. package/src/blocks/lib/slug.ts +12 -0
  92. package/src/blocks/registry.ts +79 -0
  93. package/src/blocks/scripts/carousel.ts +218 -0
  94. package/src/blocks/scripts/consent-embed.ts +105 -0
  95. package/src/blocks/scripts/consent-manager.ts +112 -0
  96. package/src/blocks/scripts/consent-store.ts +86 -0
  97. package/src/blocks/scripts/error-page.ts +71 -0
  98. package/src/blocks/scripts/hours.ts +106 -0
  99. package/src/blocks/scripts/maintenance.ts +109 -0
  100. package/src/blocks/styles/blocks.css +1320 -0
  101. package/src/blocks/styles/consent.css +102 -0
  102. package/src/blocks/styles/faq.css +28 -0
  103. package/src/blocks/styles/location.css +92 -0
  104. package/src/blocks/styles/prose-section.css +13 -0
  105. package/src/blocks/styles/quotes.css +123 -0
  106. package/src/blocks/styles/rich-text.css +14 -0
  107. package/src/blocks/types.ts +283 -0
  108. package/src/data/ChartAxis.astro +19 -0
  109. package/src/data/ChartContainer.astro +151 -0
  110. package/src/data/ChartLegend.astro +25 -0
  111. package/src/data/ChartSeries.astro +14 -0
  112. package/src/data/ChartTable.astro +17 -0
  113. package/src/data/ChartTooltip.astro +20 -0
  114. package/src/data/Sparkline.astro +55 -0
  115. package/src/data/cms.ts +190 -0
  116. package/src/data/index.ts +10 -0
  117. package/src/data/lib/chart.ts +450 -0
  118. package/src/data/lib/render.ts +219 -0
  119. package/src/data/lib/scale.ts +107 -0
  120. package/src/data/lib/sparkline.ts +117 -0
  121. package/src/data/scripts/chart.ts +324 -0
  122. package/src/data/styles/chart.css +392 -0
  123. package/src/motion/Marquee.astro +90 -0
  124. package/src/motion/MotionProvider.astro +50 -0
  125. package/src/motion/PageTransitions.astro +61 -0
  126. package/src/motion/Parallax.astro +44 -0
  127. package/src/motion/ParallaxLayer.astro +31 -0
  128. package/src/motion/RevealOnScroll.astro +59 -0
  129. package/src/motion/SceneRegistry.astro +38 -0
  130. package/src/motion/ScrollScene.astro +81 -0
  131. package/src/motion/index.ts +12 -0
  132. package/src/motion/integration.ts +48 -0
  133. package/src/motion/runtime/page-transitions.ts +68 -0
  134. package/src/motion/runtime/runtime.ts +180 -0
  135. package/src/motion/runtime/scenes.ts +248 -0
  136. package/src/motion/runtime/types.ts +103 -0
  137. package/src/motion/styles/motion.css +332 -0
  138. package/src/motion/transitions.ts +74 -0
  139. package/src/motion/virtual.d.ts +4 -0
  140. package/src/primitives/Accordion.astro +129 -0
  141. package/src/primitives/Breadcrumbs.astro +50 -0
  142. package/src/primitives/BulletList.astro +69 -0
  143. package/src/primitives/Button.astro +73 -0
  144. package/src/primitives/ButtonGroup.astro +54 -0
  145. package/src/primitives/Callout.astro +137 -0
  146. package/src/primitives/Caption.astro +35 -0
  147. package/src/primitives/Card.astro +72 -0
  148. package/src/primitives/CardContent.astro +24 -0
  149. package/src/primitives/CardFooter.astro +36 -0
  150. package/src/primitives/CardHeader.astro +86 -0
  151. package/src/primitives/Checkbox.astro +38 -0
  152. package/src/primitives/ChoiceGroup.astro +23 -0
  153. package/src/primitives/Cluster.astro +49 -0
  154. package/src/primitives/Container.astro +44 -0
  155. package/src/primitives/DescriptionList.astro +83 -0
  156. package/src/primitives/Dialog.astro +38 -0
  157. package/src/primitives/Disclosure.astro +67 -0
  158. package/src/primitives/Divider.astro +93 -0
  159. package/src/primitives/Drawer.astro +33 -0
  160. package/src/primitives/Fieldset.astro +80 -0
  161. package/src/primitives/Flex.astro +64 -0
  162. package/src/primitives/FocusRing.astro +63 -0
  163. package/src/primitives/FocusTrap.astro +64 -0
  164. package/src/primitives/Footer.astro +155 -0
  165. package/src/primitives/Form.astro +68 -0
  166. package/src/primitives/FormDescription.astro +26 -0
  167. package/src/primitives/FormError.astro +106 -0
  168. package/src/primitives/FormField.astro +72 -0
  169. package/src/primitives/Grid.astro +64 -0
  170. package/src/primitives/Heading.astro +45 -0
  171. package/src/primitives/IconButton.astro +48 -0
  172. package/src/primitives/Image.astro +125 -0
  173. package/src/primitives/Input.astro +84 -0
  174. package/src/primitives/Label.astro +50 -0
  175. package/src/primitives/Link.astro +81 -0
  176. package/src/primitives/LinkButton.astro +66 -0
  177. package/src/primitives/List.astro +39 -0
  178. package/src/primitives/ListItem.astro +178 -0
  179. package/src/primitives/MediaObject.astro +66 -0
  180. package/src/primitives/MetricCard.astro +276 -0
  181. package/src/primitives/NavLink.astro +81 -0
  182. package/src/primitives/NavMenu.astro +109 -0
  183. package/src/primitives/Navbar.astro +197 -0
  184. package/src/primitives/Panel.astro +153 -0
  185. package/src/primitives/Picture.astro +167 -0
  186. package/src/primitives/Popover.astro +95 -0
  187. package/src/primitives/Prose.astro +45 -0
  188. package/src/primitives/Radio.astro +21 -0
  189. package/src/primitives/Rating.astro +135 -0
  190. package/src/primitives/ReducedMotion.astro +90 -0
  191. package/src/primitives/SegmentedControl.astro +132 -0
  192. package/src/primitives/Select.astro +107 -0
  193. package/src/primitives/Sheet.astro +45 -0
  194. package/src/primitives/SkipLink.astro +31 -0
  195. package/src/primitives/Slider.astro +186 -0
  196. package/src/primitives/Spacer.astro +35 -0
  197. package/src/primitives/Stack.astro +51 -0
  198. package/src/primitives/Surface.astro +70 -0
  199. package/src/primitives/Switch.astro +22 -0
  200. package/src/primitives/Table.astro +382 -0
  201. package/src/primitives/Tabs.astro +126 -0
  202. package/src/primitives/Text.astro +56 -0
  203. package/src/primitives/Textarea.astro +73 -0
  204. package/src/primitives/Thumbnail.astro +154 -0
  205. package/src/primitives/Toggle.astro +99 -0
  206. package/src/primitives/Tooltip.astro +50 -0
  207. package/src/primitives/VisuallyHidden.astro +29 -0
  208. package/src/primitives/index.ts +103 -0
  209. package/src/primitives/internal/AccordionScript.astro +7 -0
  210. package/src/primitives/internal/ChoiceField.astro +89 -0
  211. package/src/primitives/internal/FocusTrapScript.astro +8 -0
  212. package/src/primitives/internal/FormValidationScript.astro +10 -0
  213. package/src/primitives/internal/IndeterminateScript.astro +13 -0
  214. package/src/primitives/internal/ModalPanel.astro +114 -0
  215. package/src/primitives/internal/OverlayScript.astro +7 -0
  216. package/src/primitives/internal/ReducedMotionScript.astro +7 -0
  217. package/src/primitives/internal/SliderScript.astro +7 -0
  218. package/src/primitives/internal/SparklineScript.astro +7 -0
  219. package/src/primitives/internal/TableSortScript.astro +7 -0
  220. package/src/primitives/internal/TabsScript.astro +7 -0
  221. package/src/primitives/internal/TooltipScript.astro +7 -0
  222. package/src/primitives/lib/deprecate.ts +47 -0
  223. package/src/primitives/lib/focus-trap.ts +197 -0
  224. package/src/primitives/lib/focus.ts +60 -0
  225. package/src/primitives/lib/image-plan.ts +82 -0
  226. package/src/primitives/lib/image.ts +129 -0
  227. package/src/primitives/lib/motion.ts +68 -0
  228. package/src/primitives/lib/slider.ts +170 -0
  229. package/src/primitives/scripts/accordion.ts +123 -0
  230. package/src/primitives/scripts/form-validation.ts +225 -0
  231. package/src/primitives/scripts/overlay.ts +71 -0
  232. package/src/primitives/scripts/reduced-motion.ts +59 -0
  233. package/src/primitives/scripts/slider.ts +150 -0
  234. package/src/primitives/scripts/sparkline.ts +131 -0
  235. package/src/primitives/scripts/table-sort.ts +68 -0
  236. package/src/primitives/scripts/tabs.ts +151 -0
  237. package/src/primitives/scripts/tooltip.ts +28 -0
  238. package/src/primitives/styles/a11y.css +104 -0
  239. package/src/primitives/styles/accordion.css +53 -0
  240. package/src/primitives/styles/breadcrumbs.css +59 -0
  241. package/src/primitives/styles/bullet-list.css +89 -0
  242. package/src/primitives/styles/button.css +237 -0
  243. package/src/primitives/styles/choice.css +164 -0
  244. package/src/primitives/styles/cluster.css +24 -0
  245. package/src/primitives/styles/container.css +19 -0
  246. package/src/primitives/styles/data.css +849 -0
  247. package/src/primitives/styles/disclosure.css +140 -0
  248. package/src/primitives/styles/divider.css +50 -0
  249. package/src/primitives/styles/flex.css +42 -0
  250. package/src/primitives/styles/form.css +241 -0
  251. package/src/primitives/styles/grid.css +36 -0
  252. package/src/primitives/styles/media.css +247 -0
  253. package/src/primitives/styles/nav.css +792 -0
  254. package/src/primitives/styles/overlay.css +362 -0
  255. package/src/primitives/styles/prose.css +146 -0
  256. package/src/primitives/styles/scale.css +175 -0
  257. package/src/primitives/styles/segmented.css +165 -0
  258. package/src/primitives/styles/slider.css +170 -0
  259. package/src/primitives/styles/spacer.css +17 -0
  260. package/src/primitives/styles/stack.css +25 -0
  261. package/src/primitives/styles/surface.css +403 -0
  262. package/src/primitives/styles/tabs.css +223 -0
  263. package/src/primitives/styles/typography.css +144 -0
  264. package/src/primitives/styles/utilities.css +24 -0
  265. package/src/primitives/types.ts +385 -0
  266. package/src/primitives/utils.ts +254 -0
  267. package/src/seo/JSONLD.astro +35 -0
  268. package/src/seo/SEOHead.astro +47 -0
  269. package/src/seo/cms.ts +80 -0
  270. package/src/seo/index.ts +10 -0
  271. package/src/seo/integration.ts +231 -0
  272. package/src/seo/lib/jsonld.ts +334 -0
  273. package/src/seo/lib/meta.ts +205 -0
  274. package/src/seo/lib/redirects.ts +283 -0
  275. package/src/seo/lib/robots.ts +33 -0
  276. package/src/seo/lib/rss.ts +98 -0
  277. package/src/seo/lib/sitemap.ts +105 -0
  278. package/src/seo/lib/url.ts +68 -0
  279. package/src/tokens/base.css +71 -0
  280. package/src/tokens/tokens.css +210 -0
@@ -0,0 +1,362 @@
1
+ /*
2
+ * Dialog, Drawer, Sheet (native <dialog>), Popover (Popover API + anchor positioning), Tooltip.
3
+ * Open/close animations use @starting-style + transition-behavior: allow-discrete; with
4
+ * reduced motion the duration tokens are 0ms, so they simply appear.
5
+ */
6
+ /* Same order as tokens.css: whichever stylesheet loads first fixes the layer order. */
7
+ @layer sinn.reset, sinn.tokens, sinn.primitives, sinn.data, sinn.motion, sinn.blocks, sinn.overrides;
8
+
9
+ @layer sinn.primitives {
10
+ /* ================= Modal panel: Dialog / Drawer / Sheet ================= */
11
+ :where(dialog.sinn-dialog) {
12
+ --sinn-p-dialog-size: var(--sinn-dialog-m);
13
+ --sinn-p-from: translateY(0.75rem) scale(0.98);
14
+ --sinn-p-pad: var(--sinn-space-m);
15
+ box-sizing: border-box;
16
+ inline-size: min(var(--sinn-p-dialog-size), 100% - 2 * var(--sinn-space-s));
17
+ max-inline-size: none;
18
+ max-block-size: min(calc(100dvh - 2 * var(--sinn-space-s)), 100%);
19
+ margin: auto;
20
+ /* No padding on <dialog> itself: a click whose target is the dialog element is a backdrop click. */
21
+ padding: 0;
22
+ border: var(--sinn-border-width-thin) solid var(--sinn-color-border-subtle);
23
+ border-radius: var(--sinn-radius-l);
24
+ background-color: var(--sinn-color-surface-raised);
25
+ color: var(--sinn-color-text);
26
+ box-shadow: var(--sinn-shadow-l);
27
+ overflow: hidden;
28
+ opacity: 0;
29
+ transform: var(--sinn-p-from);
30
+ transition:
31
+ opacity var(--sinn-duration-base) var(--sinn-ease-standard),
32
+ transform var(--sinn-duration-base) var(--sinn-ease-standard),
33
+ overlay var(--sinn-duration-base) allow-discrete,
34
+ display var(--sinn-duration-base) allow-discrete;
35
+ }
36
+ :where(dialog.sinn-dialog[open]) {
37
+ display: flex;
38
+ flex-direction: column;
39
+ opacity: 1;
40
+ transform: none;
41
+ }
42
+ @starting-style {
43
+ :where(dialog.sinn-dialog[open]) {
44
+ opacity: 0;
45
+ transform: var(--sinn-p-from);
46
+ }
47
+ }
48
+
49
+ :where(dialog.sinn-dialog)::backdrop {
50
+ background-color: var(--sinn-color-backdrop);
51
+ opacity: 0;
52
+ transition:
53
+ opacity var(--sinn-duration-base) var(--sinn-ease-standard),
54
+ overlay var(--sinn-duration-base) allow-discrete,
55
+ display var(--sinn-duration-base) allow-discrete;
56
+ }
57
+ :where(dialog.sinn-dialog[open])::backdrop { opacity: 1; }
58
+ @starting-style {
59
+ :where(dialog.sinn-dialog[open])::backdrop { opacity: 0; }
60
+ }
61
+
62
+ /* Page behind an open modal doesn't scroll. CSS-only, so it also works if JS fails. */
63
+ :where(:root:has(dialog.sinn-dialog:modal)) { overflow: hidden; }
64
+
65
+ :where(dialog.sinn-dialog[data-size='s']) { --sinn-p-dialog-size: var(--sinn-dialog-s); }
66
+ :where(dialog.sinn-dialog[data-size='l']) { --sinn-p-dialog-size: var(--sinn-dialog-l); }
67
+ :where(dialog.sinn-dialog[data-size='xl']) { --sinn-p-dialog-size: var(--sinn-dialog-xl); }
68
+ :where(dialog.sinn-dialog[data-size='full']) {
69
+ --sinn-p-dialog-size: 100vw;
70
+ inline-size: 100%;
71
+ max-block-size: 100dvh;
72
+ block-size: 100dvh;
73
+ border: 0;
74
+ border-radius: 0;
75
+ }
76
+
77
+ /* Parts */
78
+ :where(.sinn-dialog__header) {
79
+ display: flex;
80
+ flex-shrink: 0;
81
+ align-items: flex-start;
82
+ gap: var(--sinn-space-xs);
83
+ padding: var(--sinn-p-pad) var(--sinn-p-pad) 0;
84
+ }
85
+ :where(.sinn-dialog__heading) {
86
+ display: flex;
87
+ flex: 1;
88
+ flex-direction: column;
89
+ gap: var(--sinn-space-3xs);
90
+ min-inline-size: 0;
91
+ }
92
+ :where(.sinn-dialog__title) {
93
+ margin: 0;
94
+ font-size: var(--sinn-text-xl);
95
+ font-weight: var(--sinn-weight-semibold);
96
+ line-height: var(--sinn-leading-snug);
97
+ text-wrap: balance;
98
+ }
99
+ :where(.sinn-dialog__description) { margin: 0; }
100
+ :where(.sinn-dialog__close) {
101
+ margin-block-start: calc(var(--sinn-space-3xs) * -1);
102
+ margin-inline-end: calc(var(--sinn-space-2xs) * -1);
103
+ }
104
+ :where(.sinn-dialog__body) {
105
+ flex: 1;
106
+ min-block-size: 0;
107
+ padding: var(--sinn-p-pad);
108
+ overflow-y: auto;
109
+ overscroll-behavior: contain;
110
+ }
111
+ :where(.sinn-dialog__body) > :where(:first-child) { margin-block-start: 0; }
112
+ :where(.sinn-dialog__body) > :where(:last-child) { margin-block-end: 0; }
113
+ :where(.sinn-dialog__footer) {
114
+ display: flex;
115
+ flex-shrink: 0;
116
+ flex-wrap: wrap;
117
+ align-items: center;
118
+ justify-content: flex-end;
119
+ gap: var(--sinn-space-2xs);
120
+ padding: var(--sinn-space-s) var(--sinn-p-pad);
121
+ border-block-start: var(--sinn-border-width-thin) solid var(--sinn-color-border-subtle);
122
+ background-color: var(--sinn-color-surface-subtle);
123
+ }
124
+ :where(.sinn-dialog__footer[data-justify='between']) { justify-content: space-between; }
125
+ :where(.sinn-dialog__footer[data-justify='stretch']) > :where(*) { flex: 1 1 0; }
126
+
127
+ /* Small screens: dialog actions stack full-width, primary (last in DOM) on top. */
128
+ @media (width < 30rem) {
129
+ :where(.sinn-dialog__footer:not([data-justify='between'])) { flex-direction: column-reverse; align-items: stretch; }
130
+ }
131
+
132
+ /* ---------- Edge placements (Drawer / Sheet) ---------- */
133
+ :where(dialog.sinn-dialog:is([data-placement='start'], [data-placement='end'])) {
134
+ --sinn-p-dialog-size: var(--sinn-dialog-s);
135
+ inline-size: min(var(--sinn-p-dialog-size), 100% - var(--sinn-space-xl));
136
+ block-size: 100dvh;
137
+ max-block-size: 100dvh;
138
+ margin: 0;
139
+ inset-block: 0;
140
+ border-radius: 0;
141
+ border-block: 0;
142
+ }
143
+ :where(dialog.sinn-dialog[data-placement='start']) {
144
+ --sinn-p-from: translateX(-100%);
145
+ inset-inline: 0 auto;
146
+ border-inline-start: 0;
147
+ }
148
+ :where(dialog.sinn-dialog[data-placement='end']) {
149
+ --sinn-p-from: translateX(100%);
150
+ inset-inline: auto 0;
151
+ border-inline-end: 0;
152
+ }
153
+ /* Slide from the correct side in right-to-left documents. */
154
+ :where(dialog.sinn-dialog[data-placement='start']:dir(rtl)) { --sinn-p-from: translateX(100%); }
155
+ :where(dialog.sinn-dialog[data-placement='end']:dir(rtl)) { --sinn-p-from: translateX(-100%); }
156
+
157
+ :where(dialog.sinn-dialog:is([data-placement='top'], [data-placement='bottom'])) {
158
+ inline-size: 100%;
159
+ max-inline-size: 100%;
160
+ max-block-size: 85dvh;
161
+ margin: 0;
162
+ inset-inline: 0;
163
+ border-inline: 0;
164
+ }
165
+ :where(dialog.sinn-dialog[data-placement='bottom']) {
166
+ --sinn-p-from: translateY(100%);
167
+ inset-block: auto 0;
168
+ border-block-end: 0;
169
+ border-radius: var(--sinn-radius-l) var(--sinn-radius-l) 0 0;
170
+ /* Keep content clear of the iPhone home indicator. */
171
+ padding-block-end: env(safe-area-inset-bottom, 0px);
172
+ }
173
+ :where(dialog.sinn-dialog[data-placement='top']) {
174
+ --sinn-p-from: translateY(-100%);
175
+ inset-block: 0 auto;
176
+ border-block-start: 0;
177
+ border-radius: 0 0 var(--sinn-radius-l) var(--sinn-radius-l);
178
+ }
179
+ /* Bottom sheets on wide screens: a centered column instead of a full-width slab. */
180
+ @media (width >= 48rem) {
181
+ :where(dialog.sinn-dialog[data-placement='bottom'][data-contained]) {
182
+ inline-size: min(var(--sinn-dialog-l), 100%);
183
+ margin-inline: auto;
184
+ }
185
+ }
186
+ :where(dialog.sinn-dialog[data-placement='start']) :where(.sinn-dialog__footer),
187
+ :where(dialog.sinn-dialog[data-placement='end']) :where(.sinn-dialog__footer) {
188
+ padding-block-end: max(var(--sinn-space-s), env(safe-area-inset-bottom, 0px));
189
+ }
190
+
191
+ /* Sheet grab handle (visual affordance only). */
192
+ :where(.sinn-dialog__handle) {
193
+ flex-shrink: 0;
194
+ align-self: center;
195
+ inline-size: 2.5rem;
196
+ block-size: 0.3rem;
197
+ margin-block-start: var(--sinn-space-2xs);
198
+ border-radius: var(--sinn-radius-full);
199
+ background-color: var(--sinn-color-border);
200
+ }
201
+
202
+ /* ================= Popover ================= */
203
+ :where(.sinn-popover) {
204
+ --sinn-p-offset: 0.5rem;
205
+ box-sizing: border-box;
206
+ inset: auto;
207
+ max-inline-size: min(22rem, 100vw - 2 * var(--sinn-space-s));
208
+ max-block-size: min(32rem, 100dvh - 2 * var(--sinn-space-s));
209
+ margin: 0;
210
+ padding: var(--sinn-space-s);
211
+ border: var(--sinn-border-width-thin) solid var(--sinn-color-border-subtle);
212
+ border-radius: var(--sinn-radius-m);
213
+ background-color: var(--sinn-color-surface-raised);
214
+ color: var(--sinn-color-text);
215
+ box-shadow: var(--sinn-shadow-l);
216
+ font-size: var(--sinn-text-s);
217
+ line-height: var(--sinn-leading-normal);
218
+ overflow: auto;
219
+ overscroll-behavior: contain;
220
+ /* Anchored to the trigger (implicit anchor from popovertarget). */
221
+ position-area: block-end;
222
+ position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
223
+ margin-block-start: var(--sinn-p-offset);
224
+ opacity: 0;
225
+ transform: translateY(-0.25rem);
226
+ transition:
227
+ opacity var(--sinn-duration-fast) var(--sinn-ease-standard),
228
+ transform var(--sinn-duration-fast) var(--sinn-ease-standard),
229
+ overlay var(--sinn-duration-fast) allow-discrete,
230
+ display var(--sinn-duration-fast) allow-discrete;
231
+ }
232
+ :where(.sinn-popover:popover-open) { opacity: 1; transform: none; }
233
+ @starting-style {
234
+ :where(.sinn-popover:popover-open) { opacity: 0; transform: translateY(-0.25rem); }
235
+ }
236
+ :where(.sinn-popover[data-padding='none']) { padding: 0; }
237
+
238
+ :where(.sinn-popover[data-placement='bottom'][data-align='start']) { position-area: block-end span-inline-end; }
239
+ :where(.sinn-popover[data-placement='bottom'][data-align='end']) { position-area: block-end span-inline-start; }
240
+ :where(.sinn-popover[data-placement='top']) {
241
+ position-area: block-start;
242
+ margin-block: 0 var(--sinn-p-offset);
243
+ transform: translateY(0.25rem);
244
+ }
245
+ :where(.sinn-popover[data-placement='top'][data-align='start']) { position-area: block-start span-inline-end; }
246
+ :where(.sinn-popover[data-placement='top'][data-align='end']) { position-area: block-start span-inline-start; }
247
+ :where(.sinn-popover[data-placement='start']) {
248
+ position-area: inline-start;
249
+ margin-block: 0;
250
+ margin-inline-end: var(--sinn-p-offset);
251
+ }
252
+ :where(.sinn-popover[data-placement='end']) {
253
+ position-area: inline-end;
254
+ margin-block: 0;
255
+ margin-inline-start: var(--sinn-p-offset);
256
+ }
257
+ :where(.sinn-popover[data-placement='start'][data-align='start']),
258
+ :where(.sinn-popover[data-placement='end'][data-align='start']) { align-self: start; }
259
+ :where(.sinn-popover[data-placement='top']:popover-open),
260
+ :where(.sinn-popover:is([data-placement='start'], [data-placement='end']):popover-open) { transform: none; }
261
+
262
+ /* Browsers without anchor positioning: show it as a small centered card instead. */
263
+ @supports not (position-area: block-end) {
264
+ :where(.sinn-popover) {
265
+ position: fixed;
266
+ inset: 0;
267
+ margin: auto;
268
+ block-size: fit-content;
269
+ inline-size: fit-content;
270
+ }
271
+ }
272
+
273
+ /* ================= Tooltip ================= */
274
+ :where(.sinn-tooltip) {
275
+ --sinn-p-tip-gap: 0.4rem;
276
+ position: relative;
277
+ display: inline-flex;
278
+ vertical-align: middle;
279
+ }
280
+ :where(.sinn-tooltip__bubble) {
281
+ position: absolute;
282
+ z-index: var(--sinn-z-tooltip, 1100);
283
+ inline-size: max-content;
284
+ max-inline-size: min(16rem, 90vw);
285
+ padding: 0.3rem 0.55rem;
286
+ border-radius: var(--sinn-radius-s);
287
+ background-color: var(--sinn-color-neutral);
288
+ color: var(--sinn-color-neutral-contrast);
289
+ font-size: var(--sinn-text-xs);
290
+ font-weight: var(--sinn-weight-medium);
291
+ line-height: var(--sinn-leading-snug);
292
+ text-align: start;
293
+ white-space: normal;
294
+ pointer-events: none;
295
+ opacity: 0;
296
+ visibility: hidden;
297
+ transition:
298
+ opacity var(--sinn-duration-fast) var(--sinn-ease-standard),
299
+ visibility 0s linear var(--sinn-duration-fast);
300
+ }
301
+ :where(.sinn-tooltip:hover:not([data-dismissed])) > :where(.sinn-tooltip__bubble) {
302
+ transition:
303
+ opacity var(--sinn-duration-fast) var(--sinn-ease-standard),
304
+ visibility 0s linear;
305
+ }
306
+ /* Invisible bridge across the gap, so the pointer can move onto the bubble (WCAG 1.4.13 "hoverable"). */
307
+ :where(.sinn-tooltip__bubble)::before {
308
+ content: '';
309
+ position: absolute;
310
+ inset: calc(var(--sinn-p-tip-gap) * -1 - 1px);
311
+ }
312
+
313
+ /* Placement */
314
+ :where(.sinn-tooltip[data-placement='top']) > :where(.sinn-tooltip__bubble) {
315
+ inset-block-end: calc(100% + var(--sinn-p-tip-gap));
316
+ inset-inline-start: 50%;
317
+ translate: -50% 0;
318
+ }
319
+ :where(.sinn-tooltip[data-placement='bottom']) > :where(.sinn-tooltip__bubble) {
320
+ inset-block-start: calc(100% + var(--sinn-p-tip-gap));
321
+ inset-inline-start: 50%;
322
+ translate: -50% 0;
323
+ }
324
+ :where(.sinn-tooltip[data-placement='start']) > :where(.sinn-tooltip__bubble) {
325
+ inset-inline-end: calc(100% + var(--sinn-p-tip-gap));
326
+ inset-block-start: 50%;
327
+ translate: 0 -50%;
328
+ }
329
+ :where(.sinn-tooltip[data-placement='end']) > :where(.sinn-tooltip__bubble) {
330
+ inset-inline-start: calc(100% + var(--sinn-p-tip-gap));
331
+ inset-block-start: 50%;
332
+ translate: 0 -50%;
333
+ }
334
+ :where(.sinn-tooltip[data-placement='top']:dir(rtl)) > :where(.sinn-tooltip__bubble),
335
+ :where(.sinn-tooltip[data-placement='bottom']:dir(rtl)) > :where(.sinn-tooltip__bubble) { translate: 50% 0; }
336
+
337
+ /* Show on hover (after a short delay) and on keyboard focus (immediately). Hidden after Esc. */
338
+ :where(.sinn-tooltip:hover:not([data-dismissed])) > :where(.sinn-tooltip__bubble) {
339
+ pointer-events: auto;
340
+ opacity: 1;
341
+ visibility: visible;
342
+ /* Both delayed, so the still-invisible bubble can't catch the pointer during the wait. */
343
+ transition-delay: 350ms, 350ms;
344
+ }
345
+ :where(.sinn-tooltip:has(:focus-visible):not([data-dismissed])) > :where(.sinn-tooltip__bubble) {
346
+ opacity: 1;
347
+ visibility: visible;
348
+ transition-delay: 0s, 0s;
349
+ }
350
+ /* Touch screens have no hover; don't leave a tooltip stuck after a tap. */
351
+ @media (hover: none) {
352
+ :where(.sinn-tooltip:hover:not(:has(:focus-visible))) > :where(.sinn-tooltip__bubble) {
353
+ opacity: 0;
354
+ visibility: hidden;
355
+ }
356
+ }
357
+
358
+ @media (forced-colors: active) {
359
+ :where(dialog.sinn-dialog, .sinn-popover) { border: 1px solid CanvasText; }
360
+ :where(.sinn-tooltip__bubble) { border: 1px solid CanvasText; }
361
+ }
362
+ }
@@ -0,0 +1,146 @@
1
+ /* Same order as tokens.css: whichever stylesheet loads first fixes the layer order. */
2
+ @layer sinn.reset, sinn.tokens, sinn.primitives, sinn.data, sinn.motion, sinn.blocks, sinn.overrides;
3
+
4
+ /*
5
+ * Prose: typography for long-form content whose markup you don't control (CMS rich text,
6
+ * Markdown). Styles plain elements inside `.sinn-prose`; anything inside `.sinn-not-prose`
7
+ * (an embedded component) is left alone. Zero specificity, like every primitive.
8
+ */
9
+ @layer sinn.primitives {
10
+ :where(.sinn-prose) {
11
+ --sinn-p-prose-flow: 1.15em;
12
+ color: var(--sinn-color-text);
13
+ font-size: var(--sinn-text-m);
14
+ line-height: var(--sinn-leading-normal);
15
+ overflow-wrap: break-word;
16
+ }
17
+ :where(.sinn-prose[data-size='s']) { font-size: var(--sinn-text-s); }
18
+ :where(.sinn-prose[data-size='l']) { font-size: var(--sinn-text-l); }
19
+ :where(.sinn-prose[data-measure]) { max-inline-size: var(--sinn-measure-prose); }
20
+ :where(.sinn-prose[data-measure][data-align='center']) { margin-inline: auto; }
21
+
22
+ /* Vertical rhythm: space between siblings, none before the first or after the last. */
23
+ :where(.sinn-prose :is(p, ul, ol, blockquote, pre, figure, table, hr, .sinn-prose__table, h2, h3, h4, h5, h6, dl, details):not(:where(.sinn-not-prose, .sinn-not-prose *))) {
24
+ margin-block: 0;
25
+ }
26
+ :where(.sinn-prose :is(figure, blockquote, dl, dd):not(:where(.sinn-not-prose, .sinn-not-prose *))) { margin-inline: 0; }
27
+ :where(.sinn-prose > * + *:not(:where(.sinn-not-prose *))) { margin-block-start: var(--sinn-p-prose-flow); }
28
+ :where(.sinn-prose :is(li > ul, li > ol):not(:where(.sinn-not-prose *))) { margin-block-start: 0.4em; }
29
+
30
+ /* Headings: one step of extra space above, tight below. */
31
+ :where(.sinn-prose :is(h1, h2, h3, h4, h5, h6):not(:where(.sinn-not-prose *))) {
32
+ font-family: var(--sinn-font-heading);
33
+ font-weight: var(--sinn-weight-bold);
34
+ line-height: var(--sinn-leading-tight);
35
+ letter-spacing: var(--sinn-tracking-heading);
36
+ text-wrap: balance;
37
+ }
38
+ :where(.sinn-prose > :is(h1, h2, h3, h4, h5, h6):not(:first-child)) { margin-block-start: 1.9em; }
39
+ :where(.sinn-prose > :is(h1, h2, h3, h4, h5, h6) + *) { margin-block-start: 0.6em; }
40
+ :where(.sinn-prose :is(h1, h2):not(:where(.sinn-not-prose *))) { font-size: 1.6em; }
41
+ :where(.sinn-prose h3:not(:where(.sinn-not-prose *))) { font-size: 1.3em; }
42
+ :where(.sinn-prose h4:not(:where(.sinn-not-prose *))) { font-size: 1.1em; line-height: var(--sinn-leading-snug); letter-spacing: normal; }
43
+ :where(.sinn-prose :is(h5, h6):not(:where(.sinn-not-prose *))) { font-size: 1em; line-height: var(--sinn-leading-snug); letter-spacing: normal; }
44
+
45
+ :where(.sinn-prose :is(p, li):not(:where(.sinn-not-prose *))) { text-wrap: pretty; }
46
+ :where(.sinn-prose :is(strong, b):not(:where(.sinn-not-prose *))) { font-weight: var(--sinn-weight-bold); }
47
+
48
+ /* Links: always underlined in running text (WCAG 1.4.1), like Link. */
49
+ :where(.sinn-prose a:not(:where(.sinn-not-prose *, [class*='sinn-button']))) {
50
+ color: var(--sinn-color-accent-text);
51
+ text-decoration-line: underline;
52
+ text-decoration-thickness: max(1px, 0.0625em);
53
+ text-underline-offset: 0.18em;
54
+ text-decoration-color: color-mix(in oklch, currentColor 55%, transparent);
55
+ border-radius: var(--sinn-radius-s);
56
+ }
57
+ :where(.sinn-prose a:not(:where(.sinn-not-prose *, [class*='sinn-button'])):hover) {
58
+ text-decoration-color: currentColor;
59
+ text-decoration-thickness: max(2px, 0.125em);
60
+ }
61
+ :where(.sinn-prose a:not(:where(.sinn-not-prose *)):focus-visible) {
62
+ outline: var(--sinn-focus-width) solid var(--sinn-color-focus);
63
+ outline-offset: var(--sinn-focus-offset);
64
+ }
65
+
66
+ /* Lists keep their markers (and their semantics in Safari). */
67
+ :where(.sinn-prose :is(ul, ol):not(:where(.sinn-not-prose *))) { padding-inline-start: 1.4em; }
68
+ :where(.sinn-prose ul:not(:where(.sinn-not-prose *))) { list-style: disc; }
69
+ :where(.sinn-prose ol:not(:where(.sinn-not-prose *))) { list-style: decimal; }
70
+ :where(.sinn-prose li:not(:where(.sinn-not-prose *)) + li) { margin-block-start: 0.4em; }
71
+ :where(.sinn-prose li:not(:where(.sinn-not-prose *))::marker) { color: var(--sinn-color-text-muted); }
72
+ :where(.sinn-prose li > p:not(:where(.sinn-not-prose *))) { margin: 0; }
73
+
74
+ :where(.sinn-prose blockquote:not(:where(.sinn-not-prose *))) {
75
+ padding-inline-start: 1em;
76
+ border-inline-start: var(--sinn-border-width-thick) solid var(--sinn-color-border-strong);
77
+ color: var(--sinn-color-text-muted);
78
+ font-style: italic;
79
+ }
80
+
81
+ :where(.sinn-prose hr:not(:where(.sinn-not-prose *))) {
82
+ block-size: 0;
83
+ border: 0;
84
+ border-block-start: var(--sinn-border-width-thin) solid var(--sinn-color-border);
85
+ margin-block: 2em;
86
+ }
87
+
88
+ :where(.sinn-prose :is(code, kbd, samp):not(:where(.sinn-not-prose *, pre *))) {
89
+ padding: 0.1em 0.35em;
90
+ border-radius: var(--sinn-radius-s);
91
+ background-color: var(--sinn-color-surface-sunken);
92
+ font-family: var(--sinn-font-mono);
93
+ font-size: 0.875em;
94
+ }
95
+ :where(.sinn-prose pre:not(:where(.sinn-not-prose *))) {
96
+ overflow-x: auto;
97
+ padding: 1em;
98
+ border-radius: var(--sinn-radius-m);
99
+ background-color: var(--sinn-color-surface-sunken);
100
+ font-family: var(--sinn-font-mono);
101
+ font-size: 0.875em;
102
+ line-height: var(--sinn-leading-snug);
103
+ tab-size: 2;
104
+ }
105
+ /* A focusable code block (RichText adds tabindex) shows where keyboard scrolling lands. */
106
+ :where(.sinn-prose :is(pre, .sinn-prose__table):not(:where(.sinn-not-prose *)):focus-visible) {
107
+ outline: var(--sinn-focus-width) solid var(--sinn-color-focus);
108
+ outline-offset: var(--sinn-focus-offset);
109
+ }
110
+
111
+ :where(.sinn-prose :is(img, picture, video):not(:where(.sinn-not-prose *))) {
112
+ display: block;
113
+ max-inline-size: 100%;
114
+ block-size: auto;
115
+ border-radius: var(--sinn-radius-m);
116
+ }
117
+ :where(.sinn-prose figcaption:not(:where(.sinn-not-prose *))) {
118
+ margin-block-start: 0.6em;
119
+ color: var(--sinn-color-text-muted);
120
+ font-size: var(--sinn-text-s);
121
+ line-height: var(--sinn-leading-snug);
122
+ }
123
+
124
+ /* Tables scroll inside their own wrapper, so a wide table never scrolls the page at 320px. */
125
+ :where(.sinn-prose .sinn-prose__table:not(:where(.sinn-not-prose *))) { overflow-x: auto; }
126
+ :where(.sinn-prose table:not(:where(.sinn-not-prose *))) {
127
+ inline-size: 100%;
128
+ border-collapse: collapse;
129
+ font-size: 0.9375em;
130
+ font-variant-numeric: tabular-nums;
131
+ }
132
+ :where(.sinn-prose :is(th, td):not(:where(.sinn-not-prose *))) {
133
+ padding: 0.5em 0.75em;
134
+ border-block-end: var(--sinn-border-width-thin) solid var(--sinn-color-border);
135
+ text-align: start;
136
+ vertical-align: top;
137
+ }
138
+ :where(.sinn-prose th:not(:where(.sinn-not-prose *))) {
139
+ border-block-end-color: var(--sinn-color-border-strong);
140
+ font-weight: var(--sinn-weight-semibold);
141
+ }
142
+
143
+ @media (forced-colors: active) {
144
+ :where(.sinn-prose :is(code, pre):not(:where(.sinn-not-prose *))) { border: 1px solid CanvasText; }
145
+ }
146
+ }
@@ -0,0 +1,175 @@
1
+ /* GENERATED by scripts/generate-scale-css.mjs — do not edit by hand. */
2
+ @layer sinn.reset, sinn.tokens, sinn.primitives, sinn.data, sinn.motion, sinn.blocks, sinn.overrides;
3
+ @layer sinn.primitives {
4
+ :where([data-gap='none']) { --sinn-p-gap: var(--sinn-space-none); }
5
+ :where([data-gap='3xs']) { --sinn-p-gap: var(--sinn-space-3xs); }
6
+ :where([data-gap='2xs']) { --sinn-p-gap: var(--sinn-space-2xs); }
7
+ :where([data-gap='xs']) { --sinn-p-gap: var(--sinn-space-xs); }
8
+ :where([data-gap='s']) { --sinn-p-gap: var(--sinn-space-s); }
9
+ :where([data-gap='m']) { --sinn-p-gap: var(--sinn-space-m); }
10
+ :where([data-gap='l']) { --sinn-p-gap: var(--sinn-space-l); }
11
+ :where([data-gap='xl']) { --sinn-p-gap: var(--sinn-space-xl); }
12
+ :where([data-gap='2xl']) { --sinn-p-gap: var(--sinn-space-2xl); }
13
+ :where([data-gap='3xl']) { --sinn-p-gap: var(--sinn-space-3xl); }
14
+ :where([data-row-gap='none']) { --sinn-p-row-gap: var(--sinn-space-none); }
15
+ :where([data-row-gap='3xs']) { --sinn-p-row-gap: var(--sinn-space-3xs); }
16
+ :where([data-row-gap='2xs']) { --sinn-p-row-gap: var(--sinn-space-2xs); }
17
+ :where([data-row-gap='xs']) { --sinn-p-row-gap: var(--sinn-space-xs); }
18
+ :where([data-row-gap='s']) { --sinn-p-row-gap: var(--sinn-space-s); }
19
+ :where([data-row-gap='m']) { --sinn-p-row-gap: var(--sinn-space-m); }
20
+ :where([data-row-gap='l']) { --sinn-p-row-gap: var(--sinn-space-l); }
21
+ :where([data-row-gap='xl']) { --sinn-p-row-gap: var(--sinn-space-xl); }
22
+ :where([data-row-gap='2xl']) { --sinn-p-row-gap: var(--sinn-space-2xl); }
23
+ :where([data-row-gap='3xl']) { --sinn-p-row-gap: var(--sinn-space-3xl); }
24
+ :where([data-gutter='none']) { --sinn-p-gutter: var(--sinn-space-none); }
25
+ :where([data-gutter='3xs']) { --sinn-p-gutter: var(--sinn-space-3xs); }
26
+ :where([data-gutter='2xs']) { --sinn-p-gutter: var(--sinn-space-2xs); }
27
+ :where([data-gutter='xs']) { --sinn-p-gutter: var(--sinn-space-xs); }
28
+ :where([data-gutter='s']) { --sinn-p-gutter: var(--sinn-space-s); }
29
+ :where([data-gutter='m']) { --sinn-p-gutter: var(--sinn-space-m); }
30
+ :where([data-gutter='l']) { --sinn-p-gutter: var(--sinn-space-l); }
31
+ :where([data-gutter='xl']) { --sinn-p-gutter: var(--sinn-space-xl); }
32
+ :where([data-gutter='2xl']) { --sinn-p-gutter: var(--sinn-space-2xl); }
33
+ :where([data-gutter='3xl']) { --sinn-p-gutter: var(--sinn-space-3xl); }
34
+ :where([data-size='none']) { --sinn-p-size: var(--sinn-space-none); }
35
+ :where([data-size='3xs']) { --sinn-p-size: var(--sinn-space-3xs); }
36
+ :where([data-size='2xs']) { --sinn-p-size: var(--sinn-space-2xs); }
37
+ :where([data-size='xs']) { --sinn-p-size: var(--sinn-space-xs); }
38
+ :where([data-size='s']) { --sinn-p-size: var(--sinn-space-s); }
39
+ :where([data-size='m']) { --sinn-p-size: var(--sinn-space-m); }
40
+ :where([data-size='l']) { --sinn-p-size: var(--sinn-space-l); }
41
+ :where([data-size='xl']) { --sinn-p-size: var(--sinn-space-xl); }
42
+ :where([data-size='2xl']) { --sinn-p-size: var(--sinn-space-2xl); }
43
+ :where([data-size='3xl']) { --sinn-p-size: var(--sinn-space-3xl); }
44
+ :where([data-space='none']) { --sinn-p-space: var(--sinn-space-none); }
45
+ :where([data-space='3xs']) { --sinn-p-space: var(--sinn-space-3xs); }
46
+ :where([data-space='2xs']) { --sinn-p-space: var(--sinn-space-2xs); }
47
+ :where([data-space='xs']) { --sinn-p-space: var(--sinn-space-xs); }
48
+ :where([data-space='s']) { --sinn-p-space: var(--sinn-space-s); }
49
+ :where([data-space='m']) { --sinn-p-space: var(--sinn-space-m); }
50
+ :where([data-space='l']) { --sinn-p-space: var(--sinn-space-l); }
51
+ :where([data-space='xl']) { --sinn-p-space: var(--sinn-space-xl); }
52
+ :where([data-space='2xl']) { --sinn-p-space: var(--sinn-space-2xl); }
53
+ :where([data-space='3xl']) { --sinn-p-space: var(--sinn-space-3xl); }
54
+ :where([data-padding='none']) { --sinn-p-padding: var(--sinn-space-none); }
55
+ :where([data-padding='3xs']) { --sinn-p-padding: var(--sinn-space-3xs); }
56
+ :where([data-padding='2xs']) { --sinn-p-padding: var(--sinn-space-2xs); }
57
+ :where([data-padding='xs']) { --sinn-p-padding: var(--sinn-space-xs); }
58
+ :where([data-padding='s']) { --sinn-p-padding: var(--sinn-space-s); }
59
+ :where([data-padding='m']) { --sinn-p-padding: var(--sinn-space-m); }
60
+ :where([data-padding='l']) { --sinn-p-padding: var(--sinn-space-l); }
61
+ :where([data-padding='xl']) { --sinn-p-padding: var(--sinn-space-xl); }
62
+ :where([data-padding='2xl']) { --sinn-p-padding: var(--sinn-space-2xl); }
63
+ :where([data-padding='3xl']) { --sinn-p-padding: var(--sinn-space-3xl); }
64
+ :where([data-min='xs']) { --sinn-p-min: var(--sinn-measure-xs); }
65
+ :where([data-min='s']) { --sinn-p-min: var(--sinn-measure-s); }
66
+ :where([data-min='m']) { --sinn-p-min: var(--sinn-measure-m); }
67
+ :where([data-min='l']) { --sinn-p-min: var(--sinn-measure-l); }
68
+ :where([data-min='xl']) { --sinn-p-min: var(--sinn-measure-xl); }
69
+ :where([data-switch='xs']) { --sinn-p-switch: var(--sinn-measure-xs); }
70
+ :where([data-switch='s']) { --sinn-p-switch: var(--sinn-measure-s); }
71
+ :where([data-switch='m']) { --sinn-p-switch: var(--sinn-measure-m); }
72
+ :where([data-switch='l']) { --sinn-p-switch: var(--sinn-measure-l); }
73
+ :where([data-switch='xl']) { --sinn-p-switch: var(--sinn-measure-xl); }
74
+ :where([data-pct='0']) { --sinn-p-pct: 0%; }
75
+ :where([data-pct='1']) { --sinn-p-pct: 1%; }
76
+ :where([data-pct='2']) { --sinn-p-pct: 2%; }
77
+ :where([data-pct='3']) { --sinn-p-pct: 3%; }
78
+ :where([data-pct='4']) { --sinn-p-pct: 4%; }
79
+ :where([data-pct='5']) { --sinn-p-pct: 5%; }
80
+ :where([data-pct='6']) { --sinn-p-pct: 6%; }
81
+ :where([data-pct='7']) { --sinn-p-pct: 7%; }
82
+ :where([data-pct='8']) { --sinn-p-pct: 8%; }
83
+ :where([data-pct='9']) { --sinn-p-pct: 9%; }
84
+ :where([data-pct='10']) { --sinn-p-pct: 10%; }
85
+ :where([data-pct='11']) { --sinn-p-pct: 11%; }
86
+ :where([data-pct='12']) { --sinn-p-pct: 12%; }
87
+ :where([data-pct='13']) { --sinn-p-pct: 13%; }
88
+ :where([data-pct='14']) { --sinn-p-pct: 14%; }
89
+ :where([data-pct='15']) { --sinn-p-pct: 15%; }
90
+ :where([data-pct='16']) { --sinn-p-pct: 16%; }
91
+ :where([data-pct='17']) { --sinn-p-pct: 17%; }
92
+ :where([data-pct='18']) { --sinn-p-pct: 18%; }
93
+ :where([data-pct='19']) { --sinn-p-pct: 19%; }
94
+ :where([data-pct='20']) { --sinn-p-pct: 20%; }
95
+ :where([data-pct='21']) { --sinn-p-pct: 21%; }
96
+ :where([data-pct='22']) { --sinn-p-pct: 22%; }
97
+ :where([data-pct='23']) { --sinn-p-pct: 23%; }
98
+ :where([data-pct='24']) { --sinn-p-pct: 24%; }
99
+ :where([data-pct='25']) { --sinn-p-pct: 25%; }
100
+ :where([data-pct='26']) { --sinn-p-pct: 26%; }
101
+ :where([data-pct='27']) { --sinn-p-pct: 27%; }
102
+ :where([data-pct='28']) { --sinn-p-pct: 28%; }
103
+ :where([data-pct='29']) { --sinn-p-pct: 29%; }
104
+ :where([data-pct='30']) { --sinn-p-pct: 30%; }
105
+ :where([data-pct='31']) { --sinn-p-pct: 31%; }
106
+ :where([data-pct='32']) { --sinn-p-pct: 32%; }
107
+ :where([data-pct='33']) { --sinn-p-pct: 33%; }
108
+ :where([data-pct='34']) { --sinn-p-pct: 34%; }
109
+ :where([data-pct='35']) { --sinn-p-pct: 35%; }
110
+ :where([data-pct='36']) { --sinn-p-pct: 36%; }
111
+ :where([data-pct='37']) { --sinn-p-pct: 37%; }
112
+ :where([data-pct='38']) { --sinn-p-pct: 38%; }
113
+ :where([data-pct='39']) { --sinn-p-pct: 39%; }
114
+ :where([data-pct='40']) { --sinn-p-pct: 40%; }
115
+ :where([data-pct='41']) { --sinn-p-pct: 41%; }
116
+ :where([data-pct='42']) { --sinn-p-pct: 42%; }
117
+ :where([data-pct='43']) { --sinn-p-pct: 43%; }
118
+ :where([data-pct='44']) { --sinn-p-pct: 44%; }
119
+ :where([data-pct='45']) { --sinn-p-pct: 45%; }
120
+ :where([data-pct='46']) { --sinn-p-pct: 46%; }
121
+ :where([data-pct='47']) { --sinn-p-pct: 47%; }
122
+ :where([data-pct='48']) { --sinn-p-pct: 48%; }
123
+ :where([data-pct='49']) { --sinn-p-pct: 49%; }
124
+ :where([data-pct='50']) { --sinn-p-pct: 50%; }
125
+ :where([data-pct='51']) { --sinn-p-pct: 51%; }
126
+ :where([data-pct='52']) { --sinn-p-pct: 52%; }
127
+ :where([data-pct='53']) { --sinn-p-pct: 53%; }
128
+ :where([data-pct='54']) { --sinn-p-pct: 54%; }
129
+ :where([data-pct='55']) { --sinn-p-pct: 55%; }
130
+ :where([data-pct='56']) { --sinn-p-pct: 56%; }
131
+ :where([data-pct='57']) { --sinn-p-pct: 57%; }
132
+ :where([data-pct='58']) { --sinn-p-pct: 58%; }
133
+ :where([data-pct='59']) { --sinn-p-pct: 59%; }
134
+ :where([data-pct='60']) { --sinn-p-pct: 60%; }
135
+ :where([data-pct='61']) { --sinn-p-pct: 61%; }
136
+ :where([data-pct='62']) { --sinn-p-pct: 62%; }
137
+ :where([data-pct='63']) { --sinn-p-pct: 63%; }
138
+ :where([data-pct='64']) { --sinn-p-pct: 64%; }
139
+ :where([data-pct='65']) { --sinn-p-pct: 65%; }
140
+ :where([data-pct='66']) { --sinn-p-pct: 66%; }
141
+ :where([data-pct='67']) { --sinn-p-pct: 67%; }
142
+ :where([data-pct='68']) { --sinn-p-pct: 68%; }
143
+ :where([data-pct='69']) { --sinn-p-pct: 69%; }
144
+ :where([data-pct='70']) { --sinn-p-pct: 70%; }
145
+ :where([data-pct='71']) { --sinn-p-pct: 71%; }
146
+ :where([data-pct='72']) { --sinn-p-pct: 72%; }
147
+ :where([data-pct='73']) { --sinn-p-pct: 73%; }
148
+ :where([data-pct='74']) { --sinn-p-pct: 74%; }
149
+ :where([data-pct='75']) { --sinn-p-pct: 75%; }
150
+ :where([data-pct='76']) { --sinn-p-pct: 76%; }
151
+ :where([data-pct='77']) { --sinn-p-pct: 77%; }
152
+ :where([data-pct='78']) { --sinn-p-pct: 78%; }
153
+ :where([data-pct='79']) { --sinn-p-pct: 79%; }
154
+ :where([data-pct='80']) { --sinn-p-pct: 80%; }
155
+ :where([data-pct='81']) { --sinn-p-pct: 81%; }
156
+ :where([data-pct='82']) { --sinn-p-pct: 82%; }
157
+ :where([data-pct='83']) { --sinn-p-pct: 83%; }
158
+ :where([data-pct='84']) { --sinn-p-pct: 84%; }
159
+ :where([data-pct='85']) { --sinn-p-pct: 85%; }
160
+ :where([data-pct='86']) { --sinn-p-pct: 86%; }
161
+ :where([data-pct='87']) { --sinn-p-pct: 87%; }
162
+ :where([data-pct='88']) { --sinn-p-pct: 88%; }
163
+ :where([data-pct='89']) { --sinn-p-pct: 89%; }
164
+ :where([data-pct='90']) { --sinn-p-pct: 90%; }
165
+ :where([data-pct='91']) { --sinn-p-pct: 91%; }
166
+ :where([data-pct='92']) { --sinn-p-pct: 92%; }
167
+ :where([data-pct='93']) { --sinn-p-pct: 93%; }
168
+ :where([data-pct='94']) { --sinn-p-pct: 94%; }
169
+ :where([data-pct='95']) { --sinn-p-pct: 95%; }
170
+ :where([data-pct='96']) { --sinn-p-pct: 96%; }
171
+ :where([data-pct='97']) { --sinn-p-pct: 97%; }
172
+ :where([data-pct='98']) { --sinn-p-pct: 98%; }
173
+ :where([data-pct='99']) { --sinn-p-pct: 99%; }
174
+ :where([data-pct='100']) { --sinn-p-pct: 100%; }
175
+ }