actual-css 0.17.0 → 0.18.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 (92) hide show
  1. package/CHANGELOG.md +76 -0
  2. package/README.md +7 -5
  3. package/components.json +20 -4
  4. package/dist/actual.full.css +301 -48
  5. package/dist/actual.full.min.css +1 -1
  6. package/docs/design-notes/tokens.md +2 -1
  7. package/docs/navigation.json +4 -2
  8. package/docs/pages/components/accordion.md +8 -0
  9. package/docs/pages/components/alert.md +15 -11
  10. package/docs/pages/components/app-navigation.md +2 -2
  11. package/docs/pages/components/aura.md +2 -2
  12. package/docs/pages/components/badge.md +4 -3
  13. package/docs/pages/components/button.md +26 -24
  14. package/docs/pages/components/card.md +1 -1
  15. package/docs/pages/components/chat.md +2 -2
  16. package/docs/pages/components/fab.md +2 -1
  17. package/docs/pages/components/list.md +118 -30
  18. package/docs/pages/components/meter.md +1 -1
  19. package/docs/pages/components/navbar.md +1 -1
  20. package/docs/pages/components/overview.md +17 -0
  21. package/docs/pages/components/shimmer.md +2 -2
  22. package/docs/pages/components/timeline.md +130 -2
  23. package/docs/pages/enhancements/overview.md +2 -2
  24. package/docs/pages/enhancements/status-bar.md +1 -1
  25. package/docs/pages/examples/overview.md +2 -0
  26. package/docs/pages/forms/ajax.md +1 -1
  27. package/docs/pages/forms/choice-cards.md +1 -1
  28. package/docs/pages/forms/detached-actions.md +1 -1
  29. package/docs/pages/forms/floating-field.md +5 -3
  30. package/docs/pages/forms/form-actions.md +1 -1
  31. package/docs/pages/forms/input-policy.md +1 -1
  32. package/docs/pages/forms/joined-controls.md +1 -1
  33. package/docs/pages/forms/otp.md +2 -2
  34. package/docs/pages/forms/password.md +1 -1
  35. package/docs/pages/forms/states-and-sizes.md +1 -1
  36. package/docs/pages/forms/sticky-actions.md +1 -1
  37. package/docs/pages/forms/unsaved-changes.md +1 -1
  38. package/docs/pages/foundations/theming.md +8 -6
  39. package/docs/pages/foundations/tokens.md +33 -7
  40. package/docs/pages/foundations/typography.md +6 -1
  41. package/docs/pages/guides/coding-agents.md +163 -0
  42. package/docs/pages/guides/introduction.md +1 -1
  43. package/docs/pages/guides/progressive-enhancement.md +1 -1
  44. package/docs/pages/guides/upgrading.md +1 -1
  45. package/docs/pages/layout/app-layout.md +1 -1
  46. package/docs/pages/layout/app-shell.md +1 -1
  47. package/docs/pages/layout/column-layout.md +1 -1
  48. package/docs/pages/layout/media.md +1 -1
  49. package/docs/pages/layout/overview.md +1 -1
  50. package/docs/pages/layout/scroll-snap.md +27 -2
  51. package/docs/pages/layout/scroll-target.md +1 -1
  52. package/docs/pages/layout/sidebar-layout.md +1 -1
  53. package/docs/pages/layout/sidebar-shell.md +1 -1
  54. package/docs/pages/patterns/code-block.md +1 -1
  55. package/docs/pages/patterns/exclusive-accordion.md +1 -1
  56. package/docs/pages/patterns/hierarchical-nav.md +1 -1
  57. package/docs/pages/patterns/icon-input.md +1 -1
  58. package/docs/pages/patterns/intent-nesting.md +1 -1
  59. package/docs/pages/patterns/navigation-list.md +2 -2
  60. package/docs/pages/patterns/overview.md +1 -1
  61. package/docs/pages/patterns/structured-lists.md +1 -1
  62. package/docs/pages/utilities/flex.md +1 -1
  63. package/docs/pages/utilities/links.md +1 -1
  64. package/docs/pages/utilities/list.md +1 -1
  65. package/docs/pages/utilities/shape.md +1 -1
  66. package/docs/pages/utilities/sizing-wrapping.md +1 -1
  67. package/docs/pages/utilities/spacing.md +1 -1
  68. package/docs/pages/utilities/text.md +1 -1
  69. package/llms.txt +1 -1
  70. package/package.json +1 -1
  71. package/reserved-classes.json +2 -0
  72. package/skills/actual-css/PROJECT.md.example +13 -2
  73. package/skills/actual-css/README.md +5 -0
  74. package/skills/actual-css/SKILL.md +13 -2
  75. package/src/cli/actual-css.js +4 -4
  76. package/src/css/components/accordion.css +10 -6
  77. package/src/css/components/alert.css +44 -3
  78. package/src/css/components/button.css +20 -2
  79. package/src/css/components/join.css +17 -10
  80. package/src/css/components/list.css +32 -0
  81. package/src/css/components/navbar.css +9 -6
  82. package/src/css/components/timeline.css +113 -10
  83. package/src/css/core/theme.css +20 -1
  84. package/src/css/core/tokens.css +8 -2
  85. package/src/css/forms/choice.css +7 -0
  86. package/src/css/forms/custom-select.css +10 -5
  87. package/src/css/forms/input-icon.css +5 -3
  88. package/src/css/typography/prose.css +6 -0
  89. package/src/tooling/design-components.js +2 -2
  90. package/src/tooling/design-tokens.js +1 -0
  91. package/src/tooling/theme-contrast.js +41 -2
  92. package/tokens.json +1 -0
package/CHANGELOG.md CHANGED
@@ -2,6 +2,82 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.18.0] - 2026-11-11
6
+ ### Added
7
+ - Docs: "Coding agents and DESIGN.md" guide — the skill, `PRODUCT.md`/`DESIGN.md`/`PROJECT.md` ownership, and working with a design skill such as Impeccable.
8
+ - Starter skill: reads the project's `DESIGN.md` after `PROJECT.md`.
9
+ - Starter skill: `PROJECT.md.example` gains a "Design mapping" section from `DESIGN.md` roles to Actual classes.
10
+ - `demo/templates/alerts.html`: alert icon alignment bench — icon sources, icon sets, text fonts, text sizes, line heights, icon sizes, message shapes, actions and lists, variants, mixed timeline markers and the neo-brutalist tile, with optional box guides.
11
+ - `demo/templates/carousel.html`: a hero carousel from one scroll-snap list, with full-width slides, native scroll buttons for previous/next and scroll markers as dots.
12
+ - `.list.grouped`: opt-in raised surface, border, rounded shell and inline gutter for standalone lists; `--list-radius` is the new hook.
13
+ - `neo-brutalist` and `glass` themes: `.list.grouped` joins the framed-surface and frosted-panel treatments.
14
+ - Docs: the List page composes grouped active-sessions and member rows, including a `surface sm` pill action, a badge and a row flyout.
15
+ - `.timeline-dates-end`: each event's `<time>` sits at the end of its first line instead of above it.
16
+ - `.timeline`: an icon slot with an intent gets a soft tinted disc, rim and ink, following `--soft-bg-mix` and `--soft-border-mix`.
17
+ - `--timeline-glyph-size`: icon and spinner size in a timeline slot, half the slot by default.
18
+ - `--timeline-marker-nudge`: moves the whole timeline marker off the first line box's centre, like `--alert-icon-nudge`.
19
+ - Docs: the Timeline page shows an in-progress event with a `.spinner` inside the icon slot.
20
+ - Docs: the Timeline page composes an activity feed with avatars, a `.chat-bubble` comment, a `.badge` status and a file `.btn`.
21
+
22
+ ### Changed
23
+ - Docs: the site loads Inter for its own pages; the framework keeps the platform faces, so a consumer's page depends on no locally installed family.
24
+ - `.btn.surface`: hover paints an opaque ink mix, so a surface button still shows feedback on a dark theme.
25
+ - `demo/templates/data-grid.html`: `data-grid-component` 3.10.0, with the grouped page-size footer, the floating bulk bar and one quiet control edge.
26
+ - `.btn.outline`: a neutral outline takes `--border-control`; an explicit intent keeps its color.
27
+ - Docs: the search panel opens on its destination quick links, keeps the close in the header row, and pins a keyboard footer below a scrolling result list.
28
+ - Docs: the header search opener is a quiet surface button on the control edge that shows `⌘ K` on macOS and `Ctrl K` elsewhere.
29
+ - Docs: the sidebar lists one destination's pages as static group sections instead of collapsible, indented rows.
30
+ - Docs: page-end navigation is two cards (Previous / Next); the source links are quiet text links.
31
+ - Docs: the header marks the active section by ink alone, so only the sidebar row is filled.
32
+ - `.timeline`: `--timeline-slot-size` defaults to `2rem`, and the dateline uses tabular numerals.
33
+
34
+ ### Fixed
35
+ - A bare checkbox or radio focuses in `--focus`; the core currentColor fallback painted the ring in the text ink, so it read as untinted on a dark surface.
36
+ - Docs: card hover lifts to `--border-control`; the former `--border-strong` was never a token, so `border-color` fell back to `currentColor` and drew a full-contrast ring.
37
+ - `check:docs` rejects a `var()` in the site chrome whose token no stylesheet declares.
38
+ - `.timeline`: an avatar or icon slot taller than the line box stays inside its event instead of overflowing the list and eating into `--timeline-gap`.
39
+ - `.alert-icon`: centred on the first line box from `--alert-line-height`, `--alert-font-size` and `--alert-icon-size` instead of a fixed `0.125em`; `--alert-line-height` and `--alert-icon-nudge` are the new hooks.
40
+ - `.alert.admonition > .alert-title > .alert-icon`: an icon in the admonition title bar takes `.alert-icon` and follows `--alert-icon-nudge`.
41
+ - `.alert > .close`: centred on the first line box and no longer grows the title row, which pushed the body down.
42
+ - `.alert > ul`, `.alert > ol`: bullets start on the text column's edge instead of the 40px UA indent.
43
+
44
+ ## [0.17.1] - 2026-11-08
45
+ ### Added
46
+ - Docs: a "Skip to content" link is the first tab stop on every page.
47
+ - Docs: search results link to the matching section, show their group, and say when nothing matched; a result on the current page closes the search.
48
+ - Docs: the homepage links to the Actual Blocks gallery under "Start building".
49
+ - Docs: collapsed sidebar groups stay collapsed for the session; the current page's group always opens.
50
+ - Docs: search matches `--hooks` and `.classes` as whole names.
51
+ - Docs: live color swatches on the Tokens page follow the selected scheme and theme.
52
+ - `actual-css contrast` and `report:theme-contrast` measure the resting edge of a field, checkbox and radio (3:1).
53
+ - Docs: a Components overview lists every component and pattern as a card; the Components destination opens on it.
54
+ - Docs: `<!--docs-index:<group>-->` in a page expands to a card per page of that group.
55
+ - `--border-control-mix` sets the ink share of `--border-control` (45%).
56
+ - `check:templates` rejects `@latest` and bare-major CDN URLs in demo and docs templates.
57
+
58
+ ### Changed
59
+ - `--border-control` derives from `--text` and `--surface`, reaching 3:1 on the default palette; it equals `--border` only without `color-mix()`.
60
+ - `.nav-link`: the current and hover fills are paler, 8% and 5% of the link's ink (were 18% and 10%), so a current row no longer reads as a pressed button.
61
+ - `.input-icon`: the text sits half a `--control-pad-x` from the icon instead of a full one, on both sides.
62
+ - `.join`: adjacent filled buttons (default, `.solid`, `.soft`) draw a hairline seam, so the group no longer reads as one button.
63
+ - `.alert.callout`: the leading corners take `--radius-sm`, so the flag stays a straight bar.
64
+ - `--line-height-relaxed` is 1.6 (was 1.75); `.lead` and `.text-lead` read tighter.
65
+ - `.prose`: `pre` and tables use `--line-height` instead of the prose reading leading.
66
+ - Docs: page titles use sentence case, and the Components navigation is alphabetical.
67
+ - Docs: tables span the content column; class reference tables reflow on phones.
68
+ - Docs: the homepage presents the named themes as demos of the theme contract and counts components instead of themes.
69
+ - `forest`, `sunset`, `ocean` themes: `--border-control-mix: 49%`, clearing 3.2:1 in light.
70
+ - `glass` theme: `--border-control-mix: 75%`, a light rim clearing 3:1 over the whole backdrop.
71
+ - Demo and docs templates load Tabler Icons `3.46.0` instead of `@latest` or `@3`.
72
+ - Docs: Badge recommends a photo or a single initial in default and `.sm` person chips; two-letter initials need `.lg`.
73
+ - Docs: the Aura, Chat, Floating action button, Shimmer, Floating labels and OTP pages open on their description, not their module note.
74
+
75
+ ### Fixed
76
+ - `.floating-field`: a `.select` keeps its label headroom under the `appearance: base-select` enhancement instead of drawing the label over the value.
77
+ - `.accordion.flush`: a `<ul>` or `<ol>` panel directly after `<summary>` keeps its marker gutter instead of hanging its bullets outside the panel.
78
+ - Docs: the homepage alerts use `danger` and `primary` (`error` and `info` do not exist) and drop `role="alert"`.
79
+ - Docs: `check:doc-classes` also checks the docs page templates.
80
+
5
81
  ## [0.17.0] - 2026-11-06
6
82
  ### Added
7
83
  - `demo/templates/changelog.html`: a release changelog composed from `.timeline`, with a meta column and a scroll-driven light on the rail.
package/README.md CHANGED
@@ -67,7 +67,7 @@ size is not worth optimizing:
67
67
  ```
68
68
 
69
69
  ```html
70
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/actual-css@0.17/dist/actual.full.min.css">
70
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/actual-css@0.18/dist/actual.full.min.css">
71
71
  ```
72
72
 
73
73
  ## Usage
@@ -144,7 +144,7 @@ registries:
144
144
  * **Full runtime, zero-config** — every built-in enhancer, compiled:
145
145
 
146
146
  ```html
147
- <script src="https://cdn.jsdelivr.net/npm/actual-css@0.17/dist/actual.full.js" type="module"></script>
147
+ <script src="https://cdn.jsdelivr.net/npm/actual-css@0.18/dist/actual.full.js" type="module"></script>
148
148
  ```
149
149
 
150
150
  * **Your own build** — copy the package's `src/js/full.js` as your entry,
@@ -186,8 +186,8 @@ Actual CSS is before 1.0:
186
186
  * A patch release (`0.12.0` → `0.12.1`) keeps every class and hook. It fixes
187
187
  bugs and may add hooks, so a fix can still move a rendering by a few pixels.
188
188
 
189
- The floating `actual-css@0.17` CDN path takes patches automatically. Pin the exact
190
- version (`actual-css@0.17.0`) when the rendering must not change without a
189
+ The floating `actual-css@0.18` CDN path takes patches automatically. Pin the exact
190
+ version (`actual-css@0.18.0`) when the rendering must not change without a
191
191
  review.
192
192
 
193
193
  ## Browser support
@@ -228,7 +228,9 @@ layout primitives and progressive enhancements without recreating framework
228
228
  behavior in application CSS.
229
229
 
230
230
  Copy it into your project's agent skills and extend it with your application's
231
- theme, loaded modules and local conventions.
231
+ theme, loaded modules and local conventions. Visual direction belongs in your
232
+ own `DESIGN.md`; see
233
+ [Coding agents and DESIGN.md](https://lekoala.github.io/actual-css/site/guides/coding-agents.html).
232
234
 
233
235
  ## License
234
236
 
package/components.json CHANGED
@@ -40,8 +40,10 @@
40
40
  "--alert-pad-block",
41
41
  "--alert-pad-inline",
42
42
  "--alert-font-size",
43
+ "--alert-line-height",
43
44
  "--alert-radius",
44
45
  "--alert-icon-size",
46
+ "--alert-icon-nudge",
45
47
  "--alert-border-inline-start-color",
46
48
  "--alert-border-inline-start-width"
47
49
  ],
@@ -462,6 +464,7 @@
462
464
  "cssImport": "actual-css/css/components/list",
463
465
  "docs": "https://lekoala.github.io/actual-css/site/components/list.html",
464
466
  "classes": [
467
+ "grouped",
465
468
  "list",
466
469
  "list-item",
467
470
  "list-item-content",
@@ -474,7 +477,8 @@
474
477
  "--list-item-pad-block",
475
478
  "--list-item-pad-inline",
476
479
  "--list-item-gap",
477
- "--list-divider"
480
+ "--list-divider",
481
+ "--list-radius"
478
482
  ],
479
483
  "states": [
480
484
  "aria-current"
@@ -851,18 +855,27 @@
851
855
  "cssImport": "actual-css/css/components/timeline",
852
856
  "docs": "https://lekoala.github.io/actual-css/site/components/timeline.html",
853
857
  "classes": [
854
- "timeline"
858
+ "timeline",
859
+ "timeline-dates-end"
855
860
  ],
856
861
  "publicHooks": [
857
862
  "--timeline-dot-size",
858
863
  "--timeline-slot-size",
864
+ "--timeline-glyph-size",
859
865
  "--timeline-gap",
860
866
  "--timeline-inline-gap",
861
- "--timeline-line-size"
867
+ "--timeline-line-size",
868
+ "--timeline-marker-nudge"
862
869
  ],
863
870
  "internalHooks": [
864
871
  "--timeline-rail-size",
865
- "--timeline-line-box"
872
+ "--timeline-line-box",
873
+ "--timeline-marker-shift",
874
+ "--timeline-marker-inset",
875
+ "--timeline-marker-center",
876
+ "--timeline-slot-bg",
877
+ "--timeline-slot-border",
878
+ "--timeline-slot-fg"
866
879
  ],
867
880
  "states": [
868
881
  "aria-hidden"
@@ -871,6 +884,9 @@
871
884
  ".timeline li": [
872
885
  "::after",
873
886
  "::before"
887
+ ],
888
+ ".timeline-dates-end time": [
889
+ "::before"
874
890
  ]
875
891
  }
876
892
  },