Skip to content
v0.9.1
Utilities

Links & color strength

Color a link and its underline, and fade any color set by a bg-*, text-* or border-* class.

Colored links

link-<color> colors a link and gives it a soft underline that darkens on hover.

<a class="link-violet" href="#">link-violet</a>
<a class="link-green" href="#">link-green</a>
<a class="link-red" href="#">link-red</a>
<a class="link-brand" href="#">link-brand</a>
<a class="link-ink" href="#">link-ink</a>

Underline

Color the underline on its own (decoration-<color>), make it softer (decoration-opacity-*), thicker and further away.

<a class="underline decoration-yellow decoration-4 underline-offset-4" href="#">A thick yellow underline</a>
<a class="underline decoration-violet decoration-opacity-50 decoration-2" href="#">Soft violet</a>
<a class="underline decoration-wavy decoration-red decoration-2 underline-offset-4" href="#">Wavy</a>
<a class="no-underline hover:underline" href="#">Underline on hover only</a>

Color strength

After a color class, bg-opacity-*, text-opacity-* or border-opacity-* fade that same color. For pale fills, the ready-made bg-<color>-soft colors are usually the better pick: they keep text readable.

bg-violet
opacity 75
opacity 50
opacity 25
border 50
text 50
<div class="box p-3 bg-violet">bg-violet</div>
<div class="box p-3 bg-violet bg-opacity-75">opacity 75</div>
<div class="box p-3 bg-violet bg-opacity-50">opacity 50</div>
<div class="box p-3 bg-violet bg-opacity-25">opacity 25</div>
<div class="box p-3 border-2 border-green border-opacity-50">border 50</div>
<span class="text-blue text-opacity-50 font-bold">text 50</span>
ClassCSS
link-inkcolor: var(--momo-ink); text-decoration-color: color-mix(in oklab, currentColor 45%, transparent);
link-brandcolor: var(--momo-brand-text); text-decoration-color: color-mix(in oklab, currentColor 45%, transparent);
decoration-ink--u-deco: var(--momo-ink); text-decoration-color: var(--u-deco);
decoration-current--u-deco: currentColor; text-decoration-color: currentColor;
decoration-transparenttext-decoration-color: transparent;
decoration-opacity-25text-decoration-color: color-mix(in oklab, var(--u-deco, currentColor) 25%, transparent);
decoration-opacity-50text-decoration-color: color-mix(in oklab, var(--u-deco, currentColor) 50%, transparent);
decoration-opacity-75text-decoration-color: color-mix(in oklab, var(--u-deco, currentColor) 75%, transparent);
decoration-opacity-100text-decoration-color: color-mix(in oklab, var(--u-deco, currentColor) 100%, transparent);
ClassCSS
bg-opacity-10background-color: color-mix(in oklab, var(--u-bg, var(--momo-surface)) 10%, transparent);
bg-opacity-25background-color: color-mix(in oklab, var(--u-bg, var(--momo-surface)) 25%, transparent);
bg-opacity-50background-color: color-mix(in oklab, var(--u-bg, var(--momo-surface)) 50%, transparent);
bg-opacity-75background-color: color-mix(in oklab, var(--u-bg, var(--momo-surface)) 75%, transparent);
text-opacity-25color: color-mix(in oklab, var(--u-text, var(--momo-ink)) 25%, transparent);
text-opacity-50color: color-mix(in oklab, var(--u-text, var(--momo-ink)) 50%, transparent);
text-opacity-75color: color-mix(in oklab, var(--u-text, var(--momo-ink)) 75%, transparent);
border-opacity-10border-color: color-mix(in oklab, var(--u-border, var(--momo-line)) 10%, transparent);
border-opacity-25border-color: color-mix(in oklab, var(--u-border, var(--momo-line)) 25%, transparent);
border-opacity-50border-color: color-mix(in oklab, var(--u-border, var(--momo-line)) 50%, transparent);
border-opacity-75border-color: color-mix(in oklab, var(--u-border, var(--momo-line)) 75%, transparent);

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