Why isn't Tailwind work in Filament custom component view files?

This is my tailwind config file:
content: [
"./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php",
"./storage/framework/views/*.php",
"./resources/views/**/*.blade.php",
"./app/Livewire/**/*.php",
"./app/Filament/**/*.php",
"./app/Filament/**/*.blade.php",
],
content: [
"./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php",
"./storage/framework/views/*.php",
"./resources/views/**/*.blade.php",
"./app/Livewire/**/*.php",
"./app/Filament/**/*.php",
"./app/Filament/**/*.blade.php",
],
? Normal blade files interpret everythign live as I change it. For example, in any liveview full compoenent when I do bg-fuchsia-500 it works but not in custom component files of Filament that have been generated to /resources/views/forms/components/mycomponent.blade.php How to make it that Tailwind generates css from those clases when using npm run dev the same way as it's doing right now for normal liveview components outside of Filament?
1 Reply
LeandroFerreira
LeandroFerreira3mo ago
you should also add './resources/views/forms/**/*.blade.php'