Colored links
Colored links with hover states
On this page
Link colors
You can use the .link-*
classes to colorize links. Unlike the .text-*
classes, these classes have a :hover
and :focus
state. Some of the link styles use a relatively light foreground color, and should only be used on a dark background in order to have sufficient contrast.
See Bootstrap examples that are incompatible with Orange Design System.
Incompatibility with Orange Design System. More information
The colors combinations below do not belong to the Orange Design System specifications.
Please refer to our links section and to the Text links in body copy guidelines on the Orange Design System website.
.link-body-emphasis
is currently the only colored link that adapts to color modes. It’s treated as a special case until v6 arrives and we can more thoroughly rebuild our theme colors for color modes. Until then, it’s a unique, high-contrast link color with custom :hover
and :focus
styles. However, it still responds to the new link utilities.
<p><a href="#" class="link-primary">Primary link</a></p>
<p><a href="#" class="link-secondary">Secondary link</a></p>
<p><a href="#" class="link-success">Success link</a></p>
<p><a href="#" class="link-danger">Danger link</a></p>
<p><a href="#" class="link-warning bg-dark">Warning link</a></p>
<p><a href="#" class="link-info">Info link</a></p>
<p><a href="#" class="link-light bg-dark">Light link</a></p>
<p><a href="#" class="link-dark bg-white">Dark link</a></p>
<p><a href="#" class="link-body-emphasis">Emphasis link</a></p>
.visually-hidden
class.
Link utilities
Added in v5.3.0
Colored links can also be modified by our link utilities.
See Bootstrap examples that are incompatible with Orange Design System.
Incompatibility with Orange Design System. More information
The colors combinations below do not belong to the Orange Design System specifications.
Please refer to our links section and to the Text links in body copy guidelines on the Orange Design System website.
<p><a href="#" class="link-primary link-offset-2 link-underline-opacity-10 link-underline-opacity-100-hover">Primary link</a></p>
<p><a href="#" class="link-light link-offset-2 link-underline-opacity-10 link-underline-opacity-100-hover">Light link</a></p>
<p><a href="#" class="link-body-emphasis link-offset-2 link-underline-opacity-10 link-underline-opacity-75-hover">Emphasis link</a></p>