Skip to content

Hero

The opening section of a page: a display headline, an intro, actions and optional media, stacked, split or centred.

Split hero

Hand-pulled noodles, pulled to order.

Twelve seats at the counter, one broth simmered for eighteen hours, and noodles stretched in front of you.

Tue–Sun · 12:00–15:00, 18:00–22:30

Centred hero with product UI

For finance teams of 5 to 500

Close the books in four days, not fourteen.

Ledger reconciles every account overnight and hands you the exceptions.

September closeOn track
AccountStatusUnmatched
Operating · 4410Matched€0.00
Stripe payoutsReview€1,284.10

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/hero.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-heroUse with mn-section. Stacked by default: copy, then media.
mn-hero-splitCopy and media side by side on wide sections.
mn-hero-centerCentred copy.
mn-hero-inInner grid; put it on the mn-container.
mn-hero-copyAn <h1 class="mn-display">, mn-intro, mn-hero-actions, mn-hero-note. Start with the headline: no badge above it; put news in the note or a banner.
mn-posterA headline sized to the width of its container, for one very large statement or a wordmark.
mn-hero-mediaScreenshot: product UI, illustration or photo. mn-hero-media-fade fades a tall screenshot out at the bottom.

Accessibility

  • The hero headline is usually the page’s only <h1>.
  • Primary and secondary actions should be links (<a class="mn-btn">) when they navigate.
  • Media that carries meaning needs alt text; decorative art is aria-hidden.
  • Layout answers to the section’s own width (container queries), so it works the same in a page, a sidebar or a preview.
Choose a noodle

Minimal

Flat

Pixel

Linear

Thin

Glass

Textured

Bold

Elegant

Rounded

On this page