Skip to content

Card List ​

Card lists are implemented by adding the .card class to a <div role="list"> or a <ul> element.

The examples below use the <ul> approach but you can in case you want to use a different container element, check out [role=list] which behaves the same way.

Basic Usage ​

You can indicate that a certain item is active by using aria-current="true".

live preview
editable html
<ul class="card">
  <li>Item 1</li>
  <li aria-current="true">Item 2</li>
  <li>Item 3</li>
  <li>Item 4</li>
</ul>

Intent Variants ​

To convey intent and importance, card lists can be styled with different variants:

live preview
See code

Modifiers ​

.ghost creates transparent background card lists with colored text and borders

live preview
See code

.subtle creates card lists with a more muted appearance.

live preview
See code

.striped creates card lists with alternating background colors for better readability.

live preview
See code

Variants applied individually to an item ​

You can also use variant classes on individual items to indicate their intent and importance.

live preview
See code