@nyxwire/css 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +133 -2
- package/dist/base.css +850 -0
- package/dist/components.css +10508 -0
- package/dist/docs/components/accordion.md +83 -0
- package/dist/docs/components/alert.md +52 -0
- package/dist/docs/components/avatar.md +55 -0
- package/dist/docs/components/badge.md +64 -0
- package/dist/docs/components/breadcrumbs.md +64 -0
- package/dist/docs/components/button.md +197 -0
- package/dist/docs/components/card.md +103 -0
- package/dist/docs/components/checkbox.md +45 -0
- package/dist/docs/components/chip.md +30 -0
- package/dist/docs/components/cluster.md +33 -0
- package/dist/docs/components/code.md +65 -0
- package/dist/docs/components/container.md +24 -0
- package/dist/docs/components/dialog.md +199 -0
- package/dist/docs/components/divider.md +31 -0
- package/dist/docs/components/dl.md +24 -0
- package/dist/docs/components/effect-utilities.md +82 -0
- package/dist/docs/components/empty.md +40 -0
- package/dist/docs/components/frame.md +27 -0
- package/dist/docs/components/grid.md +31 -0
- package/dist/docs/components/hud.md +75 -0
- package/dist/docs/components/input-group.md +28 -0
- package/dist/docs/components/input.md +52 -0
- package/dist/docs/components/kbd.md +42 -0
- package/dist/docs/components/label-and-field.md +31 -0
- package/dist/docs/components/link.md +41 -0
- package/dist/docs/components/list.md +67 -0
- package/dist/docs/components/menu.md +85 -0
- package/dist/docs/components/meter.md +77 -0
- package/dist/docs/components/navbar.md +66 -0
- package/dist/docs/components/pagination.md +64 -0
- package/dist/docs/components/popover.md +59 -0
- package/dist/docs/components/progress.md +32 -0
- package/dist/docs/components/prose.md +29 -0
- package/dist/docs/components/select.md +51 -0
- package/dist/docs/components/sidebar.md +35 -0
- package/dist/docs/components/sidenav.md +45 -0
- package/dist/docs/components/skeleton.md +36 -0
- package/dist/docs/components/slider.md +32 -0
- package/dist/docs/components/spinner.md +30 -0
- package/dist/docs/components/stack.md +26 -0
- package/dist/docs/components/steps.md +49 -0
- package/dist/docs/components/switch.md +19 -0
- package/dist/docs/components/table.md +83 -0
- package/dist/docs/components/tabs.md +207 -0
- package/dist/docs/components/textarea.md +13 -0
- package/dist/docs/components/toast.md +86 -0
- package/dist/docs/components/tooltip.md +39 -0
- package/dist/docs/components/typography-classes.md +38 -0
- package/dist/docs/families/data-display.md +15 -0
- package/dist/docs/families/feedback.md +13 -0
- package/dist/docs/families/forms.md +141 -0
- package/dist/docs/families/layout-typography.md +17 -0
- package/dist/docs/families/navigation.md +13 -0
- package/dist/docs/families/overlays.md +13 -0
- package/dist/docs/families/surfaces.md +11 -0
- package/dist/docs/foundations/accessibility.md +71 -0
- package/dist/docs/foundations/color-roles.md +114 -0
- package/dist/docs/foundations/effects-motion.md +150 -0
- package/dist/docs/foundations/flavors.md +156 -0
- package/dist/docs/foundations/icons.md +45 -0
- package/dist/docs/foundations/palette.md +180 -0
- package/dist/docs/foundations/spacing-elevation.md +168 -0
- package/dist/docs/foundations/typography.md +80 -0
- package/dist/docs/index.md +233 -0
- package/dist/docs/manifest.json +859 -0
- package/dist/fonts/inter-OFL.txt +93 -0
- package/dist/fonts/inter-latin-ext-wght-italic.woff2 +0 -0
- package/dist/fonts/inter-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/inter-latin-wght-italic.woff2 +0 -0
- package/dist/fonts/inter-latin-wght-normal.woff2 +0 -0
- package/dist/fonts/martian-mono-OFL.txt +93 -0
- package/dist/fonts/martian-mono-latin-ext-wdth-normal.woff2 +0 -0
- package/dist/fonts/martian-mono-latin-wdth-normal.woff2 +0 -0
- package/dist/fonts/space-grotesk-OFL.txt +93 -0
- package/dist/fonts/space-grotesk-latin-ext-wght-normal.woff2 +0 -0
- package/dist/fonts/space-grotesk-latin-wght-normal.woff2 +0 -0
- package/dist/fonts.css +73 -0
- package/dist/nyxwire.css +12183 -0
- package/dist/tokens.css +579 -0
- package/dist/utilities.css +176 -0
- package/nyxwire.d.ts +2 -0
- package/package.json +66 -3
- package/skills/nyxwire/SKILL.md +63 -0
- package/src/base.css +158 -0
- package/src/components/accordion.css +280 -0
- package/src/components/alert.css +176 -0
- package/src/components/avatar.css +262 -0
- package/src/components/badge.css +193 -0
- package/src/components/breadcrumbs.css +209 -0
- package/src/components/btn.css +517 -0
- package/src/components/card.css +327 -0
- package/src/components/checkbox.css +202 -0
- package/src/components/chip.css +345 -0
- package/src/components/code.css +340 -0
- package/src/components/dialog.css +411 -0
- package/src/components/divider.css +201 -0
- package/src/components/empty.css +216 -0
- package/src/components/field.css +161 -0
- package/src/components/hud.css +212 -0
- package/src/components/index.css +50 -0
- package/src/components/input.css +383 -0
- package/src/components/kbd.css +197 -0
- package/src/components/layout.css +344 -0
- package/src/components/link.css +178 -0
- package/src/components/list.css +353 -0
- package/src/components/menu.css +347 -0
- package/src/components/meter.css +238 -0
- package/src/components/navbar.css +309 -0
- package/src/components/pagination.css +302 -0
- package/src/components/popover.css +352 -0
- package/src/components/progress.css +241 -0
- package/src/components/select.css +121 -0
- package/src/components/sidenav.css +326 -0
- package/src/components/skeleton.css +193 -0
- package/src/components/slider.css +201 -0
- package/src/components/spinner.css +200 -0
- package/src/components/stat.css +263 -0
- package/src/components/steps.css +311 -0
- package/src/components/switch.css +183 -0
- package/src/components/table.css +290 -0
- package/src/components/tabs.css +271 -0
- package/src/components/toast.css +413 -0
- package/src/components/tooltip.css +288 -0
- package/src/fonts.css +92 -0
- package/src/index.css +6 -0
- package/src/motion.css +177 -0
- package/src/semantic.css +85 -0
- package/src/tokens.css +276 -0
- package/src/typography.css +430 -0
- package/src/utilities.css +198 -0
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
# @nyxwire/css 0.1.0
|
|
2
|
+
|
|
3
|
+
Nyxwire's CSS: tokens, fonts, typography and nw-* components for any HTML page, in four flavors.
|
|
4
|
+
|
|
5
|
+
`@nyxwire/css` styles plain HTML with `nw-*` classes: no JavaScript, no build step, any framework. The Vue components in `@nyxwire/vue` follow the same visual spec, so a page can mix both.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
1. Install the CSS package.
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
pnpm add @nyxwire/css
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
2. Import the full bundle: tokens, fonts, base styles, components and utilities.
|
|
16
|
+
|
|
17
|
+
```css
|
|
18
|
+
@import '@nyxwire/css';
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
To take only some layers, declare the layer order first, then import the entry points you need:
|
|
22
|
+
|
|
23
|
+
```css
|
|
24
|
+
@layer theme, base, components, utilities;
|
|
25
|
+
@import '@nyxwire/css/tokens.css';
|
|
26
|
+
@import '@nyxwire/css/fonts.css';
|
|
27
|
+
@import '@nyxwire/css/components.css';
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
3. Set a flavor on the document and use the `nw-*` classes.
|
|
31
|
+
|
|
32
|
+
```html
|
|
33
|
+
<html data-flavor="nocturne" data-theme="dark">
|
|
34
|
+
<body>
|
|
35
|
+
<button class="nw-btn nw-btn-primary">Connect</button>
|
|
36
|
+
</body>
|
|
37
|
+
</html>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Without `data-flavor`, Nocturne applies, and a system that prefers light gets Lumen. To persist a visitor's choice, use the Astro `FlavorScript` or Vue's `useFlavor`.
|
|
41
|
+
|
|
42
|
+
## Import
|
|
43
|
+
|
|
44
|
+
```css
|
|
45
|
+
/* Everything: tokens, fonts, base styles, components, utilities */
|
|
46
|
+
@import '@nyxwire/css';
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
```css
|
|
50
|
+
/* Or pick entry points, after declaring the layer order */
|
|
51
|
+
@layer theme, base, components, utilities;
|
|
52
|
+
@import '@nyxwire/css/tokens.css';
|
|
53
|
+
@import '@nyxwire/css/fonts.css';
|
|
54
|
+
@import '@nyxwire/css/base.css';
|
|
55
|
+
@import '@nyxwire/css/components.css';
|
|
56
|
+
@import '@nyxwire/css/utilities.css';
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Components live in `@layer components` and the motif helpers in `@layer utilities`, the layer names Tailwind uses, so a Tailwind utility overrides a component style without `!important`. The type roles and `nw-prose` sit in `@layer base`, below every component. The unbundled sources ship under `@nyxwire/css/src/*`, and the bundled fonts under `@nyxwire/css/fonts/*`.
|
|
60
|
+
|
|
61
|
+
## Class model
|
|
62
|
+
|
|
63
|
+
A component has one base class plus modifiers that each set one axis:
|
|
64
|
+
|
|
65
|
+
```html
|
|
66
|
+
<button class="nw-btn nw-btn-outline nw-btn-danger nw-btn-sm">Abort</button>
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
- **Intent** (`-primary`, `-secondary`, `-tertiary`, `-neutral`, `-info`, `-success`, `-warning`, `-danger`) picks the color. Primary is the active accent (indigo unless `data-accent` swaps it), secondary is synth, tertiary is ice.
|
|
70
|
+
- **Variant** (`-solid`, `-soft`, `-outline`, `-ghost`, and `-link` on buttons) picks how the color is applied. Not every component has every variant; each page lists them.
|
|
71
|
+
- **Size** (`-xs`, `-sm`, `-md`, `-lg`, plus `-xl` where a component needs it) sets height, padding and type.
|
|
72
|
+
- **Motif** (`-cut`, `-wire`, `-glow`, `-scanlines` where offered) adds a Nyxwire signature: chamfered corners, the indigo-to-synth wire edge, a neon bloom or the scanline overlay. Every motif is opt-in.
|
|
73
|
+
|
|
74
|
+
A bare base class is complete: `class="nw-btn"` is a solid, primary, medium button. State comes from attributes and pseudo-classes, never from state classes: `:disabled`, `[aria-disabled="true"]`, `[aria-busy="true"]` for loading, `[aria-invalid="true"]` and `:user-invalid` for errors, `[aria-pressed]`, `[aria-selected]`, `[aria-current]`, `[aria-expanded]`, and the `data-state` values that Reka UI and Radix render. Private custom properties start with `--_` and may change between releases; the public knobs, such as `--nw-progress`, `--nw-meter`, `--nw-cut` and `--nw-glow-color`, are documented on each page.
|
|
75
|
+
|
|
76
|
+
## Flavors and accents
|
|
77
|
+
|
|
78
|
+
Every component reads the semantic roles (`--nw-canvas`, `--nw-panel`, `--nw-fg`, `--nw-primary`, ...), so a `data-flavor` attribute on any ancestor re-themes it: `nocturne` (default), `twilight`, `abyss` and the light `lumen`. A `data-accent` attribute swaps the primary accent for one of the twelve accents, and both attributes nest. The stage below scopes the lumen flavor.
|
|
79
|
+
|
|
80
|
+
```html
|
|
81
|
+
<div class="nw-cluster">
|
|
82
|
+
<button type="button" class="nw-btn">Solid</button>
|
|
83
|
+
<button type="button" class="nw-btn nw-btn-soft">Soft</button>
|
|
84
|
+
<button type="button" class="nw-btn nw-btn-outline">Outline</button>
|
|
85
|
+
<button type="button" class="nw-btn nw-btn-ghost">Ghost</button>
|
|
86
|
+
<button type="button" class="nw-btn nw-btn-link">Link</button>
|
|
87
|
+
</div>
|
|
88
|
+
<div class="nw-cluster">
|
|
89
|
+
<button type="button" class="nw-btn nw-btn-secondary">Secondary</button>
|
|
90
|
+
<button type="button" class="nw-btn nw-btn-tertiary">Tertiary</button>
|
|
91
|
+
<button type="button" class="nw-btn nw-btn-neutral">Neutral</button>
|
|
92
|
+
<button type="button" class="nw-btn nw-btn-success">Success</button>
|
|
93
|
+
<button type="button" class="nw-btn nw-btn-danger">Danger</button>
|
|
94
|
+
</div>
|
|
95
|
+
<div class="nw-cluster">
|
|
96
|
+
<button type="button" class="nw-btn nw-btn-cut nw-btn-glow">Cut and glow</button>
|
|
97
|
+
<button type="button" class="nw-btn nw-btn-wire nw-btn-ghost">Wire edge</button>
|
|
98
|
+
<button type="button" class="nw-btn nw-btn-soft nw-btn-sm" aria-busy="true"><span>Syncing</span></button>
|
|
99
|
+
<button type="button" class="nw-btn nw-btn-outline nw-btn-sm" disabled>Disabled</button>
|
|
100
|
+
</div>
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## Badges and accents
|
|
104
|
+
|
|
105
|
+
Badges take every intent; to use any of the twelve accents, put `data-accent` on the badge or on a parent and keep the primary intent.
|
|
106
|
+
|
|
107
|
+
```html
|
|
108
|
+
<div class="nw-cluster">
|
|
109
|
+
<span class="nw-badge">Solid</span>
|
|
110
|
+
<span class="nw-badge nw-badge-soft">Soft</span>
|
|
111
|
+
<span class="nw-badge nw-badge-outline">Outline</span>
|
|
112
|
+
<span class="nw-badge nw-badge-soft nw-badge-success nw-badge-dot">Online</span>
|
|
113
|
+
<span class="nw-badge nw-badge-soft nw-badge-warning nw-badge-dot nw-badge-pulse">Rerouting</span>
|
|
114
|
+
<span class="nw-badge nw-badge-danger nw-badge-count">3</span>
|
|
115
|
+
</div>
|
|
116
|
+
<div class="nw-cluster">
|
|
117
|
+
<span class="nw-badge nw-badge-soft" data-accent="indigo">indigo</span>
|
|
118
|
+
<span class="nw-badge nw-badge-soft" data-accent="iris">iris</span>
|
|
119
|
+
<span class="nw-badge nw-badge-soft" data-accent="flux">flux</span>
|
|
120
|
+
<span class="nw-badge nw-badge-soft" data-accent="synth">synth</span>
|
|
121
|
+
<span class="nw-badge nw-badge-soft" data-accent="alarm">alarm</span>
|
|
122
|
+
<span class="nw-badge nw-badge-soft" data-accent="flare">flare</span>
|
|
123
|
+
<span class="nw-badge nw-badge-soft" data-accent="volt">volt</span>
|
|
124
|
+
<span class="nw-badge nw-badge-soft" data-accent="matrix">matrix</span>
|
|
125
|
+
<span class="nw-badge nw-badge-soft" data-accent="circuit">circuit</span>
|
|
126
|
+
<span class="nw-badge nw-badge-soft" data-accent="ice">ice</span>
|
|
127
|
+
<span class="nw-badge nw-badge-soft" data-accent="arc">arc</span>
|
|
128
|
+
<span class="nw-badge nw-badge-soft" data-accent="steel">steel</span>
|
|
129
|
+
</div>
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## Cards
|
|
133
|
+
|
|
134
|
+
```html
|
|
135
|
+
<article class="nw-card">
|
|
136
|
+
<header class="nw-card-header">
|
|
137
|
+
<h3 class="nw-card-title">Relay hel-01</h3>
|
|
138
|
+
<p class="nw-card-description">Helsinki edge node, 12 ms from the core.</p>
|
|
139
|
+
</header>
|
|
140
|
+
<p class="nw-card-body">Traffic is balanced across three uplinks. The next maintenance window opens at 02:00 UTC.</p>
|
|
141
|
+
<footer class="nw-card-footer">
|
|
142
|
+
<button type="button" class="nw-btn nw-btn-sm">Open console</button>
|
|
143
|
+
<button type="button" class="nw-btn nw-btn-sm nw-btn-ghost nw-btn-neutral">Details</button>
|
|
144
|
+
</footer>
|
|
145
|
+
</article>
|
|
146
|
+
<a class="nw-card nw-card-interactive nw-card-cut nw-card-wire" href="#cards">
|
|
147
|
+
<h3 class="nw-card-title">Interactive, cut and wired</h3>
|
|
148
|
+
<p class="nw-card-description">The whole card is the link. Hover raises the fill; the chamfer and the gradient edge are opt-in.</p>
|
|
149
|
+
</a>
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
## Component groups
|
|
153
|
+
|
|
154
|
+
| Group | Classes |
|
|
155
|
+
| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
156
|
+
| [Typography](components/typography-classes.md) | `nw-display`, `nw-h1` to `nw-h6`, `nw-lead`, `nw-eyebrow`, `nw-mono`, `nw-prose`, `nw-text-*` |
|
|
157
|
+
| [Actions](components/button.md) | `nw-btn`, `nw-btn-group`, `nw-btn-icon`, `nw-btn-block`, `nw-btn-cut`, `nw-btn-wire`, `nw-btn-glow` |
|
|
158
|
+
| [Forms](families/forms.md) | `nw-field`, `nw-label`, `nw-input`, `nw-select`, `nw-input-group`, `nw-checkbox`, `nw-radio`, `nw-switch`, `nw-slider`, `nw-chip` |
|
|
159
|
+
| [Surfaces](families/surfaces.md) and [Overlays](families/overlays.md) | `nw-card`, `nw-hud`, `nw-accordion`, `nw-dialog`, `nw-popover`, `nw-menu`, `nw-tooltip`, `nw-toast` |
|
|
160
|
+
| [Feedback](families/feedback.md) | `nw-alert`, `nw-badge`, `nw-progress`, `nw-meter`, `nw-stat`, `nw-spinner`, `nw-skeleton`, `nw-empty` |
|
|
161
|
+
| [Navigation](families/navigation.md) | `nw-tabs`, `nw-breadcrumbs`, `nw-pagination`, `nw-link`, `nw-navbar`, `nw-sidenav`, `nw-steps` |
|
|
162
|
+
| [Data display](families/data-display.md) | `nw-table`, `nw-list`, `nw-dl`, `nw-kbd`, `nw-hotkey`, `nw-code`, `nw-pre`, `nw-avatar`, `nw-divider` |
|
|
163
|
+
| [Layout](families/layout-typography.md) | `nw-container`, `nw-stack`, `nw-cluster`, `nw-grid`, `nw-sidebar`, `nw-center`, `nw-frame`, `nw-spacer`, `nw-shell`, and the motif utilities such as `nw-cut` |
|
|
164
|
+
|
|
165
|
+
Interactive pieces use the platform: `nw-accordion` styles `<details>`, `nw-dialog` styles `<dialog>` and its `::backdrop`, `nw-popover` and `nw-menu` style elements with the `popover` attribute, `nw-progress` and `nw-meter` style the native elements, and `nw-slider` styles `<input type="range">`. Each of them also accepts the `data-state` markup a headless library renders, which is how the Vue components reuse the spec. Where HTML has no behavior of its own (tab selection, a navbar toggle, a toast queue), the CSS documents the attribute contract and leaves the script to you; the demos use [one small delegated script](components/tabs.md#tab-behavior-script).
|
|
166
|
+
|
|
167
|
+
## Files
|
|
168
|
+
|
|
169
|
+
Every file below documents @nyxwire/css 0.1.0. Read the ones you need before writing code.
|
|
170
|
+
|
|
171
|
+
- [components/accordion.md](components/accordion.md): An accordion is a stack of disclosure rows.
|
|
172
|
+
- [components/alert.md](components/alert.md): An alert is a message with one intent.
|
|
173
|
+
- [components/avatar.md](components/avatar.md): An avatar is a rounded slot for a user: an image, initials in the fallback, or an empty bordered slot.
|
|
174
|
+
- [components/badge.md](components/badge.md): A badge is a short status label, not an action.
|
|
175
|
+
- [components/breadcrumbs.md](components/breadcrumbs.md): Breadcrumbs are a `<nav aria-label="Breadcrumb">` around an ordered list.
|
|
176
|
+
- [components/button.md](components/button.md): The nw-btn classes for plain HTML - variants, intents, sizes, icon-only, block and grouped buttons, the cut, wire and glow motifs, and the pressed, busy and disabled states.
|
|
177
|
+
- [components/card.md](components/card.md): A card is one padded surface with a grid gap, so content can go straight in without a body wrapper.
|
|
178
|
+
- [components/checkbox.md](components/checkbox.md): Both are drawn on the native `<input>` from tokens, so `:checked`, `:indeterminate`, `:disabled` and `:focus-visible` keep working and the mark survives forced colors.
|
|
179
|
+
- [components/chip.md](components/chip.md): A chip is a filter, a selected value or a removable token.
|
|
180
|
+
- [components/cluster.md](components/cluster.md): `nw-cluster` is a wrapping row of boxes: controls, chips, metadata.
|
|
181
|
+
- [components/code.md](components/code.md): `nw-code` marks inline code on a sunken well; it follows the size of its text unless pinned with a size class.
|
|
182
|
+
- [components/container.md](components/container.md): A centered column with gutters.
|
|
183
|
+
- [components/dialog.md](components/dialog.md): `nw-dialog` styles a native `<dialog>`.
|
|
184
|
+
- [components/divider.md](components/divider.md): A hairline between regions, on `<hr>` or `div role="separator"`.
|
|
185
|
+
- [components/dl.md](components/dl.md): A description list pairs terms with details: terms in the mono eyebrow face beside their details.
|
|
186
|
+
- [components/effect-utilities.md](components/effect-utilities.md): The signature motifs, as standalone utilities.
|
|
187
|
+
- [components/empty.md](components/empty.md): An empty state explains why there is nothing to show and offers the next step.
|
|
188
|
+
- [components/frame.md](components/frame.md): A frame is a box with a fixed ratio whose media covers it.
|
|
189
|
+
- [components/grid.md](components/grid.md): `nw-grid` lays out as many equal columns as fit `--nw-grid-min` (16rem by default); a fixed count folds on narrow screens.
|
|
190
|
+
- [components/hud.md](components/hud.md): The HUD panel is a framed readout: a header with a title, a status and actions, a body and a footer.
|
|
191
|
+
- [components/input-group.md](components/input-group.md): `nw-input-group` joins inputs, selects, buttons and `nw-input-addon` text or icons into one control: inner corners square off and borders collapse.
|
|
192
|
+
- [components/input.md](components/input.md): `nw-input` is the shared well for text controls: `<input>` of any text-like type, `textarea.nw-input` and, through the same paint variables, `nw-select`.
|
|
193
|
+
- [components/kbd.md](components/kbd.md): `nw-kbd` is a keycap; a chord is a `.nw-kbd-combo` of keycaps, with the plus generated between them.
|
|
194
|
+
- [components/label-and-field.md](components/label-and-field.md): Label and field, from the Forms page.
|
|
195
|
+
- [components/link.md](components/link.md): `nw-link` styles an inline link: primary ink, an underline that brightens on hover.
|
|
196
|
+
- [components/list.md](components/list.md): A list is rows of content: `<ul class="nw-list">` of `.nw-list-item` rows, or `<li><a class="nw-list-item">` for navigable rows.
|
|
197
|
+
- [components/menu.md](components/menu.md): `nw-menu` is a list of commands.
|
|
198
|
+
- [components/meter.md](components/meter.md): A meter is a scalar value inside a known range, such as load, capacity or signal: not task progress.
|
|
199
|
+
- [components/navbar.md](components/navbar.md): The navbar is the top bar of an app shell: a brand, a link row and actions, with a toggle that opens the region under 48rem.
|
|
200
|
+
- [components/pagination.md](components/pagination.md): Pagination is a `<nav aria-label="Pagination">` around a list.
|
|
201
|
+
- [components/popover.md](components/popover.md): `nw-popover` styles an element with the `popover` attribute.
|
|
202
|
+
- [components/progress.md](components/progress.md): Progress is task completion toward a known total, or an indeterminate busy bar.
|
|
203
|
+
- [components/prose.md](components/prose.md): `nw-prose` gives bare elements their rhythm for long-form content: heading levels, list markers in the primary ink, blockquotes with hairlines, code on a well, tables with rules.
|
|
204
|
+
- [components/select.md](components/select.md): `nw-select` styles a native `<select>`.
|
|
205
|
+
- [components/sidebar.md](components/sidebar.md): `nw-sidebar` is a fixed-measure aside beside content that takes the rest, stacking when the content would fall under half the width.
|
|
206
|
+
- [components/sidenav.md](components/sidenav.md): The sidenav is the vertical navigation of an app shell: sections with labels, links with icons and counts, collapsible groups, a header and a footer.
|
|
207
|
+
- [components/skeleton.md](components/skeleton.md): A skeleton reserves the shape of content that has not arrived yet.
|
|
208
|
+
- [components/slider.md](components/slider.md): `nw-slider` styles `<input type="range">`, so keys, touch and assistive technology keep working.
|
|
209
|
+
- [components/spinner.md](components/spinner.md): A spinner shows pending work with no measurable total: a ring by default, dots or bars as variants.
|
|
210
|
+
- [components/stack.md](components/stack.md): `nw-stack` is a column of boxes.
|
|
211
|
+
- [components/steps.md](components/steps.md): Steps show where a user is in a sequence.
|
|
212
|
+
- [components/switch.md](components/switch.md): A switch is a checkbox with `role="switch"`, for a setting that applies at once.
|
|
213
|
+
- [components/table.md](components/table.md): A table is dense data rows with hairline rules, mono column labels and tabular numerals.
|
|
214
|
+
- [components/tabs.md](components/tabs.md): Tabs follow the WAI-ARIA tabs pattern: a `role="tablist"` of `role="tab"` buttons and one `role="tabpanel"` per tab.
|
|
215
|
+
- [components/textarea.md](components/textarea.md): There is no separate class: `textarea.nw-input` uses the same well with no fixed height and vertical resizing.
|
|
216
|
+
- [components/toast.md](components/toast.md): A toast is a transient message.
|
|
217
|
+
- [components/tooltip.md](components/tooltip.md): There are two tooltips, for two kinds of control.
|
|
218
|
+
- [components/typography-classes.md](components/typography-classes.md): Every heading level is one rule shared by the element and its class, so any tag can carry any role.
|
|
219
|
+
- [families/data-display.md](families/data-display.md): Tables, lists, description lists, keycaps and hotkey hints, inline code and code blocks, avatars and dividers.
|
|
220
|
+
- [families/feedback.md](families/feedback.md): Alerts, badges, progress bars, meters and stats, spinners, skeletons and empty states - the classes that tell the user what state something is in.
|
|
221
|
+
- [families/forms.md](families/forms.md): Fields, labels, text inputs, textareas, selects, input groups, checkboxes, radios, switches, sliders and chips, with hints, errors and the native states they key on.
|
|
222
|
+
- [families/layout-typography.md](families/layout-typography.md): Container, stack, cluster, grid, sidebar, center, frame and shell layout classes, the typography roles, the prose container, and the Nyxwire motif utilities.
|
|
223
|
+
- [families/navigation.md](families/navigation.md): Tabs, breadcrumbs, pagination, links, navbars, sidenavs and steps - the classes for moving through an interface, with the ARIA attributes they key on.
|
|
224
|
+
- [families/overlays.md](families/overlays.md): Dialogs and drawers on native dialog, popovers and menus on the Popover API, tooltips and toasts - the floating layer of the system.
|
|
225
|
+
- [families/surfaces.md](families/surfaces.md): Cards, HUD panels and accordions - the containers that group content - with their parts, variants, motifs and states.
|
|
226
|
+
- [foundations/accessibility.md](foundations/accessibility.md): The palette's contrast gate with live results, focus rings, keyboard support, reduced motion and forced-colors fallbacks.
|
|
227
|
+
- [foundations/color-roles.md](foundations/color-roles.md): Semantic color tokens, what each accent means, and the syntax highlighting roles, generated from @nyxwire/palette.
|
|
228
|
+
- [foundations/effects-motion.md](foundations/effects-motion.md): Cut corners, the wire edge, neon glow, scanlines, the circuit grid, glitch, glass, and motion tokens that respect reduced motion.
|
|
229
|
+
- [foundations/flavors.md](foundations/flavors.md): Pick a flavor with data attributes, nest scopes, swap the accent, and persist the visitor's choice without a flash.
|
|
230
|
+
- [foundations/icons.md](foundations/icons.md): Lucide icons through @lucide/vue, sized by the component around them and hidden from assistive technology unless they carry meaning.
|
|
231
|
+
- [foundations/palette.md](foundations/palette.md): Every Nyxwire color in all four flavors, generated from @nyxwire/palette with hex, RGB, OKLCH and contrast against the flavor's base.
|
|
232
|
+
- [foundations/spacing-elevation.md](foundations/spacing-elevation.md): The 0.25rem spacing grid, radius and cut scale, control heights, surface ramp, shadows and z-index layers.
|
|
233
|
+
- [foundations/typography.md](foundations/typography.md): Three bundled variable fonts, the type scale, heading roles and the typography classes.
|