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
SUNSHINE
SUNSHINE9mo ago
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.
Altffenser
Altffenser9mo ago
Please follow all filamentphp installation instructions.
SUNSHINE
SUNSHINE9mo ago
What you mean ? I've follow all steps, my FilamentPHP application is working as well. Which step do you think is missing ? @Altffenser
Altffenser
Altffenser9mo ago
Then share your tailwind.config.js file here and tell me in which path you have your logo.blade.php file located
SUNSHINE
SUNSHINE9mo ago
I don't have any tailwind.config.js
SUNSHINE
SUNSHINE9mo ago
And it's never mentionned anything about that in the installation.
Tieme
Tieme9mo ago
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
SUNSHINE
SUNSHINE9mo ago
Yep it work, thanks @Tieme ! Btw, do you know how can I create a condition for the dark mode ?
Tieme
Tieme9mo ago
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.