Link
Color
Element | Property | Color token |
---|---|---|
Link | text-color | $link-primary |
![Examples of link and inline link Examples of link and inline link](/static/f6897c386b166bd2787b2c9a11c97772/3cbba/link-style-1.png)
Interactive states
State | Property | Color token |
---|---|---|
Hover | text-color | $link-primary-hover |
Active | text-color | $text-primary |
Focus | border | $focus |
Visited | text-color | $link-visited |
Disabled | text-color | $text-disabled |
![Examples of link and inline link states Examples of link and inline link states](/static/2429919858fb04e404eb28457a3d2c0f/3cbba/link-style-2.png)
Typography
There are three size variants for the link component: small, medium, and large.
Element | Font-size (px/rem) | Font-weight | Type token |
---|---|---|---|
Small | 12 / 0.75 | Regular / 400 | $helper-text-01 |
Medium | 14 / 0.875 | Regular / 400 | $body-compact-01 |
Large | 16 / 1 | Regular / 400 | $body-compact-02 |
![Examples of link sizes Examples of link sizes](/static/51cebcec446cda09c600c408ed420a24/3cbba/link-style-3.png)
Structure
Recommended
Links can be grouped horizontally or vertically. The following specs are not built into the link component but are recommended by design as the proper distance between grouped links.
Element | Property | px / rem | Spacing token |
---|---|---|---|
Link | padding-right | 16 / 1 | $spacing-05 |
padding-bottom | 4 / 0.25 | $spacing-02 | |
padding-bottom | 8 / 0.5 | $spacing-03 | |
Icon | padding-left | 8 / 0.5 | $spacing-03 |
![Link structure and spacing measurements Link structure and spacing measurements](/static/a3a55def7648c73b635332e84bdcf56a/3cbba/link-style-4.png)
Structure and spacing measurements for Link | px / rem
![Link with icon structure and spacing measurements Link with icon structure and spacing measurements](/static/4748ea6f2c3d7a3a87553f6326050892/3cbba/link-style-5.png)
Structure and spacing measurements for Link with icon | px / rem