CUSTOM PAGE STYLING
Hello everyone I find it difficult styling custom pages in filament its really frustrating, even though I'm using tailwind cas most of the styles I apply to my custom pages, Components or even views are not applied , can anyone help on how solve this?
Thanks
Solution:Jump to solution
In which files do you use the TW classes and are they covered by the
content
option in tailwind.config
(the one next to your theme CSS)9 Replies
Make sure you add your views to your tailwindcss config file, if using a custom theme. And also run the npm dev server
Did you create a custom theme?
Yes I did
I created a custom theme
I followed the instructions on the filament docs
Okay, did you run
npm run build
or npm run dev
after changing stuff as Jonas proposed?Thanks yeah, ran npm run build initially, but I guess that's for production, so I'm using npm run dev currently, .
do I need to declare the classes in my theme.css ?
I use tailwind alright so I just feel the classes should be compiled from my views into thene.css
Solution
In which files do you use the TW classes and are they covered by the
content
option in tailwind.config
(the one next to your theme CSS)Ohh I don't think they are covered by the content option,
I currently have this
And my views are normally or should I say all ln. resources/views
Thanks I've added to the options and everything works fine now π β¨οΈ
Thanks much π
Also in custom pages I can see a method for getting visible header widgets and hidden as well .is they any helper for toggling this widgets visibility on the page? or I have to implement the logic myself.
Thanks
Please mark this question as answered if your main question has been resolved. If you have another question, open a new topic and provide the details
Ok i will Thanks,