v1.3.0 28

Card

Displays a card with header, content, and footer.

Default

html

Card Title

Card description goes here.

Card content with some details about this item that needs to be displayed to the user.

<div class="vt-card vt-max-w-sm">

  <div class="vt-card-header">

    <h3 class="vt-card-title">Card Title</h3>
    <p class="vt-card-description">Card description goes here.</p>
  </div>
  <div class="vt-card-body">

    <p>Card content with some details about this item that needs to be displayed to the user.</p>
  </div>
</div>
html

Create project

Deploy your new project in one-click.

Astro
Astro
Next.js
SvelteKit
<div class="vt-card vt-max-w-sm vt-overflow-visible">

  <div class="vt-card-header">

    <h3 class="vt-card-title">Create project</h3>
    <p class="vt-card-description">Deploy your new project in one-click.</p>
  </div>
  <div class="vt-card-body">

    <div class="vt-field">
      <label class="vt-label" for="card-project-name">
        Name
      </label>
      <input type="text" placeholder="Name of your project" class="vt-input" id="card-project-name">
    </div>
    <div class="vt-field">
      <label class="vt-label" for="card-project-framework">
        Framework
      </label>
      <div class="vt-select-wrapper vt-relative">
        <div id="card-project-framework" class="vt-select-trigger" role="button" tabindex="0" aria-haspopup="listbox" onclick="veritheme.toggleSelect('card-framework-dd')">
          <span>Astro</span>
          <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" aria-hidden="true">
            <path d="M18 9.00005C18 9.00005 13.5811 15 12 15C10.4188 15 6 9 6 9" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
          </svg>
        </div>
        <div id="card-framework-dd" class="vt-select-dropdown" role="listbox" aria-label="Framework">
          <div class="vt-select-item selected" role="option" aria-selected="true" onclick="veritheme.selectItem('card-framework-dd','card-project-framework','Astro')">Astro</div><div class="vt-select-item" role="option" aria-selected="false" onclick="veritheme.selectItem('card-framework-dd','card-project-framework','Next.js')">Next.js</div><div class="vt-select-item" role="option" aria-selected="false" onclick="veritheme.selectItem('card-framework-dd','card-project-framework','SvelteKit')">SvelteKit</div>
        </div>
      </div>
    </div>
  </div>
  <div class="vt-card-footer">
    <button class="vt-btn vt-btn-bordered">
      Cancel
    </button>
    <button class="vt-btn vt-btn-primary">
      Deploy
    </button>
  </div>
</div>

Size

vt-card-sm is the dense card for sidebar widgets and rows of small cards: a 16px body instead of 24px and a 14px medium title. In Figma it is Size=SM.

html

Storage

8.2 GB of 10 GB used.

Old builds are removed after 30 days.

Storage

8.2 GB of 10 GB used.

Old builds are removed after 30 days.

<div class="vt-card">
  <div class="vt-card-header">
    <h3 class="vt-card-title">Storage</h3>
    <p class="vt-card-description">8.2 GB of 10 GB used.</p>
  </div>
  <div class="vt-card-body">
    <p>Old builds are removed after 30 days.</p>
  </div>
  <div class="vt-card-footer">
    <button class="vt-btn vt-btn-bordered">
      Manage
    </button>
  </div>
</div>
<div class="vt-card vt-card-sm">
  <div class="vt-card-header">
    <h3 class="vt-card-title">Storage</h3>
    <p class="vt-card-description">8.2 GB of 10 GB used.</p>
  </div>
  <div class="vt-card-body">
    <p>Old builds are removed after 30 days.</p>
  </div>
  <div class="vt-card-footer">
    <button class="vt-btn vt-btn-bordered vt-btn-sm">
      Manage
    </button>
  </div>
</div>

Close Button

A dismissible card — a tip, an onboarding step — gets a close button, last in the header.

html

Invite your team

Projects are better with people in them.

Add teammates by email — they get access to every project in this workspace.

Tip

Press ⌘K to search anything.

Commands, pages and settings are one search away.

<div class="vt-card" id="card-close-demo">
  <div class="vt-card-header">
    <h3 class="vt-card-title">Invite your team</h3>
    <p class="vt-card-description">Projects are better with people in them.</p>
    <button type="button" class="vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm vt-card-close" aria-label="Close" onclick="document.getElementById('card-close-demo').hidden = true">
      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
        <path d="M18 6L12 12M12 12L6 18M12 12L18 18M12 12L6 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
      </svg>
    </button>
  </div>
  <div class="vt-card-body">
    <p>Add teammates by email — they get access to every project in this workspace.</p>
  </div>
  <div class="vt-card-footer">
    <button class="vt-btn vt-btn-primary">
      Invite people
    </button>
  </div>
</div>
<div class="vt-card vt-card-sm" id="card-close-demo-sm">
  <div class="vt-card-header">
    <h3 class="vt-card-title">Tip</h3>
    <p class="vt-card-description">Press ⌘K to search anything.</p>
    <button type="button" class="vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm vt-card-close" aria-label="Close" onclick="document.getElementById('card-close-demo-sm').hidden = true">
      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
        <path d="M18 6L12 12M12 12L6 18M12 12L18 18M12 12L6 6" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
      </svg>
    </button>
  </div>
  <div class="vt-card-body">
    <p>Commands, pages and settings are one search away.</p>
  </div>
</div>

Stats Cards

Cards for displaying metrics — see Stats Card.

html

Total Revenue

$45,231.89

+20.1% from last month

Subscriptions

+2,350

+180.1% from last month

Active Now

+573

+201 since last hour
<div class="vt-grid vt-grid-cols-1 vt-sm:grid-cols-3 vt-gap-4">
  <div class="vt-card vt-stats-card">
    <div class="vt-stats-card-header">
      <div class="vt-stats-card-content">
        <p class="vt-stats-card-label">Total Revenue</p>
        <p class="vt-stats-card-value">$45,231.89</p>
      </div>
      <div class="vt-icon-badge vt-icon-badge-square">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-icon-badge-icon" aria-hidden="true">
          <path d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M9.14844 15C9.54108 15.9675 10.6694 16.6663 12.0002 16.6663C13.657 16.6663 15.0002 15.975 15.0002 14.2466C15.0002 12.5182 14.0002 11.8268 12.0002 11.8268C10.0002 11.8268 9.25017 11.0892 9.25017 9.75276C9.25017 8.41637 10.4814 7.33301 12.0002 7.33301C13.2203 7.33301 14.2548 8.03217 14.6145 9" stroke="currentColor" stroke-linecap="round" stroke-width="1.5"></path><path d="M12 6L12 18" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
        </svg>
      </div>
    </div>
    <div class="vt-stats-card-trend">
      <span class="vt-stats-card-delta">+20.1%</span>
      <span class="vt-stats-card-note">from last month</span>
    </div>
  </div>
  <div class="vt-card vt-stats-card">
    <div class="vt-stats-card-header">
      <div class="vt-stats-card-content">
        <p class="vt-stats-card-label">Subscriptions</p>
        <p class="vt-stats-card-value">+2,350</p>
      </div>
      <div class="vt-icon-badge vt-icon-badge-square">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-icon-badge-icon" aria-hidden="true">
          <path d="M16.5 20V16.9852C16.5 16.364 16.2184 15.7658 15.6838 15.4494C14.1574 14.546 12.1714 14 10 14C7.82863 14 5.84261 14.546 4.31618 15.4494C3.78162 15.7658 3.5 16.364 3.5 16.9852V20" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><circle cx="10" cy="7.5" r="3.5" stroke="currentColor" stroke-width="1.5"></circle><path d="M20.5 20.001V16.9862C20.5 16.365 20.2184 15.7667 19.6838 15.4504C19.171 15.1468 18.6062 14.8837 18 14.668" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M15 4.14453C16.4457 4.57481 17.5 5.91408 17.5 7.49959C17.5 9.0851 16.4457 10.4244 15 10.8547" stroke="currentColor" stroke-linecap="round" stroke-width="1.5"></path>
        </svg>
      </div>
    </div>
    <div class="vt-stats-card-trend">
      <span class="vt-stats-card-delta">+180.1%</span>
      <span class="vt-stats-card-note">from last month</span>
    </div>
  </div>
  <div class="vt-card vt-stats-card">
    <div class="vt-stats-card-header">
      <div class="vt-stats-card-content">
        <p class="vt-stats-card-label">Active Now</p>
        <p class="vt-stats-card-value">+573</p>
      </div>
      <div class="vt-icon-badge vt-icon-badge-square">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-icon-badge-icon" aria-hidden="true">
          <path d="M3 17L7 13C7.88256 12.1174 8.32385 11.6762 8.86543 11.6274C8.95496 11.6193 9.04504 11.6193 9.13457 11.6274C9.67615 11.6762 10.1174 12.1174 11 13C11.8826 13.8826 12.3238 14.3238 12.8654 14.3726C12.955 14.3807 13.045 14.3807 13.1346 14.3726C13.6762 14.3238 14.1174 13.8826 15 13L20 8" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M16 7.27657C16 7.27657 20.101 6.65426 20.7234 7.27661C21.3458 7.89896 20.7234 12 20.7234 12" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
        </svg>
      </div>
    </div>
    <div class="vt-stats-card-trend">
      <span class="vt-stats-card-delta">+201</span>
      <span class="vt-stats-card-note">since last hour</span>
    </div>
  </div>
</div>

Interactive

The whole card is a link: brand border on hover.

html
<div class="vt-grid vt-grid-cols-1 vt-sm:grid-cols-2 vt-gap-4 vt-max-w-lg">
  <a href="#" class="vt-card vt-card-interactive">
    <div class="vt-card-body">
      <div class="vt-icon-badge vt-icon-badge-square">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-icon-badge-icon" aria-hidden="true">
          <path d="M15.9922 21H13.9922H9.99219H7.99219" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M15.9922 3H7.99219C5.16376 3 3.74955 3 2.87087 3.87868C1.99219 4.75736 1.99219 6.17157 1.99219 9V11C1.99219 13.8284 1.99219 15.2426 2.87087 16.1213C3.74955 17 5.16376 17 7.99219 17H15.9922C18.8206 17 20.2348 17 21.1135 16.1213C21.9922 15.2426 21.9922 13.8284 21.9922 11V9C21.9922 6.17157 21.9922 4.75736 21.1135 3.87868C20.2348 3 18.8206 3 15.9922 3Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M10.4922 21V17M13.4922 17V21" stroke="currentColor" stroke-width="1.5"></path>
        </svg>
      </div>
      <div>
        <h3 class="vt-card-title">Desktop</h3>
        <p class="vt-card-description">macOS, Windows, Linux</p>
      </div>
    </div>
  </a>
  <a href="#" class="vt-card vt-card-interactive">
    <div class="vt-card-body">
      <div class="vt-icon-badge vt-icon-badge-square">
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-icon-badge-icon" aria-hidden="true">
          <path d="M13.4929 2.00049H10.4929C8.1359 2.00049 6.95739 2.00049 6.22515 2.73272C5.49292 3.46495 5.49292 4.64347 5.49292 7.00049V17.0005C5.49292 19.3575 5.49292 20.536 6.22515 21.2683C6.95739 22.0005 8.1359 22.0005 10.4929 22.0005H13.4929C15.8499 22.0005 17.0285 22.0005 17.7607 21.2683C18.4929 20.536 18.4929 19.3575 18.4929 17.0005V7.00049C18.4929 4.64347 18.4929 3.46495 17.7607 2.73272C17.0285 2.00049 15.8499 2.00049 13.4929 2.00049Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path><path d="M13.9929 2.00049H9.99292L10.2165 2.4477C10.3859 2.78649 10.7322 3.00049 11.111 3.00049H12.8749C13.2537 3.00049 13.5999 2.78649 13.7693 2.4477L13.9929 2.00049Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
        </svg>
      </div>
      <div>
        <h3 class="vt-card-title">Mobile</h3>
        <p class="vt-card-description">iOS, Android</p>
      </div>
    </div>
  </a>
</div>

Notification Card

html

Notifications

You have 3 unread messages.

Your call has been confirmed.

1 hour ago

You have a new message!

2 hours ago

Your subscription is expiring soon!

5 hours ago

<div class="vt-card vt-max-w-md">

  <div class="vt-card-header">

    <h3 class="vt-card-title">Notifications</h3>
    <p class="vt-card-description">You have 3 unread messages.</p>
  </div>
  <div class="vt-card-body">

    <div class="vt-flex vt-items-start vt-gap-4">
      <span class="vt-dot vt-dot-brand vt-mt-1.5"></span>
      <div class="vt-flex-1">
        <p class="vt-label-md">Your call has been confirmed.</p>
        <p class="vt-caption vt-text-foreground-muted vt-mt-0.5">1 hour ago</p>
      </div>
    </div>
    <div class="vt-flex vt-items-start vt-gap-4">
      <span class="vt-dot vt-dot-brand vt-mt-1.5"></span>
      <div class="vt-flex-1">
        <p class="vt-label-md">You have a new message!</p>
        <p class="vt-caption vt-text-foreground-muted vt-mt-0.5">2 hours ago</p>
      </div>
    </div>
    <div class="vt-flex vt-items-start vt-gap-4">
      <span class="vt-dot vt-opacity-0 vt-mt-1.5" aria-hidden="true"></span>
      <div class="vt-flex-1">
        <p class="vt-label-md">Your subscription is expiring soon!</p>
        <p class="vt-caption vt-text-foreground-muted vt-mt-0.5">5 hours ago</p>
      </div>
    </div>
  </div>
  <div class="vt-card-footer">
    <button class="vt-btn vt-btn-primary vt-w-full">

      <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-w-4 vt-h-4" aria-hidden="true">
        <path d="M5 13.2592L7.58583 15.9568C8.2525 16.6523 8.58583 17 9.00004 17C9.41425 17 9.74759 16.6523 10.4143 15.9568L19 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
      </svg>
      Mark all as read
    </button>
  </div>
</div>

Guidelines

Card Title

Card description goes here.

One surface holds one coherent group of content.

Do Group related content in a single card.

Nested surface

Don't Don't nest a card inside another card.

API Reference

Class Type Description
vt-card Base Bordered surface: surface-card, radius-2xl, clips its content
vt-card-header Part Top section, 20/24px padding, divider below
vt-card-title Part Card title — Heading/SM
vt-card-description Part Muted Body/SM line under the title
vt-card-body Part Content in a column with a 12px gap (as Figma auto layout: a gap utility on the body, vt-gap-1, is the one spacing), 24px padding, Body/SM; buttons and badges keep their width
vt-card-footer Part Row of actions, right-aligned, 8px apart, divider above
vt-card-close Part Close button in the header's top-right corner, on a vt-btn vt-btn-ghost vt-btn-icon vt-btn-sm, last in vt-card-header; the header keeps its text clear of it
vt-card-sm Size Dense card: 16px body, 12/16px header and footer, the title Label/MD (14px, medium), radius-lg; in Figma Size=SM
vt-card-interactive Modifier The whole card is a link or button: pointer, brand border on hover

Accessibility

Feature Details
Semantics Use article element for standalone content cards
Heading Card titles should use appropriate heading level for document structure
Interactive If entire card is clickable, use a single link/button — avoid nested interactives
Images Card images need alt text; decorative images use alt=""