Actions
Link
Text link in running text or on its own. Always underlined; Next link inside, <a> outside.
- Ready
- Keyboard tested
- Screen reader not tested yet
Playground
States
Usage
When to use
Use a link to go somewhere: another page, a section on this page, an external site.
When not to use
- To trigger an action on the current page: use Button.
- As the main call to action of an area: use Button with
href.
How it works
Always underlined, so links never depend on colour alone. inline inherits the size of the surrounding text; standalone is medium weight for links on their own line. Internal links use Next's client navigation. With newTab, the link shows an icon and tells screen readers that it opens a new tab.
Content guidelines
The link text names the target: “Read the color foundations”, not “click here” or “more”. Open a new tab only when leaving the page would lose the person's context.
Do and don’t
The token architecture is described in the LVM case.
DoThe link text says where it leads. The token architecture is described in the LVM case, here.
Don’t“Here” says nothing out of context; screen reader users often hear links as a list.
- The link text describes the target.
- Open a new tab only when the context would otherwise be lost.
- No “click here” or “more” without context.
- Don't use a link for actions; use Button.
Anatomy
- labelUnderlined text; colour changes on hover.
- iconNew-tab arrow, only with newTab.
Examples
In running text
Every value lives in the design tokens and is described in the manifest.
Standalone
External, new tab
Props
| Name | Type | Default | Description |
|---|---|---|---|
| href (required) | string | – | Internal (/path) or external (https://, mailto:, tel:). |
| variant | "inline" | "standalone" | "inline" | inline inherits the type, standalone stands on its own. |
| newTab | boolean | false | Opens in a new tab, with a visible hint and screen reader text. |
| children (required) | ReactNode | – | Link text that names the target. |
Tokens used
| Token | Tier | Value | Utility |
|---|---|---|---|
| link.decoration | component | #C6492E | |
| link.fg | component | #0A0A0B | |
| link.fgHover | component | #C6492E | |
| link.radius | component | 4px | |
| focus | semantic | #C6492E | |
| spacing.1 | semantic | 4px | |
| spacing.3 | semantic | 12px | |
| surface.page | semantic | #FAFAF7 | |
| weight.medium | semantic | 500 |
Accessibility
| Check | How | Status |
|---|---|---|
| axe-core rules | Automated on every npm run check, at desktop and mobile width | Runs on every build |
| Keyboard | Automated Playwright test (scripts/keyboard.mjs) | Tested |
| Screen reader | Manual | Not tested yet |
Keyboard
| Key | Action |
|---|---|
| Tab | Moves focus to the link. |
| Enter | Follows the link. |
Semantics and focus
- Underlined, not only coloured (WCAG 1.4.1).
- External links get rel="noopener noreferrer".
- New tab: visible icon and sr-only “opens in a new tab”.
Contrast
| Pairing | Ratio (x:1) | Minimum | Status |
|---|---|---|---|
| text.primary on surface.page | 18.92 | 4.5 | Pass |
| accent.default on surface.page | 4.57 | 4.5 | Pass |
| focus on surface.page | 4.57 | 3.0 | Pass |