Link
Links allow users to navigate to different pages, scroll to sections within a page, or access external resources. The library provides three distinct semantic variants.
Composed Utilities
The following utilities apply complete styling and interaction states for different link contexts.
html
<!-- Inline text link -->
<p>Read our <a href="#" class="link">Privacy Policy</a>.</p>
<!-- Navigation link -->
<nav class="flex gap-4">
<a href="#" class="link-nav" aria-current="page">Home</a>
<a href="#" class="link-nav">About</a>
</nav>
<!-- Standalone call-to-action link -->
<a href="#" class="link-standalone">Read more</a>link: Designed for inline text within paragraphs. It uses theprimarycolor and500font weight. On hover, it displays a colored underline. Visited links automatically switch to thetertiarycolor to indicate history.link-nav: A subtle, no-underline link designed for sidebars and navbars. It useson-surface-variantby default, brightens toon-surfaceon hover, and automatically highlights with theprimarycolor when thearia-current="page"attribute is present.link-standalone: A heavier weight (600) inline-flex link meant to act as a secondary call-to-action. It includes a built-in arrow affordance (→) generated via a CSS::afterpseudo-element. On hover, the gap expands and the arrow smoothly translates to the right.