Feedback
.nw-alert
Section titled “.nw-alert”An alert is a message with one intent. It is solid by default, the loud variant; soft suits inline form and panel messages and outline a quiet one. There is no side stripe: the intent reads from the fill, the icon and the title. Actions wrap under the content on a narrow screen instead of squeezing the text.
Maintenance window
Relays in eu-north restart at 02:00 UTC. Read the plan.
Deployed
Build 412 is live on every relay.
Outline, small, no icon
Uplink lost
Traffic moved to ams-03. Retrying in 5 seconds.
<div class="nw-alert nw-alert-info" role="status"> <svg class="nw-alert-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 11v5M12 8h.01"/></svg> <div class="nw-alert-content"> <p class="nw-alert-title">Maintenance window</p> <p class="nw-alert-description">Relays in eu-north restart at 02:00 UTC. <a href="#nw-alert">Read the plan</a>.</p> </div> <div class="nw-alert-actions"> <button type="button" class="nw-btn nw-btn-sm nw-btn-outline">Remind me</button> </div></div><div class="nw-alert nw-alert-soft nw-alert-success" role="status"> <svg class="nw-alert-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M5 13l4 4L19 7"/></svg> <div class="nw-alert-content"> <p class="nw-alert-title">Deployed</p> <p class="nw-alert-description">Build 412 is live on every relay.</p> </div></div><div class="nw-alert nw-alert-outline nw-alert-warning nw-alert-sm" role="status"> <div class="nw-alert-content"><p class="nw-alert-title">Outline, small, no icon</p></div></div><div class="nw-alert nw-alert-danger nw-alert-lg" role="alert"> <svg class="nw-alert-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="M12 3 2 21h20L12 3z"/><path d="M12 10v4M12 17h.01"/></svg> <div class="nw-alert-content"> <p class="nw-alert-title">Uplink lost</p> <p class="nw-alert-description">Traffic moved to ams-03. Retrying in 5 seconds.</p> </div> <div class="nw-alert-actions"> <button type="button" class="nw-btn nw-btn-sm nw-btn-ghost">Dismiss</button> <button type="button" class="nw-btn nw-btn-sm nw-btn-outline">Retry now</button> </div></div>| Class | Effect |
|---|---|
nw-alert |
The message box. Solid, primary and medium by default. |
nw-alert-solid, -soft, -outline |
Full intent fill with the on-accent ink, a tinted wash, or a hairline only. |
nw-alert-primary … -danger |
The intent. |
nw-alert-sm, -md, -lg |
Padding and type. |
nw-alert-icon |
Leading icon, centered on the first line of the title. Mark it aria-hidden. |
nw-alert-content |
The text column. |
nw-alert-title, nw-alert-description |
Title and body; links in the description inherit the alert’s ink. |
nw-alert-actions |
Action buttons. On a solid alert, ghost, link and outline buttons switch to the on-intent ink to stay readable. |
Use role="alert" for something that just happened and needs attention now, and role="status" for a passive change. A static notice that is on the page from the start needs neither.
.nw-badge
Section titled “.nw-badge”A badge is a short status label, not an action. It is solid by default; soft and outline suit dense lists.
<div class="nw-cluster"> <span class="nw-badge">Solid</span> <span class="nw-badge nw-badge-soft">Soft</span> <span class="nw-badge nw-badge-outline">Outline</span> <span class="nw-badge nw-badge-round nw-badge-secondary">Round</span> <span class="nw-badge nw-badge-count nw-badge-danger">7</span></div><div class="nw-cluster"> <span class="nw-badge nw-badge-soft nw-badge-primary">Primary</span> <span class="nw-badge nw-badge-soft nw-badge-secondary">Secondary</span> <span class="nw-badge nw-badge-soft nw-badge-tertiary">Tertiary</span> <span class="nw-badge nw-badge-soft nw-badge-neutral">Neutral</span> <span class="nw-badge nw-badge-soft nw-badge-info">Info</span> <span class="nw-badge nw-badge-soft nw-badge-success">Success</span> <span class="nw-badge nw-badge-soft nw-badge-warning">Warning</span> <span class="nw-badge nw-badge-soft nw-badge-danger">Danger</span></div><div class="nw-cluster"> <span class="nw-badge nw-badge-xs">xs</span> <span class="nw-badge nw-badge-sm">sm</span> <span class="nw-badge nw-badge-md">md</span> <span class="nw-badge nw-badge-lg">lg</span> <span class="nw-badge nw-badge-outline nw-badge-success nw-badge-dot">Online</span> <span class="nw-badge nw-badge-soft nw-badge-warning nw-badge-dot nw-badge-pulse">Rerouting</span> <a class="nw-badge nw-badge-soft nw-badge-info" href="#nw-badge">Link badge</a> <button type="button" class="nw-badge nw-badge-outline" disabled>Disabled</button></div>Accents
Section titled “Accents”The badge intents cover the semantic roles. For any of the twelve palette accents, scope data-accent on the badge (or on a parent) and keep the primary intent:
<div class="nw-cluster"> <span class="nw-badge" data-accent="flux">flux</span> <span class="nw-badge" data-accent="flare">flare</span> <span class="nw-badge" data-accent="circuit">circuit</span> <span class="nw-badge nw-badge-soft" data-accent="iris">iris</span> <span class="nw-badge nw-badge-soft" data-accent="steel">steel</span> <span class="nw-badge nw-badge-outline" data-accent="volt">volt</span></div>Modifiers
Section titled “Modifiers”| Class / selector | Effect |
|---|---|
nw-badge |
The label. Solid, primary and medium by default. |
nw-badge-solid, -soft, -outline |
Variants. |
nw-badge-primary … -danger |
Intents. |
nw-badge-xs, -sm, -md, -lg |
Sizes. |
nw-badge-round |
Fully rounded pill. |
nw-badge-count |
A single digit or letter: square padding keeps the pill a circle; tabular numerals. |
nw-badge-dot |
A leading status dot. In forced colors the dot gets a real border. |
nw-badge-pulse |
Pulses the dot, only while the status is changing. |
a.nw-badge, button.nw-badge |
Interactive badge with hover, focus and disabled states. |
.nw-progress
Section titled “.nw-progress”Progress is task completion toward a known total, or an indeterminate busy bar. It styles the native <progress>, which carries its semantics on its own, or a role="progressbar" div whose fill reads --nw-progress (a 0 to 1 fraction).
<div class="nw-stack"> <div> <div class="nw-progress-row"><span id="pr-upload">Upload</span><span class="nw-progress-value">64%</span></div> <progress class="nw-progress" value="64" max="100" aria-labelledby="pr-upload"></progress> </div> <progress class="nw-progress nw-progress-xs nw-progress-success" value="90" max="100" aria-label="Extra small, success"></progress> <progress class="nw-progress nw-progress-lg nw-progress-striped nw-progress-secondary" value="45" max="100" aria-label="Large, striped, secondary"></progress> <progress class="nw-progress nw-progress-pill nw-progress-glow nw-progress-tertiary" value="70" max="100" aria-label="Pill with glow"></progress> <progress class="nw-progress nw-progress-md nw-progress-cut nw-progress-warning" value="30" max="100" aria-label="Cut ends"></progress> <progress class="nw-progress nw-progress-sm nw-motion-essential" aria-label="Indeterminate"></progress> <div class="nw-progress nw-progress-sm nw-progress-info" role="progressbar" aria-label="Div version" aria-valuenow="52" aria-valuemin="0" aria-valuemax="100" style="--nw-progress: 0.52"><div class="nw-progress-fill"></div></div> <div class="nw-progress nw-progress-sm nw-progress-indeterminate" role="progressbar" aria-label="Div, indeterminate"><div class="nw-progress-fill"></div></div></div>| Class / selector | Effect |
|---|---|
nw-progress |
The track. On a <progress>, the value comes from the element; on a div, from --nw-progress. |
nw-progress-fill |
The fill element of the div version. |
nw-progress-row, nw-progress-value |
A label and value line above the track. |
nw-progress-xs, -sm, -md, -lg |
Track heights. |
nw-progress-primary … -danger |
Fill intent. |
nw-progress-striped, -pill, -cut, -glow |
Diagonal stripes, rounded ends, chamfered ends proportional to the track, and a bloom on the fill. |
:indeterminate, nw-progress-indeterminate, [data-state="indeterminate"] |
A 40% fill sweeping the track. Omit value on the native element. |
nw-motion-essential |
Keeps the sweep under reduced motion; without it the bar shows a static busy state. |
.nw-meter and .nw-stat
Section titled “.nw-meter and .nw-stat”A meter is a scalar value inside a known range, such as load, capacity or signal: not task progress. On the native <meter> the browser picks the level from low, high and optimum, and the levels paint success (or the chosen intent), warning and danger. The div version reads --nw-meter and takes the intent color, so switch to nw-meter-warning or nw-meter-danger at your own thresholds.
<div class="nw-stack"> <div> <div class="nw-meter-row"><span id="mt-mem">Memory</span><span class="nw-meter-value">82%</span></div> <meter class="nw-meter" min="0" max="100" low="30" high="75" optimum="20" value="82" aria-labelledby="mt-mem"></meter> </div> <meter class="nw-meter nw-meter-sm" min="0" max="100" low="30" high="75" optimum="20" value="50" aria-label="Disk, suboptimum"></meter> <meter class="nw-meter nw-meter-sm" min="0" max="100" low="30" high="75" optimum="20" value="18" aria-label="CPU, optimum"></meter> <div class="nw-meter nw-meter-segmented nw-meter-tertiary" role="meter" aria-label="Signal" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="--nw-meter: 0.6"><div class="nw-meter-fill"></div></div> <div class="nw-meter nw-meter-pill nw-meter-glow" role="meter" aria-label="Capacity" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="--nw-meter: 0.4"><div class="nw-meter-fill"></div></div> <div class="nw-meter nw-meter-critical" role="meter" aria-label="Temperature, critical" aria-valuenow="96" aria-valuemin="0" aria-valuemax="100" style="--nw-meter: 0.96"><div class="nw-meter-fill"></div></div></div><div class="nw-cluster nw-cluster-top"> <div class="nw-meter nw-meter-vertical nw-meter-success" role="meter" aria-label="Left channel" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100" style="--nw-meter: 0.7"><div class="nw-meter-fill"></div></div> <div class="nw-meter nw-meter-vertical nw-meter-warning" role="meter" aria-label="Right channel" aria-valuenow="85" aria-valuemin="0" aria-valuemax="100" style="--nw-meter: 0.85"><div class="nw-meter-fill"></div></div></div>| Class / selector | Effect |
|---|---|
nw-meter |
The track: on <meter>, or on a role="meter" div with --nw-meter as a 0 to 1 fraction. |
nw-meter-fill, nw-meter-row, nw-meter-value |
The div fill and the label line. |
nw-meter-xs, -sm, -md, -lg |
Track heights. |
nw-meter-primary … -danger |
The optimum level’s intent on a native meter; the fill intent on a div. |
nw-meter-segmented |
Splits the track into cells. |
nw-meter-vertical |
A vertical bar that fills upward. |
nw-meter-pill, nw-meter-glow |
Rounded ends and a bloom on the fill. |
nw-meter-critical |
Pulses the danger fill. Stops under reduced motion unless the meter has nw-motion-essential. |
A stat is one number someone acts on, with its label, trend and context. The value is set in Space Grotesk with tabular numerals; a <small> inside it holds the unit.
<div class="nw-stat-group"> <div class="nw-stat nw-stat-boxed nw-stat-primary"> <span class="nw-stat-icon" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><path d="M3 12h4l3-8 4 16 3-8h4"/></svg></span> <span class="nw-stat-label">Throughput</span> <span class="nw-stat-value">12.4<small>k/s</small></span> <span class="nw-stat-delta nw-stat-delta-up">+8.2%</span> <span class="nw-stat-description">against the previous hour</span> </div> <div class="nw-stat nw-stat-boxed nw-stat-cut nw-stat-glow nw-stat-secondary"> <span class="nw-stat-label">Latency</span> <span class="nw-stat-value">38<small>ms</small></span> <span class="nw-stat-delta nw-stat-delta-down">+4 ms</span> </div> <div class="nw-stat nw-stat-wire nw-stat-sm"> <span class="nw-stat-label">Relays</span> <span class="nw-stat-value">146</span> <span class="nw-stat-delta">no change</span> </div></div><div class="nw-stat-group nw-stat-group-divided"> <div class="nw-stat nw-stat-lg"><span class="nw-stat-label">Uptime</span><span class="nw-stat-value">99.98<small>%</small></span></div> <div class="nw-stat nw-stat-lg nw-stat-danger"><span class="nw-stat-label">Errors</span><span class="nw-stat-value">3</span></div></div>| Class | Effect |
|---|---|
nw-stat |
The column of parts. |
nw-stat-label |
The metric name. |
nw-stat-value |
The number; <small> for the unit. |
nw-stat-delta |
The change, in neutral text. |
nw-stat-delta-up, nw-stat-delta-down |
An up arrow in success, a down arrow in danger. Pick by meaning: a latency rise is bad. |
nw-stat-description |
Context such as the comparison period. |
nw-stat-icon |
A leading icon in the intent ink. |
nw-stat-sm, -md, -lg |
Value sizes. |
nw-stat-primary … -danger |
Value and icon ink. |
nw-stat-boxed, -wire, -cut |
A panel around the stat, the gradient edge, and a chamfered panel. |
nw-stat-glow |
The value blooms in its ink. |
nw-stat-group, nw-stat-group-divided |
A wrapping row of stats, with hairlines instead of boxes in the divided version. |
.nw-spinner
Section titled “.nw-spinner”A spinner shows pending work with no measurable total: a ring by default, dots or bars as variants. Rotation is meaningful motion, so put nw-motion-essential on a spinner that reports real pending work; without it the ring freezes as a static arc under reduced motion.
Refreshing relay list...
<div class="nw-cluster"> <span class="nw-spinner nw-spinner-xs nw-motion-essential" role="status" aria-label="Loading"></span> <span class="nw-spinner nw-spinner-sm nw-spinner-secondary nw-motion-essential" role="status" aria-label="Loading"></span> <span class="nw-spinner nw-motion-essential" role="status" aria-label="Loading"></span> <span class="nw-spinner nw-spinner-lg nw-spinner-tertiary nw-motion-essential" role="status" aria-label="Loading"></span> <span class="nw-spinner nw-spinner-xl nw-spinner-success nw-motion-essential" role="status" aria-label="Loading"></span> <span class="nw-spinner nw-spinner-dots nw-motion-essential" role="status" aria-label="Loading"><i></i><i></i><i></i></span> <span class="nw-spinner nw-spinner-bars nw-spinner-warning nw-motion-essential" role="status" aria-label="Loading"><i></i><i></i><i></i><i></i></span></div><div class="nw-card" style="position: relative; min-block-size: 6rem" aria-busy="true"> <p class="nw-card-description">Refreshing relay list...</p> <div class="nw-spinner-overlay"><span class="nw-spinner nw-motion-essential" role="status" aria-label="Refreshing"></span></div></div>| Class | Effect |
|---|---|
nw-spinner |
The ring. Give it role="status" and an aria-label. |
nw-spinner-xs … nw-spinner-xl |
Sizes. |
nw-spinner-primary … -danger |
Arc intent. |
nw-spinner-dots, nw-spinner-bars |
Three bouncing dots, or four bars; put that many <i> children inside. |
nw-spinner-overlay |
Covers the nearest positioned ancestor while its content is busy. |
nw-motion-essential |
Keeps the spinner moving under prefers-reduced-motion: reduce. |
.nw-skeleton
Section titled “.nw-skeleton”A skeleton reserves the shape of content that has not arrived yet. Text lines stack, and the last line of a group is shorter so the block reads as a paragraph.
Inline: the relay is ms away.
<div class="nw-card" aria-busy="true" aria-label="Loading relay"> <div class="nw-cluster"> <span class="nw-skeleton nw-skeleton-circle" style="--_size: var(--nw-space-12)"></span> <div class="nw-stack nw-stack-sm" style="flex: 1"> <span class="nw-skeleton nw-skeleton-text"></span> <span class="nw-skeleton nw-skeleton-text"></span> </div> </div> <div class="nw-skeleton nw-skeleton-rect"></div></div><div class="nw-stack"> <div class="nw-skeleton nw-skeleton-rect nw-skeleton-cut nw-skeleton-neon"></div> <span class="nw-skeleton nw-skeleton-text nw-skeleton-pulse"></span> <span class="nw-skeleton nw-skeleton-text nw-skeleton-static nw-skeleton-secondary"></span> <p>Inline: the relay is <span class="nw-skeleton nw-skeleton-inline" style="--_w: 6ch"></span> ms away.</p></div>| Class / property | Effect |
|---|---|
nw-skeleton |
The placeholder block with a shimmer. |
nw-skeleton-text, -circle, -rect, -inline |
A text line, an avatar circle (--_size), a media block, or a placeholder inside a sentence. |
nw-skeleton-cut |
A chamfered placeholder for cut-corner cards. |
nw-skeleton-xs … -lg |
Default block heights. |
nw-skeleton-primary … -danger |
A tinted placeholder for intent-tinted panels. |
nw-skeleton-static, -pulse, -neon |
No shimmer, a fade of the whole block, or a primary-tinted sheen. |
--_w, --_h, --_size |
Override the width, the height, or the circle’s size. |
Under reduced motion every skeleton is a static block. Hide skeletons from assistive technology and mark the region that is loading with aria-busy="true".
.nw-empty
Section titled “.nw-empty”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.
No nodes connected
Add a node to start routing traffic.
No matches
Dashed, small, secondary icon.
Cut
A chamfered empty panel.
Nothing filtered
<div class="nw-empty nw-empty-bordered"> <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> <h3 class="nw-empty-title">No nodes connected</h3> <p class="nw-empty-description">Add a node to start routing traffic.</p> <div class="nw-empty-actions"> <button type="button" class="nw-btn nw-btn-sm">Add node</button> <button type="button" class="nw-btn nw-btn-sm nw-btn-ghost">Read the docs</button> </div></div><div class="nw-empty nw-empty-dashed nw-empty-sm nw-empty-secondary"> <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> <h3 class="nw-empty-title">No matches</h3> <p class="nw-empty-description">Dashed, small, secondary icon.</p></div><div class="nw-empty nw-empty-cut nw-empty-tertiary"> <h3 class="nw-empty-title">Cut</h3> <p class="nw-empty-description">A chamfered empty panel.</p></div><div class="nw-empty nw-empty-inline"> <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> <p class="nw-empty-title">Nothing filtered</p> <div class="nw-empty-actions"><button type="button" class="nw-btn nw-btn-xs nw-btn-ghost">Clear</button></div></div>| Class | Effect |
|---|---|
nw-empty |
A centered column of icon, title, description and actions. |
nw-empty-icon, -title, -description, -actions |
The parts. Mark the icon aria-hidden. |
nw-empty-sm, -md, -lg |
Padding and icon size. |
nw-empty-primary … -danger |
Icon tint. |
nw-empty-bordered, -dashed, -cut |
A panel border, a dashed border, or a chamfered panel. |
nw-empty-inline |
A compact row for a sidebar or a table footer. |