Components/Containers
A surface with hierarchy. White, a hairline border, a 12px radius — no shadow.
Default
With content
Props
Installation
Paste the source into components/card.tsx. No dependencies required.
import type { ReactNode } from 'react';
interface CardProps {
children: ReactNode;
className?: string;
}
export function Card({ children, className }: CardProps) {
return (
<div
className={className}
style={{
backgroundColor: 'var(--color-surface)',
border: '0.5px solid var(--color-border)',
borderRadius: 'var(--radius-lg)',
padding: '24px',
}}
>
{children}
</div>
);
}Built from Lumen tokens. →Edit the tokens