Link colour
The link colour class sets the color property. It controls the colour of a link.
| CSS Shortcut class | Applied style |
|---|---|
|
|
|
|
|
|
|
|
Examples
Default
link-default
<a href="#" class="link-default">
This link uses the default link colour.
</a>
Hover
link-hover
<a href="#" class="link-hover">
This link uses the hover link colour on hover.
</a>
Inherit
link-inherit
<div style="color: var(--gcds-color-red-700);">
<a href="#" class="link-inherit">
This link inherits its colour from the parent element.
</a>
</div>
Light
link-light
<a href="#" class="link-light">
This link uses the light link colour.
</a>
xs:> 480pxsm:> 640pxmd:> 768pxlg:> 1024pxxl:> 1280px
<div class="xs:link-hover ...">
...
</div>
hoverfocus
<div class="hover:link-hover ...">
...
</div>