Skip to content

Gradient backdrop

Soft mesh gradients for a band, a hero or a media frame. By default they are mixed from the noodle’s own colours, so they follow the noodle and the mode; eight named palettes are there when you want a fixed mood.

From the noodle

Change the noodle above and the wash changes with it.

Quarterly review

The wash is mixed from this noodle’s primary, accent, info and success colours at 24%, so the text keeps its contrast.

Named palettes

mn-gradient-aurora
mn-gradient-dawn
mn-gradient-tide
mn-gradient-ember
mn-gradient-moss
mn-gradient-dusk
mn-gradient-steel
mn-gradient-sand

Flowing

Blurred shapes that move slowly. Use one per page, behind a short statement.

mn-gradient-flow mn-gradient-halo
mn-gradient-flow mn-gradient-lagoon
mn-gradient-flow mn-gradient-citrus
mn-gradient-flow mn-gradient-nightfall

Drifting, behind a card

Text sits on a surface

At full strength the backdrop is artwork. Put words on an opaque surface.

Installation

Everything ships in one stylesheet. There is nothing to import per component.

<link rel="stylesheet" href="https://mian.ro/dist/mian.css">

Prefer to own the files? /r/gradient.json is a registry item with this component's CSS and example markup, ready to copy into your project with any tool that reads the open registry-item format.

Class reference

Class / attributeDescription
mn-gradientA four-point mesh from the noodle’s primary, accent, info and success colours, at a strength that keeps text readable.
mn-gradient-aurora · -dawn · -tide · -ember · -moss · -dusk · -steel · -sandNamed palettes.
mn-gradient-vividFull strength. For artwork and media frames, not behind body text.
mn-gradient-linear · mn-gradient-conicA two-colour sweep or a conic sweep instead of a mesh. --g-angle sets the direction.
mn-gradient-animateA slow drift (26 s). Stops under reduced motion.
mn-gradient-flowSoft blurred shapes that turn and breathe slowly, like light through liquid. Add mn-gradient-still to freeze it. Stops under reduced motion.
mn-gradient-halo · -lagoon · -citrus · -nightfallThree- and four-colour palettes made for the flowing variant.
mn-gridlinesA fine grid of lines as a backdrop; --grid sets the cell size.
mn-grainA fine film grain over the element, which breaks up banding.
--g1 … --g4 · --g-mixYour own four colours and the strength (default 24%).

Accessibility

  • Text on the default strength keeps the noodle’s contrast; with mn-gradient-vivid put text on a surface (a card) or check the pair yourself.
  • A gradient is decoration: never let it carry meaning.
  • The drift is slow and stops under prefers-reduced-motion.
Choose a noodle

Minimal

Flat

Pixel

Linear

Thin

Glass

Textured

Bold

Elegant

Rounded

On this page