Phase 0: scaffold Next.js, Tailwind tokens, Supabase clients, env validation
Next.js 16 App Router with strict TypeScript, Tailwind 4 theme tokens from docs/UI.md, Vitest, and the three Supabase clients. Env vars are validated with zod in next.config.ts so dev and build fail fast with a readable error. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
@import "tailwindcss";
|
||||
|
||||
/* Design tokens from docs/UI.md. */
|
||||
:root {
|
||||
--stage: #1b1640;
|
||||
--floodlight: #ffd23f;
|
||||
--chalk: #f5f7fa;
|
||||
--ink: #14213d;
|
||||
--signal: #2ec4b6;
|
||||
--alert: #e63946;
|
||||
}
|
||||
|
||||
/* Expose the tokens as Tailwind utilities: bg-stage, text-ink, font-display, ... */
|
||||
@theme inline {
|
||||
--color-stage: var(--stage);
|
||||
--color-floodlight: var(--floodlight);
|
||||
--color-chalk: var(--chalk);
|
||||
--color-ink: var(--ink);
|
||||
--color-signal: var(--signal);
|
||||
--color-alert: var(--alert);
|
||||
--font-display: var(--font-big-shoulders), ui-sans-serif, system-ui, sans-serif;
|
||||
--font-sans: var(--font-atkinson), ui-sans-serif, system-ui, sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
background: var(--chalk);
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
:focus-visible {
|
||||
outline: 3px solid var(--ink);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
Reference in New Issue
Block a user