Relay hel-01
Helsinki edge node, 12 ms from the core.
Media escapes the padding but keeps the card's radius. The parts are optional: content can go straight into the card.
Surfaces group content. Each one is a single padded box with optional parts, and each takes the Nyxwire motifs as opt-in modifiers: -cut for chamfered corners, -wire for the gradient edge and -glow for a neon bloom.
A card is one padded surface with a grid gap, so content can go straight in without a body wrapper. Its parts are optional.
Helsinki edge node, 12 ms from the core.
Media escapes the padding but keeps the card's radius. The parts are optional: content can go straight into the card.
Tighter padding and gap, radius md.
Roomier padding and gap, radius xl.
<article class="nw-card"> <img class="nw-card-media" src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 120'%3E%3Cdefs%3E%3ClinearGradient id='g' 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='320' height='120' fill='url(%23g)'/%3E%3C/svg%3E" alt="" width="320" height="120" /> <header class="nw-card-header"> <h3 class="nw-card-title">Relay hel-01</h3> <p class="nw-card-description">Helsinki edge node, 12 ms from the core.</p> </header> <p class="nw-card-body">Media escapes the padding but keeps the card's radius. The parts are optional: content can go straight into the card.</p> <footer class="nw-card-footer nw-card-footer-divided nw-card-footer-end"> <button type="button" class="nw-btn nw-btn-sm nw-btn-ghost nw-btn-neutral">Details</button> <button type="button" class="nw-btn nw-btn-sm">Open console</button> </footer></article><article class="nw-card nw-card-sm"> <h3 class="nw-card-title">Small card</h3> <p class="nw-card-description">Tighter padding and gap, radius md.</p></article><article class="nw-card nw-card-lg"> <h3 class="nw-card-title">Large card</h3> <p class="nw-card-description">Roomier padding and gap, radius xl.</p></article>| Class | Effect |
|---|---|
nw-card |
The surface: panel fill, hairline, radius lg, a grid gap. Solid and medium by default. |
nw-card-header |
Groups the title and description. |
nw-card-title |
The title, in the display face; use a heading element. |
nw-card-description |
Supporting text in the muted ink. |
nw-card-body |
Optional content block. |
nw-card-footer |
An action row. |
nw-card-footer-end |
Aligns the footer’s actions to the end. |
nw-card-footer-divided |
A hairline above the footer. |
nw-card-media |
Full-bleed media: it escapes the padding as the first or last child, but never the radius or the chamfer. |
nw-card-sm, -md, -lg |
Padding 1rem, 1.5rem (default) and 2rem, with matching gap, radius and cut size. |
An intent class on a plain card changes nothing visible: the card stays neutral and spends the accent on its soft wash, its selection, its edge and its glow.
The panel fill (default).
A wash of the intent.
Transparent with a hairline.
No fill and no border.
<article class="nw-card nw-card-solid"><h3 class="nw-card-title">Solid</h3><p class="nw-card-description">The panel fill (default).</p></article><article class="nw-card nw-card-soft nw-card-secondary"><h3 class="nw-card-title">Soft secondary</h3><p class="nw-card-description">A wash of the intent.</p></article><article class="nw-card nw-card-outline"><h3 class="nw-card-title">Outline</h3><p class="nw-card-description">Transparent with a hairline.</p></article><article class="nw-card nw-card-ghost"><h3 class="nw-card-title">Ghost</h3><p class="nw-card-description">No fill and no border.</p></article>A link card: hover raises the fill, focus draws the ring.
aria-disabled="true" mutes it.
<a class="nw-card nw-card-interactive" href="#nw-card"> <h3 class="nw-card-title">Interactive</h3> <p class="nw-card-description">A link card: hover raises the fill, focus draws the ring.</p></a><button type="button" class="nw-card nw-card-interactive nw-card-success" aria-pressed="true"> <span class="nw-card-title">Selected (aria-pressed)</span> <span class="nw-card-description">A tonal wash and a 1px intent edge.</span></button><div class="nw-card nw-card-interactive" aria-disabled="true"> <h3 class="nw-card-title">Disabled</h3> <p class="nw-card-description">aria-disabled="true" mutes it.</p></div>| Class / selector | Effect |
|---|---|
nw-card-solid (default), -soft, -outline, -ghost |
The surface: panel fill, intent wash, hairline only, or nothing. |
nw-card-primary … -danger |
The accent of the soft wash, the selection, the edge and the glow. |
nw-card-interactive |
A pointer surface: hover raises the fill, :active presses, :focus-visible draws the ring. Use it on an <a> or <button>. |
nw-card-selected, [aria-selected="true"], [aria-pressed="true"], [aria-checked="true"], [data-state="on"] |
Selected: a tonal wash and a 1px intent edge. |
[aria-disabled="true"] |
Muted and not interactive. |
Chamfered top-right and bottom-left corners.
The indigo-to-synth gradient edge.
The glow follows the chamfer through a drop-shadow.
Hover or select it to light the tertiary edge.
<article class="nw-card nw-card-cut"> <h3 class="nw-card-title">Cut</h3> <p class="nw-card-description">Chamfered top-right and bottom-left corners.</p></article><article class="nw-card nw-card-wire"> <h3 class="nw-card-title">Wire</h3> <p class="nw-card-description">The indigo-to-synth gradient edge.</p></article><article class="nw-card nw-card-cut nw-card-wire nw-card-glow"> <h3 class="nw-card-title">Cut, wire and glow</h3> <p class="nw-card-description">The glow follows the chamfer through a drop-shadow.</p></article><a class="nw-card nw-card-cut nw-card-wire nw-card-interactive nw-card-tertiary" href="#nw-card"> <h3 class="nw-card-title">Interactive cut</h3> <p class="nw-card-description">Hover or select it to light the tertiary edge.</p></a>| Class | Effect |
|---|---|
nw-card-cut |
Chamfers the top-right and bottom-left corners; the cut size follows the card size. Composes with wire. |
nw-card-wire |
The gradient edge from primary to secondary. |
nw-card-glow |
A resting bloom in the intent color; on a cut card it is a drop-shadow that follows the chamfer. |
nw-card-wire-glow |
On a cut card, a bloom in the wire’s colors. |
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.
<section class="nw-hud" aria-labelledby="hud-uplink"> <header class="nw-hud-header"> <h3 class="nw-hud-title" id="hud-uplink">Uplink</h3> <span class="nw-hud-status">Nominal</span> <div class="nw-hud-actions"> <button type="button" class="nw-btn nw-btn-xs nw-btn-ghost nw-btn-neutral">Logs</button> </div> </header> <div class="nw-hud-body"> <div class="nw-progress-row"><span>Throughput</span><span class="nw-progress-value">72%</span></div> <progress class="nw-progress nw-progress-sm" value="72" max="100" aria-label="Throughput"></progress> </div> <footer class="nw-hud-footer">Updated 4 s ago</footer></section><section class="nw-hud nw-hud-cut nw-hud-scanlines nw-hud-secondary" aria-labelledby="hud-grid"> <header class="nw-hud-header"> <h3 class="nw-hud-title" id="hud-grid">Grid sector 7</h3> <span class="nw-hud-status">Scanning</span> </header> <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></section><section class="nw-hud nw-hud-wire nw-hud-solid nw-hud-sm" aria-labelledby="hud-core"> <header class="nw-hud-header"> <h3 class="nw-hud-title" id="hud-core">Core</h3> <span class="nw-hud-status">Solid, wired, small</span> </header> <div class="nw-hud-body">The sunken fill with the gradient wire edge.</div></section><section class="nw-hud nw-hud-danger nw-hud-alarm" role="status" aria-labelledby="hud-alarm"> <header class="nw-hud-header"> <h3 class="nw-hud-title" id="hud-alarm">Power bus</h3> <span class="nw-hud-status">Overload</span> </header> <div class="nw-hud-body">The alarm variant pulses the status marker, never the text.</div></section>| Class | Effect |
|---|---|
nw-hud |
The framed panel: panel fill, strong hairline, radius md, a small shadow. |
nw-hud-header |
The top row, ruled off from the body. Wraps on narrow screens. |
nw-hud-title |
The panel title in the display face; use a heading element. |
nw-hud-status |
A short status readout with a diamond marker, in an ink mixed from the intent and the foreground. |
nw-hud-actions |
Controls pushed to the end of the header. |
nw-hud-body |
The content, in small type. |
nw-hud-footer |
A ruled bottom row in the subtle ink, for timestamps and sources. |
nw-hud-primary … -danger |
Intent of the status ink and marker. |
nw-hud-xs, -sm, -md, -lg |
Padding 0.625rem, 0.75rem, 1rem (default) and 1.5rem. |
nw-hud-solid |
The sunken fill instead of the panel. |
nw-hud-wire |
The gradient wire edge. |
nw-hud-cut |
Cut corners. Only the paint is cut, so focus outlines and child popovers are not clipped. |
nw-hud-scanlines |
The scanline overlay behind the content, clipped to the chamfer on a cut panel. |
nw-hud-alarm |
Pulses the status marker, not the text. The pulse stops under reduced motion. |
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.
<a class="nw-hud nw-hud-interactive nw-hud-tertiary" href="#nw-hud"> <span class="nw-hud-header"><span class="nw-hud-title">Open node ams-03</span><span class="nw-hud-status">Online</span></span> <span class="nw-hud-body">The whole panel is a link: hover raises the fill, focus draws the ring.</span></a><div class="nw-hud nw-hud-interactive" aria-disabled="true"> <div class="nw-hud-header"><span class="nw-hud-title">Offline node</span><span class="nw-hud-status">Disabled</span></div> <div class="nw-hud-body">aria-disabled="true" mutes the ink, the edge and the status.</div></div>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.
An accordion is a stack of disclosure rows. On native <details> the browser does the toggling, keyboard and accessibility with no script. The chevron is drawn by the trigger’s ::after and turns when the row opens; an open title and its icon take the intent ink.
A relay forwards traffic between the edge and the core, and reports latency every second.
When a relay misses three heartbeats, its traffic moves to the nearest healthy relay.
Not available.
<div class="nw-accordion"> <details class="nw-accordion-item" open> <summary>What does a relay do? <span class="nw-accordion-meta">2 min</span></summary> <div class="nw-accordion-content"><p>A relay forwards traffic between the edge and the core, and reports latency every second.</p></div> </details> <details class="nw-accordion-item"> <summary>How is failover decided?</summary> <div class="nw-accordion-content"><p>When a relay misses three heartbeats, its traffic moves to the nearest healthy relay.</p></div> </details> <details class="nw-accordion-item" inert> <summary>Billing (disabled with inert)</summary> <div class="nw-accordion-content"><p>Not available.</p></div> </details></div>Every item sits in its own panel; the open title takes the intent ink.
Content.
No rules and no side padding, for dense sidebars.
Content.
<div class="nw-accordion nw-accordion-boxed nw-accordion-secondary"> <details class="nw-accordion-item" open> <summary>Boxed and secondary</summary> <div class="nw-accordion-content"><p>Every item sits in its own panel; the open title takes the intent ink.</p></div> </details> <details class="nw-accordion-item"> <summary>Second item</summary> <div class="nw-accordion-content"><p>Content.</p></div> </details></div><div class="nw-accordion nw-accordion-ghost nw-accordion-sm"> <details class="nw-accordion-item"> <summary>Ghost and small</summary> <div class="nw-accordion-content"><p>No rules and no side padding, for dense sidebars.</p></div> </details> <details class="nw-accordion-item"> <summary>Another item</summary> <div class="nw-accordion-content"><p>Content.</p></div> </details></div>Library markup (Reka UI, Radix) gets the same look from nw-accordion-trigger, aria-expanded and data-state:
A headless library sets aria-expanded and data-state; the classes are the same.
<div class="nw-accordion"> <div class="nw-accordion-item" data-state="open"> <h3 style="margin: 0"> <button type="button" class="nw-accordion-trigger" id="acc-t1" aria-expanded="true" aria-controls="acc-p1"> <span class="nw-accordion-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> Library markup, open </button> </h3> <div class="nw-accordion-content" id="acc-p1" role="region" aria-labelledby="acc-t1" data-state="open"><p>A headless library sets aria-expanded and data-state; the classes are the same.</p></div> </div> <div class="nw-accordion-item" data-state="closed"> <h3 style="margin: 0"> <button type="button" class="nw-accordion-trigger" aria-expanded="false" disabled>Disabled trigger</button> </h3> </div></div>| Class / selector | Effect |
|---|---|
nw-accordion |
The stack, with hairlines between items. |
nw-accordion-item |
One row: a <details>, or a wrapper with data-state="open" or "closed". |
summary, nw-accordion-trigger |
The trigger row, with the chevron at the end. |
nw-accordion-meta |
Trailing meta text in the trigger, before the chevron. |
nw-accordion-icon |
A leading icon in the trigger; it takes the intent ink when open. |
nw-accordion-content |
The panel. Library panels animate in and out with data-state. |
[open], [aria-expanded="true"], [data-state="open"] |
The open row. |
:disabled, [aria-disabled="true"], details[inert] |
A disabled row. |
nw-accordion-boxed |
Each item in its own panel. |
nw-accordion-ghost |
No rules and no side padding. |
nw-accordion-sm, -md, -lg |
Trigger and content sizes. |
nw-accordion-primary … -danger |
Ink of the open title and icon. |
To let only one row open at a time, give the <details> elements the same name attribute; browsers that support it close the others natively.