skip to content

Candidate

Use the Candidate component for summarizing key information about a political candidate.

The Candidate component is a special kind of card. For all other card use cases, see the generic Card. The following demo uses a Grid as a list (<ul>) to display a list of cards.

Light theme

Dark theme

Invoke the dark theme on any component by applying class="ds-dark" to a container element.

Each Candidate in the list of Candidates from the previous example uses the following markup. Do not place any more content than the (linked) candidate name and party affiliation for Candidates in a list.

<div class="ds-candidate">
  <div class="ds-candidate-body ds-stack-smallest">
    <h3 class="ds-candidate-name ds-h5">
      <a href="path/to/candidate">Candidate name</a>
    </h3>
    <div class="ds-h6">Candidate party</div>
  </div>
  <div class="ds-candidate-image">
    <img src="/path/to/candidate/image" alt="">
  </div>
</div>

Markup variants

<div class="ds-candidate">
  <div class="ds-candidate-body ds-stack-smaller">
    <h2 class="ds-candidate-name ds-h3">
      Candidate name
    </h2>
    <p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Libero, suscipit fugit veritatis impedit, distinctio sint commodi labore porro ipsum, a officiis nesciunt aspernatur consequatur. Atque ab eligendi maxime rerum consequatur.<p>
  </div>
  <div class="ds-candidate-image">
    <img src="/path/to/candidate/image" alt="">
  </div>
</div>

Standalone Candidate

Light theme

Candidate name

Lorem ipsum dolor, sit amet consectetur adipisicing elit. Libero, suscipit fugit veritatis impedit, distinctio sint commodi labore porro ipsum, a officiis nesciunt aspernatur consequatur. Atque ab eligendi maxime rerum consequatur.

Animi maiores, earum quisquam porro mollitia maxime pariatur iure esse nesciunt obcaecati deleniti explicabo a, veritatis voluptatum, suscipit ipsum illo provident temporibus.

Dark theme

Invoke the dark theme on any component by applying class="ds-dark" to a container element.

Candidate name

Lorem ipsum dolor, sit amet consectetur adipisicing elit. Libero, suscipit fugit veritatis impedit, distinctio sint commodi labore porro ipsum, a officiis nesciunt aspernatur consequatur. Atque ab eligendi maxime rerum consequatur.

Animi maiores, earum quisquam porro mollitia maxime pariatur iure esse nesciunt obcaecati deleniti explicabo a, veritatis voluptatum, suscipit ipsum illo provident temporibus.