v0 generates for Tailwind v4, where theme colors are defined in CSS with @theme. Your app runs v3, which ignores @theme and only knows colors from tailwind.config.ts.
Option A, stay on v3: keep the :root { --background: ... } variables from v0 (convert them if they're oklch and you need old browser support, otherwise fine), remove the @import "tailwindcss" and @theme block, restore the @tailwind base; @tailwind components; @tailwind utilities; lines, and map them in the config:
theme: {
extend: {
colors: {
background: "var(--background)",
foreground: "var(--foreground)",
card: { DEFAULT: "var(--card)", foreground: "var(--card-foreground)" },
border: "var(--border)",
primary: { DEFAULT: "var(--primary)", foreground: "var(--primary-foreground)" },
},
},
},Option B: upgrade to v4 with npx @tailwindcss/upgrade. Worth it long term, but on an older app with plugins do it on a branch.
--background: 0 0% 100%) and wrapped them as hsl(var(--background)). If you mix old and new components, keep one format. dev_ana · edited