actual-css 0.19.4 → 0.20.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 (95) hide show
  1. package/CHANGELOG.md +67 -0
  2. package/README.md +6 -6
  3. package/components.json +6 -3
  4. package/dist/actual.full.css +249 -50
  5. package/dist/actual.full.js +2 -2
  6. package/dist/actual.full.min.css +1 -1
  7. package/dist/types/menu.d.ts +2 -5
  8. package/docs/pages/components/accordion.md +11 -6
  9. package/docs/pages/components/alert.md +64 -62
  10. package/docs/pages/components/avatar.md +12 -12
  11. package/docs/pages/components/badge.md +15 -15
  12. package/docs/pages/components/breadcrumb.md +10 -8
  13. package/docs/pages/components/button.md +56 -7
  14. package/docs/pages/components/card.md +21 -21
  15. package/docs/pages/components/dialog.md +97 -69
  16. package/docs/pages/components/drawer.md +33 -33
  17. package/docs/pages/components/indicator.md +12 -12
  18. package/docs/pages/components/navbar.md +41 -9
  19. package/docs/pages/components/pagination.md +7 -7
  20. package/docs/pages/components/progress.md +18 -13
  21. package/docs/pages/components/rating.md +19 -19
  22. package/docs/pages/components/reveal.md +2 -0
  23. package/docs/pages/components/segmented.md +35 -31
  24. package/docs/pages/components/skeleton.md +10 -8
  25. package/docs/pages/components/spinner.md +21 -15
  26. package/docs/pages/components/table.md +26 -28
  27. package/docs/pages/enhancements/flyout.md +94 -43
  28. package/docs/pages/enhancements/in-view.md +3 -1
  29. package/docs/pages/enhancements/scrollspy.md +51 -18
  30. package/docs/pages/enhancements/tabs.md +43 -37
  31. package/docs/pages/enhancements/tooltip.md +4 -2
  32. package/docs/pages/forms/ajax.md +66 -0
  33. package/docs/pages/forms/choice-cards.md +8 -8
  34. package/docs/pages/forms/color-swatches.md +12 -12
  35. package/docs/pages/forms/form-actions.md +23 -0
  36. package/docs/pages/forms/joined-controls.md +8 -8
  37. package/docs/pages/forms/labels.md +11 -11
  38. package/docs/pages/forms/overview.md +35 -29
  39. package/docs/pages/forms/states-and-sizes.md +9 -9
  40. package/docs/pages/forms/switch.md +35 -2
  41. package/docs/pages/forms/validation.md +16 -16
  42. package/docs/pages/foundations/theming.md +32 -2
  43. package/docs/pages/foundations/tokens.md +18 -16
  44. package/docs/pages/guides/coding-agents.md +18 -0
  45. package/docs/pages/guides/introduction.md +1 -1
  46. package/llms.txt +3 -3
  47. package/package.json +5 -5
  48. package/reserved-classes.json +1 -0
  49. package/skills/actual-css/SKILL.md +7 -0
  50. package/src/cli/actual-css.js +3 -3
  51. package/src/css/components/badge.css +10 -6
  52. package/src/css/components/button.css +20 -7
  53. package/src/css/components/join.css +14 -4
  54. package/src/css/components/navbar.css +83 -1
  55. package/src/css/components/pagination.css +3 -1
  56. package/src/css/components/segmented.css +27 -7
  57. package/src/css/core/theme.css +11 -9
  58. package/src/css/core/tokens.css +7 -1
  59. package/src/css/core/variants.css +2 -0
  60. package/src/css/effects/reveal.css +15 -6
  61. package/src/css/forms/control.css +11 -1
  62. package/src/css/forms/form.css +14 -4
  63. package/src/css/forms/switch.css +32 -3
  64. package/src/js/ajax.js +18 -1
  65. package/src/js/context-menu.js +1 -3
  66. package/src/js/flyout.js +14 -5
  67. package/src/js/in-view.js +41 -30
  68. package/src/js/menu.js +9 -21
  69. package/src/js/surface.js +38 -0
  70. package/src/tooling/design-tokens.js +1 -0
  71. package/src/tooling/theme-contrast.js +24 -9
  72. package/tokens.json +1 -0
  73. package/docs/design-notes/accessibility-decisions.md +0 -63
  74. package/docs/design-notes/app-ui.md +0 -67
  75. package/docs/design-notes/architecture.md +0 -70
  76. package/docs/design-notes/browser-support.md +0 -239
  77. package/docs/design-notes/cascade-layer.md +0 -74
  78. package/docs/design-notes/column-layout.md +0 -260
  79. package/docs/design-notes/css-anchor.md +0 -87
  80. package/docs/design-notes/enhancement-contract.md +0 -193
  81. package/docs/design-notes/forced-colors.md +0 -123
  82. package/docs/design-notes/grid.md +0 -785
  83. package/docs/design-notes/motion-cost.md +0 -62
  84. package/docs/design-notes/naming.md +0 -71
  85. package/docs/design-notes/platform-alignment.md +0 -602
  86. package/docs/design-notes/popover-manual-poc.md +0 -328
  87. package/docs/design-notes/references.md +0 -336
  88. package/docs/design-notes/rich-text.md +0 -61
  89. package/docs/design-notes/spacing-units.md +0 -286
  90. package/docs/design-notes/steps.md +0 -776
  91. package/docs/design-notes/surface-reparenting.md +0 -130
  92. package/docs/design-notes/tokens.md +0 -166
  93. package/docs/design-notes/tooltip-coordinate-space.md +0 -130
  94. package/docs/design-notes/widget-primitives.md +0 -144
  95. package/docs/navigation.json +0 -176
@@ -1,328 +0,0 @@
1
- # POC: native popover as the surface transport
2
-
3
- A record of an experiment, not a plan of record. It exists so the reasoning
4
- outlives the branch that produced it — including the parts that came out
5
- negative, which are the ones a future attempt would otherwise repeat.
6
-
7
- Question asked: can `popover="manual"` replace the DOM reparenting in
8
- `surface.js` without changing anything else?
9
-
10
- Answer: yes. The branch demonstrated it, the WebKit gate below closed it, and
11
- the migration checklist at the end has been executed — so this note is now also
12
- the record of what the checklist got wrong. The cost was a browser floor, not
13
- an architecture change; see [browser-support](browser-support.md).
14
-
15
- ## Branch
16
-
17
- `poc/popover-manual-surfaces`, four commits on top of `0f4f8b7`:
18
-
19
- | SHA | Step |
20
- | --------- | ------------------------------------------------- |
21
- | `bf1e53d` | Pass 1 — manual transport, reparenting removed |
22
- | `4d598dd` | Extract the popover test stub, cut to the minimum |
23
- | `ececcd6` | Pass 2 — keep a runtime scrim, fix its placement |
24
- | `27b34f1` | Finish as a transparent migration |
25
-
26
- ## What the transport actually needs
27
-
28
- Derived from the branch, not from a compatibility badge. The distinction between
29
- the two contracts matters: they fail differently, and only the first gates the
30
- runtime.
31
-
32
- ```text
33
- JS requirement (gates the runtime)
34
- ----------------------------------
35
- popover="manual"
36
- showPopover()
37
- hidePopover()
38
- top-layer promotion + closed-state display:none
39
-
40
- CSS enhancement (already @supports-gated, degrades)
41
- ---------------------------------------------------
42
- :popover-open
43
- overlay
44
- transition-behavior: allow-discrete
45
- @starting-style
46
- ```
47
-
48
- The runtime never reads `:popover-open`. It was removed from `isSurfaceOpen()`
49
- and from the `autoUpdate` guard because a partially-implemented selector engine
50
- answers `false` rather than throwing, which is a silent wrong answer (see the
51
- happy-dom finding below). `.is-open` is the single state the runtime writes and
52
- reads, and the class the CSS keys on.
53
-
54
- Two capabilities that are *not* required, which matters because both are newer
55
- than Popover and would have pushed the floor much higher:
56
-
57
- - `overlay` / `allow-discrete` — the exit fade. Gated; without it the exit is
58
- instant and correct.
59
- - `::backdrop` — proved unusable, see below.
60
-
61
- ## Findings
62
-
63
- **happy-dom implements no Popover element API.** Version 20.11 has the invoker
64
- attributes (`popoverTargetElement`, `popoverTargetAction` on button and input)
65
- but not `showPopover` / `hidePopover` / `togglePopover`, and
66
- `matches(":popover-open")` answers `false` rather than throwing. The silent
67
- false is the dangerous half: reading the pseudo-class in `isSurfaceOpen()` made
68
- all 647 unit tests see "never open". Resolved by reading `.is-open` only, plus
69
- two no-op stubs in `tests/helpers/popover-stub.js`. Transport behavior moved to
70
- the browser layer, which is where it belonged.
71
-
72
- **`::backdrop` cannot replace the sheet scrim.** Negative result, measured, and
73
- the one most likely to be re-attempted. The native backdrop is painted for a
74
- manual popover, covers the viewport, and does inherit custom properties from
75
- its originating element — a scoped `--backdrop-fill` on an ancestor of the
76
- panel resolved into it, which a body-level div cannot do. But the UA sets
77
- `pointer-events: none` on an open popover's backdrop and it is not overridable
78
- from author CSS: both `pointer-events: auto` and `pointer-events: auto
79
- !important` computed as `none`, since a UA `!important` outranks an author one.
80
- Measured with a real CDP click on the scrim, the element behind it received the
81
- click and its handler fired. The scrim has two jobs — painting, and absorbing
82
- the pointer — and the platform only offers the first, so it stays an Actual
83
- element.
84
-
85
- **The scrim's placement, not the scrim, was what pass 1 broke.**
86
- `menu.before(backdrop)` put it beside a panel that no longer moves, stranding
87
- it inside the author's container. It goes to the document root instead, which
88
- reproduces exactly where it landed before. This is the one fragment of
89
- `getSurfaceRoot()` that survives, and it is not the reparenting the transport
90
- removed: the scrim is runtime-created, has no author identity, and nothing
91
- inherited to preserve.
92
-
93
- **A surface inside a modal dialog works.** This was the open question, since a
94
- modal dialog inerts the rest of the document — which is why the old transport
95
- moved the panel into the dialog. Measured: the panel is promoted above the
96
- dialog, stays in the dialog subtree and in its own host element, wins the hit
97
- test, and takes focus.
98
-
99
- **`aria-expanded` is computed natively for a `popovertarget` invoker** —
100
- `expanded: false` closed, `true` open, on the AX tree. Deliberately not
101
- exploited: the public contract is `aria-controls`, so `popovertarget` would be
102
- a markup migration for adopters rather than an internal transport detail, and
103
- `linkedTriggers()` supports several triggers per panel where `popovertarget`
104
- covers one.
105
-
106
- ## Measurements
107
-
108
- | Measure | `master` | POC |
109
- | ------------------------- | -------: | --------------: |
110
- | `surface.js` code lines | 358 | **337** |
111
- | `surface.js` total lines | 431 | 436 |
112
- | Transport concepts | 4 | **1** |
113
- | Inherited contexts broken | 3/3 | **0/3** |
114
- | Unit tests | 647 | **650**, 0 fail |
115
- | Browser tests | 50 | **55**, 0 fail |
116
- | JS full, brotli | 16.1 KB | **16.0 KB** |
117
- | Public contracts changed | — | **none** |
118
-
119
- Removed: `mountedSurfaces`, `getSurfaceRoot()`, `mountSurface()`,
120
- `restoreSurface()`, `disconnectSurface`'s `{ restore }` option, and the
121
- `[popover]` conflict warning — the runtime is that owner now.
122
-
123
- The total line count *grows* by five. The 21 fewer code lines are outweighed by
124
- added comments. "Remove more than you add" is a signal, not a rule: what leaves
125
- is a concept — a component no longer has to leave its place in the DOM to be
126
- painted above the page — plus a defect with no generic repair and three
127
- transport abstractions.
128
-
129
- ## Acceptance criterion
130
-
131
- > A transport migration may change assertions about transport markers, but must
132
- > not require changing behavioral assertions.
133
-
134
- This is stricter and more useful than "no public API change". The 57
135
- `hidden → .is-open` edits qualify: they replace observing a mechanism with
136
- observing the lifecycle that owns it. If a future attempt has to modify an
137
- assertion about focus, dismissal, positioning or events to make the transport
138
- pass, it is no longer a transport swap and the claim does not hold.
139
-
140
- ## Go / no-go: WebKit verification
141
-
142
- The measurements above were taken on Chromium — the browser test harness
143
- hardcodes `backend: "chrome"`. The floor's most notable step is Safari 17, so
144
- the transport needed evidence on the engine the raise actually buys. That was
145
- the one open technical gate on the migration. It is now closed.
146
-
147
- A permanent WebKit matrix was disproportionate for a decision taken once. One
148
- manual pass on a real Safari at the chosen floor:
149
-
150
- ```text
151
- 1. showPopover() / hidePopover() in manual mode
152
- 2. a closed panel is genuinely invisible and unfocusable
153
- 3. the DOM parent is unchanged before, during and after opening
154
- 4. inherited theme, density and custom properties survive opening
155
- 5. a surface inside <dialog open> and inside a modal dialog
156
- 6. reopening during the exit transition
157
- 7. a context menu at pointer coordinates
158
- 8. the sheet scrim covers and intercepts the click
159
- ```
160
-
161
- `demo/templates/popover-transport.html` is that pass, scored by the page. It
162
- loads no Actual JavaScript and measures the platform subset above, so it
163
- answers on `master` without checking the branch out. Scenarios 1–6 run
164
- unattended; 7 and 8 need a real gesture. It scores 8/8 on Chromium and
165
- reproduces the findings above, `::backdrop` included — so a deviation on WebKit
166
- is the engine, not the bench.
167
-
168
- ### Result — gate passed
169
-
170
- ```text
171
- Verified manually on:
172
- iOS Safari 17.0 / iOS 17.0 8/8 passed
173
- Safari 17.3 / macOS unrecorded 8/8 passed
174
- Date: 2026-09-04
175
- ```
176
-
177
- iOS 17.0 is the bottom of the proposed floor, measured rather than inferred.
178
- The desktop score is the union of two page loads on one engine, the iOS score a
179
- single session at 390×745; a second iOS pass at 341×651 reproduced everything
180
- but scenario 7, whose assertion the bench has since corrected — see below.
181
- Safari freezes its macOS UA token at `10_15_7`, so the desktop host version is
182
- not recoverable from a report. macOS Safari 17.0–17.2 stay inferred, on the
183
- same WebKit that iOS 17.0 exercised.
184
-
185
- Scenario 7 ran through the synthetic fallback on both iOS passes: iOS fires no
186
- `contextmenu` from a long press, so that event path is unexercised on the port
187
- where it matters most, and the scenario attests placement only.
188
-
189
- Both ports report the same subset: the four runtime primitives and
190
- `selector(:popover-open)` present; `checkVisibility()`, `overlay`,
191
- `transition-behavior: allow-discrete` and `@starting-style` absent. That
192
- matches WebKit's published timeline — Popover in 17.0, the rest in 17.4 and
193
- 17.5 — which is corroboration that the bench measures rather than guesses.
194
-
195
- Four results carry consequences:
196
-
197
- **Scenario 5 passes on both ports**, which is what makes the transport worth
198
- making mandatory: the native top layer solves on WebKit the problem that
199
- motivated `getSurfaceRoot()` in the first place, on a 390px phone included.
200
-
201
- **Scenario 2 passes on the fallback branch.** `checkVisibility()` does not
202
- exist below Safari 17.4, so `isElementVisible()` runs its `getClientRects()`
203
- branch at the floor — the branch that had never been exercised. It works, and
204
- it is load-bearing rather than dead.
205
-
206
- **`::backdrop` is weaker on WebKit, not stronger.** Author `pointer-events` on
207
- an open popover's backdrop still computes to `none`, the native backdrop still
208
- lets the pointer through, and an Actual scrim element still absorbs it,
209
- confirmed with a real tap. The one thing `::backdrop` did well on Chromium —
210
- resolving a custom property scoped to an ancestor of the panel — resolves to
211
- nothing on WebKit. The scrim stays an Actual element on both engines, and not
212
- by Chromium's accident.
213
-
214
- **An overflowing top-layer box is adjusted differently.** Asked to place a
215
- panel at a point that would push it past the right edge of a 341px viewport,
216
- iOS Safari 17.0 offset it by 11px; Chromium at the identical viewport and
217
- overflow offset it by 0. Not a gate: `surface.js` positions through floating's
218
- `shift` middleware with `shiftPadding: 4`, so it never asks for such a point
219
- and measures the rendered rect afterwards. The bench now picks a point that
220
- fits, so scenario 7 measures placement rather than the UA's correction.
221
-
222
- ## Changelog framing for the raise
223
-
224
- State what stops working before what it buys, with versions named. Something
225
- along these lines:
226
-
227
- > **JavaScript browser floor raised** to Safari 17+, Firefox 125+ and
228
- > Chromium 116+. Interactive surfaces now use the native manual Popover
229
- > transport (`popover`, `showPopover()`, `hidePopover()`) instead of
230
- > physically reparenting author DOM. This preserves inherited themes, density
231
- > and application custom properties while leaving Actual's dismissal, focus
232
- > and positioning contracts unchanged.
233
- >
234
- > Browsers below this JavaScript floor no longer receive the supported full
235
- > Actual runtime. Core HTML/CSS degradation remains governed separately by the
236
- > Degraded tier.
237
-
238
- Not "Popover is now required": that reads as a dependency on the whole API
239
- family, when the requirement is the four primitives listed above.
240
-
241
- ## Migration checklist
242
-
243
- For the release that raises Minimal. Items 4–7 are scaffolding built for a floor
244
- that will no longer exist; a gate outliving its reason is silent dead weight, so
245
- they belong here rather than being found later.
246
-
247
- 1. WebKit verification — done, 8/8 on Safari 17.3, recorded above. Cleared.
248
- 2. Raise Minimal to the required subset above. The justification is the defect
249
- and the transparent migration, not a download count: npm figures conflate
250
- CI, bots, caches and the author, and say nothing about the end browser.
251
- 3. Delete the `Intermediate` tier. It is not merely less useful — with a new
252
- Minimal above it on all three engines it is arithmetically absorbed, so its
253
- features become floor-guaranteed and no information is lost.
254
- 4. Reclassify those features (`color-mix()`, `oklch()/oklab()`, `dvh/svh/lvh`,
255
- `scrollbar-gutter`, `scrollbar-width`, `scrollbar-color`) as Minimal
256
- baseline and drop their `check-compat` entries.
257
- 5. Remove the `@supports selector(:popover-open)` gates in `flyout.css` and
258
- `tooltip.css`. Those only: the `@supports (transition-behavior:
259
- allow-discrete)` gate and the `@starting-style` blocks stay, since neither
260
- is in the floor — Safari 17.4 and 17.5.
261
- 6. Remove the two `popover` entries from `check-compat`'s feature table.
262
- 7. Remove the associated `compat-ok:` pragmas, and `hasPragma()` itself if
263
- nothing else consumes it.
264
- 8. Move `surface.js` to the manual transport, with no fallback branch. This
265
- does not reach `isElementVisible()` in `focus.js`: `checkVisibility()` is
266
- Safari 17.4, so its `getClientRects()` fallback is the branch that runs at
267
- the floor and must stay.
268
- 9. Drop `test.failing` from the reparenting tests in
269
- `tests/browser/surface-inherited-context.test.js`, keeping the assertions.
270
- 10. Update [surface-reparenting](surface-reparenting.md) from a known limitation
271
- to resolved.
272
-
273
- Steps 8 and 9 are linked but not enforced. The `test.failing` markers guarantee
274
- that step 8 becomes unavoidable — they turn red as unexpected passes the moment
275
- the transport changes — but nothing forces step 9. The test file points at the
276
- note, and the note points back here; that is as far as documentation can close
277
- the loop.
278
-
279
- ### Executed — where the checklist was wrong
280
-
281
- All ten items are done. Three needed correcting on contact, and the corrections
282
- are worth more than the items were.
283
-
284
- **Item 4 rested on a false premise.** Raising Minimal does not make a CSS
285
- capability baseline, because Minimal is the *JavaScript* floor: a Degraded
286
- browser runs no supported runtime and still receives every stylesheet, so CSS
287
- owes its fallbacks that far down. `check:compat` now states the Degraded floor
288
- and keeps the entries, relabelled — dropping them would have removed the only
289
- machine check that keeps those fallbacks honest. Two of the six features were
290
- also mistagged before the migration: `scrollbar-gutter`, `scrollbar-width` and
291
- `scrollbar-color` land in Safari 18.2, above every tier including Recommended,
292
- so they are `optional` rather than absorbed. The same relabelling moved `:has()`
293
- and `@container` to `minimal` — the new floor genuinely does absorb them, which
294
- the checklist missed because it enumerated the Intermediate tier's features
295
- instead of reading the new floor.
296
-
297
- **Item 7 cost more than it removed.** `hasPragma()` had no consumer left once
298
- the popover entries went, so it is gone — and with it five tests, including the
299
- one recording that prose must not excuse an optional structural use. The
300
- discovery is now a comment in `check-compat.js` naming the pragma to reinstate.
301
- Deleting a guard whose only proof of value was its own test is the trade this
302
- item asked for; it should be re-read before the next optional structural
303
- capability arrives.
304
-
305
- **Item 8 left one author-facing decision open.** The POC preserved an author's
306
- own `popover` value and only defaulted a missing one. `prepareSurface()` now
307
- writes `manual` unconditionally: any other mode hands the UA a dismissal policy,
308
- and native light dismiss closes on outside clicks only — which silently defeats
309
- `data-flyout-auto-close="false"`. The old `[popover]` conflict warning had
310
- caught that case; overwriting the attribute is what replaces it.
311
-
312
- ## What was deliberately left out
313
-
314
- Not attempted, and not because it looked hard:
315
-
316
- - **`popover="auto"`.** It cannot express `data-flyout-auto-close`, whose
317
- default closes on an inside click; native light-dismiss closes on outside
318
- clicks only, and `false` is inexpressible altogether. Adopting it would be a
319
- behavior change to the component, not a transport swap.
320
- - **Nested surfaces.** `openSurface()` closes every other open surface in the
321
- document; the runtime is strictly flat and the transport change does not
322
- alter that. Nesting is a separate feature decision, and the choice between
323
- extending Actual's own stack and adopting the native one is functional before
324
- it is technical.
325
- - **`popover="hint"`, interest invokers, CSS anchor positioning.** Watch.
326
- - **Further deletion for its own sake.** The branch's value is that it changes
327
- the transport and nothing else. Broadening it would cost exactly the property
328
- that makes it usable as a migration.
@@ -1,336 +0,0 @@
1
- # References
2
-
3
- ## Positioning
4
-
5
- Actual CSS is for new projects that want semantic HTML, small class APIs, theme tokens, and progressive enhancement without a build step.
6
-
7
- It claims a small public grammar: `.component [intent] [variant] [size] [modifier]`. For existing projects with collisions, use cascade layers, import order, or an application-side prefix transform.
8
-
9
- ### Non-goals
10
-
11
- - No legacy drop-in promise.
12
- - No large utility surface.
13
- - No compatibility build that rewrites the product.
14
- - No complex widgets.
15
-
16
- ## Previous work
17
-
18
- Prior Actual CSS libraries:
19
-
20
- - https://github.com/lekoala/liveinit
21
- - https://github.com/lekoala/modern-now
22
- - unpublished css library
23
-
24
- ## Research links
25
-
26
- ### Forms
27
-
28
- - https://oat.ink/components/#form
29
- - https://picocss.com/docs/forms
30
- - https://picocss.com/docs/group
31
- - https://getbootstrap.com/docs/5.3/forms/overview/
32
- - https://developer.chrome.com/blog/a-customizable-select
33
- - https://modern-css.com/customizable-selects-without-a-javascript-library/
34
- - https://smolcss.dev/#smol-focus-styles
35
- - https://daisyui.com/components/checkbox/
36
- - https://daisyui.com/components/fieldset/
37
- - https://daisyui.com/components/label/
38
- - https://daisyui.com/components/radio/
39
- - https://daisyui.com/components/range/
40
- - https://daisyui.com/components/select/
41
- - https://daisyui.com/components/textarea/
42
- - https://daisyui.com/components/toggle/
43
- - https://uiterms.com/slider/
44
- - https://uiterms.com/switch/
45
- - https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/label
46
- - https://open-ui.org/components/checkbox.research/
47
- - https://open-ui.org/components/radio-button.research/
48
- - https://open-ui.org/components/select.research/
49
- - https://open-ui.org/components/slider.research/
50
- - https://open-ui.org/components/switch/
51
- - https://daisyui.com/components/validator/
52
- - https://getbootstrap.com/docs/5.3/forms/validation/
53
- - https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Reference/Roles/switch_role
54
-
55
- ### Components: Accordion
56
-
57
- - https://picocss.com/docs/accordion
58
- - https://oat.ink/components/#accordion
59
- - https://daisyui.com/components/accordion/
60
- - https://getbootstrap.com/docs/5.3/components/accordion/
61
- - https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/details
62
- - https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/summary
63
- - https://semantic-ui.com/modules/accordion.html
64
- - https://modern-css.com/accordion-without-javascript/
65
- - https://modern-css.com/exclusive-accordions-without-javascript/
66
- - https://uiterms.com/accordion/
67
- - https://basecoatui.com/components/accordion/
68
- - https://open-ui.org/components/accordion.explainer/
69
-
70
- ### Components: Alert
71
-
72
- - https://oat.ink/components/#alert
73
- - https://getbootstrap.com/docs/5.3/components/alerts/
74
- - https://playground.halfaccessible.com/aria-reference/alert-role
75
- - https://www.a11y-collective.com/blog/aria-alert/
76
- - https://primer.style/accessibility/patterns/accessible-notifications-and-messages/
77
- - https://uiterms.com/alert/
78
- - https://open-ui.org/components/alert.research/
79
- - https://kelpui.com/docs/components/callouts/
80
-
81
- ### Components: Avatar
82
-
83
- - https://oat.ink/components/#avatar
84
- - https://daisyui.com/components/avatar/
85
- - https://smolcss.dev/#smol-avatar-list
86
- - https://open-ui.org/components/avatar.research/
87
-
88
- ### Components: Badge
89
-
90
- - https://oat.ink/components/#badge
91
- - https://daisyui.com/components/badge/
92
- - https://semantic-ui.com/elements/label.html
93
- - https://getbootstrap.com/docs/5.3/components/badge/
94
- - https://uiterms.com/badge/
95
- - https://m3.material.io/components/badges/overview
96
- - https://daisyui.com/components/indicator/
97
- - https://open-ui.org/components/badge.research/
98
- - https://kelpui.com/docs/components/badges/
99
-
100
- ### Components: Breadcrumb
101
-
102
- - https://oat.ink/components/#breadcrumb
103
- - https://daisyui.com/components/breadcrumbs/
104
- - https://getbootstrap.com/docs/5.3/components/breadcrumb/
105
- - https://gomakethings.com/articles/creating-unstyled-lists/
106
- - https://uiterms.com/breadcrumbs/
107
- - https://open-ui.org/components/breadcrumb.research/
108
-
109
- ### Components: Button
110
-
111
- - https://picocss.com/docs/button
112
- - https://daisyui.com/components/button/
113
- - https://semantic-ui.com/elements/button.html
114
- - https://bulma.io/documentation/elements/button/
115
- - https://oat.ink/components/#button
116
- - https://getbootstrap.com/docs/5.3/components/buttons/
117
- - https://moderncss.dev/icon-button-css-styling-guide/
118
- - https://moderncss.dev/css-button-styling-guide/
119
- - https://codepen.io/lekoalabe/pen/RNaXBBP
120
- - https://codepen.io/lekoalabe/pen/oNORPZP
121
- - https://piccalil.li/blog/how-i-build-a-button-component/
122
- - https://open-ui.org/components/button/
123
- - https://kelpui.com/docs/components/buttons/
124
-
125
- ### Components: Card
126
-
127
- - https://oat.ink/components/#card
128
- - https://daisyui.com/components/card/
129
- - https://picocss.com/docs/card
130
- - https://getbootstrap.com/docs/5.3/components/card/
131
- - https://semantic-ui.com/views/card.html
132
- - https://smolcss.dev/#smol-card-component
133
- - https://uiterms.com/card/
134
- - https://open-ui.org/components/card.research/
135
-
136
- ### UI: Drawer
137
-
138
- - https://oat.ink/components/#sidebar
139
- - https://daisyui.com/components/drawer/
140
- - https://mac81.github.io/pure-drawer/
141
- - https://codepen.io/nwest88/pen/PwwZpv
142
- - https://uiterms.com/drawer/
143
- - https://v6-dev--twbs-bootstrap.netlify.app/docs/6.0/components/drawer/
144
-
145
- ### Components: Meter
146
-
147
- - https://oat.ink/components/#meter
148
-
149
- ### UI: Modal / Dialog
150
-
151
- - https://oat.ink/components/#dialog
152
- - https://picocss.com/docs/modal
153
- - https://daisyui.com/components/modal/
154
- - https://getbootstrap.com/docs/5.3/components/modal/
155
- - https://modern-css.com/modal-dialogs-without-a-javascript-library/
156
- - https://modern-css.com/full-width-without-horizontal-scrollbar-overflow/
157
- - https://modern-css.com/modal-controls-without-onclick-handlers/
158
- - https://modern-css.com/dialog-light-dismiss-without-click-outside-listeners/
159
- - https://uiterms.com/alert-dialog/
160
- - https://uiterms.com/dialog/
161
- - https://codepen.io/lekoalabe/pen/GgKOKOE
162
- - https://pqina.nl/blog/animating-the-dialog-element-using-view-transitions/
163
- - https://basecoatui.com/components/alert-dialog/
164
- - https://v6-dev--twbs-bootstrap.netlify.app/docs/6.0/components/dialog/
165
- - https://open-ui.org/components/invokers.explainer/
166
- - https://open-ui.org/components/dialog.research/
167
- - https://kelpui.com/docs/components/dialog/
168
-
169
- ### Components: Pagination
170
-
171
- - https://oat.ink/components/#pagination
172
- - https://daisyui.com/components/pagination/
173
- - https://uiterms.com/pagination/
174
-
175
- ### Components: Progress
176
-
177
- - https://oat.ink/components/#progress
178
- - https://daisyui.com/components/progress/
179
- - https://picocss.com/docs/progress
180
- - https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/progress
181
- - https://getbootstrap.com/docs/5.3/components/progress/
182
- - https://codepen.io/lekoalabe/pen/NWEzXMO
183
-
184
- ### Components: Spinner
185
-
186
- - https://oat.ink/components/#spinner
187
- - https://picocss.com/docs/loading
188
- - https://daisyui.com/components/loading/
189
- - https://kelpui.com/docs/components/spinner/
190
-
191
- ### Components: Skeleton
192
-
193
- - https://oat.ink/components/#skeleton
194
- - https://daisyui.com/components/skeleton/
195
- - https://github.com/Aejkatappaja/phantom-ui
196
- - https://kelpui.com/docs/components/skeleton/
197
-
198
- ### Components: Table
199
-
200
- - https://picocss.com/docs/table
201
- - https://oat.ink/components/#table
202
- - https://getbootstrap.com/docs/5.3/content/tables/
203
- - https://piccalil.li/blog/styling-tables-the-modern-css-way/
204
- - https://open-ui.org/components/table.research/
205
-
206
- ### Layout: Stack
207
-
208
- - https://github.com/knadh/oat/blob/master/src/css/utilities.css
209
- - https://every-layout.dev/layouts/stack/
210
- - https://kelpui.com/docs/layout/stack/
211
-
212
- ### Layout: Cluster
213
-
214
- - https://modern-css.com/spacing-elements-without-margin-hacks/
215
- - https://every-layout.dev/layouts/cluster/
216
- - https://kelpui.com/docs/layout/cluster/
217
-
218
- ### Layout: Center
219
-
220
- - https://picocss.com/docs/container
221
- - https://smolcss.dev/#smol-container
222
- - https://every-layout.dev/layouts/center/
223
-
224
- ### Component: List
225
-
226
- - https://daisyui.com/components/list/
227
- - https://html.spec.whatwg.org/multipage/grouping-content.html#the-li-element
228
- - https://open-ui.org/components/list.research/
229
-
230
- ### Layout: Grid
231
-
232
- - https://picocss.com/docs/grid
233
- - https://oat.ink/components/#grid
234
- - https://modern-css.com/grid-layout-without-extra-wrappers/
235
- - https://moderncss.dev/3-css-grid-techniques-to-make-you-a-grid-convert/
236
- - https://smolcss.dev/#smol-css-grid
237
- - https://kelpui.com/docs/layout/grid/
238
-
239
- ### Layout: Sidebar
240
-
241
- - https://every-layout.dev/layouts/sidebar/
242
- - https://kelpui.com/docs/layout/sidecar/
243
-
244
- ### Layout: Switcher
245
-
246
- - https://every-layout.dev/layouts/switcher/
247
-
248
- ### Layout: Frame
249
-
250
- - https://every-layout.dev/layouts/frame/
251
-
252
- ### Layout: Header and Footer
253
-
254
- - https://uiterms.com/sticky-header/
255
- - https://developer.mozilla.org/en-US/docs/Web/CSS/How_to/Layout_cookbook/Sticky_footers
256
- - https://crinkles.dev/writing/enhanced-sticky-footer/
257
- - https://prismic.io/blog/css-sticky-footers
258
- - https://modern-css.com/sticky-headers-without-javascript-scroll-listeners/
259
- - https://picocss.com/docs/landmarks-section
260
-
261
- ### Utilities
262
-
263
- - https://piccalil.li/blog/a-modern-css-reset/
264
- - https://www.a11yproject.com/posts/how-to-hide-content/
265
- - https://getbootstrap.com/docs/5.3/content/tables/#responsive-tables
266
- - https://picocss.com/docs/overflow-auto
267
- - https://github.com/knadh/oat/blob/master/src/css/utilities.css
268
-
269
- ### Tokens
270
-
271
- - https://primer.style/product/primitives/
272
- - https://picocss.com/docs/css-variables
273
- - https://nordhealth.design/tokens
274
- - https://oat.ink/customizing/
275
- - https://modern-css.com/theme-variables-without-a-preprocessor/
276
-
277
- ### Typography
278
-
279
- - https://daisyui.com/docs/layout-and-typography/
280
- - https://nordhealth.design/typography
281
- - https://primer.style/product/primitives/typography/
282
- - https://picocss.com/docs/typography
283
- - https://piccalil.li/blog/a-more-modern-css-reset/
284
- - https://moderncss.dev/generating-font-size-css-rules-and-creating-a-fluid-type-scale/
285
-
286
- ### Patterns
287
-
288
- - https://picocss.com/docs/nav
289
- - https://daisyui.com/components/navbar/
290
- - https://kelpui.com/docs/components/navbar/
291
-
292
- ### UI: Flyout / Menu
293
-
294
- - https://oat.ink/components/#menu
295
- - https://daisyui.com/components/menu/
296
- - https://www.w3.org/WAI/ARIA/apg/patterns/menu-button/
297
- - https://github.com/lekoala/pure-context-menu
298
- - https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/popover
299
- - https://v6-dev--twbs-bootstrap.netlify.app/docs/6.0/components/menu/
300
- - https://getbootstrap.com/docs/5.3/components/popovers/#overview
301
- - https://open-ui.org/components/menu.research/
302
-
303
- ### UI: Tabs
304
-
305
- - https://www.makethingsaccessible.com/guides/responsive-and-accessible-tabbed-interfaces/
306
- - https://www.w3.org/WAI/ARIA/apg/patterns/tabs/
307
- - https://uiterms.com/tabs/
308
- - https://m3.material.io/components/tabs/accessibility
309
- - https://css-tricks.com/pure-css-tabs-with-details-grid-and-subgrid/
310
- - https://basecoatui.com/components/tabs/
311
- - https://daisyui.com/components/tab/
312
- - https://inclusive-components.design/tabbed-interfaces/
313
- - https://open-ui.org/components/tabs.research/
314
- - https://kelpui.com/docs/components/tabs/
315
-
316
- ### UI: Tooltip
317
-
318
- - https://oat.ink/components/#tooltip
319
- - https://picocss.com/docs/tooltip
320
- - https://uiterms.com/tooltip/
321
- - https://vispero.com/resources/using-the-html-title-attribute-updated/
322
- - https://codepen.io/lekoalabe/pen/JoPNWpX
323
- - https://m3.material.io/components/tooltips/overview
324
- - https://basecoatui.com/components/tooltip/
325
- - https://daisyui.com/components/tooltip/
326
- - https://open-ui.org/components/tooltip.research/
327
-
328
- ### UI: Scrollspy
329
-
330
- - https://getbootstrap.com/docs/5.3/components/scrollspy/
331
- - https://una.im/scroll-target-group/
332
- - https://www.sarasoueidan.com/blog/css-scrollspy/
333
-
334
- ### @container
335
-
336
- - https://ishadeed.com/article/css-container-query-guide/