Skip to content
v0.9.1
Utilities

Backgrounds

Color fills, soft gradients, blurred color blobs and patterns. Momo is flat by default: gradients and blobs are extras for a hero or a landing page, so use them in one or two places, not everywhere.

Color

.bg-<color> fills with a palette color and .bg-<color>-soft with its tint. Text color comes along, so it stays readable. See Colors for all of them.

bg-violet
bg-violet-soft
bg-yellow
bg-green-soft
<div class="box p-4 bg-violet">bg-violet</div>
<div class="box p-4 bg-violet-soft">bg-violet-soft</div>
<div class="box p-4 bg-yellow">bg-yellow</div>
<div class="box p-4 bg-green-soft">bg-green-soft</div>

Gradient sheen

.bg-gradient lays a soft light sheen over any background color, top to bottom.

bg-violet
+ bg-gradient
bg-orange bg-gradient
<div class="box p-4 bg-violet">bg-violet</div>
<div class="box p-4 bg-violet bg-gradient">+ bg-gradient</div>
<div class="box p-4 bg-orange bg-gradient">bg-orange bg-gradient</div>

Color gradients

.bg-gradient-<color> fades a palette color lighter. Add .gradient-to-<color> to fade into a second color.

bg-gradient-violet
bg-gradient-yellow
bg-gradient-green
bg-gradient-pink
violet to pink
yellow to orange
cyan to lime
blue to violet
<div class="grid grid-cols-2 md:grid-cols-4 gap-3">
  <div class="box p-5 bg-gradient-violet"><b>bg-gradient-violet</b></div>
  <div class="box p-5 bg-gradient-yellow"><b>bg-gradient-yellow</b></div>
  <div class="box p-5 bg-gradient-green"><b>bg-gradient-green</b></div>
  <div class="box p-5 bg-gradient-pink"><b>bg-gradient-pink</b></div>
  <div class="box p-5 bg-gradient-violet gradient-to-pink"><b>violet</b> to pink</div>
  <div class="box p-5 bg-gradient-yellow gradient-to-orange"><b>yellow</b> to orange</div>
  <div class="box p-5 bg-gradient-cyan gradient-to-lime"><b>cyan</b> to lime</div>
  <div class="box p-5 bg-gradient-blue gradient-to-violet"><b>blue</b> to violet</div>
</div>

Direction

To the bottom right by default. .gradient-r goes right, .gradient-b down, .gradient-tr to the top right.

gradient-r
gradient-b
gradient-tr
gradient-br
<div class="box p-5 bg-gradient-violet gradient-to-cyan gradient-r">gradient-r</div>
<div class="box p-5 bg-gradient-violet gradient-to-cyan gradient-b">gradient-b</div>
<div class="box p-5 bg-gradient-violet gradient-to-cyan gradient-tr">gradient-tr</div>
<div class="box p-5 bg-gradient-violet gradient-to-cyan">gradient-br</div>

Blobs

.bg-blobs puts big, soft, blurred color blobs behind the content: violet, pink and cyan. .blobs-<color> makes them all one color, and --blob-1, --blob-2, --blob-3 pick each one. They get quieter in dark mode.

Launch week

Plan the whole week on one page

Blobs sit behind the content and never get in the way of the text.

<div class="box p-8 bg-blobs">
  <div class="stack gap-3 max-w-md">
    <span class="eyebrow">Launch week</span>
    <h3 class="h2 m-0">Plan the whole week on one page</h3>
    <p class="m-0 text-muted">Blobs sit behind the content and never get in the way of the text.</p>
    <div class="cluster"><a class="btn btn-brand" href="#">Get started</a><a class="btn" href="#">See the demo</a></div>
  </div>
</div>
blobs-yellow
blobs-green
blobs-blue
<div class="grid md:grid-cols-3 gap-3">
  <div class="box p-8 bg-blobs blobs-yellow"><b>blobs-yellow</b></div>
  <div class="box p-8 bg-blobs blobs-green"><b>blobs-green</b></div>
  <div class="box p-8 bg-blobs blobs-blue"><b>blobs-blue</b></div>
</div>

Places, shapes and sizes

Move all three blobs with .blobs-top, -bottom, -left, -right, -center, -corners or -diagonal. Change their shape with .blobs-round, -wide or -tall, and their size with .blobs-sm or -lg. Everything mixes with the colors. Try it:

Place
Shape
Size
Grain
Color
Live previewBlobs behind real contentThe text stays readable wherever they sit.
class="bg-blobs"

In real layouts

Hero Ship your launch page this week

Corners, large, with grain: color frames the content.

Start free
Pro $12 / month

Top, wide, violet: a glow behind the price.

Choose Pro
Get the weekly notes

Bottom, tall, green: light rising from below.

<div class="grid md:grid-cols-3 gap-4">
  <div class="box p-6 bg-blobs blobs-corners blobs-lg bg-noise stack gap-3">
    <span class="eyebrow">Hero</span>
    <b class="h4 m-0">Ship your launch page this week</b>
    <p class="m-0 text-muted">Corners, large, with grain: color frames the content.</p>
    <a class="btn btn-brand self-start" href="#">Start free</a>
  </div>
  <div class="box p-6 bg-blobs blobs-top blobs-wide blobs-violet stack gap-3">
    <span class="badge badge-violet self-start">Pro</span>
    <b class="h2 m-0">$12<span class="text-base text-muted"> / month</span></b>
    <p class="m-0 text-muted">Top, wide, violet: a glow behind the price.</p>
    <a class="btn self-start" href="#">Choose Pro</a>
  </div>
  <div class="box p-6 bg-blobs blobs-bottom blobs-tall blobs-green stack gap-3">
    <b class="h4 m-0">Get the weekly notes</b>
    <p class="m-0 text-muted">Bottom, tall, green: light rising from below.</p>
    <input class="form-control" type="email" placeholder="you@example.com" aria-label="Email">
  </div>
</div>

A whole section

Blobs work on a .section too: they sit behind the head, the cards and the buttons, and stretch with the band. Here the section gets corners and large blobs; on a real page leave out border rounded-lg.

Why teams switch

Everything in one calm place

Plan, write and ship together, without stitching five apps into one.

Boards

Drag cards between columns and see who is on what.

Calendar

Deadlines and meetings side by side.

Chat

Talk next to the work, with threads and mentions.

<section class="section section-paper bg-blobs blobs-corners blobs-lg border rounded-lg">
  <div class="container stack gap-8">
    <div class="section-head section-head-center">
      <span class="eyebrow">Why teams switch</span>
      <h2>Everything in one calm place</h2>
      <p>Plan, write and ship together, without stitching five apps into one.</p>
    </div>
    <div class="features features-cards">
      <div class="feature">
        <span class="feature-icon bg-violet-soft"><i class="mi mi-layout-kanban" aria-hidden="true"></i></span>
        <h3>Boards</h3>
        <p>Drag cards between columns and see who is on what.</p>
      </div>
      <div class="feature">
        <span class="feature-icon bg-pink-soft"><i class="mi mi-calendar" aria-hidden="true"></i></span>
        <h3>Calendar</h3>
        <p>Deadlines and meetings side by side.</p>
      </div>
      <div class="feature">
        <span class="feature-icon bg-cyan-soft"><i class="mi mi-messages" aria-hidden="true"></i></span>
        <h3>Chat</h3>
        <p>Talk next to the work, with threads and mentions.</p>
      </div>
    </div>
    <div class="cluster justify-center"><a class="btn btn-brand" href="#">Start free</a><a class="btn" href="#">Book a demo</a></div>
  </div>
</section>

For a one-off, set the variables yourself: --blob-1 to --blob-3 (color), --blob-at-1 to --blob-at-3 (place, like 20% 80%), --blob-w-1 / --blob-h-1 and so on (size), and --blob-scale.

Noise

.bg-noise adds a fine film grain over the background: blobs, gradients, plain colors or patterns. It sits on its own layer under the content, so text stays crisp. It is soft by default; set --noise (0 to 1) for more or less. Each speck is one pixel, half a touch lighter and half a touch darker, so it looks the same on light, dark and colored backgrounds.

blobs + noise
gradient + noise
bg-yellow + noise
ink + noise
bg-gradient-pink + noise
bg-noise
bg-violet-soft + noise
no noise
<div class="grid grid-cols-2 md:grid-cols-4 gap-3">
  <div class="box p-6 h-40 bg-blobs bg-noise"><b>blobs</b> + noise</div>
  <div class="box p-6 h-40 bg-gradient-violet gradient-to-pink bg-noise"><b>gradient</b> + noise</div>
  <div class="box p-6 h-40 bg-yellow bg-noise"><b>bg-yellow</b> + noise</div>
  <div class="box p-6 h-40 bg-ink bg-noise"><b>ink</b> + noise</div>
  <div class="box p-6 h-40 bg-gradient-pink bg-noise"><b>bg-gradient-pink</b> + noise</div>
  <div class="box p-6 h-40 bg-gradient-cyan gradient-to-lime bg-noise"><b>bg-noise</b></div>
  <div class="box p-6 h-40 bg-violet-soft bg-noise"><b>bg-violet-soft</b> + noise</div>
  <div class="box p-6 h-40 bg-gradient-cyan gradient-to-lime"><b>no noise</b></div>
</div>

.bg-noise makes the element position: relative (the grain needs it), so don't put it on something that is sticky or absolutely placed; wrap it instead.

Patterns

Nine patterns for any element: .bg-dots, -grid, -lines, -hatch, -stripes, -checks, -zigzag, -waves and -plus. On their own they are a soft tint of the text color, so they work on light, colored and ink backgrounds, and in dark mode. They work on a section too: class="section section-paper bg-dots".

bg-dots
bg-grid
bg-lines
bg-hatch
bg-stripes
bg-checks
bg-zigzag
bg-waves
bg-plus
on ink
<div class="grid grid-cols-3 md:grid-cols-5 gap-3">
  <div class="box p-5 h-28 bg-dots"><b>bg-dots</b></div>
  <div class="box p-5 h-28 bg-grid"><b>bg-grid</b></div>
  <div class="box p-5 h-28 bg-lines"><b>bg-lines</b></div>
  <div class="box p-5 h-28 bg-hatch"><b>bg-hatch</b></div>
  <div class="box p-5 h-28 bg-stripes"><b>bg-stripes</b></div>
  <div class="box p-5 h-28 bg-checks"><b>bg-checks</b></div>
  <div class="box p-5 h-28 bg-zigzag"><b>bg-zigzag</b></div>
  <div class="box p-5 h-28 bg-waves"><b>bg-waves</b></div>
  <div class="box p-5 h-28 bg-plus"><b>bg-plus</b></div>
  <div class="box p-5 h-28 bg-ink bg-plus"><b>on ink</b></div>
</div>

Pattern colors

Color a pattern with .pattern-<color> (any palette color, -ink or -brand). Colors stay subtle, and quieter still in dark mode, so the lines and content carry the boldness. They look best on paper or on the soft tint of the same color.

dots · violet
grid · yellow
lines · green
hatch · pink
stripes · cyan
checks · orange
zigzag · blue
waves · lime
plus · red
waves · on paper
<div class="grid grid-cols-3 md:grid-cols-5 gap-3">
  <div class="box p-5 h-28 bg-violet-soft bg-dots pattern-violet"><b>dots</b> · violet</div>
  <div class="box p-5 h-28 bg-yellow-soft bg-grid pattern-yellow"><b>grid</b> · yellow</div>
  <div class="box p-5 h-28 bg-green-soft bg-lines pattern-green"><b>lines</b> · green</div>
  <div class="box p-5 h-28 bg-pink-soft bg-hatch pattern-pink"><b>hatch</b> · pink</div>
  <div class="box p-5 h-28 bg-cyan-soft bg-stripes pattern-cyan"><b>stripes</b> · cyan</div>
  <div class="box p-5 h-28 bg-orange-soft bg-checks pattern-orange"><b>checks</b> · orange</div>
  <div class="box p-5 h-28 bg-blue-soft bg-zigzag pattern-blue"><b>zigzag</b> · blue</div>
  <div class="box p-5 h-28 bg-lime-soft bg-waves pattern-lime"><b>waves</b> · lime</div>
  <div class="box p-5 h-28 bg-red-soft bg-plus pattern-red"><b>plus</b> · red</div>
  <div class="box p-5 h-28 bg-paper bg-waves pattern-violet"><b>waves</b> · on paper</div>
</div>

Patterns, blobs and gradients each use the background image, so pick one per element. Noise is the exception: it sits on its own layer and adds to any of them.

Classes

ClassDoes
.bg-<color>, .bg-<color>-softPalette fill or tint, with readable text
.bg-gradientA soft light sheen over the background color
.bg-gradient-<color>The color fading lighter
.gradient-to-<color>Fade into this color instead
.gradient-r, -b, -tr, -brDirection (default -br)
.bg-blobsSoft blurred color blobs
.blobs-<color>All blobs in one color
.blobs-top, -bottom, -left, -right, -center, -corners, -diagonalWhere the blobs sit
.blobs-round, -wide, -tallTheir shape
.blobs-sm, -lgTheir size
.bg-noiseFilm grain over the background
.bg-dots, -grid, -lines, -hatch, -stripes, -checks, -zigzag, -waves, -plusA faint pattern (a tint of the text color)
.pattern-<color>Colors the pattern: any palette color, -ink or -brand

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