Skip to content
v0.9.1
Components

Card

A white box with an ink border for grouping content. Flat by default: add .shadow when a card should stand out.

Basic

Competitor analysis

Strategy · due Oct 24

Compare pricing, features and onboarding of the three main competitors.

With a shadow

card shadow

Use it for the cards that matter most on the screen.

<div class="card-grid">
  <div class="card">
    <div class="card-body">
      <h3 class="card-title">Competitor analysis</h3>
      <p class="card-subtitle">Strategy · due Oct 24</p>
      <p class="card-text">Compare pricing, features and onboarding of the three main competitors.</p>
      <button class="btn btn-sm" type="button">Open</button>
    </div>
  </div>
  <div class="card shadow">
    <div class="card-body">
      <h3 class="card-title">With a shadow</h3>
      <p class="card-subtitle">card shadow</p>
      <p class="card-text">Use it for the cards that matter most on the screen.</p>
      <button class="btn btn-sm btn-brand" type="button">Open</button>
    </div>
  </div>
</div>

Header and footer

.card-header and .card-footer are rows with an ink line. Put buttons in .card-actions to push them to the end.

Weekly performance

+12%

2,450

This week vs last week

<div class="card">
  <div class="card-header">
    <h3 class="card-title">Weekly performance</h3>
    <div class="card-actions">
      <span class="badge badge-green">+12%</span>
      <button class="btn btn-icon btn-sm btn-ghost" type="button" aria-label="More"><i class="mi mi-ellipsis"></i></button>
    </div>
  </div>
  <div class="card-body">
    <p class="h2">2,450</p>
    <p class="card-subtitle">This week vs last week</p>
  </div>
  <div class="card-footer">
    <small class="text-muted">Updated 5 min ago</small>
    <div class="card-actions">
      <button class="btn btn-sm btn-flat" type="button">Export</button>
      <button class="btn btn-sm btn-brand" type="button">View report</button>
    </div>
  </div>
</div>

.card-header-plain and .card-footer-plain drop the line.

Colors

.card-<color> fills it with ink text. .card-<color>-soft gives a quiet tint. .card-brand and .card-ink work too.

Research

User journey mapping

Define the core flow for the new checkout.

Design

Homepage wireframes

Low-fidelity mockups for the landing page.

Strategy

Pricing review

A soft tinted card.

Pro

$29 / month

An ink card for the one thing to notice.

<div class="card-grid">
  <div class="card card-cyan">
    <div class="card-body">
      <span class="badge uppercase">Research</span>
      <h3 class="card-title docs-mt">User journey mapping</h3>
      <p class="card-subtitle">Define the core flow for the new checkout.</p>
    </div>
  </div>
  <div class="card card-orange">
    <div class="card-body">
      <span class="badge uppercase">Design</span>
      <h3 class="card-title docs-mt">Homepage wireframes</h3>
      <p class="card-subtitle">Low-fidelity mockups for the landing page.</p>
    </div>
  </div>
  <div class="card card-violet-soft">
    <div class="card-body">
      <span class="badge badge-violet-soft uppercase">Strategy</span>
      <h3 class="card-title docs-mt">Pricing review</h3>
      <p class="card-subtitle">A soft tinted card.</p>
    </div>
  </div>
  <div class="card card-ink">
    <div class="card-body">
      <span class="badge badge-yellow uppercase">Pro</span>
      <h3 class="card-title docs-mt">$29 / month</h3>
      <p class="card-subtitle">An ink card for the one thing to notice.</p>
    </div>
  </div>
</div>

Notification

Cards are just boxes, so anything fits. A filled card with an icon tile makes a loud alert.

System alert

Now

Maintenance tonight. Expect downtime around 2 AM.

View details
<div class="card card-yellow shadow">
  <div class="card-body docs-media-row">
    <i class="mi mi-triangle-alert docs-icon-tile"></i>
    <div>
      <div class="docs-title-row">
        <h3 class="card-title">System alert</h3>
        <span class="badge">Now</span>
      </div>
      <p class="card-text">Maintenance tonight. Expect downtime around 2 AM.</p>
      <a class="btn btn-link btn-sm" href="#">View details</a>
    </div>
  </div>
</div>

Media

.card-media sits edge to edge with a line under it: an <img>, or a colored block.

#UI #Mobile

Mobile app redesign

12 files · 3 comments

Q3 sales report

Exported 5h ago

<div class="card-grid">
  <div class="card shadow">
    <div class="card-media bg-violet docs-media"><i class="mi mi-image"></i></div>
    <div class="card-body">
      <span class="badge badge-dashed">#UI</span> <span class="badge badge-dashed">#Mobile</span>
      <h3 class="card-title docs-mt">Mobile app redesign</h3>
      <p class="card-subtitle">12 files · 3 comments</p>
    </div>
  </div>
  <div class="card shadow">
    <div class="card-media bg-green docs-media"><i class="mi mi-chart-line"></i></div>
    <div class="card-body">
      <h3 class="card-title">Q3 sales report</h3>
      <p class="card-subtitle">Exported 5h ago</p>
      <button class="btn btn-sm" type="button"><i class="mi mi-download"></i> Download</button>
    </div>
  </div>
</div>

Side by side

.card-row puts the media on the left. On small phones it stacks.

Photoshoot for the album

Due Nov 29 · 50/56 tasks

Final selects go to the label on Friday.

<div class="card card-row">
  <div class="card-media bg-pink docs-media"><i class="mi mi-music"></i></div>
  <div class="card-body">
    <h3 class="card-title">Photoshoot for the album</h3>
    <p class="card-subtitle">Due Nov 29 · 50/56 tasks</p>
    <p class="card-text">Final selects go to the label on Friday.</p>
  </div>
</div>

Words over a picture

.card-overlay lets the picture fill the card and puts the body on it in a small panel. .card-overlay-top moves the panel to the top.

Yellow hills at noon

Summer in the hills

12 photos

Night hills under the moon
New Night walks
<div class="grid grid-cols-1 sm:grid-cols-2 gap-4 max-w-2xl">
  <article class="card card-overlay" id="cd-overlay">
    <img class="card-media" src="../examples/img/sample-1.svg" alt="Yellow hills at noon">
    <div class="card-body"><h3 class="card-title">Summer in the hills</h3><p class="card-subtitle mb-0">12 photos</p></div>
  </article>
  <article class="card card-overlay card-overlay-top">
    <img class="card-media" src="../examples/img/sample-7.svg" alt="Night hills under the moon">
    <div class="card-body"><span class="badge badge-violet-soft">New</span> <b>Night walks</b></div>
  </article>
</div>

Card group

.card-group joins cards in one row with shared lines, all the same height. On phones they stack.

1. Pack

Every order is packed by hand within one working day.

2. Ship

A tracking link arrives by email as soon as it leaves.

3. Return

30 days to change your mind, with a prepaid label in the box.

<div class="card-group" id="cd-group">
  <article class="card"><div class="card-body"><h3 class="card-title">1. Pack</h3><p class="card-text mb-0">Every order is packed by hand within one working day.</p></div></article>
  <article class="card"><div class="card-body"><h3 class="card-title">2. Ship</h3><p class="card-text mb-0">A tracking link arrives by email as soon as it leaves.</p></div></article>
  <article class="card"><div class="card-body"><h3 class="card-title">3. Return</h3><p class="card-text mb-0">30 days to change your mind, with a prepaid label in the box.</p></div></article>
</div>

Sections

Stack .card-section blocks for ink lines between parts, or use .card-divider for a light dashed line inside one part.

Basic

$0 /mo


  • Essential tools
  • 1 user
  • Community support

Pro

$29 /mo


  • Everything in Basic
  • 10 users
  • Priority support
<div class="card-grid">
  <div class="card">
    <div class="card-section">
      <h3 class="card-title">Basic</h3>
      <p class="display">$0 <small class="text-muted h5">/mo</small></p>
      <hr class="card-divider">
      <ul class="docs-checks">
        <li><i class="mi mi-circle-check"></i> Essential tools</li>
        <li><i class="mi mi-circle-check"></i> 1 user</li>
        <li><i class="mi mi-circle-check"></i> Community support</li>
      </ul>
    </div>
    <div class="card-section">
      <button class="btn btn-block btn-flat" type="button" disabled>Current plan</button>
    </div>
  </div>
  <div class="card card-cyan shadow-lg">
    <div class="card-section">
      <h3 class="card-title">Pro</h3>
      <p class="display">$29 <small class="h5">/mo</small></p>
      <hr class="card-divider">
      <ul class="docs-checks">
        <li><i class="mi mi-circle-check"></i> Everything in Basic</li>
        <li><i class="mi mi-circle-check"></i> 10 users</li>
        <li><i class="mi mi-circle-check"></i> Priority support</li>
      </ul>
    </div>
    <div class="card-section">
      <button class="btn btn-block btn-ink" type="button">Upgrade</button>
    </div>
  </div>
</div>

Clickable card

Put .card-link on the main link: the whole card becomes clickable, and other buttons inside still work. Add .card-press for a shadow that pushes in.

Dribbble mockup

53/70 tasks · Oct 4

Slack presentation

13/18 tasks · Oct 13

<div class="card-grid">
  <div class="card card-press">
    <div class="card-body">
      <h3 class="card-title"><a class="card-link" href="#">Dribbble mockup</a></h3>
      <p class="card-subtitle">53/70 tasks · Oct 4</p>
      <button class="btn btn-sm btn-flat" type="button"><i class="mi mi-star"></i> Star</button>
    </div>
  </div>
  <div class="card card-press card-lime">
    <div class="card-body">
      <h3 class="card-title"><a class="card-link" href="#">Slack presentation</a></h3>
      <p class="card-subtitle">13/18 tasks · Oct 13</p>
    </div>
  </div>
</div>

States

.card-dashed for "add new" spots and empty states, .card-muted for finished or inactive items, .is-selected (or aria-current="true") for the chosen one.

Add a task

Admin

Kickoff meeting

Completed yesterday

Selected plan

is-selected

<div class="card-grid">
  <div class="card card-dashed">
    <div class="card-body docs-center">
      <i class="mi mi-plus docs-big-icon"></i>
      <p class="card-text">Add a task</p>
    </div>
  </div>
  <div class="card card-muted">
    <div class="card-body">
      <span class="badge badge-plain uppercase">Admin</span>
      <h3 class="card-title docs-mt"><s>Kickoff meeting</s></h3>
      <p class="card-subtitle">Completed yesterday</p>
    </div>
  </div>
  <div class="card is-selected">
    <div class="card-body">
      <h3 class="card-title">Selected plan</h3>
      <p class="card-subtitle">is-selected</p>
    </div>
  </div>
</div>

Card grid

.card-grid fills the row with as many cards as fit (at least 240px each) and drops to one column on phones. Change the width with --card-min.

Variables

VariableDefault
--card-bg / --card-colorSurface / ink
--card-borderInk line
--card-mutedSubtitle color (set per fill)
--card-pad1rem, 1.25rem from 576px
--card-radius--momo-radius
--card-min240px (on .card-grid)

Start

OverviewStart Getting startedStart CustomizeStart

Guides

AccessibilityGuides BreakpointsGuides ChangelogGuides Customize componentsGuides JavaScriptGuides MotionGuides OptimizeGuides PhonesGuides RebootGuides Right-to-left (RTL)Guides Stacking orderGuides Using Momo with AIGuides

Foundations

ColorsFoundations TypographyFoundations ProseFoundations Images & figuresFoundations CodeFoundations Lines & shadowsFoundations Dark modeFoundations

Forms

Checkbox & switchForms ComboboxForms Date pickerForms Date rangeForms Fields & labelsForms File uploadForms Floating labelsForms Number stepperForms PasswordForms PIN codeForms RatingForms SelectForms SliderForms Tag inputForms Time pickerForms ValidationForms

Components

AccordionComponents Alert & bannerComponents AvatarComponents BadgeComponents BreadcrumbComponents ButtonComponents Button groupComponents CalendarComponents CardComponents CarouselComponents ChartsComponents ChipsComponents CollapseComponents Command paletteComponents CommentsComponents Confirm dialogsComponents Cookie bannerComponents Data tableComponents Description listComponents Dialog & toastComponents DividerComponents DrawerComponents Dropdown menuComponents Empty stateComponents File managerComponents Filter & sortComponents Gallery & lightboxComponents Inbox & chatComponents Infinite scrollComponents KanbanComponents Keyboard shortcutsComponents List groupComponents MarqueeComponents Media objectComponents Nav overflowComponents Notification centerComponents PaginationComponents ProgressComponents Pull to refreshComponents SkeletonComponents SortableComponents SpinnerComponents Split viewComponents Stat cardComponents Steps & wizardComponents Swipe actionsComponents TableComponents TabsComponents TimelineComponents TogglerComponents Tooltip & popoverComponents TourComponents Tree viewComponents VideoComponents WhiteboardComponents

Layout

Announcement barLayout App shellLayout Back to topLayout Container & sectionLayout ExamplesLayout FooterLayout HeroLayout JumbotronLayout Mega menuLayout NavbarLayout Site sidebarLayout

Sections

Bento gridSections Blog cardsSections Call to actionSections Contact & newsletterSections FAQSections FeaturesSections Logo cloudSections PricingSections TeamSections TestimonialsSections

Utilities

OverviewUtilities State variantsUtilities Display & flexUtilities Grid & gapUtilities SpacingUtilities SizingUtilities TextUtilities Links & color strengthUtilities Position & overflowUtilities BackgroundsUtilities Borders & effectsUtilities Transforms & filtersUtilities InteractionsUtilities

Helpers

Fixed, sticky & frostedHelpers Hover & focusHelpers Hover revealHelpers Icon linkHelpers PrintHelpers Relative timeHelpers Screen reader textHelpers Scroll inHelpers ScrollspyHelpers Share buttonHelpers Skip linkHelpers StacksHelpers Stretched linkHelpers Theme toggleHelpers Truncated textHelpers

Page patterns

404 pagePage patterns Coming soonPage patterns Login & registerPage patterns SettingsPage patterns ProfilePage patterns CRM contactsPage patterns ProjectsPage patterns File manager pagePage patterns Billing & plansPage patterns Help centerPage patterns Mobile app screensPage patterns
↑ ↓ moveEnter openEsc close