()
| 40 | } from "@/components/ui/select" |
| 41 | |
| 42 | export default function DesignSystemPage() { |
| 43 | const [dialogOpen, setDialogOpen] = useState(false) |
| 44 | |
| 45 | return ( |
| 46 | <div className="min-h-screen bg-[var(--color-bg)]"> |
| 47 | <Header /> |
| 48 | |
| 49 | {/* Hero */} |
| 50 | <section className="border-b border-[var(--color-border-weak)]"> |
| 51 | <div className="mx-auto max-w-[67.5rem] px-[var(--padding)] py-[var(--vertical-padding)]"> |
| 52 | <h1 className="mb-4 text-3xl font-semibold text-[var(--color-text-strong)]"> |
| 53 | OpenCode Design System |
| 54 | </h1> |
| 55 | <p className="max-w-2xl text-[var(--color-text)]"> |
| 56 | A monospace-first, minimal design system inspired by terminal aesthetics. |
| 57 | Features warm neutral grays with a yellow-green accent for interactive elements. |
| 58 | </p> |
| 59 | </div> |
| 60 | </section> |
| 61 | |
| 62 | {/* Content */} |
| 63 | <div className="mx-auto max-w-[67.5rem] px-[var(--padding)] py-[var(--vertical-padding)]"> |
| 64 | <div className="flex flex-col gap-16"> |
| 65 | |
| 66 | {/* Colors */} |
| 67 | <section> |
| 68 | <h2 className="mb-6 text-xl font-semibold text-[var(--color-text-strong)]">Colors</h2> |
| 69 | <div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-4"> |
| 70 | <div className="flex flex-col gap-2"> |
| 71 | <div className="h-16 rounded-md bg-[var(--color-bg-strong)]"></div> |
| 72 | <span className="text-xs text-[var(--color-text-weak)]">bg-strong</span> |
| 73 | </div> |
| 74 | <div className="flex flex-col gap-2"> |
| 75 | <div className="h-16 rounded-md bg-[var(--color-bg-weak)] border border-[var(--color-border)]"></div> |
| 76 | <span className="text-xs text-[var(--color-text-weak)]">bg-weak</span> |
| 77 | </div> |
| 78 | <div className="flex flex-col gap-2"> |
| 79 | <div className="h-16 rounded-md bg-[var(--color-bg-interactive)]"></div> |
| 80 | <span className="text-xs text-[var(--color-text-weak)]">bg-interactive (accent)</span> |
| 81 | </div> |
| 82 | <div className="flex flex-col gap-2"> |
| 83 | <div className="h-16 rounded-md bg-[var(--color-danger)]"></div> |
| 84 | <span className="text-xs text-[var(--color-text-weak)]">danger</span> |
| 85 | </div> |
| 86 | </div> |
| 87 | </section> |
| 88 | |
| 89 | <Separator /> |
| 90 | |
| 91 | {/* Buttons */} |
| 92 | <section> |
| 93 | <h2 className="mb-6 text-xl font-semibold text-[var(--color-text-strong)]">Buttons</h2> |
| 94 | <div className="flex flex-wrap gap-4"> |
| 95 | <Button>Default</Button> |
| 96 | <Button variant="secondary">Secondary</Button> |
| 97 | <Button variant="outline">Outline</Button> |
| 98 | <Button variant="ghost">Ghost</Button> |
| 99 | <Button variant="destructive">Destructive</Button> |
nothing calls this directly
no outgoing calls
no test coverage detected