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
@@ -38,7 +38,7 @@ the version beside the rail, see the
38
38
  </ol>
39
39
  ```
40
40
 
41
- The dot lines up with the first line of the event, whether it opens with the
41
+ The dot centres on the first line box of the event, whether it opens with the
42
42
  `<time>` or with text. Block children drop their margins; wrap the content in
43
43
  a [`.stack`](../layout/stack.md) when an event needs more spacing.
44
44
 
@@ -69,7 +69,13 @@ The color is decoration: write the state in the text too.
69
69
 
70
70
  An [`.avatar`](avatar.md) or an `aria-hidden` icon written first in the `<li>`
71
71
  replaces the dot. One such event widens the rail for the whole list, so dots
72
- and slots stay aligned. An icon sits in a disc colored by the event's intent.
72
+ and slots stay aligned. An icon sits in a disc; the event's intent tints it
73
+ like a soft badge.
74
+
75
+ Dots, discs and avatars share the same alignment with the first line box.
76
+ For an off-centre icon, wrap the glyph in an `aria-hidden` slot and apply a
77
+ local `translate` to the inner glyph. Keep the disc in place:
78
+ `--timeline-marker-nudge` moves the whole marker and its rail geometry.
73
79
 
74
80
  ```html demo
75
81
  <ol class="timeline">
@@ -90,6 +96,125 @@ and slots stay aligned. An icon sits in a disc colored by the event's intent.
90
96
  </ol>
91
97
  ```
92
98
 
99
+ ## Dates at the end
100
+
101
+ `.timeline-dates-end` moves each `<time>` to the end of the event's first
102
+ line, so the titles lead and the dates line up in a column on the right.
103
+ Write the `<time>` first in the event, as usual.
104
+
105
+ It suits a narrow container: a sidebar, a card, a side panel. In a wide
106
+ column the dates drift away from their titles; cap the list's width or keep
107
+ the default dateline.
108
+
109
+ ```html demo
110
+ <section class="card" style="--card-max-inline-size: 28rem">
111
+ <ol class="timeline timeline-dates-end">
112
+ <li class="success">
113
+ <i class="ti ti-check" aria-hidden="true"></i>
114
+ <time datetime="2026-11-11T09:40">09:40</time>
115
+ <strong>Results available</strong>
116
+ <p class="muted">Reviewed by the attending physician.</p>
117
+ </li>
118
+ <li class="primary">
119
+ <i class="ti ti-flask" aria-hidden="true"></i>
120
+ <time datetime="2026-11-11T08:15">08:15</time>
121
+ <strong>Sample sent to the lab</strong>
122
+ </li>
123
+ <li>
124
+ <i class="ti ti-message" aria-hidden="true"></i>
125
+ <time datetime="2026-11-10">Yesterday</time>
126
+ <strong>Patient asked a question</strong>
127
+ <p class="muted">Should I fast before the blood test?</p>
128
+ </li>
129
+ <li>
130
+ <i class="ti ti-calendar-plus" aria-hidden="true"></i>
131
+ <time datetime="2026-11-03">Nov 3</time>
132
+ <strong>Appointment booked</strong>
133
+ </li>
134
+ </ol>
135
+ </section>
136
+ ```
137
+
138
+ ### In progress
139
+
140
+ For an event still running (an import, a sync, an upload), put a
141
+ [`.spinner`](spinner.md) inside the icon slot. The disc stays still and the
142
+ spinner takes the event's intent. A bare `.spinner` as the slot would lose its
143
+ own border to the disc's. Say the state in the text, since the slot is hidden
144
+ from assistive technology.
145
+
146
+ ```html demo
147
+ <section class="card" style="--card-max-inline-size: 28rem">
148
+ <ol class="timeline timeline-dates-end">
149
+ <li class="warning">
150
+ <span aria-hidden="true"><span class="spinner"></span></span>
151
+ <time datetime="2026-11-11T10:00">Just now</time>
152
+ <strong>Importing</strong> <code>batch-118</code>
153
+ <p class="muted">Patient records from the March export</p>
154
+ </li>
155
+ <li class="success">
156
+ <i class="ti ti-check" aria-hidden="true"></i>
157
+ <time datetime="2026-11-11T09:40">20 min ago</time>
158
+ <strong>Imported</strong> <code>batch-117</code>
159
+ <p class="muted">Invoices for the second quarter</p>
160
+ </li>
161
+ <li class="danger">
162
+ <i class="ti ti-x" aria-hidden="true"></i>
163
+ <time datetime="2026-11-11T08:00">2 h ago</time>
164
+ <strong>Failed</strong> <code>batch-116</code>
165
+ <p class="muted">Lab results, 3 files · <a href="#">Open the error report</a></p>
166
+ </li>
167
+ </ol>
168
+ </section>
169
+ ```
170
+
171
+ ## Activity feed
172
+
173
+ Avatars as markers, the actor and verb as one sentence, and richer content
174
+ below: a [`.chat-bubble`](chat.md) for a comment, a [`.badge`](badge.md) for
175
+ a status, a [`.btn`](button.md) for a file. A [`.stack`](../layout/stack.md)
176
+ spaces the sentence from what follows; the `<time>` stays a direct child of
177
+ the `<li>`.
178
+
179
+ ```html demo
180
+ <section class="card" style="--card-max-inline-size: 28rem">
181
+ <ol class="timeline timeline-dates-end">
182
+ <li>
183
+ <span class="avatar primary"><abbr>NK</abbr></span>
184
+ <time datetime="2026-11-11T09:55">5 min ago</time>
185
+ <div class="stack">
186
+ <p><a href="#">Noah Keller</a> <span class="muted">commented</span></p>
187
+ <p class="chat-bubble">Could we move the follow-up to Thursday morning?</p>
188
+ </div>
189
+ </li>
190
+ <li>
191
+ <span class="avatar"><abbr>IR</abbr></span>
192
+ <time datetime="2026-11-11T09:20">40 min ago</time>
193
+ <a href="#">Inès Roy</a> <span class="muted">set the status to</span>
194
+ <span class="badge soft primary">Confirmed</span>
195
+ </li>
196
+ <li>
197
+ <span class="avatar"><abbr>TB</abbr></span>
198
+ <time datetime="2026-11-11T08:00">2 h ago</time>
199
+ <div class="stack">
200
+ <p><a href="#">Tom Becker</a> <span class="muted">attached a file</span></p>
201
+ <p>
202
+ <a class="btn surface sm" href="#">
203
+ <i class="ti ti-file" aria-hidden="true"></i>
204
+ intake-form.pdf <span class="muted">180 KB</span>
205
+ </a>
206
+ </p>
207
+ </div>
208
+ </li>
209
+ <li>
210
+ <span class="avatar"><abbr>CL</abbr></span>
211
+ <time datetime="2026-11-09">Monday</time>
212
+ <a href="#">Chloé Laurent</a> <span class="muted">opened the case</span>
213
+ </li>
214
+ </ol>
215
+ </section>
216
+ ```
217
+
93
218
  ## Density
94
219
 
95
220
  The gap between events follows the density context: `.compact` and
@@ -108,6 +233,9 @@ The gap between events follows the density context: `.compact` and
108
233
  - `--timeline-dot-size` — dot diameter.
109
234
  - `--timeline-slot-size` — avatar and icon diameter; the rail takes this width
110
235
  as soon as one event has a slot.
236
+ - `--timeline-glyph-size` — icon and spinner size in a slot; half the slot.
111
237
  - `--timeline-gap` — space between events; follows `--density-space`.
112
238
  - `--timeline-inline-gap` — space between the rail and the content.
113
239
  - `--timeline-line-size` — rail line thickness.
240
+ - `--timeline-marker-nudge` — correction to the whole marker's centring on the
241
+ first line box; an `em` resolves against the event's text size.
@@ -1,4 +1,4 @@
1
- # Progressive Enhancements
1
+ # Progressive enhancements
2
2
 
3
3
  > The optional JavaScript runtime that completes Actual's interactive components — dialog, drawer, flyout, tooltip, tabs, scrollspy, and status bar — through progressive enhancement.
4
4
 
@@ -56,5 +56,5 @@ after opening. The runtime warns in the console when a second copy loads.
56
56
 
57
57
  Each interactive component has its own page documenting the exact markup its
58
58
  enhancement expects: Dialog, Drawer, Flyout, Tooltip, Tabs, Scrollspy, and
59
- Status Bar. The full runtime is loaded on the docs pages, so the examples
59
+ Status bar. The full runtime is loaded on the docs pages, so the examples
60
60
  work with the documented markup alone.
@@ -1,4 +1,4 @@
1
- # Status Bar
1
+ # Status bar
2
2
 
3
3
  > Singleton floating area for short, non-critical, transient feedback.
4
4
 
@@ -49,6 +49,7 @@ One mechanism at a time, with its contract and its pitfalls.
49
49
  - [Grid density](../../demo/templates/grid.html) - the grid contracts on resizable stages, with the pitfalls called out
50
50
  - [Column layout](../../demo/templates/column-layout.html) - the twelve-column canvas: spans, starts, and the narrow-container recomposition the framework leaves to the application
51
51
  - [Density](../../demo/templates/density.html) - compact control density
52
+ - [Alert icon alignment](../../demo/templates/alerts.html) - the leading icon against the first line box: icon sources, icon sets, text fonts, text sizes, line heights, icon sizes, message shapes, variants and the neo-brutalist tile, with optional box guides
52
53
 
53
54
  ### System benches
54
55
 
@@ -62,6 +63,7 @@ extension points.
62
63
  - [Select intents](../../demo/templates/select-intents.html) - extending the enhancer with a project's own `data-enhance` behavior, injected markup included, with no framework change
63
64
  - [Popover transport probe](../../demo/templates/popover-transport.html) - self-scoring bench for the native popover transport go/no-go
64
65
  - [Card rail](../../demo/templates/card-rail.html) - one list as a 3-column grid in a wide container and a scroll-snap rail with a peek and CSS scroll markers in a narrow one
66
+ - [Carousel](../../demo/templates/carousel.html) - a hero carousel from one scroll-snap list: full-width slides, native scroll buttons for previous and next, and scroll markers as dots, with a swipe fallback
65
67
  - [Playful FAQ](../../demo/templates/playful-faq.html) - the separated accordion with an application palette, a pill plus/close marker and an animated open/close through `::details-content`, no JavaScript
66
68
  - [Tooltips](../../demo/templates/tooltips.html) - generated text is a snapshot at show time: what updates, what stays, and the explicit-tip way for dynamic content
67
69
 
@@ -1,4 +1,4 @@
1
- # Ajax Submission
1
+ # Ajax submission
2
2
 
3
3
  > Submit a form with `fetch` and show the server's HTML answer in place.
4
4
 
@@ -1,4 +1,4 @@
1
- # Choice Cards
1
+ # Choice cards
2
2
 
3
3
  > Card-style radio and checkbox labels where the whole card acts as a clickable target.
4
4
 
@@ -1,4 +1,4 @@
1
- # Detached Actions
1
+ # Detached actions
2
2
 
3
3
  > `.form-actions` is class-only. It may live inside or outside the `<form>`. Use the native `form` attribute to connect a detached submit button to its form.
4
4
 
@@ -1,10 +1,12 @@
1
1
  # Floating labels
2
2
 
3
- > **Module** — import `actual-css/css/forms/floating-field` or `actual-css/css/forms/all`.
4
-
5
3
  `.floating-field` turns a control and its label into a floating-label cell:
6
4
  the label rests inside the control and floats to the top when the control is
7
- focused or filled. It composes the existing `.field` layout and the text
5
+ focused or filled.
6
+
7
+ > **Module** — import `actual-css/css/forms/floating-field` or `actual-css/css/forms/all`.
8
+
9
+ It composes the existing `.field` layout and the text
8
10
  controls (`.input`, `.textarea`, `.select`) with zero JavaScript.
9
11
 
10
12
  The cell holds exactly one control and its label, in either order: a form
@@ -1,4 +1,4 @@
1
- # Form Actions
1
+ # Form actions
2
2
 
3
3
  > `.form-actions` is the role of the `.cluster` row that closes a form. It may
4
4
  > live inside or outside the `<form>` (see Detached Actions) and has an opt-in
@@ -1,4 +1,4 @@
1
- # Input Policy
1
+ # Input policy
2
2
 
3
3
  > Native input intent first. Actual's runtime filters values only when explicitly asked, and fixed-shape masks stay opt-in through `data-mask`.
4
4
 
@@ -1,4 +1,4 @@
1
- # Joined Controls
1
+ # Joined controls
2
2
 
3
3
  > Use `.join` when controls need to be visually joined into a single unit.
4
4
 
@@ -1,11 +1,11 @@
1
1
  # One-time code input
2
2
 
3
- > **Module** — import `actual-css/css/forms/otp` or `actual-css/css/forms/all`.
4
-
5
3
  OTP presents one native input as separate visual cells. Keeping a single input
6
4
  preserves paste, selection, autofill, password-manager, and
7
5
  `autocomplete="one-time-code"` behavior without JavaScript.
8
6
 
7
+ > **Module** — import `actual-css/css/forms/otp` or `actual-css/css/forms/all`.
8
+
9
9
  ```html demo
10
10
  <label class="field">
11
11
  <span class="field-label">Verification code</span>
@@ -1,4 +1,4 @@
1
- # Password Toggle
1
+ # Password toggle
2
2
 
3
3
  > A password field reveals its value through a linked button. The markup is a
4
4
  > plain command invoker; the behavior ships with the full JS runtime
@@ -1,4 +1,4 @@
1
- # States And Sizes
1
+ # States and sizes
2
2
 
3
3
  > Read-only, disabled, and shared size modifiers for form controls.
4
4
 
@@ -1,4 +1,4 @@
1
- # Sticky Actions
1
+ # Sticky actions
2
2
 
3
3
  > Use `.cluster.form-actions.sticky` when long forms need reachable submit actions while scrolling.
4
4
 
@@ -1,4 +1,4 @@
1
- # Unsaved Changes
1
+ # Unsaved changes
2
2
 
3
3
  > Track whether a form holds data that differs from what was last saved.
4
4
 
@@ -153,10 +153,12 @@ application CSS and keep forms and intent ink out of it:
153
153
  }
154
154
  ```
155
155
 
156
- Transparent treatments (`.btn.outline`, `.ghost`, `.link`) and headings follow
157
- that ink; fields, their labels and help text, and intent colors keep the page
158
- palette, which nothing tunes for `--surface-solid`. Focus lines stay readable
159
- there: the theme contract keeps `--focus` at 3:1 on `--surface-solid`.
156
+ Transparent inks (`.btn.outline`, `.ghost`, `.link`) and headings follow that
157
+ ink; a neutral `.btn.outline` draws its border with `--border-control`, so the
158
+ edge stays visible without being derived from the band. Fields, their labels
159
+ and help text, and intent colors keep the page palette, which nothing tunes for
160
+ `--surface-solid`. Focus lines stay readable there: the theme contract keeps
161
+ `--focus` at 3:1 on `--surface-solid`.
160
162
 
161
163
  → Foundations · Tokens (theme contract) · Examples · Contrast contexts
162
164
 
@@ -220,8 +222,8 @@ bunx --bun actual-css contrast --theme src/theme.css
220
222
  ```
221
223
 
222
224
  It reads the theme in headless Chrome, in every scheme it declares, and exits 1
223
- when a soft, focus, invalid-focus or inverse pair misses its threshold, so it
224
- can gate a CI job.
225
+ when a soft, control-edge, focus, invalid-focus or inverse pair misses its
226
+ threshold, so it can gate a CI job.
225
227
 
226
228
  Starting from a color scale (Open Props, Radix Colors, Uchū, Tailwind
227
229
  `--color-zinc-*`, a brand ramp): map one step per role rather than importing
@@ -58,6 +58,28 @@ children consume them; check their component pages when nesting layouts.
58
58
 
59
59
  Intent tokens are used by `.primary`, `.secondary`, `.success`, `.warning`, `.danger`, and `.neutral`. They are curated color/foreground pairs. Actual CSS does not compute foregrounds automatically in the core theme contract.
60
60
 
61
+ The swatches read the live tokens, so they follow the scheme and theme picked
62
+ in the header.
63
+
64
+ ```html demo
65
+ <div class="grid docs-swatches">
66
+ <figure class="stack tight"><span class="docs-swatch" style="background: var(--primary)"></span><figcaption><code>--primary</code></figcaption></figure>
67
+ <figure class="stack tight"><span class="docs-swatch" style="background: var(--secondary)"></span><figcaption><code>--secondary</code></figcaption></figure>
68
+ <figure class="stack tight"><span class="docs-swatch" style="background: var(--success)"></span><figcaption><code>--success</code></figcaption></figure>
69
+ <figure class="stack tight"><span class="docs-swatch" style="background: var(--warning)"></span><figcaption><code>--warning</code></figcaption></figure>
70
+ <figure class="stack tight"><span class="docs-swatch" style="background: var(--danger)"></span><figcaption><code>--danger</code></figcaption></figure>
71
+ <figure class="stack tight"><span class="docs-swatch" style="background: var(--neutral)"></span><figcaption><code>--neutral</code></figcaption></figure>
72
+ <figure class="stack tight"><span class="docs-swatch" style="background: var(--surface)"></span><figcaption><code>--surface</code></figcaption></figure>
73
+ <figure class="stack tight"><span class="docs-swatch" style="background: var(--surface-subtle)"></span><figcaption><code>--surface-subtle</code></figcaption></figure>
74
+ <figure class="stack tight"><span class="docs-swatch" style="background: var(--surface-solid)"></span><figcaption><code>--surface-solid</code></figcaption></figure>
75
+ <figure class="stack tight"><span class="docs-swatch" style="background: var(--text)"></span><figcaption><code>--text</code></figcaption></figure>
76
+ <figure class="stack tight"><span class="docs-swatch" style="background: var(--text-muted)"></span><figcaption><code>--text-muted</code></figcaption></figure>
77
+ <figure class="stack tight"><span class="docs-swatch" style="background: var(--border)"></span><figcaption><code>--border</code></figcaption></figure>
78
+ <figure class="stack tight"><span class="docs-swatch" style="background: var(--border-control)"></span><figcaption><code>--border-control</code></figcaption></figure>
79
+ <figure class="stack tight"><span class="docs-swatch" style="background: var(--focus)"></span><figcaption><code>--focus</code></figcaption></figure>
80
+ </div>
81
+ ```
82
+
61
83
  The values below are the light fallback. In browsers with `light-dark()` support, the default theme re-declares the same tokens as light/dark pairs so dark mode follows the OS automatically; without support, browsers receive the light fallback.
62
84
 
63
85
  ```css
@@ -106,11 +128,15 @@ A theme with translucent surfaces overrides both with opaque values.
106
128
 
107
129
  `--border` separates surfaces: cards, tables, dividers, panels. `--border-control`
108
130
  is the resting edge that tells a control apart from the surface — fields,
109
- checkboxes and radios, switches, OTP cells, choice cards, join addons, the color
110
- and file inputs. It defaults to `--border`; set it alone to make controls
111
- stand out (input border, field outline, form control contrast) without
112
- darkening every separator. Hover, checked, invalid and disabled states keep
113
- their own colors.
131
+ checkboxes and radios, switches, OTP cells, choice cards, join addons, neutral
132
+ outline buttons, the color and file inputs. It is derived from `--text` and
133
+ `--surface`; on the default palette it holds 3:1 against the surface, and
134
+ `actual-css contrast` reports it for your theme. `--border-control-mix` sets
135
+ the ink share; raise it when a tinted surface pulls the edge under 3:1. Without
136
+ `color-mix()` it falls back to `--border`. Set `--border-control` itself to
137
+ soften or strengthen controls (input border, field outline, form control
138
+ contrast) without touching any separator. Hover, checked, invalid and disabled
139
+ states keep their own colors.
114
140
 
115
141
  Use `*-fg` pairs only for solid backgrounds where the component controls both foreground and background. Do not require a foreground token for every surface token.
116
142
 
@@ -269,7 +295,7 @@ Typography tokens cover the document baseline and common component needs.
269
295
 
270
296
  ```css
271
297
  :root {
272
- --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
298
+ --font-sans: system-ui, sans-serif;
273
299
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
274
300
  --font-width: 100%;
275
301
 
@@ -517,7 +543,7 @@ A full theme can override:
517
543
  - intent colors and foreground pairs
518
544
  - surface, text, border, focus, and overlay colors
519
545
  - `--surface-opaque` and `--surface-solid-fg`, when surfaces are translucent
520
- - `--border-control`, when controls need a stronger edge than separators
546
+ - `--border-control-mix` or `--border-control`, when controls need a stronger edge than separators
521
547
  - radius tokens
522
548
  - optional shadow, motion, typography, and soft-variant mix tokens
523
549
 
@@ -116,6 +116,11 @@ the document) and `--font-mono` (for `code` / `kbd` / `samp` / `pre`). There is
116
116
  theme-level token in your own theme when a project actually needs one; the
117
117
  baseline stays sans so app UI inherits predictably.
118
118
 
119
+ Both resolve to the platform's own faces, never a download, so two machines on
120
+ the same OS render alike and the package ships no font bytes. Override the slot
121
+ to opt into a webfont; this documentation site does it to load Inter for its own
122
+ pages.
123
+
119
124
  ### Font width
120
125
 
121
126
  `--font-width` sets the document's `font-stretch`: a theme whose typeface has a
@@ -142,7 +147,7 @@ The framework exposes three line-height tokens:
142
147
 
143
148
  - `--line-height-tight` (1.25) — used by global headings and by display / title classes
144
149
  - `--line-height` (1.5) — body default
145
- - `--line-height-relaxed` (1.75) — used by `.lead` and `.text-lead` for intro text
150
+ - `--line-height-relaxed` (1.6) — used by `.lead` and `.text-lead` for intro text
146
151
 
147
152
  There is no `--line-height-normal`. It would be redundant with `--line-height`. Prose overrides line-height through `--prose-line-height` and `--prose-heading-line-height` because the readable values for long-form text are different from app UI.
148
153
 
@@ -0,0 +1,163 @@
1
+ # Coding agents and DESIGN.md
2
+
3
+ Actual CSS ships a starter agent skill that teaches a coding agent the
4
+ framework's vocabulary: classes, hooks, layout primitives and enhancements. It
5
+ does not give your product a look. That comes from your theme and from a
6
+ `DESIGN.md` you write, alone or with a design skill such as
7
+ [Impeccable](https://impeccable.style/).
8
+
9
+ ## Install the skill
10
+
11
+ The skill ships in the package under `skills/actual-css/`. Copy that directory
12
+ into the folder your agent loads skills from (`.claude/skills/actual-css/`,
13
+ for example), then copy `PROJECT.md.example` to `PROJECT.md` beside it.
14
+
15
+ The skill reads `components.json`, `tokens.json` and the sources from the
16
+ installed package, so it follows the version your project uses. See the
17
+ [skill source](https://github.com/lekoala/actual-css/tree/master/skills/actual-css).
18
+
19
+ ## One fact, one file
20
+
21
+ | File | Owns | Location |
22
+ | ---------------- | ------------------------------------ | ---------------- |
23
+ | `PRODUCT.md` | audience, purpose, brand commitments | project root |
24
+ | `DESIGN.md` | visual direction and its rules | project root |
25
+ | Theme stylesheet | every value: colors, radii, shadows | your CSS |
26
+ | `PROJECT.md` | how the app uses Actual CSS | beside the skill |
27
+ | Actual CSS | vocabulary, components, behavior | the package |
28
+
29
+ `DESIGN.md` records the approved visual direction; the theme defines the values
30
+ actually shipped; `PROJECT.md` says with which classes. When `DESIGN.md` and
31
+ the theme disagree, neither wins by default: decide whether the design changed
32
+ on purpose or the code drifted, then update the stale document or fix the
33
+ theme. Confirm what the user sees on the rendered page.
34
+
35
+ ## What goes in DESIGN.md
36
+
37
+ `DESIGN.md` follows the
38
+ [DESIGN.md format](https://github.com/google-labs-code/design.md): optional
39
+ YAML tokens, then prose sections. Use the eight canonical headings, in this
40
+ order: Overview, Colors, Typography, Layout, Elevation & Depth, Shapes,
41
+ Components, Do's and Don'ts. Other headings are preserved, but tools such as
42
+ Impeccable read these ones; leave out the sections you have nothing to say in.
43
+
44
+ Write the decisions the code cannot show:
45
+
46
+ - the mood and what to avoid ("calm and precise, not a generic admin
47
+ dashboard");
48
+ - what each color is reserved for ("the primary color marks the one key action
49
+ of a region");
50
+ - depth and density ("flat at rest", "dense tables, generous forms");
51
+ - named rules an agent can cite ("The Quiet Ground Rule: state shows as a soft
52
+ tint, never a strong fill").
53
+
54
+ Leave out of the prose:
55
+
56
+ - **Values.** Name the token in parentheses (`--primary`); the value belongs
57
+ in the YAML tokens.
58
+ - **Class names.** Describe the role; the class mapping is in `PROJECT.md`.
59
+ - **What Actual CSS already guarantees**: visible focus, reduced motion,
60
+ forced colors. Record a product's own decision on focus, states or motion;
61
+ do not restate the default.
62
+
63
+ The YAML tokens are the structured layer of the format: tools validate them
64
+ and measure drift against them. A first direction can do without; an
65
+ established visual system should carry them. Put them in the frontmatter,
66
+ where Impeccable reads them, keyed by the Actual token name without `--`, as
67
+ the [design tool export](design-tools.md) does. Keep them in sync with the
68
+ theme: `/impeccable document` refreshes them from the code once a change is
69
+ approved.
70
+
71
+ A DESIGN.md taken from another site is a reference, not yours: keep it outside
72
+ the project root (`design/references/`), so agents do not adopt its brand as
73
+ your own.
74
+
75
+ ```text
76
+ ---
77
+ name: Ledger
78
+ description: Bookkeeping for small studios.
79
+ colors:
80
+ primary: "#0f6e6e"
81
+ surface: "#fbfaf7"
82
+ ---
83
+
84
+ # Design System: Ledger
85
+
86
+ ## Overview
87
+
88
+ **Creative North Star: "The Lab Notebook"**
89
+
90
+ Calm, precise, approachable. Dense where people work, generous where they
91
+ decide. Not a generic admin dashboard.
92
+
93
+ ## Colors
94
+
95
+ - **Ink Teal** (`--primary`): the one key action of a region, nothing else.
96
+
97
+ **The Quiet Ground Rule.** Backgrounds stay neutral; state shows as a soft
98
+ tint, never a strong fill.
99
+
100
+ ## Elevation & Depth
101
+
102
+ Flat at rest. Depth comes from tonal surfaces (`--surface`,
103
+ `--surface-raised`), one level deep: no card inside a card.
104
+
105
+ ## Do's and Don'ts
106
+
107
+ - **Do** align amounts with tabular figures.
108
+ - **Don't** put two primary actions in one region.
109
+ ```
110
+
111
+ ## Map the direction onto Actual CSS
112
+
113
+ `PROJECT.md` turns the roles named in `DESIGN.md` into Actual classes and
114
+ hooks, so every agent writes the same markup for the same intent:
115
+
116
+ ```text
117
+ Primary action → .btn.primary
118
+ Secondary action → .btn.outline
119
+ Toolbar and row actions → .btn.ghost
120
+ Status labels → .badge.soft + intent
121
+ Dense data views → .compact on the region
122
+ ```
123
+
124
+ ## With a design skill
125
+
126
+ A design skill and the Actual skill do not overlap. The design skill owns the
127
+ direction: product context, visual world, critique. The Actual skill owns the
128
+ implementation: which class, hook or token expresses it. Install both.
129
+
130
+ Design skills differ in what they write. Before adopting one, check:
131
+
132
+ - **Where it records the direction.** A root `DESIGN.md` is shared with every
133
+ other agent; a direction in the skill's own file is read only by that skill.
134
+ - **Whether it scaffolds its own tokens or base stylesheet.** Map its tokens
135
+ onto Actual's in your theme and drop its base and reset rules: Actual
136
+ already ships them.
137
+ - **Which stack it assumes.** Name Actual CSS in the request when its default
138
+ is a utility framework or a component library, or it writes for that one.
139
+ - **Whether it keeps an incumbent design.** Routine changes should stay in
140
+ your system; a redesign is a request you make on purpose.
141
+
142
+ With Impeccable:
143
+
144
+ 1. `/impeccable init` writes `PRODUCT.md`.
145
+ 2. A new surface or redesign chooses the visual world and seeds `DESIGN.md`.
146
+ 3. Implement it in the theme first, then through the
147
+ [decision order](integrating-actual-css.md#10-before-adding-a-css-rule):
148
+ layout primitive, component, hook, utility, application CSS.
149
+ 4. `/impeccable document` reads the shipped theme and completes `DESIGN.md`.
150
+ 5. `critique`, `audit` and `polish` findings go through the same order. When
151
+ no public hook expresses a product-specific deviation, write focused
152
+ application CSS. Report a missing hook when the need is generic and
153
+ recurring. Never override a component's internal state or behavior.
154
+
155
+ Traps:
156
+
157
+ - The design detector scans sources (`impeccable detect src/`) or a rendered
158
+ page (`impeccable detect http://localhost:3000`). A source scan does not
159
+ resolve the cascade, so confirm any finding about sizes or colors on the
160
+ rendered page: Actual's tokens are inherited.
161
+ - `.impeccable/design.json` holds self-contained preview snippets with `ds-`
162
+ classes for Impeccable's live panel. They are not application code; do not
163
+ copy them into your templates.
@@ -52,7 +52,7 @@ optimizing — the bare `actual-css` entrypoint and `actual-css/full` both resol
52
52
  to the complete compiled framework:
53
53
 
54
54
  ```html
55
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/actual-css@0.17/dist/actual.full.min.css">
55
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/actual-css@0.18/dist/actual.full.min.css">
56
56
  ```
57
57
 
58
58
  The package does not maintain separate partial bundles. Modular entrypoints map
@@ -1,4 +1,4 @@
1
- # The JavaScript Runtime
1
+ # The JavaScript runtime
2
2
 
3
3
  > The optional JavaScript runtime that progressively enhances Actual's semantic markup — self-registering side-effect modules, the `enhance()` DOM lifecycle, stateless command routing, and the floating and surface contracts for custom widgets.
4
4
 
@@ -39,7 +39,7 @@ No class or hook is removed: markup and application CSS keep working.
39
39
  the core focus line and fields now match it.
40
40
  - The combobox, date picker and data grid recipes target
41
41
  `@lekoala/combobox` 0.8.0, `@lekoala/date-picker` 0.6.1 and
42
- `data-grid-component` 3.8.0. Compare a copied bridge with the current one in
42
+ `data-grid-component` 3.10.0. Compare a copied bridge with the current one in
43
43
  [Combobox](../forms/combobox.md) and [Date picker](../forms/date-picker.md).
44
44
 
45
45
  ## 0.13 to 0.14
@@ -1,4 +1,4 @@
1
- # App Layout
1
+ # App layout
2
2
 
3
3
  > Specialized application recipe with a topbar, independently scrolling content, and one adaptive primary navigation landmark.
4
4
 
@@ -1,4 +1,4 @@
1
- # App Shell
1
+ # App shell
2
2
 
3
3
  Full-height, single-column document flow. Use it as the outer shell for ordinary pages,
4
4
  simple applications, and other layouts that need a header / main / footer structure spanning the viewport.
@@ -1,4 +1,4 @@
1
- # Column Layout
1
+ # Column layout
2
2
 
3
3
  `.column-layout` is an explicit twelve-column composition canvas. Each direct
4
4
  child places itself with two numbers: `--column-span` (how many units) and
@@ -1,4 +1,4 @@
1
- # Media Object
1
+ # Media object
2
2
 
3
3
  Fixed-width leading element (avatar, icon, image) paired with flexible trailing content.
4
4