Skip to content
v0.9.1
Utilities

Text

Size, weight, alignment and wrapping. Size and alignment have screen-size versions: text-2xl md:text-4xl, text-center md:text-start. There are no letter-spacing classes on purpose: Familjen Grotesk is drawn to be read at its normal spacing.

Sizes

text-xs · 12px

text-sm · 14px

text-base · 16px

text-lg · 18px

text-xl · 20px

text-2xl · 24px

text-4xl · 36px

<p class="text-xs">text-xs · 12px</p>
<p class="text-sm">text-sm · 14px</p>
<p class="text-base">text-base · 16px</p>
<p class="text-lg">text-lg · 18px</p>
<p class="text-xl">text-xl · 20px</p>
<p class="text-2xl font-semibold">text-2xl · 24px</p>
<p class="text-4xl font-bold leading-tight">text-4xl · 36px</p>

Cutting text short

truncate keeps one line and ends with "…"; line-clamp-2 keeps two. Give long words a way to break with break-words.

Quarterly planning notes for the website redesign and the new pricing page

Quarterly planning notes for the website redesign, the new pricing page, the onboarding emails and the help center.

https://momo.example/projects/website-redesign/files/brand-assets

<div class="max-w-xs space-y-3">
  <p class="truncate box p-2">Quarterly planning notes for the website redesign and the new pricing page</p>
  <p class="line-clamp-2 box p-2">Quarterly planning notes for the website redesign, the new pricing page, the onboarding emails and the help center.</p>
  <p class="break-words box p-2">https://momo.example/projects/website-redesign/files/brand-assets</p>
</div>

Headlines that wrap nicely

text-balance evens out the lines of a heading; text-pretty avoids a single word on the last line of a paragraph.

Everything your team needs to plan, track and ship work

<h3 class="text-balance max-w-md">Everything your team needs to plan, track and ship work</h3>

Size, weight, alignment, wrapping

ClassCSS
text-xsfont-size: .75rem; line-height: 1.5;
text-smfont-size: .875rem; line-height: 1.5;
text-basefont-size: 1rem; line-height: 1.55;
text-lgfont-size: 1.125rem; line-height: 1.5;
text-xlfont-size: 1.25rem; line-height: 1.4;
text-2xlfont-size: 1.5rem; line-height: 1.3;
text-3xlfont-size: 1.875rem; line-height: 1.2;
text-4xlfont-size: 2.25rem; line-height: 1.15;
text-5xlfont-size: 3rem; line-height: 1.1;
text-6xlfont-size: 3.75rem; line-height: 1.05;
font-normalfont-weight: 400;
font-mediumfont-weight: 500;
font-semiboldfont-weight: 600;
font-boldfont-weight: 700;
text-starttext-align: start;
text-centertext-align: center;
text-endtext-align: end;
text-justifytext-align: justify;
leading-noneline-height: 1;
leading-tightline-height: 1.25;
leading-snugline-height: 1.375;
leading-normalline-height: 1.55;
leading-relaxedline-height: 1.7;
leading-looseline-height: 2;
text-wraptext-wrap: wrap;
text-nowraptext-wrap: nowrap;
text-balancetext-wrap: balance;
text-prettytext-wrap: pretty;
line-clamp-1display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1;
line-clamp-2display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
line-clamp-3display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3;
line-clamp-4display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4;
line-clamp-5display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5;
line-clamp-6display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6;
line-clamp-nonedisplay: block; overflow: visible; -webkit-line-clamp: unset; line-clamp: none;

More

These don't change with the screen. Colors: text-<color> (on the Colors page), text-muted, text-ink. Case: uppercase, lowercase, capitalize, normal-case (on Typography).

ClassCSS
font-sansfont-family: var(--momo-font);
font-monofont-family: var(--momo-font-mono);
italicfont-style: italic;
not-italicfont-style: normal;
line-throughtext-decoration-line: line-through;
no-underlinetext-decoration-line: none;
tabular-numsfont-variant-numeric: tabular-nums;
normal-numsfont-variant-numeric: normal;
break-wordsoverflow-wrap: anywhere;
break-allword-break: break-all;
break-normaloverflow-wrap: normal; word-break: normal;
truncateoverflow: hidden; text-overflow: ellipsis; white-space: nowrap;
whitespace-nowrapwhite-space: nowrap;
whitespace-pre-linewhite-space: pre-line;
align-baselinevertical-align: baseline;
align-topvertical-align: top;
align-middlevertical-align: middle;
align-bottomvertical-align: bottom;
align-text-topvertical-align: text-top;
align-text-bottomvertical-align: text-bottom;
text-inheritcolor: inherit;
underlinetext-decoration-line: underline;
underline-offset-1text-underline-offset: 1px;
underline-offset-2text-underline-offset: 2px;
underline-offset-4text-underline-offset: 4px;
underline-offset-8text-underline-offset: 8px;
decoration-1text-decoration-thickness: 1px;
decoration-2text-decoration-thickness: 2px;
decoration-3text-decoration-thickness: 3px;
decoration-4text-decoration-thickness: 4px;
decoration-solidtext-decoration-style: solid;
decoration-wavytext-decoration-style: wavy;
decoration-dottedtext-decoration-style: dotted;
decoration-dashedtext-decoration-style: dashed;
hyphens-autohyphens: auto;
hyphens-nonehyphens: none;
indent-0text-indent: 0;
indent-4text-indent: 1rem;
indent-8text-indent: 2rem;
list-nonelist-style-type: none; padding-inline-start: 0;
list-disclist-style-type: disc;
list-decimallist-style-type: decimal;
list-insidelist-style-position: inside;
columns-2columns: 2; column-gap: 1.5rem;
columns-3columns: 3; column-gap: 1.5rem;
columns-4columns: 4; column-gap: 1.5rem;
break-inside-avoidbreak-inside: avoid;

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