Compile CSS classes assets ?
Hey guys,
I just create a new
resources/logo.blade.php
asset with some TailwindCSS classes. I've try npm run build
, but it doesn't add the classes that I'm using on this file, do you know what's wrong ?
I'm using th eclass fill-green-400
10 Replies
And btw, I just see that I don't have a
tailwind.config.js
file?
It's a simple Laravel project with just FilamentPHP installed on it.Please follow all filamentphp installation instructions.
What you mean ?
I've follow all steps, my FilamentPHP application is working as well.
Which step do you think is missing ? @Altffenser
Then share your
tailwind.config.js
file here and tell me in which path you have your logo.blade.php
file locatedI don't have any tailwind.config.js
And it's never mentionned anything about that in the installation.
Can you have a look at, and let us know if you have this implemented or not?
https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme
Yep it work, thanks @Tieme !
Btw, do you know how can I create a condition for the dark mode ?
use dark:[class] every class with dark: will be used with darkmode.
Documentation for darkmode : https://tailwindcss.com/docs/dark-mode
Dark Mode - Tailwind CSS
Using Tailwind CSS to style your site in dark mode.