actual-css 0.15.0 → 0.16.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.
- package/CHANGELOG.md +37 -0
- package/README.md +10 -7
- package/components.json +44 -1
- package/dist/actual.full.css +130 -9
- package/dist/actual.full.js +1 -1
- package/dist/actual.full.min.css +1 -1
- package/docs/design-notes/architecture.md +3 -0
- package/docs/design-notes/enhancement-contract.md +25 -3
- package/docs/design-notes/naming.md +6 -0
- package/docs/design-notes/steps.md +13 -2
- package/docs/design-notes/tokens.md +159 -0
- package/docs/pages/components/avatar.md +10 -0
- package/docs/pages/components/bleed.md +4 -0
- package/docs/pages/components/button.md +27 -7
- package/docs/pages/components/card.md +12 -7
- package/docs/pages/components/dialog.md +26 -0
- package/docs/pages/components/rating.md +29 -5
- package/docs/pages/components/steps.md +32 -16
- package/docs/pages/enhancements/overview.md +13 -20
- package/docs/pages/enhancements/status-bar.md +7 -9
- package/docs/pages/enhancements/tabs.md +11 -15
- package/docs/pages/enhancements/tooltip.md +10 -19
- package/docs/pages/forms/choice-cards.md +2 -1
- package/docs/pages/forms/joined-controls.md +4 -2
- package/docs/pages/forms/overview.md +1 -0
- package/docs/pages/foundations/philosophy.md +26 -62
- package/docs/pages/foundations/theming.md +21 -36
- package/docs/pages/foundations/tokens.md +91 -159
- package/docs/pages/guides/integrating-actual-css.md +1 -1
- package/docs/pages/guides/introduction.md +14 -14
- package/docs/pages/guides/progressive-enhancement.md +22 -0
- package/docs/pages/guides/upgrading.md +2 -2
- package/docs/pages/layout/choosing.md +28 -20
- package/docs/pages/layout/grid.md +8 -16
- package/docs/pages/patterns/intent-nesting.md +13 -1
- package/llms.txt +2 -1
- package/package.json +5 -3
- package/skills/actual-css/SKILL.md +5 -4
- package/skills/actual-css/references/api-and-vocabulary.md +2 -1
- package/src/css/components/app-nav.css +2 -0
- package/src/css/components/avatar.css +4 -2
- package/src/css/components/card.css +1 -1
- package/src/css/components/menu.css +2 -0
- package/src/css/components/rating.css +66 -0
- package/src/css/core/base.css +10 -1
- package/src/css/core/reset.css +5 -0
- package/src/css/core/theme.css +4 -1
- package/src/css/core/tokens.css +8 -2
- package/src/css/forms/form.css +15 -1
- package/src/css/forms/range.css +11 -1
- package/src/css/layout/measure.css +2 -0
- package/src/js/dialog.js +40 -9
- package/src/js/enhance.js +16 -3
- package/tokens.json +117 -0
|
@@ -15,15 +15,13 @@ runtime targets, empty by default.
|
|
|
15
15
|
- Use it for transient status (`Saved.`, `Reconnected.`, `Copied.`). Critical, persistent, or actionable information belongs in `.alert`, inline messages, or dialogs.
|
|
16
16
|
- Intents: `danger`, `success`, `warning`, `neutral`. The default (no intent) is a neutral dark pill.
|
|
17
17
|
- On mobile, the runtime keeps the bar above the software keyboard by tracking `visualViewport` while a message is showing.
|
|
18
|
-
- A message
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
race. An empty message clears too, so `status(response.error)` on a successful
|
|
26
|
-
response closes the bar rather than opening a blank pill.
|
|
18
|
+
- A message from an open modal dialog temporarily moves the bar inside that
|
|
19
|
+
dialog so it remains visible and announced. The bar returns after its exit.
|
|
20
|
+
|
|
21
|
+
`clear()` closes the bar, then removes its text and intent after the exit
|
|
22
|
+
transition. The outgoing message remains readable in the DOM until then.
|
|
23
|
+
A new message replaces it safely, even during exit. Passing an empty message
|
|
24
|
+
also clears the bar.
|
|
27
25
|
|
|
28
26
|
The runtime auto-wires the status bar to Actual's form validation: a form that
|
|
29
27
|
fails to submit shows its `data-validation-message` in the status bar with the
|
|
@@ -27,10 +27,7 @@
|
|
|
27
27
|
- A tab list needs both `.tabs` and `role="tablist"`; `.tab` styles each trigger.
|
|
28
28
|
A tab belongs to its closest `role="tablist"`. `data-enhance="tabs"` on an
|
|
29
29
|
element without that role wires nothing and warns in the console.
|
|
30
|
-
-
|
|
31
|
-
`.tabs` is the strip, `.tab` is one trigger. The JS module
|
|
32
|
-
(`actual-css/js/tab`) is named for the file; the behavior token
|
|
33
|
-
(`data-enhance="tabs"`) is named for what it wires.
|
|
30
|
+
- Import `actual-css/js/tab` to register the `data-enhance="tabs"` behavior.
|
|
34
31
|
- A `.tab` with an icon uses `--tab-gap` (default `0.375em`) for the space between icon and label.
|
|
35
32
|
- A tab that is `hidden`, `disabled`, `aria-disabled`, or has no panel is skipped
|
|
36
33
|
by the arrow keys. An application filtering a tab strip only has to set
|
|
@@ -150,17 +147,16 @@ what fits on one row.
|
|
|
150
147
|
|
|
151
148
|
## Too many tabs
|
|
152
149
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
vertical strip (`aria-orientation="vertical"`) keeps wrapping its labels.
|
|
150
|
+
Horizontal tabs and their labels stay on one line. When they do not fit, the
|
|
151
|
+
strip scrolls without a scrollbar. Supporting browsers fade the edges to show
|
|
152
|
+
where more tabs remain. Selecting or focusing a clipped tab brings it into view.
|
|
153
|
+
|
|
154
|
+
A tab selected in the markup starts in view if the strip is visible when the
|
|
155
|
+
runtime connects. Only the strip scrolls; the page stays put. Current link tabs
|
|
156
|
+
and flyout triggers also start in view in supporting browsers, without the
|
|
157
|
+
runtime; other browsers start at the first tab.
|
|
158
|
+
|
|
159
|
+
Vertical tabs (`aria-orientation="vertical"`) allow their labels to wrap.
|
|
164
160
|
|
|
165
161
|
Scrolling is the fallback, not a responsive design. If a strip regularly
|
|
166
162
|
overflows, shorten the labels, group sections, or switch to a vertical rail.
|
|
@@ -28,25 +28,16 @@ positioning and with the projecting arrow, while leaving bare `[popover]`
|
|
|
28
28
|
elements untouched. The lifecycle owner still writes `position`, the
|
|
29
29
|
coordinates, and the arrow position; Actual only supplies the presentation.
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
custom properties. It also means placement is yours to get right: a tooltip
|
|
42
|
-
used from inside a modal dialog must be authored inside that dialog, because
|
|
43
|
-
the top layer does not lift an element out of a modal's inertness.
|
|
44
|
-
|
|
45
|
-
A generated tooltip (`data-tooltip="Help"`) is Actual's to place, and it goes
|
|
46
|
-
at document level rather than beside the trigger, so it cannot disturb the
|
|
47
|
-
trigger's structural position — a generated sibling would take
|
|
48
|
-
`.join > :last-child` from a trigger that ends a group. It therefore makes no
|
|
49
|
-
inheritance promise. Use the explicit form when the local CSS context matters.
|
|
31
|
+
Choose one lifecycle owner. Use `data-tooltip` when Actual should show and
|
|
32
|
+
hide the tooltip; the runtime sets `popover="manual"`. To manage a
|
|
33
|
+
`.tooltip[popover]` yourself, leave it unconnected to any `data-tooltip` trigger.
|
|
34
|
+
|
|
35
|
+
An explicit tooltip stays where you wrote it and inherits that location's
|
|
36
|
+
theme, density, and custom properties. Place it inside the dialog when its
|
|
37
|
+
trigger is in a modal dialog; content outside the modal is inert.
|
|
38
|
+
|
|
39
|
+
A generated tooltip (`data-tooltip="Help"`) does not inherit the trigger's
|
|
40
|
+
local CSS context. Use an explicit tooltip when that context matters.
|
|
50
41
|
|
|
51
42
|
```html demo
|
|
52
43
|
<button class="btn ghost"
|
|
@@ -14,10 +14,11 @@
|
|
|
14
14
|
- The control shows before any choice: a ring (radio) or a rounded box (checkbox) on the leading edge, level with the first line. Checked, it fills with a check, and the card takes a primary border and a subtle tint.
|
|
15
15
|
- Each child element of the label sits on its own row beside the indicator — a title and a `.muted` detail need no wrapper. Wrap loose text in an element.
|
|
16
16
|
- Stack cards for a list of options (a person, an address, a delivery method), or pair them with grid utilities for options compared side by side.
|
|
17
|
+
- The cards already frame each option, so group them in a `.field-group.flush`: the fieldset keeps its legend and semantics without drawing a second box around the cards.
|
|
17
18
|
- Supports disabled, checked, focus-visible, and invalid states; the resting ring turns danger with the border.
|
|
18
19
|
|
|
19
20
|
```html demo
|
|
20
|
-
<fieldset class="field-group stack">
|
|
21
|
+
<fieldset class="field-group flush stack">
|
|
21
22
|
<legend class="field-label">Deliver to</legend>
|
|
22
23
|
<label class="choice-card">
|
|
23
24
|
<input type="radio" name="address" value="home" checked />
|
|
@@ -17,9 +17,11 @@ choice among a few on a shared track, use a
|
|
|
17
17
|
|
|
18
18
|
Add `.join` to the wrapper that groups the controls. Use `.join-addon` for static prefix/suffix content such as currency symbols, units, or protocol text. Action buttons inside the group should use `.btn`. The wrapper should still carry `role="group"` with a label for accessibility.
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
Each child keeps its own variant. Use the same variant across the group, and
|
|
21
|
+
change it only to mark state, such as a solid pressed toggle among outlines.
|
|
21
22
|
|
|
22
|
-
When composing source files manually, import `components/join.css` after the
|
|
23
|
+
When composing source files manually, import `components/join.css` after the
|
|
24
|
+
controls it groups so joined corners take precedence.
|
|
23
25
|
|
|
24
26
|
```html demo
|
|
25
27
|
<div class="field">
|
|
@@ -191,6 +191,7 @@ root; keyboard focus and an open custom select keep it.
|
|
|
191
191
|
- `.field` is the canonical field wrapper. It works on `<label>` and `<div>`.
|
|
192
192
|
- `.field-label` is element-agnostic. Use it on `<span>` inside a wrapped label, on `<label for="…">` in a detached layout, or on `<legend>` inside a fieldset.
|
|
193
193
|
- `.field-group` styles a `<fieldset class="field-group">` as a grouped field container. Its legend gutter is tunable with `--fieldset-legend-padding-inline` (`var(--space-10)`). It carries no sibling margin: space consecutive groups with `.stack` on the form, so the rhythm follows the layout instead of the component.
|
|
194
|
+
- `.field-group.flush` drops the frame (unboxed, borderless fieldset) for a group that already sits in a card or a form section; the legend then reads as a plain label above the options. It keeps the `<fieldset>` and `<legend>` semantics.
|
|
194
195
|
- Use native `<optgroup>` and `disabled` options in `.select` controls when applicable; the customizable picker preserves both as a progressive enhancement.
|
|
195
196
|
- `.choice` is the choice-label API. Use `.check` or `.radio` on the nested control. The control goes first, the label group second, so multi-line labels align the control with the first line.
|
|
196
197
|
- For a switch, use `class="switch"` and `role="switch"`.
|
|
@@ -33,9 +33,9 @@ the next card, belongs to the layout around it:
|
|
|
33
33
|
A rule such as `.card + .card { margin-block-start: 2rem }` moves page layout
|
|
34
34
|
into the component; put a composition around the cards instead.
|
|
35
35
|
|
|
36
|
-
**A
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
**A layout primitive replaces the component's default layout.** For example,
|
|
37
|
+
`<article class="card media">` keeps the card's appearance and uses `.media`
|
|
38
|
+
for its layout.
|
|
39
39
|
|
|
40
40
|
**State uses the most semantic attribute; classes choose presentation.**
|
|
41
41
|
|
|
@@ -81,19 +81,6 @@ A component takes optional intent, variant and size classes:
|
|
|
81
81
|
A modifier is a separate class that combines with others (`.btn.primary.soft`,
|
|
82
82
|
not `.btn--primary`), and a part gets a prefixed class (`.alert-icon`,
|
|
83
83
|
`.list-item-title`) only when its element does not already say what it is.
|
|
84
|
-
There is no `__` or `--` in Actual's names, because:
|
|
85
|
-
|
|
86
|
-
- **Modifiers are shared axes.** `.primary`, `.soft` and `.sm` mean the same
|
|
87
|
-
thing on every component that supports them, so one class serves `.btn`,
|
|
88
|
-
`.badge` and `.alert`. BEM names a modifier per block, which multiplies the
|
|
89
|
-
vocabulary and keeps a custom intent such as `.tertiary` from working
|
|
90
|
-
everywhere at once.
|
|
91
|
-
- **State is not a modifier.** `disabled`, `aria-current` and `open` already
|
|
92
|
-
name the state; a `--disabled` or `--active` class would duplicate them and
|
|
93
|
-
drift out of sync.
|
|
94
|
-
- **Elements come from HTML.** A card's `header` and `footer`, an avatar's
|
|
95
|
-
`<img>` need no `__element` class; a prefixed class is kept for the parts
|
|
96
|
-
HTML cannot name.
|
|
97
84
|
|
|
98
85
|
Application CSS can use any convention, BEM included, alongside Actual's
|
|
99
86
|
classes: `<article class="card pricing-plan pricing-plan--featured">`.
|
|
@@ -110,12 +97,11 @@ for a minimal Steps implementation.
|
|
|
110
97
|
|
|
111
98
|
## Intents
|
|
112
99
|
|
|
113
|
-
`.primary`, `.secondary`, `.success`, `.warning`, `.danger`
|
|
100
|
+
`.primary`, `.secondary`, `.success`, `.warning`, and `.danger` choose a color
|
|
101
|
+
role. The component and variant decide how to display it.
|
|
114
102
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
should consume the current intent as its foreground color. It works with an
|
|
118
|
-
intent on the same element or inherited from an ancestor.
|
|
103
|
+
For plain text or an icon, add `.intent-color` to use the intent as its text
|
|
104
|
+
color. The intent can be on that element or an ancestor.
|
|
119
105
|
|
|
120
106
|
```html demo
|
|
121
107
|
<button class="btn primary">Primary</button>
|
|
@@ -127,9 +113,7 @@ intent on the same element or inherited from an ancestor.
|
|
|
127
113
|
</span>
|
|
128
114
|
```
|
|
129
115
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
Components fall back to their own default intent when no intent class is set. Buttons, badges, and alerts use the neutral palette (`--neutral` / `--neutral-fg`) by default.
|
|
116
|
+
Without an intent class, components use their own default palette.
|
|
133
117
|
|
|
134
118
|
Custom intents need no framework support — define `--intent` and `--intent-fg`
|
|
135
119
|
(and `--intent-soft-fg` when the custom role needs its own soft foreground) on a
|
|
@@ -150,7 +134,8 @@ class:
|
|
|
150
134
|
|
|
151
135
|
## Variants
|
|
152
136
|
|
|
153
|
-
`.solid`, `.soft`, `.outline`, `.surface`
|
|
137
|
+
`.solid`, `.soft`, `.outline`, and `.surface` choose the visual treatment:
|
|
138
|
+
filled, tinted, outlined, or on the page surface.
|
|
154
139
|
|
|
155
140
|
`.btn` defaults to `.solid`; `.badge` and `.alert` default to `.soft`.
|
|
156
141
|
|
|
@@ -168,37 +153,20 @@ class:
|
|
|
168
153
|
|
|
169
154
|
## Size and density
|
|
170
155
|
|
|
171
|
-
`.sm` and `.lg`
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
how tightly UI sits — spacing and component geometry — while font size and
|
|
186
|
-
icon size stay unchanged. `.tight` and `.loose` change the rhythm (`--gap`)
|
|
187
|
-
alone. Participation is opt-in, and a component only joins
|
|
188
|
-
where density has an effect independent from its optical size: if the result is
|
|
189
|
-
merely that the component looks smaller or larger, that is size, not density.
|
|
190
|
-
|
|
191
|
-
Density participation takes three levels:
|
|
192
|
-
|
|
193
|
-
- **Geometry + rhythm** — controls and their wrappers (`.field`, `.join`,
|
|
194
|
-
`.flyout`, …). Height, padding, and gap respond; typography is untouched.
|
|
195
|
-
- **Rhythm only** — content rows and shells such as `.list`. Spacing tightens
|
|
196
|
-
(`--list-item-gap: var(--gap)`), but the structural size stays stable.
|
|
197
|
-
- **No density effect** — components whose geometry is intrinsic to their
|
|
198
|
-
content (`.badge`, `.avatar`, `.spinner`, `.rating`, `.key`, prose, inline
|
|
199
|
-
`.choice`/`.switch`). Their optical size belongs to `sm`/`lg` or local hooks.
|
|
200
|
-
|
|
201
|
-
As inherited contexts, one class tightens or loosens the whole subtree:
|
|
156
|
+
- **Size:** `.sm` and `.lg` change a component's text and geometry. Each
|
|
157
|
+
component has its own scale; the same size name does not mean the same
|
|
158
|
+
dimensions everywhere.
|
|
159
|
+
- **Density:** `.compact` and `.spacious` change spacing and control geometry
|
|
160
|
+
throughout a region, keeping text and icons at the same size.
|
|
161
|
+
- **Rhythm:** `.tight` and `.loose` change only the inherited gap.
|
|
162
|
+
|
|
163
|
+
Apply size to a supported component or control wrapper. For example,
|
|
164
|
+
`.field sm`, `.input-icon sm`, `.join sm`, and `.flyout sm` size the controls
|
|
165
|
+
inside them. `.sm` on a plain element has no effect.
|
|
166
|
+
|
|
167
|
+
Density affects controls and layout spacing. Badges, avatars, spinners,
|
|
168
|
+
ratings, keys, prose, and inline choices keep their own size. One density
|
|
169
|
+
class applies to the whole subtree:
|
|
202
170
|
|
|
203
171
|
```html demo
|
|
204
172
|
<div class="compact stack">
|
|
@@ -229,12 +197,8 @@ affect the same dimension:
|
|
|
229
197
|
</div>
|
|
230
198
|
```
|
|
231
199
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
Components consume the dimensions that make sense for them and opt out of the
|
|
235
|
-
rest. The absolute `--space-*` scale is not rebound by density scopes.
|
|
236
|
-
Components with bespoke geometry (`.badge`, `.avatar`,
|
|
237
|
-
`.spinner`, `.rating`) own their local `.sm`/`.lg` mappings.
|
|
200
|
+
Density leaves the absolute `--space-*` scale unchanged. See
|
|
201
|
+
[Control tokens](tokens.md#controls) to customize the shared scale.
|
|
238
202
|
|
|
239
203
|
`.compact` also remains a meaningful local modifier for `.card` and `.table`.
|
|
240
204
|
On those components it tightens their own padding and establishes the compact
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
# Theming
|
|
2
2
|
|
|
3
|
-
Find
|
|
4
|
-
|
|
5
|
-
This is a problem-oriented index. It maps common intents to the public hooks and primitives that express them, then points to the canonical section. It is not a catalogue of every variable — the CSS source remains canonical for exact defaults and fallback chains. See the tokens page, Public surface section, for the public/internal rule.
|
|
3
|
+
Find a common customization below, then follow the reference for examples and
|
|
4
|
+
hook details. See [Tokens](tokens.md) for global settings and the theme contract.
|
|
6
5
|
|
|
7
6
|
## I want to…
|
|
8
7
|
|
|
@@ -93,17 +92,16 @@ Keep the outline visible against the surrounding surface when changing colors.
|
|
|
93
92
|
|
|
94
93
|
### Keep bare native controls on-theme / accent-color
|
|
95
94
|
|
|
96
|
-
|
|
95
|
+
Bare checkboxes, radios, ranges, and `<progress>` follow the theme through
|
|
96
|
+
`accent-color: var(--primary)`. Styled controls such as `.check`, `.radio`,
|
|
97
|
+
and `.range` use their own appearance.
|
|
97
98
|
|
|
98
99
|
→ Forms · Overview · Foundations · Tokens (theme contract)
|
|
99
100
|
|
|
100
101
|
### Store a theme name without applying it
|
|
101
102
|
|
|
102
|
-
`data-theme`
|
|
103
|
-
|
|
104
|
-
or a form control's `value`, when the element should only hold a theme name.
|
|
105
|
-
Apply `data-theme` deliberately when that element and its subtree should paint
|
|
106
|
-
with the selected palette — a theme swatch is a useful example.
|
|
103
|
+
`data-theme` applies a theme to the element and its subtree. To store a theme
|
|
104
|
+
name without applying it, use `data-theme-value` or a form control's `value`.
|
|
107
105
|
|
|
108
106
|
### Loading / busy overlay on a container
|
|
109
107
|
|
|
@@ -174,13 +172,10 @@ well as color.
|
|
|
174
172
|
|
|
175
173
|
### Dark mode toggle / theme switcher / remember the user's choice
|
|
176
174
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
choice
|
|
181
|
-
follows the OS. Apply a stored choice from an inline script in `<head>` so the
|
|
182
|
-
first paint does not flash the OS scheme. The demo's theme picker is an
|
|
183
|
-
inspection tool, not a component to copy.
|
|
175
|
+
The default theme follows the OS. Set `data-theme="light"` or `"dark"` on
|
|
176
|
+
`<html>` to force a scheme; remove the attribute to follow the OS again.
|
|
177
|
+
Build the switcher and store the preference in application code. Apply a saved
|
|
178
|
+
choice from an inline script in `<head>` to avoid a flash of the wrong scheme.
|
|
184
179
|
|
|
185
180
|
### Force light or dark on a theme that has both / theme and color scheme
|
|
186
181
|
|
|
@@ -235,12 +230,10 @@ step per role rather than importing the scale.
|
|
|
235
230
|
|
|
236
231
|
### Use a custom font / webfont / typeface with a theme
|
|
237
232
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
metrics of every island it touches. A display face for headings has no token:
|
|
243
|
-
name it on the headings in application CSS.
|
|
233
|
+
Load fonts in the application stylesheet with `@font-face` or a font service.
|
|
234
|
+
Set `--font-sans` and `--font-mono` on `:root` so the type stays consistent
|
|
235
|
+
across theme changes and islands. Set a separate heading face directly in
|
|
236
|
+
application CSS:
|
|
244
237
|
|
|
245
238
|
```css
|
|
246
239
|
:root {
|
|
@@ -261,17 +254,9 @@ reference material to copy into your own `[data-theme]` island — they are demo
|
|
|
261
254
|
assets, not package entrypoints. Each sets the intent/surface/text tokens and
|
|
262
255
|
lets the core derive everything else.
|
|
263
256
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
boundaries, so use a separate page to show another theme. Its `.join` groups
|
|
271
|
-
fit their contents so the shadow follows the controls.
|
|
272
|
-
The `material` example restyles
|
|
273
|
-
fields as filled underlines with pill buttons — tokens plus three small rules,
|
|
274
|
-
and `.join` still needs no adaptation. The `glass` example paints translucent
|
|
275
|
-
surfaces over its own backdrop: it sets `--surface-opaque` and
|
|
276
|
-
`--surface-solid-fg` to opaque values, raises `--soft-bg-mix` so soft fills stay
|
|
277
|
-
light over glass, and adds the blur and an opaque busy veil as small rules.
|
|
257
|
+
- `gradient`: outer focus halos on fields.
|
|
258
|
+
- `neo-brutalist`: hard shadows, pastel fills, and plus-shaped accordion
|
|
259
|
+
markers. Use it as a page skin: its rules cross nested theme boundaries.
|
|
260
|
+
- `material`: filled underline fields and pill buttons.
|
|
261
|
+
- `glass`: translucent surfaces over a backdrop. Keep `--surface-opaque` and
|
|
262
|
+
`--surface-solid-fg` opaque, and check soft fills against the actual backdrop.
|