I'm facing the same problem.
My project is a React Typescript with vite and tailwind installed.
I don't have tailwind.config.ts, however I have components.json with the following content below.
All my custom components are in /components and shadcdn components are in /components/ui.
Any thoughts?
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"rsc": false,
"tsx": true,
"tailwind": {
"config": "",
"css": "./index.css",
"baseColor": "neutral",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
},
"iconLibrary": "lucide"
}