Skip to content

Story card

Articles and posts in a grid or as a lead story: image, kicker, headline, excerpt and byline, the headline is the link.

Stories

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/story-card.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-storiesAn auto-filling grid of stories (a <ul>), or use mn-cols for a fixed number of columns.
mn-storyOne story: mn-media, mn-eyebrow (kicker), mn-story-title with a link, mn-story-excerpt, mn-story-meta.
mn-story-leadA lead story with a much larger headline.

Accessibility

  • The headline link is stretched over the whole card, so each story is one link and one tab stop.
  • Put the date in <time datetime="…">.
  • Headline levels follow the page: <h2> for the lead, <h3> in a grid under a section heading.
Choose a noodle

Minimal

Flat

Pixel

Linear

Thin

Glass

Textured

Bold

Elegant

Rounded

On this page