Secondary Intent
The .secondary class provides a lower-emphasis visual style for links and buttons. Use it to indicate an alternative or less prominent action in a group of controls.
Links
Apply .secondary to <a> elements or elements with [role="link"] to de-emphasize them.
<a href="#" class="secondary">Regular Link</a>
<hr>
<a href="#" aria-current="page" class="secondary">Active link</a>
<hr>
<button class="secondary" role="link">
<button> as link
</button>
<hr>
<button role="link" aria-current="page" class="secondary">Active button</button>
<hr>
<div class="secondary" role="link">
<div> as link
</div>
<hr>
<div role="link" aria-current="page" class="secondary">Active div</div>Buttons
Apply .secondary to <button> elements or elements with [role="button"] for a secondary action button.
<div class="auto-grid">
<button class="secondary">
Button
</button>
<div class="secondary" role="button">
<div> as button
</div>
<details>
<summary class="secondary" role="button" aria-haspopup="menu">
Dropdown as a button
</summary>
<ul role="menu">
<li><a role="menuitem" href="#">Solid</a></li>
<li><a role="menuitem" href="#">Liquid</a></li>
<li><a role="menuitem" href="#">Gas</a></li>
<li><a role="menuitem" href="#">Plasma</a></li>
</ul>
</details>
</div>Cards
Apply .secondary to an element with .card for a secondary action card.
Modifiers
.secondary can be modified with .subtle to create cards with a more muted appearance, often used for less prominent actions.
.secondary can be modified with .ghost to create ghost buttons and cards, which have a transparent background and a border, making them less visually prominent while still maintaining the secondary effect.