Cards
vel-src: card.css
Flexible card components with header, body, and footer slots, plus surface, border, hover, color, glass, gradient, and glow variants.
| Class | Properties |
|---|---|
| vel-card | Base card — surface background, border, border-radius, overflow hidden |
| vel-card-header | Top section with border-bottom and padding |
| vel-card-body | Main content area with padding |
| vel-card-footer | Bottom section with border-top and padding |
| vel-card-flat | Removes box-shadow entirely |
| vel-card-elevated | Adds stronger box-shadow elevation |
| vel-card-filled | Slightly lighter surface fill |
| vel-card-hover | Lifts with translateY and shadow on :hover |
| vel-card-primary | Primary accent border-top |
| vel-card-success | Success accent border-top |
| vel-card-glass | Frosted-glass effect — blur + translucent background |
| vel-card-gradient | Gradient primary background |
| vel-card-glow | Primary glow box-shadow |
Examples
Default card
Card Header
This is the main body content of the card. You can put anything here.
Hover card
Hover over this card to see it lift.
Glass card
Glass card with blur and translucent background.