Skip to main content Skip to docs navigation
View on GitHub

# Colored links

Colored links with hover states

You can use the `.link-*` classes to colorize links. Unlike the `.text-*` classes, these classes have a `:hover` and `:focus` state.

Primary link Secondary link Success link Danger link Warning link Info link Light link Dark link

    <a href="#" class="link-primary">Primary link</a>
    <a href="#" class="link-secondary">Secondary link</a>
    <a href="#" class="link-success">Success link</a>
    <a href="#" class="link-danger">Danger link</a>
    <a href="#" class="link-warning">Warning link</a>
    <a href="#" class="link-info">Info link</a>
    <a href="#" class="link-light">Light link</a>
    <a href="#" class="link-dark">Dark link</a>

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.