v1.4.0
  1. Home
  2. Get started
  3. Foundations
  4. Patterns
    1. Accordion
    2. Autocomplete
    3. Button
    4. Callout
    5. Chat
    6. Description List
    7. Details
    8. Expand Text
    9. Fallback Image
    10. Feedback
    11. Focus Indicator
    12. Footer
    13. Header
    14. Hero
    15. IIIF Image
    16. Link
    17. Page Title
    18. Results per Page
    19. Service Switcher
  5. What's new

Link

Style links so users can easily identify and interact with them.

Help users navigate from one page or website to another.

When to use

Use links for navigation from one page or website to another.

How to use

Links within body text use --pl-color-fg-accent and are underlined by default so users can identify them without relying on color alone.

a {
  color: var(--pl-color-fg-accent);
  text-decoration: underline;
  text-underline-offset: var(--pl-link-text-underline-offset);
  text-decoration-thickness: var(--pl-link-text-decoration-thickness);
}

a:hover {
  text-decoration-thickness: var(--pl-link-hover-text-decoration-thickness);
}
<p class="pl-reset pl-typeset pl-margin-l">Lorem ipsum dolor sit amet, <a href="#">consectetur adipiscing elit</a>, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut <a href="#">aliquip ex ea commodo</a> consequat.</p>

When many links are presented together, the underline is optional. Removing it is common in navigation and list items where repeated underlines impede readability. Links should still underline on hover.

<style>
  nav a {
    text-decoration: none;
    color: var(--pl-fg-default);
  }

  nav a:hover {
    text-decoration: underline;
    text-underline-offset: var(--pl-link-text-underline-offset);
    text-decoration-thickness: var(--pl-link-hover-text-decoration-thickness);
  }
</style>

<nav class="pl-reset pl-typeset pl-margin-s pl-flex">
  <a href="#" class="pl-padding-s">Lorem</a>
  <a href="#" class="pl-padding-s">Ipsum</a>
  <a href="#" class="pl-padding-s">Dolor</a>
  <a href="#" class="pl-padding-s">Amet</a>
</nav>

New tabs disorient users, especially on mobile, and break the back button. Consider a new tab only when navigating away would lose the user's work, like linking to help from a form.

Design System

Get started Content & writing v1.4.0