Can't import defaultTheme from tailwind.
I wanna refacor my entire app from daisyUI to shadcn UI but I can't really change anything in tailwind config
config:
issue:
when I change to import { } from ' ' tailwind doesn't work at all.
adding export { } doesnt work -- my tailwind still doesn't work. body with bg-black doesnt change body's background to black
help :P
13 Replies
What happens when adding export {}
nothing
So there's no errors Tailwind just doesn't work?
yes
Well look at your content parameter
I am guessing you're not using the app directory or have a components folder
I'm guessing you have a src folder
["src/**/*.{ts,tsx}"]
no, I actually do use the app directory
wait i have a brain fart
And it's all inside a src folder
yeah
here's my layout.tsx
Maybe i've done something wrong
Changing to src doesn't work?
it does
damn thx
but it still should only be on app and components where I have my redix primitives
maybe i should specify src/app and src/components
Welp it applies to any ts / tsx files inside src
I don't see what gains you would gain specifying the 2 folders but sure
Even tailwind docs just show
src/**/*
tbh i'm building portfolio to finally get a job
so yeah i'm all about clean code too
and just the high quality of my code, I dont wanna left anything un-professional behind
is your config file .ts @PTS
if yes you can't use module.exports
thats cjs way
you can't use require as well
this is how you do it