feat: Implement foundational UI components (Button, Card) and layout components (Section, Container), updating design tokens, styling, and documentation.

This commit is contained in:
1elle1
2026-02-01 14:13:39 +01:00
parent f7ac3d6a99
commit 643231b7b0
12 changed files with 357 additions and 55 deletions

21
components/ui/Card.tsx Normal file
View File

@@ -0,0 +1,21 @@
import type { ElementType, ReactNode } from "react";
interface CardProps {
children: ReactNode;
className?: string;
as?: ElementType;
}
export function Card({
children,
className = "",
as: Tag = "div",
}: CardProps) {
return (
<Tag
className={`rounded-[var(--radius-md)] border border-[color:var(--color-border)] shadow-[var(--shadow-sm)] p-[var(--spacing-lg)] ${className}`.trim()}
>
{children}
</Tag>
);
}