Link
Link utilities style anchors without custom CSS: link-opacity-* fades a link, link-offset-* moves the underline, link-underline-{colour} and link-underline-opacity-* colour and fade the underline. Each has a -hover variant, and icon-link plus icon-link-hover align and animate icons beside link text.
1Link opacity
link-opacity-10 to -100 fade a coloured link.
<div class="grid gap-1">
<a href="#" class="link-primary link-opacity-100">link-opacity-100</a> <a href="#" class="link-primary link-opacity-75">link-opacity-75</a> <a href="#" class="link-primary link-opacity-50">link-opacity-50</a> <a href="#" class="link-primary link-opacity-25">link-opacity-25</a> <a href="#" class="link-primary link-opacity-10">link-opacity-10</a>
</div>2Opacity on hover
link-opacity-*-hover changes the opacity only while the pointer is over the link.
<div class="grid gap-1">
<a href="#" class="link-primary link-opacity-25 link-opacity-100-hover">25, 100 on hover</a> <a href="#" class="link-primary link-opacity-50 link-opacity-100-hover">50, 100 on hover</a> <a href="#" class="link-primary link-opacity-100 link-opacity-50-hover">100, 50 on hover</a>
</div>3Underline offset
link-offset-1, -2 and -3 move the underline away from the text.
<div class="flex flex-wrap gap-6">
<a href="#" class="link-offset-1">link-offset-1</a> <a href="#" class="link-offset-2">link-offset-2</a> <a href="#" class="link-offset-3">link-offset-3</a>
</div>4Offset on hover
link-offset-3-hover lowers the underline while hovering.
<div class="flex flex-wrap gap-6">
<a href="#" class="link-offset-1 link-offset-3-hover">Food relief</a> <a href="#" class="link-offset-2 link-offset-3-hover link-underline-opacity-50">Animal rescue</a>
</div>5Underline colours
link-underline-{colour} colours only the underline, independent of the text.
<div class="flex flex-wrap gap-4">
<a href="#" class="link-body-emphasis link-underline link-underline-primary">primary</a> <a href="#" class="link-body-emphasis link-underline link-underline-success">success</a> <a href="#" class="link-body-emphasis link-underline link-underline-danger">danger</a> <a href="#" class="link-body-emphasis link-underline link-underline-warning">warning</a> <a href="#" class="link-body-emphasis link-underline link-underline-info">info</a>
</div>6Underline opacity
link-underline-opacity-0 to -100 fade the underline while the text keeps its colour.
<div class="grid gap-1">
<a href="#" class="link-offset-2 link-underline link-underline-opacity-0">link-underline-opacity-0</a> <a href="#" class="link-offset-2 link-underline link-underline-opacity-10">link-underline-opacity-10</a> <a href="#" class="link-offset-2 link-underline link-underline-opacity-25">link-underline-opacity-25</a> <a href="#" class="link-offset-2 link-underline link-underline-opacity-50">link-underline-opacity-50</a> <a href="#" class="link-offset-2 link-underline link-underline-opacity-75">link-underline-opacity-75</a> <a href="#" class="link-offset-2 link-underline link-underline-opacity-100">link-underline-opacity-100</a>
</div>7Underline appears on hover
link-underline-opacity-0 with link-underline-opacity-75-hover: the underline fades in on hover.
<ul class="list-unstyled mb-0 grid gap-1">
<li><a href="#" class="link-offset-2 link-underline link-underline-opacity-0 link-underline-opacity-75-hover">Join a community that cares</a></li>
<li><a href="#" class="link-offset-2 link-underline link-underline-opacity-0 link-underline-opacity-75-hover">Help us build a kinder world</a></li>
<li><a href="#" class="link-offset-2 link-underline link-underline-opacity-0 link-underline-opacity-75-hover">Small acts, big impact</a></li>
</ul>8Everything combined
Colour, opacity, offset and underline utilities on one link, with hover states.
<a href="#" class="link-success link-offset-2 link-offset-3-hover link-underline-success link-underline-opacity-25 link-underline-opacity-100-hover link-opacity-75 link-opacity-100-hover font-semibold">Secure giving <i class="bi bi-arrow-right" aria-hidden="true"></i></a>9Icon link
icon-link aligns an icon with the text and spaces it with a gap.
<div class="flex flex-wrap gap-6">
<a href="#" class="icon-link"><i class="bi bi-file-earmark-pdf" aria-hidden="true"></i> Download PDF</a> <a href="#" class="icon-link">Open in editor <i class="bi bi-box-arrow-up-right" aria-hidden="true"></i></a>
</div>10Icon moves on hover
icon-link-hover nudges the trailing icon when you hover the link.
<a href="#" class="icon-link icon-link-hover link-offset-2">Browse education <i class="bi bi-arrow-right" aria-hidden="true"></i></a>11Quiet body links
link-body-emphasis with a faint underline suits links inside long text.
The new tax receipts makes the whole team on the same page for teams of every size. animal rescue Our animal rescue guides customers coming back on any device.
<p class="mb-0">The new tax receipts makes the whole team on the same page for teams of every size. <a href="#" class="link-body-emphasis link-offset-2 link-underline-opacity-25 link-underline-opacity-75-hover">animal rescue</a> Our animal rescue guides customers coming back on any device.</p>12Footer link columns
Secondary links without underline that gain it on hover.
<div class="row g-3 small">
<div class="col-6 col-md-3">
<div class="font-semibold mb-2">
Product
</div>
<ul class="list-unstyled grid gap-1 mb-0">
<li><a href="#" class="link-secondary link-underline-opacity-0 link-underline-opacity-100-hover">Features</a></li>
<li><a href="#" class="link-secondary link-underline-opacity-0 link-underline-opacity-100-hover">Pricing</a></li>
</ul>
</div>
<div class="col-6 col-md-3">
<div class="font-semibold mb-2">
Company
</div>
<ul class="list-unstyled grid gap-1 mb-0">
<li><a href="#" class="link-secondary link-underline-opacity-0 link-underline-opacity-100-hover">About</a></li>
<li><a href="#" class="link-secondary link-underline-opacity-0 link-underline-opacity-100-hover">Jobs</a></li>
</ul>
</div>
</div>13Path links
A breadcrumb-like path built from links with an offset and a subtle underline.
<nav class="small" aria-label="Path">
<a href="#" class="link-secondary link-offset-2 link-underline-opacity-25">Home</a> / <a href="#" class="link-secondary link-offset-2 link-underline-opacity-25">Relief</a> / <span class="text-emphasis" aria-current="page">Emergency fund</span>
</nav>14Links on a dark surface
link-light and link-warning keep contrast on bg-dark.
<div class="bg-dark rounded-lg p-4 flex flex-wrap gap-4">
<a href="#" class="link-light link-offset-2">link-light</a> <a href="#" class="link-light link-opacity-75 link-opacity-100-hover">link-light 75</a> <a href="#" class="link-warning link-underline-opacity-50">link-warning</a>
</div>15Focus ring on a link
focus-ring adds a soft focus outline; focus-ring-{colour} changes its colour. Tab to the links to see it.
<div class="flex flex-wrap gap-4">
<a href="#" class="focus-ring py-1 px-2 rounded-md no-underline">Default focus ring</a> <a href="#" class="focus-ring focus-ring-success py-1 px-2 rounded-md no-underline link-success">Success focus ring</a>
</div>16Tag links
Small tag links with low opacity that brighten on hover.
<div class="flex flex-wrap gap-2 small">
<a href="#" class="link-primary link-opacity-50 link-opacity-100-hover link-underline-opacity-0">#tips</a> <a href="#" class="link-primary link-opacity-50 link-opacity-100-hover link-underline-opacity-0">#launch</a> <a href="#" class="link-primary link-opacity-50 link-opacity-100-hover link-underline-opacity-0">#reliable</a> <a href="#" class="link-primary link-opacity-50 link-opacity-100-hover link-underline-opacity-0">#release</a>
</div>17Card title link
A title link without underline plus stretched-link for a fully clickable card.
This simple idea lets you focused on what matters wherever you are.
<div class="relative border rounded-xl p-4" style="max-width:22rem">
<div class="small text-muted">
Oct 15, 2026
</div>
<a href="#" class="stretched-link link-body-emphasis link-underline-opacity-0 font-semibold">Join a community that cares</a>
<p class="small mb-0 mt-1">This simple idea lets you focused on what matters wherever you are.</p>
</div>18Table of contents
link-secondary entries with the current one in link-primary and a thicker offset.
<nav class="grid gap-1 small border-s ps-4" aria-label="On this page">
<a href="#" class="link-primary link-offset-3 font-semibold" aria-current="true">Overview</a> <a href="#" class="link-secondary link-underline-opacity-0 link-underline-opacity-50-hover">Installation</a> <a href="#" class="link-secondary link-underline-opacity-0 link-underline-opacity-50-hover">Configuration</a> <a href="#" class="link-secondary link-underline-opacity-0 link-underline-opacity-50-hover">FAQ</a>
</nav>19Destructive text link
link-danger with a danger underline for actions like removing an item.
<div class="flex justify-between items-center border rounded-lg p-4" style="max-width:24rem">
<span>School kit</span> <a href="#" class="link-danger link-underline-danger link-underline-opacity-25 link-underline-opacity-100-hover small">Remove</a>
</div>20Download links list
icon-link entries with file sizes and opacity on the meta text.
- brand-name-11.zip 18 MB
- user-guide.pdf 3 MB
<ul class="list-unstyled mb-0 grid gap-2">
<li><a href="#" class="icon-link icon-link-hover"><i class="bi bi-file-earmark-zip" aria-hidden="true"></i> brand-name-11.zip <i class="bi bi-download" aria-hidden="true"></i></a> <span class="small text-muted">18 MB</span></li>
<li><a href="#" class="icon-link icon-link-hover"><i class="bi bi-file-earmark-zip" aria-hidden="true"></i> user-guide.pdf <i class="bi bi-download" aria-hidden="true"></i></a> <span class="small text-muted">3 MB</span></li>
</ul>