Tones
tone prop — surface fill
Shadow variants
shadow prop — hard offset depth (zero blur)
Header & flush
header prop · flush prop (removes body padding)
Do / Don't
✓ Do
✕ Don't
Don't use blurred shadows or remove the ink border. Both are signature SLAB traits.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| tone | "white"|"paper"|"lime"|"yellow"|"dark" | "white" | Surface fill color. |
| shadow | "none"|"sm"|"md"|"lg"|"pink"|"violet"|"lime" | "md" | Hard offset shadow depth and color. |
| flush | boolean | false | Removes inner body padding for edge-to-edge content (images, tables). |
| header | ReactNode | null | Optional mono uppercase header bar with lime background. |
| children | ReactNode | — | Card body content. |
| style | CSSProperties | {} | Merged onto root element. Use for width, margin overrides. |
Usage
import { Card } from "components/core/Card";
// Basic
<Card>Content here</Card>
// With header + shadow variant
<Card header="Campaign stats" shadow="lg">
<p>$28,900 revenue</p>
</Card>
// Flush + dark tone
<Card tone="dark" flush shadow="violet">
<img src="cover.jpg" />
</Card>