13 Replies
I am wondering why the tailwind color have not been applied. I have created custom theme.. please let me know what else i need to do here. I am stuck on this part over an hour. really appreciate the help. thank you in advance.

Is your
content
configuration in tailwind.config.js
set to scan for classes in the directory where you are using this file?for example: https://filamentphp.com/docs/3.x/tables/advanced#custom-row-classes
These classes are not automatically compiled by Tailwind CSS. If you want to apply Tailwind CSS classes that are not already used in Blade files, you should update your content configuration in tailwind.config.js to also scan for classes inside your directory: './app/Filament/*/.php'
this file is under resources/css/filament/app/...
do i need to define the color in the "tailwind.config.js"?
where is this file
<div class="p-4 bg-amber-50 border border-amber-200 rounded-lg dark:bg-amber-900/20 dark:border-amber-700/50">
...
?
"resources\views\filament\components\core\currency\default-warning.blade.php"
add this path to the content array
./resources/views/filament...
then, run npm run build
or devdoesnt seems to work.
i have added it in the config.
i fixed the typo and rerun the "npm run build" the color still not getting applied.
i double check i forgot to add the viteTheme(). after i add it, i got another error.
anyone knows how to fix this?
Does the
tailwind.config.js
exist in resources\css\filament\app
?
The error should be unrelated to the viteTheme()
addition