actual-css 0.17.0 → 0.17.1
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.
- package/CHANGELOG.md +37 -0
- package/dist/actual.full.css +82 -22
- package/dist/actual.full.min.css +1 -1
- package/docs/navigation.json +3 -2
- package/docs/pages/components/accordion.md +8 -0
- package/docs/pages/components/alert.md +7 -5
- package/docs/pages/components/app-navigation.md +2 -2
- package/docs/pages/components/aura.md +2 -2
- package/docs/pages/components/badge.md +4 -3
- package/docs/pages/components/card.md +1 -1
- package/docs/pages/components/chat.md +2 -2
- package/docs/pages/components/fab.md +2 -1
- package/docs/pages/components/list.md +1 -1
- package/docs/pages/components/meter.md +1 -1
- package/docs/pages/components/navbar.md +1 -1
- package/docs/pages/components/overview.md +17 -0
- package/docs/pages/components/shimmer.md +2 -2
- package/docs/pages/enhancements/overview.md +2 -2
- package/docs/pages/enhancements/status-bar.md +1 -1
- package/docs/pages/forms/ajax.md +1 -1
- package/docs/pages/forms/choice-cards.md +1 -1
- package/docs/pages/forms/detached-actions.md +1 -1
- package/docs/pages/forms/floating-field.md +5 -3
- package/docs/pages/forms/form-actions.md +1 -1
- package/docs/pages/forms/input-policy.md +1 -1
- package/docs/pages/forms/joined-controls.md +1 -1
- package/docs/pages/forms/otp.md +2 -2
- package/docs/pages/forms/password.md +1 -1
- package/docs/pages/forms/states-and-sizes.md +1 -1
- package/docs/pages/forms/sticky-actions.md +1 -1
- package/docs/pages/forms/unsaved-changes.md +1 -1
- package/docs/pages/foundations/theming.md +2 -2
- package/docs/pages/foundations/tokens.md +29 -4
- package/docs/pages/foundations/typography.md +1 -1
- package/docs/pages/guides/progressive-enhancement.md +1 -1
- package/docs/pages/layout/app-layout.md +1 -1
- package/docs/pages/layout/app-shell.md +1 -1
- package/docs/pages/layout/column-layout.md +1 -1
- package/docs/pages/layout/media.md +1 -1
- package/docs/pages/layout/overview.md +1 -1
- package/docs/pages/layout/scroll-snap.md +1 -1
- package/docs/pages/layout/scroll-target.md +1 -1
- package/docs/pages/layout/sidebar-layout.md +1 -1
- package/docs/pages/layout/sidebar-shell.md +1 -1
- package/docs/pages/patterns/code-block.md +1 -1
- package/docs/pages/patterns/exclusive-accordion.md +1 -1
- package/docs/pages/patterns/hierarchical-nav.md +1 -1
- package/docs/pages/patterns/icon-input.md +1 -1
- package/docs/pages/patterns/intent-nesting.md +1 -1
- package/docs/pages/patterns/navigation-list.md +2 -2
- package/docs/pages/patterns/overview.md +1 -1
- package/docs/pages/patterns/structured-lists.md +1 -1
- package/docs/pages/utilities/flex.md +1 -1
- package/docs/pages/utilities/links.md +1 -1
- package/docs/pages/utilities/list.md +1 -1
- package/docs/pages/utilities/shape.md +1 -1
- package/docs/pages/utilities/sizing-wrapping.md +1 -1
- package/docs/pages/utilities/spacing.md +1 -1
- package/docs/pages/utilities/text.md +1 -1
- package/package.json +1 -1
- package/src/cli/actual-css.js +4 -4
- package/src/css/components/accordion.css +10 -6
- package/src/css/components/alert.css +4 -0
- package/src/css/components/join.css +14 -0
- package/src/css/components/navbar.css +9 -6
- package/src/css/core/theme.css +20 -1
- package/src/css/core/tokens.css +4 -1
- package/src/css/forms/custom-select.css +10 -5
- package/src/css/forms/input-icon.css +5 -3
- package/src/css/typography/prose.css +6 -0
- package/src/tooling/design-tokens.js +1 -0
- package/src/tooling/theme-contrast.js +41 -2
- package/tokens.json +1 -0
package/docs/navigation.json
CHANGED
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"title": "Components",
|
|
55
55
|
"slug": "components",
|
|
56
56
|
"pages": [
|
|
57
|
+
"overview",
|
|
57
58
|
"accordion",
|
|
58
59
|
"alert",
|
|
59
60
|
"app-navigation",
|
|
@@ -66,10 +67,10 @@
|
|
|
66
67
|
"card",
|
|
67
68
|
"chat",
|
|
68
69
|
"close",
|
|
69
|
-
"dialog",
|
|
70
|
-
"drawer",
|
|
71
70
|
"data-list",
|
|
72
71
|
"diagrams",
|
|
72
|
+
"dialog",
|
|
73
|
+
"drawer",
|
|
73
74
|
"fab",
|
|
74
75
|
"indicator",
|
|
75
76
|
"key",
|
|
@@ -52,6 +52,14 @@ The default builds one raised shell around the whole group. `.flush` and `.separ
|
|
|
52
52
|
<summary>Edge to edge</summary>
|
|
53
53
|
<p>The summary and panel follow the surrounding surface's own gutter.</p>
|
|
54
54
|
</details>
|
|
55
|
+
|
|
56
|
+
<details>
|
|
57
|
+
<summary>With a list</summary>
|
|
58
|
+
<ul>
|
|
59
|
+
<li>A direct list keeps its marker gutter</li>
|
|
60
|
+
<li>Even with the inline padding removed</li>
|
|
61
|
+
</ul>
|
|
62
|
+
</details>
|
|
55
63
|
</div>
|
|
56
64
|
```
|
|
57
65
|
|
|
@@ -122,10 +122,12 @@ split / spread row — there is no `.alert-action` class. The action sits before
|
|
|
122
122
|
`.close` on a wide alert and wraps under the message on a narrow one.
|
|
123
123
|
|
|
124
124
|
The alert aligns its columns to the block start, so a multi-line message keeps
|
|
125
|
-
its icon and `.close` on the first line. A trailing control makes
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
125
|
+
its icon and `.close` on the first line. A trailing control makes that line
|
|
126
|
+
taller than its text and pushes the text down. On a one-line message, add
|
|
127
|
+
`.items-center` to put the icon, the text and the button on one center. When
|
|
128
|
+
the message can wrap, add `.items-baseline` instead: it keeps the icon and
|
|
129
|
+
`.close` on the first line of text, where `.items-center` would center them on
|
|
130
|
+
the whole block.
|
|
129
131
|
|
|
130
132
|
```html demo
|
|
131
133
|
<div class="stack">
|
|
@@ -137,7 +139,7 @@ center on the whole block.
|
|
|
137
139
|
</div>
|
|
138
140
|
</div>
|
|
139
141
|
|
|
140
|
-
<div class="alert primary" id="install-alert">
|
|
142
|
+
<div class="alert primary items-baseline" id="install-alert">
|
|
141
143
|
<i class="ti ti-download alert-icon" aria-hidden="true"></i>
|
|
142
144
|
<div class="cluster justify-content-space-between">
|
|
143
145
|
<p><strong>Recommended</strong> · Install the desktop app for notifications and offline access.</p>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# App
|
|
1
|
+
# App navigation
|
|
2
2
|
|
|
3
3
|
> Primary application destinations in a persistent bottom bar or labelled side navigation.
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ permits. The component contains no JavaScript and does not manage routing.
|
|
|
36
36
|
The icon slot accepts SVGs, images, and decorative elements such as icon-font
|
|
37
37
|
`i` elements marked with `aria-hidden="true"`.
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
## Hooks
|
|
40
40
|
|
|
41
41
|
- `--app-nav-size` controls the minimum bottom-bar size.
|
|
42
42
|
- `--app-nav-gap` controls spacing between destinations.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Aura
|
|
2
2
|
|
|
3
|
-
> **Module** — import `actual-css/css/effects/aura` or `actual-css/css/effects`.
|
|
4
|
-
|
|
5
3
|
Aura adds a decorative intent-colored border and halo around one direct child.
|
|
6
4
|
It is visual emphasis only and does not change the child's semantics.
|
|
7
5
|
|
|
6
|
+
> **Module** — import `actual-css/css/effects/aura` or `actual-css/css/effects`.
|
|
7
|
+
|
|
8
8
|
```html demo
|
|
9
9
|
<div class="cluster" style="gap: 2.5rem">
|
|
10
10
|
<span class="aura primary">
|
|
@@ -171,15 +171,16 @@ keeps its height and `.sm` / `.lg` scale both together. Wrap the chips in a
|
|
|
171
171
|
@rin-moreau
|
|
172
172
|
</a>
|
|
173
173
|
<span class="badge primary">
|
|
174
|
-
<span class="avatar"><abbr>
|
|
174
|
+
<span class="avatar"><abbr title="Ada Morgan">A</abbr></span>
|
|
175
175
|
Ada Morgan
|
|
176
176
|
<button class="close" type="button" aria-label="Remove Ada Morgan"></button>
|
|
177
177
|
</span>
|
|
178
178
|
</div>
|
|
179
179
|
```
|
|
180
180
|
|
|
181
|
-
Keep `alt=""` when the handle or name sits next to the image.
|
|
182
|
-
|
|
181
|
+
Keep `alt=""` when the handle or name sits next to the image. On the default
|
|
182
|
+
and `.sm` badges, prefer a photo or a single initial; two-letter initials need
|
|
183
|
+
`.lg` to stay legible.
|
|
183
184
|
|
|
184
185
|
## Loading status
|
|
185
186
|
|
|
@@ -46,7 +46,7 @@ to let that primitive control its layout and gap.
|
|
|
46
46
|
<p>Using the right HTML tags improves both SEO and accessibility. Lean on landmarks and live lists.</p>
|
|
47
47
|
|
|
48
48
|
<ul class="cluster tight" aria-label="Tags">
|
|
49
|
-
<li><span class="badge
|
|
49
|
+
<li><span class="badge soft secondary">HTML</span></li>
|
|
50
50
|
<li><span class="badge soft primary">Accessibility</span></li>
|
|
51
51
|
<li><span class="badge outline">5 min read</span></li>
|
|
52
52
|
</ul>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Chat
|
|
2
2
|
|
|
3
|
-
> **Module** — import `actual-css/css/components/chat` or `actual-css/css/components`.
|
|
4
|
-
|
|
5
3
|
Chat lays out message metadata, an optional avatar, and a content-sized bubble
|
|
6
4
|
at either edge of a conversation.
|
|
7
5
|
|
|
6
|
+
> **Module** — import `actual-css/css/components/chat` or `actual-css/css/components`.
|
|
7
|
+
|
|
8
8
|
```html demo
|
|
9
9
|
<div class="stack" aria-label="Conversation">
|
|
10
10
|
<div class="chat chat-start">
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
# Floating action button
|
|
2
2
|
|
|
3
|
+
FAB fixes a primary action near the viewport's block-end and inline-end edges.
|
|
4
|
+
|
|
3
5
|
> **Module** — import `actual-css/css/components/fab` or `actual-css/css/components`.
|
|
4
6
|
|
|
5
|
-
FAB fixes a primary action near the viewport's block-end and inline-end edges.
|
|
6
7
|
The existing button component owns its size, shape, intent, and interaction.
|
|
7
8
|
As a direct child of `.app-layout`, it instead overlays the main grid area so
|
|
8
9
|
the layout keeps it clear of adaptive application navigation and safe areas.
|
|
@@ -99,7 +99,7 @@ shows a current row with trailing actions and a flyout. Navigable rows usually
|
|
|
99
99
|
want a non-zero `--list-item-pad-inline`: without that gutter, the current
|
|
100
100
|
indicator touches the leading region and the trailing touches the row edge.
|
|
101
101
|
|
|
102
|
-
|
|
102
|
+
## Hooks
|
|
103
103
|
|
|
104
104
|
- `--list-item-min-size` controls the row's minimum touch height.
|
|
105
105
|
- `--list-item-pad-block` and `--list-item-pad-inline` control row padding.
|
|
@@ -27,7 +27,7 @@ normal document scrolling. `.app-nav` is not merely a stacked-icon flavour of it
|
|
|
27
27
|
reach for that component only when the destinations are part of a persistent
|
|
28
28
|
application shell — bottom navigation or labelled side navigation via
|
|
29
29
|
`.app-layout`. The choice follows the shell contract, not a preference for
|
|
30
|
-
icons. See [App
|
|
30
|
+
icons. See [App navigation](app-navigation.md).
|
|
31
31
|
|
|
32
32
|
## Class reference
|
|
33
33
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Components
|
|
2
|
+
|
|
3
|
+
> Every component and pattern on one page, to find the one that fits before opening its reference.
|
|
4
|
+
|
|
5
|
+
Components carry a visual identity, states and interaction styling. Patterns
|
|
6
|
+
normalize a recurring semantic shape, such as a navigation list or an icon
|
|
7
|
+
slot, so it composes with the components and the layout primitives.
|
|
8
|
+
|
|
9
|
+
## Components
|
|
10
|
+
|
|
11
|
+
<!--docs-index:components-->
|
|
12
|
+
|
|
13
|
+
## Patterns
|
|
14
|
+
|
|
15
|
+
How patterns relate to layout and components: [Patterns overview](../patterns/overview.md).
|
|
16
|
+
|
|
17
|
+
<!--docs-index:patterns-->
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Shimmer
|
|
2
2
|
|
|
3
|
-
> **Module** — import `actual-css/css/effects/shimmer` or `actual-css/css/effects`.
|
|
4
|
-
|
|
5
3
|
Shimmer sweeps a highlight across a text label to show an activity in
|
|
6
4
|
progress: an agent working, a chatbot composing, a job processing.
|
|
7
5
|
|
|
6
|
+
> **Module** — import `actual-css/css/effects/shimmer` or `actual-css/css/effects`.
|
|
7
|
+
|
|
8
8
|
```html demo
|
|
9
9
|
<div class="stack">
|
|
10
10
|
<span class="shimmer" role="status">Working…</span>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Progressive
|
|
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
|
|
59
|
+
Status bar. The full runtime is loaded on the docs pages, so the examples
|
|
60
60
|
work with the documented markup alone.
|
package/docs/pages/forms/ajax.md
CHANGED
|
@@ -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.
|
|
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
|
package/docs/pages/forms/otp.md
CHANGED
|
@@ -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>
|
|
@@ -220,8 +220,8 @@ bunx --bun actual-css contrast --theme src/theme.css
|
|
|
220
220
|
```
|
|
221
221
|
|
|
222
222
|
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
|
|
224
|
-
can gate a CI job.
|
|
223
|
+
when a soft, control-edge, focus, invalid-focus or inverse pair misses its
|
|
224
|
+
threshold, so it can gate a CI job.
|
|
225
225
|
|
|
226
226
|
Starting from a color scale (Open Props, Radix Colors, Uchū, Tailwind
|
|
227
227
|
`--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
|
|
@@ -107,9 +129,12 @@ A theme with translucent surfaces overrides both with opaque values.
|
|
|
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
131
|
checkboxes and radios, switches, OTP cells, choice cards, join addons, the color
|
|
110
|
-
and file inputs. It
|
|
111
|
-
|
|
112
|
-
|
|
132
|
+
and file inputs. It is derived from `--text` and `--surface`; on the default
|
|
133
|
+
palette it holds 3:1 against the surface, and `actual-css contrast` reports it
|
|
134
|
+
for your theme. `--border-control-mix` sets the ink share; raise it when a
|
|
135
|
+
tinted surface pulls the edge under 3:1. Without `color-mix()` it falls back to
|
|
136
|
+
`--border`. Set `--border-control` itself to soften or strengthen controls (input border,
|
|
137
|
+
field outline, form control contrast) without touching any separator. Hover, checked, invalid and disabled states keep
|
|
113
138
|
their own colors.
|
|
114
139
|
|
|
115
140
|
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.
|
|
@@ -517,7 +542,7 @@ A full theme can override:
|
|
|
517
542
|
- intent colors and foreground pairs
|
|
518
543
|
- surface, text, border, focus, and overlay colors
|
|
519
544
|
- `--surface-opaque` and `--surface-solid-fg`, when surfaces are translucent
|
|
520
|
-
- `--border-control`, when controls need a stronger edge than separators
|
|
545
|
+
- `--border-control-mix` or `--border-control`, when controls need a stronger edge than separators
|
|
521
546
|
- radius tokens
|
|
522
547
|
- optional shadow, motion, typography, and soft-variant mix tokens
|
|
523
548
|
|
|
@@ -142,7 +142,7 @@ The framework exposes three line-height tokens:
|
|
|
142
142
|
|
|
143
143
|
- `--line-height-tight` (1.25) — used by global headings and by display / title classes
|
|
144
144
|
- `--line-height` (1.5) — body default
|
|
145
|
-
- `--line-height-relaxed` (1.
|
|
145
|
+
- `--line-height-relaxed` (1.6) — used by `.lead` and `.text-lead` for intro text
|
|
146
146
|
|
|
147
147
|
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
148
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# The JavaScript
|
|
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
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Layout
|
|
1
|
+
# Layout overview
|
|
2
2
|
|
|
3
3
|
Layout provides a small set of composable building blocks for common page, app, and content structure. It is not a utility-first framework, and the twelve-column canvas it does ship (`.column-layout`) is an opt-in vocabulary for deliberate composition rather than the default way to build a page.
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Navigation
|
|
1
|
+
# Navigation list
|
|
2
2
|
|
|
3
3
|
Use `.nav-list` for a vertical list of navigation links: it removes native list
|
|
4
4
|
chrome, stacks the rows and stretches each `.nav-link` across the row. For a
|
|
@@ -89,7 +89,7 @@ A project may add `.site-header` when it needs a visual shell.
|
|
|
89
89
|
}
|
|
90
90
|
```
|
|
91
91
|
|
|
92
|
-
### App
|
|
92
|
+
### App shell with sidebar
|
|
93
93
|
|
|
94
94
|
A persistent sidebar beside the content — a dashboard, an admin panel — is
|
|
95
95
|
[`.sidebar-shell`](../layout/sidebar-shell.md): side by side from `64rem`, each
|
|
@@ -17,7 +17,7 @@ Use patterns when a semantic element needs a small amount of normalization befor
|
|
|
17
17
|
- Avoid broad element selectors such as `nav ul` or `.alert menu`.
|
|
18
18
|
- A pattern should be useful in more than one component or context.
|
|
19
19
|
|
|
20
|
-
## Relationship
|
|
20
|
+
## Relationship with layout
|
|
21
21
|
|
|
22
22
|
Patterns often compose with layout primitives.
|
|
23
23
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "actual-css",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.1",
|
|
4
4
|
"description": "Plain CSS component framework with semantic classes, universal variants, small tokens, theme hooks, and progressive enhancements.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "bun@1.4.4",
|