Skip to content

Accessibility

Nyxwire guarantees what a palette can guarantee: every color meant for text is readable on the backgrounds it is meant for, in every flavor. The rest (focus, keyboard, motion, layout) is built into the components and is yours to keep when you compose them.

pnpm check:contrast runs the palette gate and exits with an error on any failure, so a color that drops below its threshold cannot be released. The table recomputes the WCAG 2.x rules from the published palette when this site is built. Each cell shows the weakest pair the rule covers.

WCAG contrast gate: the weakest pair of every rule in every flavor
RuleMinimumAbyssNocturneTwilightLumen
text on crust, mantle, base, surface07.0:116.15 passtext on surface015.01 passtext on surface012.62 passtext on surface011.53 passtext on crust
text on surface1, surface24.5:112.72 passtext on surface211.36 passtext on surface29.20 passtext on surface210.12 passtext on surface2
subtext1 on crust, mantle, base, surface04.5:112.09 passsubtext1 on surface011.33 passsubtext1 on surface09.72 passsubtext1 on surface07.48 passsubtext1 on crust
subtext0 on crust, mantle, base4.5:19.21 passsubtext0 on base9.02 passsubtext0 on base8.04 passsubtext0 on base5.29 passsubtext0 on crust
overlay2 on base3.0:15.39 passoverlay2 on base5.65 passoverlay2 on base5.32 passoverlay2 on base4.65 passoverlay2 on base
overlay1 on base, mantle3.0:13.57 passoverlay1 on base3.73 passoverlay1 on base3.71 passoverlay1 on base3.12 passoverlay1 on mantle
overlay0 on base1.4:12.00 passoverlay0 on base2.09 passoverlay0 on base2.15 passoverlay0 on base1.78 passoverlay0 on base
each accent on crust, mantle, base, surface04.5:16.15 passalarm on surface05.62 passalarm on surface04.67 passalarm on surface04.60 passflare on crust
on-accent on each accent4.5:16.92 passcrust on alarm6.71 passcrust on alarm6.01 passcrust on alarm5.68 passbase on flare
accents closest pair, ΔEOK0.060.070 passiris / steel0.070 passiris / steel0.070 passiris / steel0.060 passice / steel

The gate also checks two things the table cannot show:

  • Accent separation. No two accents inside one flavor may come within ΔEOK 0.06, so volt never reads as flare at a different size and ice never collapses into arc.
  • Identity. Every flavor’s base stays at least 0.03 ΔEOK from sixteen popular dark and light themes (Static Bloom, Catppuccin, Rose Pine, Tokyo Night, Dracula, Nord and friends), with 0.045 as an advisory margin. The gate prints APCA Lc values for text roles as information.

What follows from the table:

  • text is 7:1 (AAA) on crust, mantle, base and surface0, and 4.5:1 on the raised fills; subtext1 and subtext0 are body-safe on the page backgrounds.
  • Every accent is AA on crust, mantle, base and surface0, so colored text, links and soft badges stay readable in any accent scope.
  • Soft badges and buttons sit on a 16% tint of their own color, so their text mixes the intent with fg per flavor (--nw-soft-ink: 100% in Abyss, 90% in Nocturne, 75% in Twilight, 70% in Lumen). That keeps them AA on the same four grounds.
  • on-accent text is AA on every solid accent fill, which covers solid buttons and badges.
  • overlay1 (line-strong) meets the 3:1 non-text minimum for input borders and control edges; overlay0 (line) is decorative only, and the circuit grid sits on it by design.

Every focusable element gets a visible ring on keyboard focus: the base layer styles :focus-visible with a 2px outline in --nw-ring (the primary intent, so it follows data-accent) at a 2px offset, and interactive components add their intent glow on top. Tab through these controls to see it:

Link

Tokens: --nw-ring, --nw-ring-width (2px) and --nw-ring-offset (2px). Do not remove the outline; restyle it through the tokens instead.

  • CSS components build on native elements (<button>, <a>, <details>, <dialog>, <meter>, the Popover API), so keyboard behavior comes from the browser.
  • Vue components wrap Reka UI primitives: arrow-key roving focus in toolbars and toggle groups, typeahead in lists, Escape to close the topmost overlay, focus trapped inside dialogs and returned to the trigger on close, and the ARIA roles and states each pattern needs.
  • Icon-only buttons need an accessible name: give them aria-label.

Decorative animation stops under prefers-reduced-motion: reduce: durations collapse to 0.01ms, loops run once, and .nw-motion-essential opts meaning-bearing motion (a spinner for pending work) back in. See Effects & motion.

Under forced-colors: active the motif utilities fall back to system colors: cut and wire surfaces become a plain Canvas box with a real border, the scanline overlay and circuit grid are removed, and buttons keep their state through Highlight/HighlightText rather than color. Disabled controls show as GrayText.

Intent colors always travel with words or icons: alerts have titles, badges have text, meters show their value, and form errors are written out under the field with aria-invalid set. Keep that pairing when you compose your own components.

Control heights are 1.75rem (xs), 2rem (sm), 2.5rem (md, the default) and 3rem (lg), above the 24px WCAG 2.2 minimum. Inputs are 2.5rem tall. On touch layouts, prefer md or larger.