@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,82 @@
|
|
|
1
|
+
# Effect utilities
|
|
2
|
+
|
|
3
|
+
Part of [Layout and typography](../families/layout-typography.md).
|
|
4
|
+
|
|
5
|
+
The signature motifs, as standalone utilities. They sit in `@layer utilities`, so they win over component styles.
|
|
6
|
+
|
|
7
|
+
## Cut corners
|
|
8
|
+
|
|
9
|
+
`nw-cut` chamfers the top-right and bottom-left corners by `--nw-cut` (10px by default). The element paints its own chamfered fill through `--nw-fill` and stays unclipped, so focus outlines and child popovers are not cut; `::before` adds the 1px edge from `--nw-edge` on top of the content. A cut element glows through a `drop-shadow` filter, because a `box-shadow` would trace the unclipped rectangle.
|
|
10
|
+
|
|
11
|
+
```html
|
|
12
|
+
<div class="nw-cluster">
|
|
13
|
+
<div class="nw-cut" style="padding: var(--nw-space-4); background: none; --nw-fill: var(--nw-panel); width: 10rem">nw-cut</div>
|
|
14
|
+
<div class="nw-cut nw-wire" style="padding: var(--nw-space-4); --nw-fill: var(--nw-panel); width: 10rem">cut + wire</div>
|
|
15
|
+
<div class="nw-cut nw-glow-md" style="padding: var(--nw-space-4); --nw-fill: var(--nw-panel); --nw-glow-color: var(--nw-secondary); width: 10rem">cut + glow</div>
|
|
16
|
+
</div>
|
|
17
|
+
<p>A cut element paints its own chamfered fill through <code class="nw-code">--nw-fill</code> and its edge through <code class="nw-code">--nw-edge</code>; <code class="nw-code">--nw-cut</code> sets the size.</p>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
| Class / property | Effect |
|
|
21
|
+
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
22
|
+
| `nw-cut` | Chamfered corners on any box. Replaced elements (`img`, `video`, `canvas`, `svg`, `iframe`) are clipped directly instead: they have no pseudo-elements and no fill to paint, so they cannot glow; wrap one to give it a glow. |
|
|
23
|
+
| `--nw-cut` | The cut size. |
|
|
24
|
+
| `--nw-fill` | The cut surface's paint (a flat color). |
|
|
25
|
+
| `--nw-edge` | The cut edge's paint (any paint, the line color by default). |
|
|
26
|
+
|
|
27
|
+
## Wire edge
|
|
28
|
+
|
|
29
|
+
`nw-wire` draws the 1px indigo-to-synth gradient border with the padding-box/border-box background trick, so its fill must be opaque. `nw-wire-glow` adds the bloom. On a cut surface the wire is the edge paint, which also works over a translucent fill.
|
|
30
|
+
|
|
31
|
+
```html
|
|
32
|
+
<div class="nw-cluster">
|
|
33
|
+
<div class="nw-wire" style="padding: var(--nw-space-3) var(--nw-space-4)">nw-wire</div>
|
|
34
|
+
<div class="nw-wire nw-wire-glow" style="padding: var(--nw-space-3) var(--nw-space-4)">nw-wire-glow</div>
|
|
35
|
+
</div>
|
|
36
|
+
<div class="nw-cluster">
|
|
37
|
+
<span class="nw-glow-sm" style="padding: var(--nw-space-2) var(--nw-space-3); background: var(--nw-panel)">glow-sm</span>
|
|
38
|
+
<span class="nw-glow-md" style="padding: var(--nw-space-2) var(--nw-space-3); background: var(--nw-panel)">glow-md</span>
|
|
39
|
+
<span class="nw-glow-lg" style="padding: var(--nw-space-2) var(--nw-space-3); background: var(--nw-panel)">glow-lg</span>
|
|
40
|
+
<span class="nw-glow-danger" style="padding: var(--nw-space-2) var(--nw-space-3); background: var(--nw-panel)">glow-danger</span>
|
|
41
|
+
<span class="nw-text-glow">text-glow</span>
|
|
42
|
+
</div>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Neon glow
|
|
46
|
+
|
|
47
|
+
| Class | Effect |
|
|
48
|
+
| ---------------------------------------- | ------------------------------------------------------- |
|
|
49
|
+
| `nw-glow-sm`, `nw-glow-md`, `nw-glow-lg` | A neon bloom in `--nw-glow-color` (primary by default). |
|
|
50
|
+
| `nw-glow-primary` ... `nw-glow-danger` | Set the color in one class. |
|
|
51
|
+
| `nw-text-glow` | A bloom in the text's own ink. |
|
|
52
|
+
| `nw-wire-glow` | The bloom on a wire edge. |
|
|
53
|
+
|
|
54
|
+
Glows are quieter in the lumen flavor: the shadows scale by `--nw-flavor-dark`, the flag the palette sets per flavor.
|
|
55
|
+
|
|
56
|
+
## Scanlines, grid and glitch
|
|
57
|
+
|
|
58
|
+
`nw-scanlines` overlays the scanline pattern through `::after`; `nw-grid-bg` paints the 32px circuit grid, with a node on every fourth crossing; `nw-glitch` plays one 480ms burst when its text, or the link or button around it, is hovered or focused. The glitch is disabled under `prefers-reduced-motion: reduce`.
|
|
59
|
+
|
|
60
|
+
```html
|
|
61
|
+
<div class="nw-cluster">
|
|
62
|
+
<div class="nw-scanlines" style="block-size: 4rem; inline-size: 14rem; background: var(--nw-canvas-sunken)">nw-scanlines</div>
|
|
63
|
+
<div class="nw-grid-bg" style="block-size: 4rem; inline-size: 14rem; background-color: var(--nw-canvas)"></div>
|
|
64
|
+
</div>
|
|
65
|
+
<p>One burst on hover or focus: <span class="nw-glitch nw-mono">nw-glitch</span></p>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
| Class | Effect |
|
|
69
|
+
| -------------- | ------------------------------------------------------------------------------------------------- |
|
|
70
|
+
| `nw-scanlines` | The scanline overlay. Clip-path keeps it inside a cut element's chamfer. |
|
|
71
|
+
| `nw-grid-bg` | The circuit grid. It paints `background`, so it does not combine with cut or wire on one element. |
|
|
72
|
+
| `nw-glitch` | One burst on hover or focus; no markup needed, the text is the input. |
|
|
73
|
+
|
|
74
|
+
## Accessibility helpers
|
|
75
|
+
|
|
76
|
+
| Class / attribute | Effect |
|
|
77
|
+
| -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
78
|
+
| `nw-sr-only` | Visually hidden, still read by assistive technology. |
|
|
79
|
+
| `nw-motion-essential` | Keeps a component's meaningful animation (a spinner, a progress sweep, a toast timer) running under `prefers-reduced-motion: reduce`. Everything decorative collapses instantly. |
|
|
80
|
+
| `@media (forced-colors: active)` | The cut and wire surfaces fall back to a plain system-colored box with a real border; the scanline and grid overlays are removed. |
|
|
81
|
+
|
|
82
|
+
Components own their own `-cut`, `-wire`, `-glow` and `-scanlines` modifiers (see [buttons](button.md), [surfaces](../families/surfaces.md) and [overlays](../families/overlays.md)): they compose the same recipes with the component's own fill, edge and focus ring, so prefer those to the raw utilities inside a component.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# .nw-empty
|
|
2
|
+
|
|
3
|
+
Part of [Feedback](../families/feedback.md).
|
|
4
|
+
|
|
5
|
+
An empty state explains why there is nothing to show and offers the next step. The action row is the point; it is not a decorative illustration.
|
|
6
|
+
|
|
7
|
+
```html
|
|
8
|
+
<div class="nw-empty nw-empty-bordered">
|
|
9
|
+
<span class="nw-empty-icon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="12" cy="12" r="3"/><path d="M12 3v3M12 18v3M3 12h3M18 12h3"/></svg></span>
|
|
10
|
+
<h3 class="nw-empty-title">No nodes connected</h3>
|
|
11
|
+
<p class="nw-empty-description">Add a node to start routing traffic.</p>
|
|
12
|
+
<div class="nw-empty-actions">
|
|
13
|
+
<button type="button" class="nw-btn nw-btn-sm">Add node</button>
|
|
14
|
+
<button type="button" class="nw-btn nw-btn-sm nw-btn-ghost">Read the docs</button>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="nw-empty nw-empty-dashed nw-empty-sm nw-empty-secondary">
|
|
18
|
+
<span class="nw-empty-icon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg></span>
|
|
19
|
+
<h3 class="nw-empty-title">No matches</h3>
|
|
20
|
+
<p class="nw-empty-description">Dashed, small, secondary icon.</p>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="nw-empty nw-empty-cut nw-empty-tertiary">
|
|
23
|
+
<h3 class="nw-empty-title">Cut</h3>
|
|
24
|
+
<p class="nw-empty-description">A chamfered empty panel.</p>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="nw-empty nw-empty-inline">
|
|
27
|
+
<span class="nw-empty-icon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M4 6h16M4 12h10M4 18h6"/></svg></span>
|
|
28
|
+
<p class="nw-empty-title">Nothing filtered</p>
|
|
29
|
+
<div class="nw-empty-actions"><button type="button" class="nw-btn nw-btn-xs nw-btn-ghost">Clear</button></div>
|
|
30
|
+
</div>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
| Class | Effect |
|
|
34
|
+
| ----------------------------------------------------- | ---------------------------------------------------------- |
|
|
35
|
+
| `nw-empty` | A centered column of icon, title, description and actions. |
|
|
36
|
+
| `nw-empty-icon`, `-title`, `-description`, `-actions` | The parts. Mark the icon `aria-hidden`. |
|
|
37
|
+
| `nw-empty-sm`, `-md`, `-lg` | Padding and icon size. |
|
|
38
|
+
| `nw-empty-primary` ... `-danger` | Icon tint. |
|
|
39
|
+
| `nw-empty-bordered`, `-dashed`, `-cut` | A panel border, a dashed border, or a chamfered panel. |
|
|
40
|
+
| `nw-empty-inline` | A compact row for a sidebar or a table footer. |
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# .nw-frame and .nw-shell
|
|
2
|
+
|
|
3
|
+
Part of [Layout and typography](../families/layout-typography.md).
|
|
4
|
+
|
|
5
|
+
A frame is a box with a fixed ratio whose media covers it. A shell is the app grid: navbar on top, sidenav at the side, main content, optional footer.
|
|
6
|
+
|
|
7
|
+
```html
|
|
8
|
+
<div class="nw-cluster nw-cluster-top">
|
|
9
|
+
<div class="nw-frame"><img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 90'%3E%3Cdefs%3E%3ClinearGradient id='f' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%236d6bff'/%3E%3Cstop offset='1' stop-color='%23d36bff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='160' height='90' fill='url(%23f)'/%3E%3C/svg%3E" alt="" width="160" height="90" /></div>
|
|
10
|
+
<div class="nw-frame nw-frame-square"><img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 90'%3E%3Cdefs%3E%3ClinearGradient id='s' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23e6c017'/%3E%3Cstop offset='1' stop-color='%232fd658'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='90' height='90' fill='url(%23s)'/%3E%3C/svg%3E" alt="" width="90" height="90" /></div>
|
|
11
|
+
<div class="nw-frame nw-frame-portrait" style="inline-size: 6rem"><img src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 120'%3E%3Cdefs%3E%3ClinearGradient id='p' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23e6c017'/%3E%3Cstop offset='1' stop-color='%23d36bff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='90' height='120' fill='url(%23p)'/%3E%3C/svg%3E" alt="" width="90" height="120" /></div>
|
|
12
|
+
</div>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
| Class / property | Effect |
|
|
16
|
+
| --------------------------------------- | --------------------------------------- |
|
|
17
|
+
| `nw-frame` | A 16/9 box; the media inside covers it. |
|
|
18
|
+
| `nw-frame-square`, `-portrait`, `-wide` | 1/1, 3/4 and 21/9. |
|
|
19
|
+
| `--nw-frame-ratio` | Any other ratio. |
|
|
20
|
+
|
|
21
|
+
| Class | Effect |
|
|
22
|
+
| -------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
|
|
23
|
+
| `nw-shell` | The app grid, at least one viewport tall: `nav nav / side main / foot foot`. |
|
|
24
|
+
| `nw-shell-nav`, `nw-shell-main` | The navbar row and the main cell (give main a `nw-container`). |
|
|
25
|
+
| `nw-shell-side`, `nw-shell-foot` | The side rail and the footer row. |
|
|
26
|
+
| `nw-shell-side-end` | The rail on the inline-end side. |
|
|
27
|
+
| `nw-shell-side-open`, `nw-shell-side[data-state="open"]` | Under 48rem the rail leaves the grid and comes back as an overlay while open, sliding by `--nw-slide-distance`. |
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# .nw-grid
|
|
2
|
+
|
|
3
|
+
Part of [Layout and typography](../families/layout-typography.md).
|
|
4
|
+
|
|
5
|
+
`nw-grid` lays out as many equal columns as fit `--nw-grid-min` (16rem by default); a fixed count folds on narrow screens.
|
|
6
|
+
|
|
7
|
+
```html
|
|
8
|
+
<div class="nw-grid">
|
|
9
|
+
<div class="nw-card nw-card-sm">A card</div>
|
|
10
|
+
<div class="nw-card nw-card-sm">In a grid</div>
|
|
11
|
+
<div class="nw-card nw-card-sm">That fits</div>
|
|
12
|
+
<div class="nw-card nw-card-sm">As many</div>
|
|
13
|
+
<div class="nw-card nw-card-sm">As the minimum allows</div>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="nw-grid nw-grid-3 nw-grid-dense">
|
|
16
|
+
<div class="nw-card nw-card-sm">One</div>
|
|
17
|
+
<div class="nw-card nw-card-sm nw-span-2">Two, spanning 2 columns</div>
|
|
18
|
+
<div class="nw-card nw-card-sm nw-span-full">Full width, on its own row</div>
|
|
19
|
+
</div>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
| Class / property | Effect |
|
|
23
|
+
| ---------------------------------------- | --------------------------------------------------------------- |
|
|
24
|
+
| `nw-grid` | `repeat(auto-fit, minmax(min(100%, var(--nw-grid-min)), 1fr))`. |
|
|
25
|
+
| `nw-grid-fill` | `auto-fill` instead: empty tracks count. |
|
|
26
|
+
| `nw-grid-2`, `-3`, `-4`, `-6` | Fixed counts; 3 and 4 fold to fewer columns under 40rem. |
|
|
27
|
+
| `nw-grid-dense` | Backfills earlier rows. |
|
|
28
|
+
| `nw-grid-start`, `-center` | Alignment of items in their tracks. |
|
|
29
|
+
| `nw-span-2`, `nw-span-3`, `nw-span-full` | An item that spans tracks; spans fold under 40rem. |
|
|
30
|
+
| `nw-grid-xs` ... `nw-grid-xl` | Gaps. |
|
|
31
|
+
| `--nw-grid-min` | The smallest column, per page or per grid. |
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# .nw-hud
|
|
2
|
+
|
|
3
|
+
Part of [Surfaces](../families/surfaces.md).
|
|
4
|
+
|
|
5
|
+
The HUD panel is a framed readout: a header with a title, a status and actions, a body and a footer. The status carries a small diamond marker in the intent ink. It is Nyxwire's dashboard surface, quieter than a card and denser by default.
|
|
6
|
+
|
|
7
|
+
```html
|
|
8
|
+
<section class="nw-hud" aria-labelledby="hud-uplink">
|
|
9
|
+
<header class="nw-hud-header">
|
|
10
|
+
<h3 class="nw-hud-title" id="hud-uplink">Uplink</h3>
|
|
11
|
+
<span class="nw-hud-status">Nominal</span>
|
|
12
|
+
<div class="nw-hud-actions">
|
|
13
|
+
<button type="button" class="nw-btn nw-btn-xs nw-btn-ghost nw-btn-neutral">Logs</button>
|
|
14
|
+
</div>
|
|
15
|
+
</header>
|
|
16
|
+
<div class="nw-hud-body">
|
|
17
|
+
<div class="nw-progress-row"><span>Throughput</span><span class="nw-progress-value">72%</span></div>
|
|
18
|
+
<progress class="nw-progress nw-progress-sm" value="72" max="100" aria-label="Throughput"></progress>
|
|
19
|
+
</div>
|
|
20
|
+
<footer class="nw-hud-footer">Updated 4 s ago</footer>
|
|
21
|
+
</section>
|
|
22
|
+
<section class="nw-hud nw-hud-cut nw-hud-scanlines nw-hud-secondary" aria-labelledby="hud-grid">
|
|
23
|
+
<header class="nw-hud-header">
|
|
24
|
+
<h3 class="nw-hud-title" id="hud-grid">Grid sector 7</h3>
|
|
25
|
+
<span class="nw-hud-status">Scanning</span>
|
|
26
|
+
</header>
|
|
27
|
+
<div class="nw-hud-body">Cut corners and the scanline overlay. Only the paint is cut, so focus rings and child popovers are not clipped.</div>
|
|
28
|
+
</section>
|
|
29
|
+
<section class="nw-hud nw-hud-wire nw-hud-solid nw-hud-sm" aria-labelledby="hud-core">
|
|
30
|
+
<header class="nw-hud-header">
|
|
31
|
+
<h3 class="nw-hud-title" id="hud-core">Core</h3>
|
|
32
|
+
<span class="nw-hud-status">Solid, wired, small</span>
|
|
33
|
+
</header>
|
|
34
|
+
<div class="nw-hud-body">The sunken fill with the gradient wire edge.</div>
|
|
35
|
+
</section>
|
|
36
|
+
<section class="nw-hud nw-hud-danger nw-hud-alarm" role="status" aria-labelledby="hud-alarm">
|
|
37
|
+
<header class="nw-hud-header">
|
|
38
|
+
<h3 class="nw-hud-title" id="hud-alarm">Power bus</h3>
|
|
39
|
+
<span class="nw-hud-status">Overload</span>
|
|
40
|
+
</header>
|
|
41
|
+
<div class="nw-hud-body">The alarm variant pulses the status marker, never the text.</div>
|
|
42
|
+
</section>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
| Class | Effect |
|
|
46
|
+
| -------------------------------- | ------------------------------------------------------------------------------------------------- |
|
|
47
|
+
| `nw-hud` | The framed panel: panel fill, strong hairline, radius md, a small shadow. |
|
|
48
|
+
| `nw-hud-header` | The top row, ruled off from the body. Wraps on narrow screens. |
|
|
49
|
+
| `nw-hud-title` | The panel title in the display face; use a heading element. |
|
|
50
|
+
| `nw-hud-status` | A short status readout with a diamond marker, in an ink mixed from the intent and the foreground. |
|
|
51
|
+
| `nw-hud-actions` | Controls pushed to the end of the header. |
|
|
52
|
+
| `nw-hud-body` | The content, in small type. |
|
|
53
|
+
| `nw-hud-footer` | A ruled bottom row in the subtle ink, for timestamps and sources. |
|
|
54
|
+
| `nw-hud-primary` ... `-danger` | Intent of the status ink and marker. |
|
|
55
|
+
| `nw-hud-xs`, `-sm`, `-md`, `-lg` | Padding 0.625rem, 0.75rem, 1rem (default) and 1.5rem. |
|
|
56
|
+
| `nw-hud-solid` | The sunken fill instead of the panel. |
|
|
57
|
+
| `nw-hud-wire` | The gradient wire edge. |
|
|
58
|
+
| `nw-hud-cut` | Cut corners. Only the paint is cut, so focus outlines and child popovers are not clipped. |
|
|
59
|
+
| `nw-hud-scanlines` | The scanline overlay behind the content, clipped to the chamfer on a cut panel. |
|
|
60
|
+
| `nw-hud-alarm` | Pulses the status marker, not the text. The pulse stops under reduced motion. |
|
|
61
|
+
|
|
62
|
+
A HUD panel can be the control itself. `nw-hud-interactive` gives it hover and pressed fills; `:focus-visible` draws the ring and `:disabled` or `aria-disabled="true"` mutes the ink, the edge and the status.
|
|
63
|
+
|
|
64
|
+
```html
|
|
65
|
+
<a class="nw-hud nw-hud-interactive nw-hud-tertiary" href="#nw-hud">
|
|
66
|
+
<span class="nw-hud-header"><span class="nw-hud-title">Open node ams-03</span><span class="nw-hud-status">Online</span></span>
|
|
67
|
+
<span class="nw-hud-body">The whole panel is a link: hover raises the fill, focus draws the ring.</span>
|
|
68
|
+
</a>
|
|
69
|
+
<div class="nw-hud nw-hud-interactive" aria-disabled="true">
|
|
70
|
+
<div class="nw-hud-header"><span class="nw-hud-title">Offline node</span><span class="nw-hud-status">Disabled</span></div>
|
|
71
|
+
<div class="nw-hud-body">aria-disabled="true" mutes the ink, the edge and the status.</div>
|
|
72
|
+
</div>
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Name a HUD region with `aria-labelledby` pointing at its title. Put `role="status"` on a panel whose readout changes live, so assistive technology announces the change; the alarm pulse alone conveys nothing to a screen reader, so the status text must say what is wrong.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Input group: .nw-input-group
|
|
2
|
+
|
|
3
|
+
Part of [Forms](../families/forms.md).
|
|
4
|
+
|
|
5
|
+
`nw-input-group` joins inputs, selects, buttons and `nw-input-addon` text or icons into one control: inner corners square off and borders collapse. One size class on the group (`nw-input-group-xs` to `-lg`) sizes every child.
|
|
6
|
+
|
|
7
|
+
```html
|
|
8
|
+
<div class="nw-input-group">
|
|
9
|
+
<span class="nw-input-addon">https://</span>
|
|
10
|
+
<input class="nw-input" type="text" placeholder="relay.nyxwire.dev" aria-label="Relay address" />
|
|
11
|
+
<span class="nw-input-addon">:443</span>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="nw-input-group">
|
|
14
|
+
<input class="nw-input" type="search" placeholder="Search nodes" aria-label="Search nodes" />
|
|
15
|
+
<button type="button" class="nw-btn">Search</button>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="nw-input-group nw-input-group-sm">
|
|
18
|
+
<span class="nw-input-addon"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg></span>
|
|
19
|
+
<input class="nw-input" type="text" placeholder="Small group" aria-label="Filter" />
|
|
20
|
+
<select class="nw-select" aria-label="Scope"><option>All</option><option>Online</option></select>
|
|
21
|
+
</div>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
| Class | Effect |
|
|
25
|
+
| ---------------------------------------- | ---------------------------------------------------------------------- |
|
|
26
|
+
| `nw-input-group` | Joins its children; the focused child rises so its ring is not hidden. |
|
|
27
|
+
| `nw-input-addon` | Static text or an icon at either end, on the sunken fill. |
|
|
28
|
+
| `nw-input-group-xs`, `-sm`, `-md`, `-lg` | Sizes every input, select, button and addon in the group at once. |
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Text inputs: .nw-input
|
|
2
|
+
|
|
3
|
+
Part of [Forms](../families/forms.md).
|
|
4
|
+
|
|
5
|
+
`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`. The well is the deepest surface in dark flavors and the lightest in lumen, so it reads as a well on both a canvas and a panel.
|
|
6
|
+
|
|
7
|
+
```html
|
|
8
|
+
<div class="nw-field">
|
|
9
|
+
<label class="nw-label" for="f-host">Host</label>
|
|
10
|
+
<input class="nw-input" id="f-host" type="text" placeholder="relay.nyxwire.dev" aria-describedby="f-host-hint" />
|
|
11
|
+
<p class="nw-field-hint" id="f-host-hint">A host name without a protocol.</p>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="nw-field">
|
|
14
|
+
<label class="nw-label nw-label-required" for="f-key">Access key</label>
|
|
15
|
+
<input class="nw-input" id="f-key" type="password" value="hunter22" aria-invalid="true" aria-describedby="f-key-error" />
|
|
16
|
+
<p class="nw-field-error" id="f-key-error">The key must be at least 12 characters.</p>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="nw-field">
|
|
19
|
+
<label class="nw-label" for="f-region">Region (read-only)</label>
|
|
20
|
+
<input class="nw-input" id="f-region" type="text" value="eu-north" readonly />
|
|
21
|
+
</div>
|
|
22
|
+
<div class="nw-field">
|
|
23
|
+
<label class="nw-label" for="f-port">Port (disabled)</label>
|
|
24
|
+
<input class="nw-input" id="f-port" type="number" value="8443" disabled />
|
|
25
|
+
</div>
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
```html
|
|
29
|
+
<div class="nw-stack nw-stack-sm">
|
|
30
|
+
<input class="nw-input nw-input-xs" type="text" placeholder="Extra small" aria-label="Extra small input" />
|
|
31
|
+
<input class="nw-input nw-input-sm" type="text" placeholder="Small" aria-label="Small input" />
|
|
32
|
+
<input class="nw-input" type="text" placeholder="Medium (default)" aria-label="Medium input" />
|
|
33
|
+
<input class="nw-input nw-input-lg" type="text" placeholder="Large" aria-label="Large input" />
|
|
34
|
+
</div>
|
|
35
|
+
<div class="nw-stack nw-stack-sm">
|
|
36
|
+
<input class="nw-input nw-input-secondary" type="text" placeholder="Secondary ring on focus" aria-label="Secondary input" />
|
|
37
|
+
<input class="nw-input nw-input-success" type="text" value="Verified" aria-label="Success input" />
|
|
38
|
+
<input class="nw-input nw-input-ghost" type="search" placeholder="Ghost: no well until hover" aria-label="Ghost search" />
|
|
39
|
+
<input class="nw-input" type="file" aria-label="Upload a config file" />
|
|
40
|
+
</div>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
| Class / selector | Effect |
|
|
44
|
+
| ---------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
|
|
45
|
+
| `nw-input` | The well: hairline border, focus ring, placeholder in the subtle ink. Medium by default. |
|
|
46
|
+
| `nw-input-xs`, `-sm`, `-md`, `-lg` | Control heights 1.75rem, 2rem, 2.5rem (default) and 3rem. On coarse pointers the text never drops under 16px, so iOS does not zoom in. |
|
|
47
|
+
| `nw-input-primary` ... `nw-input-danger` | Colors the resting border and the focus ring with one of the eight intents. |
|
|
48
|
+
| `nw-input-ghost` | No fill or border until hover; for inline editing and toolbars. |
|
|
49
|
+
| `[aria-invalid="true"]`, `:user-invalid` | Danger border and ring. Always wins over an intent class. |
|
|
50
|
+
| `[readonly]` | Quiet well, value stays selectable. |
|
|
51
|
+
| `:disabled`, `[aria-disabled="true"]` | Quiet well and ink rather than translucency. |
|
|
52
|
+
| `[type="number"]`, date and time types | Tabular numerals. File inputs get a styled selector button; color inputs a swatch. |
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# .nw-kbd and .nw-hotkey
|
|
2
|
+
|
|
3
|
+
Part of [Data display](../families/data-display.md).
|
|
4
|
+
|
|
5
|
+
`nw-kbd` is a keycap; a chord is a `.nw-kbd-combo` of keycaps, with the plus generated between them. The 2px lower edge gives the cap its depth and flattens when pressed. A hotkey hint pairs a chord with its label.
|
|
6
|
+
|
|
7
|
+
```html
|
|
8
|
+
<p>
|
|
9
|
+
Press <kbd class="nw-kbd">K</kbd> to open the command palette, or
|
|
10
|
+
<span class="nw-kbd-combo"><kbd class="nw-kbd">Ctrl</kbd><kbd class="nw-kbd">K</kbd></span> anywhere.
|
|
11
|
+
A pressed key: <kbd class="nw-kbd nw-kbd-pressed">Shift</kbd>. A disabled one:
|
|
12
|
+
<kbd class="nw-kbd nw-kbd-disabled">Caps</kbd>.
|
|
13
|
+
</p>
|
|
14
|
+
<div class="nw-cluster">
|
|
15
|
+
<kbd class="nw-kbd nw-kbd-xs">xs</kbd>
|
|
16
|
+
<kbd class="nw-kbd nw-kbd-sm">sm</kbd>
|
|
17
|
+
<kbd class="nw-kbd">md</kbd>
|
|
18
|
+
<kbd class="nw-kbd nw-kbd-lg">lg</kbd>
|
|
19
|
+
<kbd class="nw-kbd nw-kbd-solid nw-kbd-secondary">Solid</kbd>
|
|
20
|
+
<kbd class="nw-kbd nw-kbd-outline">Outline</kbd>
|
|
21
|
+
<kbd class="nw-kbd nw-kbd-glow">Glow</kbd>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="nw-hotkeys">
|
|
24
|
+
<span class="nw-hotkey"><span class="nw-kbd-combo"><kbd class="nw-kbd">Ctrl</kbd><kbd class="nw-kbd">K</kbd></span><span class="nw-hotkey-label">Command palette</span></span>
|
|
25
|
+
<span class="nw-hotkey"><kbd class="nw-kbd">?</kbd><span class="nw-hotkey-label">Shortcuts</span></span>
|
|
26
|
+
<span class="nw-hotkey"><kbd class="nw-kbd">Esc</kbd><span class="nw-hotkey-label">Close</span></span>
|
|
27
|
+
</div>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
| Class / selector | Effect |
|
|
31
|
+
| ---------------------------------------------------- | -------------------------------------------------------------------------- |
|
|
32
|
+
| `nw-kbd` | The keycap. |
|
|
33
|
+
| `nw-kbd-xs`, `-sm`, `-md`, `-lg` | Cap sizes. |
|
|
34
|
+
| `nw-kbd-solid`, `-outline`, `-glow` | Filled cap, cap without a fill, and a lit cap that brightens when pressed. |
|
|
35
|
+
| `nw-kbd-pressed`, `[aria-pressed="true"]`, `:active` | The cap travels one pixel and loses its lower edge. |
|
|
36
|
+
| `nw-kbd-disabled`, `[aria-disabled="true"]` | A flat, muted cap. |
|
|
37
|
+
| `nw-kbd-primary` ... `-danger` | The cap takes the intent ink on its tint, with a tinted edge. |
|
|
38
|
+
| `nw-kbd-combo` | A chord; the plus is generated between caps. |
|
|
39
|
+
| `nw-kbd-combo-plain` | A chord without the generated plus. |
|
|
40
|
+
| `nw-hotkey` | A chord with a trailing label. |
|
|
41
|
+
| `nw-hotkey-label` | The label. |
|
|
42
|
+
| `nw-hotkeys`, `nw-hotkeys-vertical` | A wrapping row of hints, or a column of them. |
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Label and field
|
|
2
|
+
|
|
3
|
+
Part of [Forms](../families/forms.md).
|
|
4
|
+
|
|
5
|
+
```html
|
|
6
|
+
<fieldset class="nw-field-group">
|
|
7
|
+
<legend class="nw-field-legend">Contact</legend>
|
|
8
|
+
<div class="nw-field nw-field-sm">
|
|
9
|
+
<label class="nw-label nw-label-sm nw-label-required" for="f-mail">Email</label>
|
|
10
|
+
<input class="nw-input nw-input-sm" id="f-mail" type="email" autocomplete="email" required aria-describedby="f-mail-hint" />
|
|
11
|
+
<p class="nw-field-hint" id="f-mail-hint">Outage reports go here.</p>
|
|
12
|
+
<p class="nw-field-error">Enter a valid email address.</p>
|
|
13
|
+
</div>
|
|
14
|
+
<label class="nw-choice"><input class="nw-checkbox" type="checkbox" checked /> Weekly digest</label>
|
|
15
|
+
</fieldset>
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
| Class / selector | Effect |
|
|
19
|
+
| -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
|
|
20
|
+
| `nw-field` | A column of label, control, hint and error. Invalid when a descendant has `aria-invalid="true"`, or with `nw-field-invalid`. |
|
|
21
|
+
| `nw-field-sm`, `-md`, `-lg` | Gap and type of the parts. |
|
|
22
|
+
| `nw-field-invalid` | Forces the invalid look: the label turns danger and the error shows. |
|
|
23
|
+
| `nw-field-disabled`, `:has(:disabled)` | Mutes the label and the hint of a disabled control. |
|
|
24
|
+
| `nw-label` | The label. Wraps a checkbox, radio or switch and aligns it to the first text line. |
|
|
25
|
+
| `nw-label-sm`, `-md`, `-lg` | Label sizes. |
|
|
26
|
+
| `nw-label-text` | A text column inside a wrapping label, so a hint sits under the label text. |
|
|
27
|
+
| `nw-label-required` | Appends a danger asterisk. Also set `required` on the control. |
|
|
28
|
+
| `nw-choice` | A compact inline label for a choice control, at least 24px tall. |
|
|
29
|
+
| `nw-field-hint` | Supporting text; reference it with `aria-describedby`. |
|
|
30
|
+
| `nw-field-error` | Error text. Inside a field it shows only while the field is invalid; outside one it always shows. |
|
|
31
|
+
| `nw-field-group`, `nw-field-legend` | A borderless `<fieldset>` of related fields and its legend. |
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# .nw-link
|
|
2
|
+
|
|
3
|
+
Part of [Navigation](../families/navigation.md).
|
|
4
|
+
|
|
5
|
+
`nw-link` styles an inline link: primary ink, an underline that brightens on hover.
|
|
6
|
+
|
|
7
|
+
```html
|
|
8
|
+
<p>
|
|
9
|
+
A <a class="nw-link" href="#nw-link">primary link</a>, a <a class="nw-link nw-link-secondary" href="#nw-link">secondary link</a>,
|
|
10
|
+
a <a class="nw-link nw-link-subtle" href="#nw-link">subtle link</a>, a <a class="nw-link nw-link-quiet" href="#nw-link">quiet link</a>,
|
|
11
|
+
an <a class="nw-link nw-link-external" href="#nw-link">external link</a>, an
|
|
12
|
+
<a class="nw-link nw-link-inherit" href="#nw-link">inherited-ink link</a>, a
|
|
13
|
+
<a class="nw-link" href="#nw-link"><svg class="nw-link-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M10 14L21 3M15 3h6v6M21 14v5a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5"/></svg>link with an icon</a>
|
|
14
|
+
and a <a class="nw-link" href="#nw-link" aria-disabled="true">disabled link</a>.
|
|
15
|
+
</p>
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
| Class | Effect |
|
|
19
|
+
| -------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
|
|
20
|
+
| `nw-link` | Primary ink with a brightening underline. |
|
|
21
|
+
| `nw-link-primary` ... `-danger` | Intent inks. |
|
|
22
|
+
| `nw-link-subtle` | Muted until hovered. |
|
|
23
|
+
| `nw-link-quiet` | Colored, underlined on hover only. |
|
|
24
|
+
| `nw-link-inherit` | The surrounding ink, for links inside headings and labels. |
|
|
25
|
+
| `nw-link-external` | Appends an arrow glyph; put your own `<svg class="nw-link-icon">` inside for a custom icon. |
|
|
26
|
+
| `nw-link-glow` | The text blooms in its ink on hover and focus. |
|
|
27
|
+
| `nw-link-xs`, `-sm`, `-md`, `-lg` | Type sizes, for a link that stands alone; an inline link inherits its paragraph. |
|
|
28
|
+
| `nw-link-disabled`, `[aria-disabled="true"]` | Dimmed, no pointer events. Also remove `href` or handle the click so keyboard users cannot follow it. |
|
|
29
|
+
|
|
30
|
+
## Navigation links
|
|
31
|
+
|
|
32
|
+
`nw-link-nav` turns a link into a navigation item: no underline, current page in the intent ink. `[aria-current]` (`page` or `true`) and `nw-link-active` mark it.
|
|
33
|
+
|
|
34
|
+
```html
|
|
35
|
+
<nav class="nw-cluster" aria-label="Sections">
|
|
36
|
+
<a class="nw-link nw-link-nav" href="#navigation-links" aria-current="page">Overview</a>
|
|
37
|
+
<a class="nw-link nw-link-nav" href="#navigation-links">Relays</a>
|
|
38
|
+
<a class="nw-link nw-link-nav nw-link-active" href="#navigation-links">Active class</a>
|
|
39
|
+
<a class="nw-link nw-link-nav" href="#navigation-links">Settings</a>
|
|
40
|
+
</nav>
|
|
41
|
+
```
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# .nw-list
|
|
2
|
+
|
|
3
|
+
Part of [Data display](../families/data-display.md).
|
|
4
|
+
|
|
5
|
+
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. A bare `<li>` is a plain wrapper; an `<li>` that is itself the item keeps the row layout.
|
|
6
|
+
|
|
7
|
+
```html
|
|
8
|
+
<ul class="nw-list nw-list-divided">
|
|
9
|
+
<li class="nw-list-item">
|
|
10
|
+
<span class="nw-list-item-icon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="12" cy="12" r="9"/><path d="M12 8v4l3 2"/></svg></span>
|
|
11
|
+
<span class="nw-list-item-content">
|
|
12
|
+
<span class="nw-list-item-title">hel-01</span>
|
|
13
|
+
<span class="nw-list-item-description">Helsinki edge, 12 ms from the core.</span>
|
|
14
|
+
</span>
|
|
15
|
+
<span class="nw-list-item-meta">eu-north</span>
|
|
16
|
+
<span class="nw-list-item-end"><span class="nw-badge nw-badge-sm nw-badge-soft nw-badge-success">Online</span></span>
|
|
17
|
+
</li>
|
|
18
|
+
<li><a class="nw-list-item" href="#nw-list">
|
|
19
|
+
<span class="nw-list-item-media"><span class="nw-skeleton nw-skeleton-circle" style="--_size: 2.5rem"></span></span>
|
|
20
|
+
<span class="nw-list-item-content">
|
|
21
|
+
<span class="nw-list-item-title">ams-03 (interactive row)</span>
|
|
22
|
+
<span class="nw-list-item-description">Hover raises it; focus draws the ring.</span>
|
|
23
|
+
</span>
|
|
24
|
+
<span class="nw-list-item-end"><kbd class="nw-kbd nw-kbd-sm">→</kbd></span>
|
|
25
|
+
</a></li>
|
|
26
|
+
<li class="nw-list-item" aria-selected="true">
|
|
27
|
+
<span class="nw-list-item-content">
|
|
28
|
+
<span class="nw-list-item-title">fra-02 (selected)</span>
|
|
29
|
+
<span class="nw-list-item-description">The selected row carries the intent ink.</span>
|
|
30
|
+
</span>
|
|
31
|
+
</li>
|
|
32
|
+
</ul>
|
|
33
|
+
<ul class="nw-list nw-list-bullet">
|
|
34
|
+
<li>First relay</li>
|
|
35
|
+
<li>Second relay</li>
|
|
36
|
+
</ul>
|
|
37
|
+
<ol class="nw-list nw-list-ordered">
|
|
38
|
+
<li>Connect</li>
|
|
39
|
+
<li>Check route</li>
|
|
40
|
+
<li>Go live</li>
|
|
41
|
+
</ol>
|
|
42
|
+
<ul class="nw-list nw-list-check">
|
|
43
|
+
<li>Firmware flashed</li>
|
|
44
|
+
<li>Keys rotated</li>
|
|
45
|
+
</ul>
|
|
46
|
+
<ul class="nw-list nw-list-inline nw-list-sm">
|
|
47
|
+
<li>eu-north</li><li>eu-west</li><li>us-east</li>
|
|
48
|
+
</ul>
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
| Class / selector | Effect |
|
|
52
|
+
| ----------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
|
|
53
|
+
| `nw-list` | A column of rows. |
|
|
54
|
+
| `nw-list-item` | A row: icon, media, content, meta and end slots. |
|
|
55
|
+
| `nw-list-item-icon`, `-media` | Leading slots; mark icons `aria-hidden`. |
|
|
56
|
+
| `nw-list-item-content`, `-title`, `-description` | The text column and its lines. |
|
|
57
|
+
| `nw-list-item-meta`, `-end` | Trailing slots; the end slot aligns after the meta. |
|
|
58
|
+
| `nw-list-divided` | A hairline between rows. |
|
|
59
|
+
| `nw-list-bordered` | A panel with hairlines inside. |
|
|
60
|
+
| `nw-list-interactive` | Rows are pointer surfaces: hover, active and focus states. Also automatic on `<a>`/`<button>` rows. |
|
|
61
|
+
| `nw-list-bullet`, `nw-list-ordered` | Markers in the intent ink. |
|
|
62
|
+
| `nw-list-check` | A check glyph as the marker. |
|
|
63
|
+
| `nw-list-inline` | Items flow in a row. |
|
|
64
|
+
| `nw-list-xs` ... `-lg` | Row sizes. |
|
|
65
|
+
| `nw-list-primary` ... `-danger` | The marker ink, and the selected row's ink. |
|
|
66
|
+
| `[aria-current]`, `[aria-selected="true"]`, `nw-list-item-active` | The selected row. |
|
|
67
|
+
| `[aria-disabled="true"]`, `:disabled` | Muted row. |
|