Skip to the page

UI

Links

Dugout green text whose underline draws in on hover or focus.

In use

Toronto Blue Jays

The Blue Jays didn't make the playoffs.

Next steps under an empty state.
A link to another page.

Anatomy

  1. TextDugout green, Outfit at the size of the words around it, medium weight. No underline at rest.
  2. UnderlineA 1.5px line that draws in from the left on hover or keyboard focus.

States

LinkThe underline draws in on hover and focus.

When to use it

Use a link to go to another page, or for a quiet next step that reads as part of the text.

When not to use it

Don’t use a link for the action that finishes a panel; use a primary button.

Accessibility

Dugout green reaches 4.5:1 on every surface in both modes, so a link reads without its underline. The underline also shows on keyboard focus.

Tokens

In code: the link class in src/ds/components/LinkStyle/LinkStyle.module.css, used by NextSteps

Tokens
TokenWhat it sets
--ds-brandThe colour.
--ds-link-lineThe underline's thickness.
--ds-duration-linkHow long the underline takes to draw in.