Link size
The link size class sets the font property. It controls how big or small a link is.
In most cases you do not need to use this class. Links are styled to match GCDS by default. Use the semantic HTML tag a or the GCDS component gcds-link whenever possible.
Overview | CSS Shortcut class | Applied style |
link-size-regular
| font: var(--gcds-link-font-regular-desktop);
@media only screen and (width < 48em) {
font: var(--gcds-link-font-regular-mobile);
}
|
link-size-small
| font: var(--gcds-link-font-small-desktop);
@media only screen and (width < 48em) {
font: var(--gcds-link-font-small-mobile);
}
|
link-size-inherit
| font: inherit;
@media only screen and (width < 48em) {
font: inherit;
}
|
Examples
Regular
link-size-regular
<a href="#" class="link-size-regular">
This is the regular link size.
</a>
Small
link-size-small
<a href="#" class="link-size-small">
This is the small link size.
</a>
Inherit
link-size-inherit
<h4>
<a href="#" class="link-size-inherit">
This link inherits its size from the parent element.
</a>
</h4>
Conditional styling Apply this style to specific screen sizes Use a responsive layout prefix to apply this class only to a specified screen size. The available breakpoints are: xs: > 480px sm: > 640px md: > 768px lg: > 1024px xl: > 1280px
<div class="xs:link-size-inherit ...">
...
</div>
Learn more about the responsive layout prefix. 2026-02-12