Skip to content

Theme reference

@nyxwire/tailwind maps its theme with @theme inline, so every utility below compiles to a var(--nw-*) reference. A flavor or accent change restyles the page at runtime; nothing is recompiled. Tailwind’s breakpoints, its larger radius and shadow steps and its other defaults stay as they are.

Two families of color keys. Semantic keys have no prefix and follow the nearest flavor scope; use them for components. Raw palette keys always carry the nw- prefix; use them when you mean one specific color. The chips resolve in the flavor you picked in the header.

Surfaces

  • canvas
  • canvas-subtle
  • canvas-sunken
  • panel
  • panel-hover
  • panel-active

Foreground

  • fg
  • fg-muted
  • fg-subtle
  • fg-faint
  • fg-disabled

Lines

  • line
  • line-strong
  • line-bright

Intents

  • primary
  • on-primary
  • primary-soft
  • secondary
  • on-secondary
  • secondary-soft
  • tertiary
  • on-tertiary
  • tertiary-soft
  • info
  • on-info
  • info-soft
  • success
  • on-success
  • success-soft
  • warning
  • on-warning
  • warning-soft
  • danger
  • on-danger
  • danger-soft

Other

  • ring
  • link
  • selection
  • shadow-ink
  • backdrop
  • glass

Raw neutrals

  • nw-crust
  • nw-mantle
  • nw-base
  • nw-surface0
  • nw-surface1
  • nw-surface2
  • nw-overlay0
  • nw-overlay1
  • nw-overlay2
  • nw-subtext0
  • nw-subtext1
  • nw-text

Raw accents

  • nw-indigo
  • nw-iris
  • nw-flux
  • nw-synth
  • nw-alarm
  • nw-flare
  • nw-volt
  • nw-matrix
  • nw-circuit
  • nw-ice
  • nw-arc
  • nw-steel

Every key works with all of Tailwind’s color utilities: bg-*, text-*, border-*, ring-*, outline-*, fill-*, stroke-*, decoration-*, caret-* and the rest.

<div class="rounded-lg border border-line bg-panel text-fg">
<p class="text-fg-muted">Relay 07</p>
<span class="text-nw-matrix">online</span>
<span class="bg-warning-soft text-warning">degraded</span>
</div>

Every intent has its pair and its soft tint: bg-danger text-on-danger for a solid fill, bg-danger-soft text-danger for a quiet one. on-* is crust on the dark flavors and base on Lumen. Opacity modifiers mix the variable, so they follow the flavor too: bg-primary/20 compiles to color-mix(in oklab, var(--nw-primary) 20%, transparent).

Utility Token Family
font-display --nw-font-display Space Grotesk Variable
font-sans --nw-font-sans Inter Variable
font-mono --nw-font-mono Martian Mono Variable

font-display: The grid wakes at midnight

font-sans: Body copy, labels and controls.

font-mono: relay 07 · latency 18ms · uplink ok

@import '@nyxwire/tailwind' also loads the bundled font files; @nyxwire/tailwind/theme.css maps the families without loading them.

text-2xs through text-7xl map to --nw-text-2xs through --nw-text-7xl. From text-xl up, each step also sets the Nyxwire leading (snug for xl and 2xl, tight above); smaller steps inherit the leading of their context. leading-{none,tight,snug,normal,relaxed} and tracking-{tighter,tight,normal,wide,wider,widest} map to the matching --nw-leading-* and --nw-tracking-* tokens.

text-2xs · status strips

text-sm · controls and table cells

text-base · body copy

text-2xl · section title

text-4xl · hero

Tailwind’s spacing multiplier is var(--nw-space-1) (0.25rem), so p-4, gap-1.5, mt-8 and every other spacing utility land on the Nyxwire 4px grid. Tokens without a Tailwind scale of the same name stay reachable with arbitrary values: h-(--nw-control-md), z-(--nw-z-modal), [--nw-cut:1rem].

Utility Token Value
rounded-xs --nw-radius-xs 2px
rounded-sm --nw-radius-sm 4px
rounded-md --nw-radius-md 8px
rounded-lg --nw-radius-lg 12px
rounded-xl --nw-radius-xl 16px
rounded-2xl --nw-radius-2xl 24px
rounded-full --nw-radius-full 9999px

Directional forms (rounded-t-lg, rounded-s-md, …) use the same values.

rounded-xs
rounded-sm
rounded-md
rounded-lg
rounded-xl
rounded-2xl
Utility Token Use
shadow-sm --nw-shadow-sm Cards
shadow-md --nw-shadow-md Toasts, HUD panels
shadow-lg --nw-shadow-lg Menus, popovers, dialogs
shadow-glow-sm --nw-glow-sm The neon glow as a plain shadow
shadow-glow-md --nw-glow-md
shadow-glow-lg --nw-glow-lg
shadow-glow-wire --nw-glow-wire Primary-to-secondary bloom
text-shadow-glow --nw-glow-text Text glow as a plain text shadow

shadow-sm

shadow-md

shadow-lg

shadow-glow-md

Shadows are drawn in --nw-shadow-ink and are stronger on the dark flavors than on Lumen. The glow-* motif utilities, which also handle cut corners, are on Utilities & variants.

blur-sm, blur-md and blur-lg (and their backdrop-blur-* forms) map to --nw-blur-sm (4px), --nw-blur-md (12px) and --nw-blur-lg (24px). The glass utility uses --nw-blur-md.

Utility Token Curve Use
ease-standard --nw-ease-standard cubic-bezier(0.2, 0, 0, 1) Hover and state changes
ease-out --nw-ease-out cubic-bezier(0.16, 1, 0.3, 1) Entrances
ease-in --nw-ease-in cubic-bezier(0.7, 0, 0.84, 0) Exits
ease-in-out --nw-ease-in-out cubic-bezier(0.65, 0, 0.35, 1) Moves across the screen
ease-back --nw-ease-back cubic-bezier(0.34, 1.56, 0.64, 1) Small overshoot

ease-out, ease-in and ease-in-out replace Tailwind’s curves of the same name. A bare transition uses --nw-duration-fast (140ms) and --nw-ease-standard; pair the easings with Tailwind’s duration-* utilities for anything else.

Each utility runs a keyframe of the same name with an nw- prefix, defined in @nyxwire/css/base.css. Entrances and exits run once with the motion tokens; the decorative ones loop.

Utility Timing Notes
animate-fade-in, animate-zoom-in 220ms, ease-out, once Entrances
animate-fade-out, animate-zoom-out 140ms, ease-in, once Exits
animate-slide-in-from-{top,bottom,left,right} 220ms, ease-out, once Moves --nw-slide-distance (0.5rem) while fading in
animate-slide-out-to-{top,bottom,left,right} 140ms, ease-in, once Moves --nw-slide-distance while fading out
animate-glitch 480ms, stepped, once One glitch burst
animate-glow-pulse 2s loop The glow breathes
animate-pulse 2s loop Opacity pulse
animate-spin 1s linear loop Spinners
animate-shimmer 2s linear loop Slides an oversized background image

Under prefers-reduced-motion: reduce, the imported base collapses decorative animations, variant forms included, to one near-instant iteration. Live examples are on Utilities & variants.

Variant Matches
abyss:, nocturne:, twilight:, lumen: the matching [data-flavor] on the element or an ancestor
dark: data-flavor of abyss, nocturne or twilight on the element or an ancestor
light: data-flavor="lumen" on the element or an ancestor

dark: follows the data-flavor attribute, not prefers-color-scheme. See Utilities & variants for how the variants behave in nested scopes.