# Link (`.z-link`)

> Link styles: underlined, muted, hover-only underline, reset, and parent toggle.

- **Kind:** css
- **Category:** general

## CSS Variables

| Variable | Default | Scope | Affects | Description |
| --- | --- | --- | --- | --- |
| `--z-link-font-weight` | `500` | `.z-link` | `font-weight` | Font weight of underlined links. |
| `--z-link-muted-color` | `var(--z-muted-f)` | `a.z-link-muted, .z-link-muted a, .z-link-toggle .z-link-muted` | `color` | Text color of muted links. |
| `--z-link-muted-color-o` | `100%` | `a.z-link-muted, .z-link-muted a, .z-link-toggle .z-link-muted` | `color` | Opacity applied to the muted link color. |
| `--z-link-muted-font-weight` | `500` | `a.z-link-muted, .z-link-muted a, .z-link-toggle .z-link-muted` | `font-weight` | Font weight of muted links. |
| `--z-link-underline-offset` | `4px` | `.z-link` | `text-underline-offset` | Distance between the text and its underline. |

## CSS Classes

| Class | Role | Applies to | Description |
| --- | --- | --- | --- |
| `.z-link` | `root` | `.z-link` | Underlined link with medium font weight. |
| `.z-link-muted` | `modifier` | `.z-link` | Muted-color underlined link; also styles links inside a muted container. |
| `.z-link-reset` | `modifier` | `.z-link` | Removes underline and restores normal font weight. |
| `.z-link-text` | `modifier` | `.z-link` | Plain text link that underlines on hover. |
| `.z-link-toggle` | `modifier` | `.z-link` | Underline-free parent; hovering it underlines `.z-link-text` children and styles `.z-link-muted` children. |

## Guides

- [Styling with cls and stl](https://next.0build.dev/docs/guides/styling.md)
- [Translating Components](https://next.0build.dev/docs/guides/i18n.md)
- [Icon Resolution](https://next.0build.dev/docs/guides/icons.md)
- [The data-source Convention](https://next.0build.dev/docs/guides/data-source.md)
- [Openers & Triggers](https://next.0build.dev/docs/guides/triggers.md)
- [Dialog Behavior](https://next.0build.dev/docs/guides/dialogs.md)
- [Utilities](https://next.0build.dev/docs/guides/utilities.md)
- [Runtime](https://next.0build.dev/docs/guides/runtime.md)
