Skip to content

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.

Apply .secondary to <a> elements or elements with [role="link"] to de-emphasize them.

live preview
editable html
<a href="#" class="secondary">Regular Link</a>

<hr>

<a href="#" aria-current="page" class="secondary">Active link</a>
<hr>
<button class="secondary" role="link">
  &lt;button&gt; as link
</button>

<hr>

<button role="link" aria-current="page" class="secondary">Active button</button>

<hr>

<div class="secondary" role="link">
  &lt;div&gt; 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.

live preview
editable html
<div class="auto-grid">
  <button class="secondary">
    Button
  </button>
  
  <div class="secondary" role="button">
    &lt;div&gt; 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.

live preview
See code

Modifiers

.secondary can be modified with .subtle to create cards with a more muted appearance, often used for less prominent actions.

live preview
See code

.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.

live preview
See code