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
SUNSHINEOP13mo 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
Altffenser13mo ago
Please follow all filamentphp installation instructions.
SUNSHINE
SUNSHINEOP13mo 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
Altffenser13mo ago
Then share your tailwind.config.js file here and tell me in which path you have your logo.blade.php file located
SUNSHINE
SUNSHINEOP13mo ago
I don't have any tailwind.config.js
SUNSHINE
SUNSHINEOP13mo ago
And it's never mentionned anything about that in the installation.
Tieme
Tieme13mo 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
SUNSHINEOP13mo ago
Yep it work, thanks @Tieme ! Btw, do you know how can I create a condition for the dark mode ?
Tieme
Tieme13mo 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.
Want results from more Discord servers?
Add your server