Skip to content

Effects & motion

The effects are the identity: cut corners, a wire edge, neon glow, scanlines, a circuit grid and a hover glitch. Use them as accents on a few elements, not as texture for every surface. The examples use the CSS utility classes; the Tailwind equivalents are on Utilities & variants.

Glow is a colored shadow built from --nw-glow-color, which defaults to the primary intent. Its strength is --nw-glow-strength: 1 on the dark flavors, 0.45 on Lumen, where a full glow would smudge.

nw-glow-sm –nw-glow-sm

nw-glow-md –nw-glow-md

nw-glow-lg –nw-glow-lg

nw-glow-info
nw-glow-success
nw-glow-danger

Pick a color with .nw-glow-<intent> (the seven intents), or set --nw-glow-color yourself. In Tailwind, glow-<color> accepts every palette and semantic color (glow-matrix, glow-info), and text-glow / text-glow-<color> put the same bloom on text. The glow tokens are declared on every element, so changing the color on one element rebuilds its own glow. Components already glow on hover and focus in their intent color.

Text glow follows the accent

or any color you pick

Nyxwire

text-wire (Tailwind) clips --nw-gradient-wire (135°, primary to secondary) to the glyphs; bg-wire paints the same gradient as a fill.

.nw-cut chamfers the top-right and bottom-left corners, sized by --nw-cut (10px). The element paints its own chamfered fill and stays unclipped, and ::before draws the 1px edge, so a glow still fits in the box: clip-path would clip a box-shadow, so the cut utilities swap to a drop-shadow filter instead.

nw-cut panel fill, line edge

custom –nw-fill / –nw-edge

cut + glow filter, not box-shadow

cut + wire gradient edge

Paint the fill through --nw-fill (a flat color, default panel) and the edge through --nw-edge (any paint, default line), not through background and border. Replaced elements (img, video, svg) have no pseudo-elements, so they are clipped directly and cannot glow; wrap one to give it a glow. Forced-colors mode falls back to a plain system-colored box with a real border.

.nw-wire draws a 1px border in --nw-gradient-wire, primary toward the top left and secondary opposite, over an opaque --nw-fill; .nw-wire-glow adds the matching bloom. On a cut surface the wire becomes the edge paint, which also works over a translucent fill. Buttons (.nw-btn-wire), cards and HUD panels have wire variants.

nw-wire 1px gradient border

nw-wire-glow bloom follows the wire

nw-scanlines pointer-transparent overlay

nw-grid-bg –nw-grid-size 32px

nw-glitch hover or focus me

All three cut, scanlines, glow

Class Effect Tune with
.nw-scanlines Horizontal lines from --nw-scanlines in a pointer-transparent ::after the shadow ink and flavor; lines are 3px apart
.nw-grid-bg Circuit grid: lines every --nw-grid-size, a node on every fourth crossing --nw-grid-size (32px), --nw-grid-line
.nw-glitch One 480ms chromatic burst when the text, or the link or button around it, is hovered or focused disabled under reduced motion

Cut and scanlines combine (the overlay is clipped to the chamfer); the grid paints background, so it does not combine with cut or wire, which paint background too. Glitch splits the text in the secondary and tertiary colors with a step timing function.

glass (a Tailwind utility) is --nw-glass (canvas at 78%) with a --nw-blur-md backdrop blur, for panels over imagery or busy backdrops. Its legibility depends on the flavor and the scene behind it: put text on a solid or cut panel when the backdrop is loud, and check the pair where you use it.

glass canvas at 78% + blur

cut + glass fill translucent –nw-fill

Blur tokens: --nw-blur-sm 4px, --nw-blur-md 12px, --nw-blur-lg 24px.

Motion answers an interaction or a state change. Durations and easings are tokens:

Duration Value Easing Curve
--nw-duration-instant 80ms --nw-ease-standard cubic-bezier(0.2, 0, 0, 1)
--nw-duration-fast 140ms --nw-ease-out cubic-bezier(0.16, 1, 0.3, 1)
--nw-duration-base 220ms --nw-ease-in cubic-bezier(0.7, 0, 0.84, 0)
--nw-duration-slow 360ms --nw-ease-in-out cubic-bezier(0.65, 0, 0.35, 1)
--nw-duration-slower 560ms --nw-ease-back cubic-bezier(0.34, 1.56, 0.64, 1)

Hover and color changes use fast with standard; entrances use base with out; exits use fast with in; a small overshoot (back) suits elements that pop in. Keyframes ship as nw-spin, nw-pulse, nw-glow-pulse, nw-shimmer, nw-fade-in, nw-fade-out, nw-zoom-in, nw-zoom-out, nw-slide-in-from-{top,bottom,left,right} and nw-slide-out-to-{top,bottom,left,right}; the slides travel --nw-slide-distance (0.5rem for a popover, 100% for a drawer). In Tailwind they are animate-* utilities of the same names.

nw-glow-pulse alarms, live states

nw-pulse idle work, skeletons