ComponentsDraftWCAG 2.1/2.2 AAZero Gradients
@hahlex/millar-uiCard
Single-elevation structural surface (base, inset, or raised) with 1px warm-sand border and canonical 16px/18px interior padding.
Interactive Playground
Live component specimen driven directly by Millar tokens in Light and Dark mode.
Live Interactive Cardbase · default
Default --bg-surface with 1px hairline border and zero drop shadow.Props API
Usage Guidelines & Agent Guardrails
When to use
- Grouping related metrics, settings panels, or record detail facets.
Fluid block container with consistent padding across breakpoints.
Anti-Hallucination Guardrails (AI & Human)
- Never nest Cards inside Cards.
- Never wrap a primary page DataTable inside an extra outer Card.
- Never attach a one-sided thick accent border down the side of a rounded Card.
Accessibility & Keyboard Contract
Plain container; nest semantic headings and buttons inside rather than making the entire div a fake button.