Skip to content
The Membrane Palette
Actionsstable

Link

Text links — inline, quiet and standalone call-to-action — plus the skip link every page should start with.

Examples

Inline, quiet, standalone

Read the design principles before proposing a new token.

Updated 3 days ago by Isaac

Explore the case study
HTML for “Inline, quiet, standalone”
<div class="mp-stack" data-gap="2">
  <p class="type-body">Read the <a class="mp-link" href="#components">design principles</a> before proposing a new token.</p>
  <p class="type-small">Updated 3 days ago by <a class="mp-link" data-variant="quiet" href="#components">Isaac</a></p>
  <a class="mp-link" data-variant="standalone" href="#components">Explore the case study</a>
</div>

Guidance

Links navigate. They are teal (the digital, navigational register) and always underlined, so color is never the only cue.

When to use

  • .mp-link — inline links in UI copy.
  • data-variant="quiet" — links inside metadata that should take the surrounding text color.
  • data-variant="standalone" — a "Read more →" style call-to-action on its own line.
  • .mp-skip-link — the first element in <body>, pointing at <main id="…">.

When not to use

  • Inside .mp-prose you don't need the class — bare <a> is already styled.
  • If activating it changes something on this page, it's a Button.

Make it the first child of <body>; it targets the id of your <main>. It only works at the top of a real page, so it isn't rendered in the gallery — press Tab on the showcase to see it.

<body>
  <a class="mp-skip-link" href="#main">Skip to content</a>
  <header class="mp-navbar">…</header>
  <main id="main">…</main>
</body>

Accessibility

  • Link text must make sense out of context: "Explore the case study", not "click here".
  • The standalone arrow is decorative (content: "→" / "" has empty alt text), so screen readers don't read "right arrow".
  • The skip link is off-screen until focused, then slides into view.

API

Link classes
ClassKind
.mp-linkroot
.mp-skip-linkroot
Link attributes
AttributeValues
data-variantquiet · standalone

States styled: :focus-visible :hover. Set the native attribute or ARIA state; there are no state classes.

No component tokens: Link reads the semantic tokens directly.

Design tokens consumed: --border-width-thin --color-bg-inverse --color-text-accent --color-text-inverse --focus-ring --focus-ring-offset --font-sans --radius-md --radius-sm --size-touch-target --space-1 --space-2 --space-3 --space-4 --space-8 --text-small --transition-fast --weight-medium --weight-semibold --z-tooltip

Source