Relay hel-01
Helsinki edge node, 12 ms from the core.
Traffic is balanced across three uplinks. The next maintenance window opens at 02:00 UTC.
@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.
/* Everything: tokens, fonts, base styles, components, utilities */@import '@nyxwire/css';/* Or pick entry points, after declaring the layer order */@layer theme, base, components, utilities;@import '@nyxwire/css/tokens.css';@import '@nyxwire/css/fonts.css';@import '@nyxwire/css/base.css';@import '@nyxwire/css/components.css';@import '@nyxwire/css/utilities.css';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/*.
A component has one base class plus modifiers that each set one axis:
<button class="nw-btn nw-btn-outline nw-btn-danger nw-btn-sm">Abort</button>-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.-solid, -soft, -outline, -ghost, and -link on buttons) picks how the color is applied. Not every component has every variant; each page lists them.-xs, -sm, -md, -lg, plus -xl where a component needs it) sets height, padding and type.-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.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.
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.
<div class="nw-cluster"> <button type="button" class="nw-btn">Solid</button> <button type="button" class="nw-btn nw-btn-soft">Soft</button> <button type="button" class="nw-btn nw-btn-outline">Outline</button> <button type="button" class="nw-btn nw-btn-ghost">Ghost</button> <button type="button" class="nw-btn nw-btn-link">Link</button></div><div class="nw-cluster"> <button type="button" class="nw-btn nw-btn-secondary">Secondary</button> <button type="button" class="nw-btn nw-btn-tertiary">Tertiary</button> <button type="button" class="nw-btn nw-btn-neutral">Neutral</button> <button type="button" class="nw-btn nw-btn-success">Success</button> <button type="button" class="nw-btn nw-btn-danger">Danger</button></div><div class="nw-cluster"> <button type="button" class="nw-btn nw-btn-cut nw-btn-glow">Cut and glow</button> <button type="button" class="nw-btn nw-btn-wire nw-btn-ghost">Wire edge</button> <button type="button" class="nw-btn nw-btn-soft nw-btn-sm" aria-busy="true"><span>Syncing</span></button> <button type="button" class="nw-btn nw-btn-outline nw-btn-sm" disabled>Disabled</button></div>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.
<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-soft 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> <span class="nw-badge nw-badge-danger nw-badge-count">3</span></div><div class="nw-cluster"> <span class="nw-badge nw-badge-soft" data-accent="indigo">indigo</span> <span class="nw-badge nw-badge-soft" data-accent="iris">iris</span> <span class="nw-badge nw-badge-soft" data-accent="flux">flux</span> <span class="nw-badge nw-badge-soft" data-accent="synth">synth</span> <span class="nw-badge nw-badge-soft" data-accent="alarm">alarm</span> <span class="nw-badge nw-badge-soft" data-accent="flare">flare</span> <span class="nw-badge nw-badge-soft" data-accent="volt">volt</span> <span class="nw-badge nw-badge-soft" data-accent="matrix">matrix</span> <span class="nw-badge nw-badge-soft" data-accent="circuit">circuit</span> <span class="nw-badge nw-badge-soft" data-accent="ice">ice</span> <span class="nw-badge nw-badge-soft" data-accent="arc">arc</span> <span class="nw-badge nw-badge-soft" data-accent="steel">steel</span></div>Helsinki edge node, 12 ms from the core.
Traffic is balanced across three uplinks. The next maintenance window opens at 02:00 UTC.
The whole card is the link. Hover raises the fill; the chamfer and the gradient edge are opt-in.
<article class="nw-card"> <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">Traffic is balanced across three uplinks. The next maintenance window opens at 02:00 UTC.</p> <footer class="nw-card-footer"> <button type="button" class="nw-btn nw-btn-sm">Open console</button> <button type="button" class="nw-btn nw-btn-sm nw-btn-ghost nw-btn-neutral">Details</button> </footer></article><a class="nw-card nw-card-interactive nw-card-cut nw-card-wire" href="#cards"> <h3 class="nw-card-title">Interactive, cut and wired</h3> <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></a>| Group | Classes |
|---|---|
| Typography | nw-display, nw-h1 to nw-h6, nw-lead, nw-eyebrow, nw-mono, nw-prose, nw-text-* |
| Actions | nw-btn, nw-btn-group, nw-btn-icon, nw-btn-block, nw-btn-cut, nw-btn-wire, nw-btn-glow |
| Forms | nw-field, nw-label, nw-input, nw-select, nw-input-group, nw-checkbox, nw-radio, nw-switch, nw-slider, nw-chip |
| Surfaces and Overlays | nw-card, nw-hud, nw-accordion, nw-dialog, nw-popover, nw-menu, nw-tooltip, nw-toast |
| Feedback | nw-alert, nw-badge, nw-progress, nw-meter, nw-stat, nw-spinner, nw-skeleton, nw-empty |
| Navigation | nw-tabs, nw-breadcrumbs, nw-pagination, nw-link, nw-navbar, nw-sidenav, nw-steps |
| Data display | nw-table, nw-list, nw-dl, nw-kbd, nw-hotkey, nw-code, nw-pre, nw-avatar, nw-divider |
| Layout | 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 |
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.