Links
Clear destinations with underline, icon, and hover treatments.
Plain and icon links
View HTML / PlaygroundHTML source
<div class="sl-cluster sl-gap-4">
<a class="sl-link" href="/light/getting-started/">Read the guide</a
><a class="sl-link" href="/light/components/"
>Explore components
<svg
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
aria-hidden="true"
>
<path d="M5 12h14m-6-6 6 6-6 6" /></svg
></a>
</div>HTML source · enable JavaScript for the playground14 lines · UTF-8
ReadyCtrl/⌘ + Enter to run · Scripts blocked
Animated underline
View HTML / PlaygroundHTML source
<div class="sl-cluster sl-gap-4">
<a class="sl-link sl-link--underline" href="/light/themes/">Meet the palette</a
><a class="sl-link sl-link--underline" href="/light/layouts/"
>Explore layouts
<svg
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
aria-hidden="true"
>
<path d="M5 12h14m-6-6 6 6-6 6" /></svg
></a>
</div>HTML source · enable JavaScript for the playground14 lines · UTF-8
ReadyCtrl/⌘ + Enter to run · Scripts blocked
A navigation link group
View HTML / PlaygroundHTML source
<nav class="sl-cluster" aria-label="Example link group">
<a class="sl-link sl-link--underline" href="/light/components/buttons/">Buttons</a
><a class="sl-link sl-link--underline" href="/light/components/cards/">Cards</a
><a class="sl-link sl-link--underline" href="/light/components/accordions/"
>Accordions</a
>
</nav>HTML source · enable JavaScript for the playground7 lines · UTF-8
ReadyCtrl/⌘ + Enter to run · Scripts blocked
A download destination
View HTML / PlaygroundHTML source
<div class="sl-cluster sl-gap-4">
<a class="sl-link sl-link--underline" href="/downloads/motion.min.css" download
>Download motion CSS ↓</a
><a class="sl-link" href="/downloads/variants.min.css" download
>Download variants ↓</a
>
</div>HTML source · enable JavaScript for the playground7 lines · UTF-8
ReadyCtrl/⌘ + Enter to run · Scripts blocked
A link styled as an action
View HTML / PlaygroundHTML source
<div class="sl-cluster sl-gap-4">
<a class="sl-btn sl-btn--outline sl-hover-fill" href="/light/getting-started/"
>Start building
<svg
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
aria-hidden="true"
>
<path d="M5 12h14m-6-6 6 6-6 6" /></svg
></a>
</div>HTML source · enable JavaScript for the playground13 lines · UTF-8
ReadyCtrl/⌘ + Enter to run · Scripts blocked
Classes beginning with sl- come from StyloftCSS. Examples with demo- classes also use our optional demo extension CSS ↓. Load it after the core to reproduce those details.