Skip to Content
Skip to content

Card

Neumorphic card with the full shadcn card composition. Raised by default, plus a carved well variant.

Raised card
The default surface sits proud.

Shadows, face and text all derive from the surface token.

Well card
Carved into the page.

The inset shade paints over content, so images stay carved.

Installation

bunx --bun shadcn@latest add https://neu.beyondtheinnovation.com/r/neu-card.json

Usage

import {
  Card,
  CardContent,
  CardDescription,
  CardFooter,
  CardHeader,
  CardTitle,
} from "@/components/ui/neu/card"
<Card>
  <CardHeader>
    <CardTitle>Card Title</CardTitle>
    <CardDescription>Card Description</CardDescription>
  </CardHeader>
  <CardContent>Card Content</CardContent>
  <CardFooter>Card Footer</CardFooter>
</Card>

Size

size="sm" tightens the padding and gaps from 24px to 16px and drops the title to text-sm. Header, content and footer all read the same --card-spacing variable.

<Card size="sm">
  <CardHeader>
    <CardTitle>Compact card</CardTitle>
  </CardHeader>
  <CardContent>Card Content</CardContent>
</Card>

On this page