Winnie CSS
  1. Primitives
  2. link

link

Navigates a user between pages.

Import

Import just the breadcrumbs styles.

@import "@winnie-ui/css/spatial/typography";
@import "@winnie-ui/css/visual/link";
@import "@winnie-ui/css/visual/typography";

Anatomy

Attach the appropriate data attributes in the structure below.

<a data-component="link" />

Examples

Size

Use the data-size attribute to change the size.

Color

Use the data-accent-color attribute to change the color.

Contrast

Use the data-contrast attribute to change the contrast.

Weight

Use the data-weight attribute to change the weight.

Alignment

Use the data-align attribute to change the alignment.

Disabled

Use the data-disabled attribute to disable the link.

Reference

link

Represents the link element.

AttributeValue
data-accent-color"red" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "grey" | "brand"
data-align"left" | "center" | "right"
data-contrast"low" | "normal" | "high"
data-currentboolean
data-disabledboolean
data-size"1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9"
data-weight"normal" | "medium" | "semibold" | "bold" | "extrabold"
ModifierDescription
hoveredWhen the link is hovered with a mouse
pressedWhen the link is pressed with a mouse or keyboard
currentWhen the link represents the current page
Variable
--wui-link-color-disabled
--wui-link-font-family
--wui-link-letter-spacing
--wui-link-text-decoration-<?modifier>