Skip to content

Card

Interactive specimen

Native controls work. Demo links and submissions stay inside this specimen.

Source markup
<!-- @dsCard group="Display" height=416 -->
<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<meta charset="utf-8">
<title>Card</title>
<style>
  /* Layout of the demo states only. All component styling comes from bundle.css. */
  .demo {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
    max-width: 960px;
    padding: 0 var(--space-2xs);
  }
  .row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); align-items: start; }
  .gap-above { margin-top: var(--space-sm); }
  .state { color: var(--color-semantic-text-muted); }
  .card__reticle svg { display: block; width: 100%; height: 100%; }

  /* Static hover. The three declarations below are copied from bundle.css
     (.card:hover, .card--bordered-accent:hover::before, .card:hover .card__reticle)
     and re-applied to .is-hover so the state shows without a pointer. bundle.css
     pairs :focus-within with :hover on the same two rules, so this is both states. */
  .card.is-hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
  .card--bordered-accent.is-hover::before { transform: scaleX(1); }
  .card.is-hover .card__reticle { opacity: 0.9; transform: scale(1.12); }
</style>
</head>
<body>
<div class="demo">

  <div class="row-3">
    <p class="t-label state">Rest</p>
    <p class="t-label state">Hover / focus-within</p>
    <p class="t-label state">Rest</p>
  </div>

  <div class="row-3">

    <article class="card card--bordered-accent">
      <span class="card__reticle" aria-hidden="true">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><g class="mark" fill="currentColor"><path fill-rule="evenodd" d="M36,128 A92,92 0 1,0 220,128 A92,92 0 1,0 36,128 Z M59,128 A69,69 0 1,0 197,128 A69,69 0 1,0 59,128 Z"/><polygon points="89.033,105.296 32.388,48.652 32.388,32.388 48.652,32.388 105.296,89.033"/><polygon points="150.704,166.967 207.348,223.612 223.612,223.612 223.612,207.348 166.967,150.704"/><circle cx="128" cy="128" r="14"/></g></svg>
      </span>
      <p class="card__eyebrow t-label">Infrastructure</p>
      <h3 class="t-h4">Hosting</h3>
      <p class="t-caption">Hosting, domains, cloud and networking.</p>
      <p class="card__footer t-label">Data sovereignty</p>
    </article>

    <article class="card card--bordered-accent is-hover">
      <span class="card__reticle" aria-hidden="true">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><g class="mark" fill="currentColor"><path fill-rule="evenodd" d="M36,128 A92,92 0 1,0 220,128 A92,92 0 1,0 36,128 Z M59,128 A69,69 0 1,0 197,128 A69,69 0 1,0 59,128 Z"/><polygon points="89.033,105.296 32.388,48.652 32.388,32.388 48.652,32.388 105.296,89.033"/><polygon points="150.704,166.967 207.348,223.612 223.612,223.612 223.612,207.348 166.967,150.704"/><circle cx="128" cy="128" r="14"/></g></svg>
      </span>
      <p class="card__eyebrow t-label">Security</p>
      <h3 class="t-h4">Cybersecurity</h3>
      <p class="t-caption">Data protection, threat mitigation and hardware.</p>
      <p class="card__footer t-label">Privacy first</p>
    </article>

    <article class="card card--bordered-accent">
      <span class="card__reticle" aria-hidden="true">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><g class="mark" fill="currentColor"><path fill-rule="evenodd" d="M36,128 A92,92 0 1,0 220,128 A92,92 0 1,0 36,128 Z M59,128 A69,69 0 1,0 197,128 A69,69 0 1,0 59,128 Z"/><polygon points="89.033,105.296 32.388,48.652 32.388,32.388 48.652,32.388 105.296,89.033"/><polygon points="150.704,166.967 207.348,223.612 223.612,223.612 223.612,207.348 166.967,150.704"/><circle cx="128" cy="128" r="14"/></g></svg>
      </span>
      <p class="card__eyebrow t-label">Services</p>
      <h3 class="t-h4">Software</h3>
      <p class="t-caption">Applications and development, privacy coins and AI.</p>
      <p class="card__footer t-label">Open-source foundation</p>
    </article>

  </div>

  <p class="t-label state gap-above">App tiles, rest</p>

  <div class="row-3">
    <a class="app-card" href="#">
      <span class="app-card__name">Noiz &lt; Send</span>
      <span class="app-card__type">File transfer</span>
    </a>
    <a class="app-card" href="#">
      <span class="app-card__name">Noiz &lt; Nextcloud</span>
      <span class="app-card__type">Files and sync</span>
    </a>
  </div>

</div>
</body>
</html>

Card is the surface that carries one unit of content: an eyebrow, a heading, body copy and an optional footer, drawn on color-semantic-bg-surface inside a color-semantic-border-base hairline at radius-md.

Use it for a grid of parallel items, one per pillar or service. Do not use it for a single run of prose on the page ground, and do not nest cards. .app-card is the smaller sibling: a centred tile naming one application in a launcher grid.

The markup and the children. There is no pillar scope to set: every accent on the card is color-semantic-accent-primary. Add .card--bordered-accent for the top rule, .card__eyebrow for the mono label, .card__footer for content pinned to the bottom, and .card__reticle for the corner mark, which must be inline SVG in currentColor.

At rest the accent rule sits at scaleX(0) and the reticle at 0.22 opacity. On :hover and :focus-within the rule scales in, the card lifts three pixels and takes shadow-lift, and the reticle brightens to 0.9 and scales. Transitions run at duration-base with easing-standard. .app-card lifts two pixels and borders in color-semantic-accent-primary; its shadow is the theme-only --elevation-2, which is not a token in this system.

  • Role: .card is not interactive and needs no ARIA role; the preview uses <article>. .app-card is an <a href> and keeps the native link role.
  • Name: an <article> card is unnamed unless aria-labelledby points at its heading. .app-card is named by its own text; .card__reticle is aria-hidden="true".
  • Keyboard: nothing on .card takes focus, so Tab reaches focusable children and :focus-within fires. Tab and Enter follow an .app-card link; Space, Escape and the arrows do nothing.
  • Target size: .app-card is the only interactive part. Its space-md padding around two text lines clears the 24px floor of WCAG 2.2 SC 2.5.8 on both axes; a control inside .card carries its own size.
  • Announcement: none. Hover and focus change the rule, lift and mark.

Keep the padding at space-lg and the internal gap at space-sm as the class sets them. Do not tint the accent rule anything but color-semantic-accent-primary. Text on a filled accent takes color-semantic-text-on-accent, never color-semantic-text-primary. Do not glow the surface and do not glow the corner mark: .card__reticle is color-mark-light, and a mark never carries the phosphor.

Hand-written from themes/noiz/assets/css/components.css (.card, .card–bordered-accent, .card__eyebrow, .card__footer, .card__reticle, .app-card).