Closed alex-mironov closed 1 month ago
Resolved the issue, apparently wrong css file was specified in components.json
:
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": true,
"tsx": true,
"tailwind": {
"config": "tailwind.config.ts",
// HERE: instead of this
// "css": "app/globals.css",
// use this
"css": "app/tailwind.css",
"baseColor": "slate",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "app/components",
"utils": "app/lib/utils"
}
}
Merged both global.css
and tailwind.css
and removed global.css
.
Describe the bug
I've installed Remix + Shadcn as described here. Unfortunately the default styling doesn't seem to be applied.
Here is the image of how button looks like:
Here is the newly created repo with all the source code - https://github.com/alex-mironov/remix-shadcn.
Here is the project structure and config files:
tailwind.config.ts
globals.css
components.json
vite.config.ts
Affected component/components
Button
How to reproduce
Result:
Codesandbox/StackBlitz link
https://github.com/alex-mironov/remix-shadcn
Logs
No response
System Info
Before submitting