Cards
Cards group content with consistent padding, borders, and elevation. Combine variants with .vd-card-glow, .vd-card-glass, or the Water Morph effect for richer demos.
Variants
Elevated is the default: medium shadow (stronger in dark mode). Outlined drops the shadow for a crisp border. Filled uses a subtle surface tint and no border.
Elevated Card
Default elevated surface — compare the shadow to outlined and filled.
Outlined Card
Border only, no drop shadow — ideal on busy backgrounds.
Filled Card
Secondary background fill, no border — reads as a soft panel.
Glow on hover
Add .vd-card-glow for a soft primary-tinted halo and border shift on hover (in addition to the elevated hover lift when applicable).
Hover this card
Glow uses --vd-card-glow-color / --vd-card-glow-border-color.
Glass (frosted)
.vd-card-glass applies the glass token stack from the Glass Effects system — best seen over imagery or gradients. Respects prefers-reduced-transparency via the glass utilities.
Glass Card
Backdrop blur and translucent fill let the stage show through.
Morph inside a card
Pair a card shell with the Water Morph effect to swap summary ↔ detail. Uses .vd-morph-lg for a slower wave.
Interactive surface
Compact & spacious
Compact
.vd-card-compact tightens header, body, and footer padding.
Spacious
.vd-card-spacious uses larger Fibonacci padding for airy layouts.
Card Groups
Use .vd-card-group to connect cards with shared borders and no gaps — great for pricing tiers or feature lists.
Free
$0
Basic features
Pro
$12
Everything in Free
Enterprise
Custom
Dedicated support
Image Cards
Cards with top images using .vd-card-image or .vd-card-image-container for overlay text.

Forest boardwalk
Cards can hold images, charts, maps, or any media at the top.
Actionable Cards
Add .vd-card-interactive for hover lift, cursor pointer, and focus ring — perfect for clickable cards that navigate or trigger modals.
Get Started
Click this card to navigate — the whole surface is interactive.
Class Reference
VdCard Component
Project
<VdCard> Vue 3 component. <script setup lang="ts">
import { VdCard } from "@vanduo-oss/vd3";
</script>
<template>
<VdCard interactive>
<template #header><h6>Project</h6></template>
Body content goes in the default slot.
<template #footer>
<button class="vd-btn vd-btn-primary">Open</button>
</template>
</VdCard>
</template>CSS Classes
| Class | Description | Type |
|---|---|---|
.vd-card | Base card container — required on all cards | Base |
.vd-card-elevated | Explicit elevated shadow (same as default .vd-card) | Variant |
.vd-card-outlined | Outlined card with border, no shadow | Variant |
.vd-card-filled | Filled card with secondary background, no border | Variant |
.vd-card-glass | Frosted glass surface (see Glass Effects tokens) | Variant |
.vd-card-glow | Adds soft primary-colored glow on hover | Modifier |
.vd-card-compact | Reduces padding on header, body, footer | Modifier |
.vd-card-spacious | Increases padding on header, body, footer | Modifier |
.vd-card-group | Connects adjacent cards with shared borders, no gaps | Layout |
.vd-card-image | Image inside a card (typically at top) | Media |
.vd-card-image-container | Wrapper for image with overlay text support | Media |
.vd-card-interactive | Hover lift + cursor pointer + focus ring for clickable cards (renamed from .vd-card-actionable in framework 1.7.0) | Modifier |
.vd-card-header | Card header section with bottom border | Structure |
.vd-card-body | Card body section with padding | Structure |
.vd-card-footer | Card footer section with top border | Structure |
Component API (Vue 3)
| Prop / slot | Description |
|---|---|
:elevated | Raised shadow treatment (.vd-card-elevated). |
:glass | Frosted glass surface (.vd-card-glass). |
:interactive | Hover lift + cursor pointer + focus ring (.vd-card-interactive). |
#header / default / #footer | Header, body, and footer slots (header/footer render only when provided). |
Accessibility
- When using
.vd-card-interactiveor<VdCard interactive>as a clickable surface, providerole="button",tabindex="0", and Enter / Space key handlers (or place a primary link/button inside the card). .vd-card-glasshonorsprefers-reduced-transparencyby falling back to a higher-opacity surface token.- Always supply meaningful
alttext on.vd-card-imagemedia elements.