Tailwind content detection in custom theme not working
I setup a fresh installation of laravel 10 and filament 3.
Unfortunately I can't get the custom theme to work properly to get access to all the tailwind css classes.
I followed the steps in the documentation (https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme) to create a custom theme.
But when I run the build script (
resources/css/filament/admin/theme.css
resources/css/filament/admin/tailwind.config.js
vite.config.js
If I add a
If I add a syntax error to the
Can someone help me?
Unfortunately I can't get the custom theme to work properly to get access to all the tailwind css classes.
I followed the steps in the documentation (https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme) to create a custom theme.
But when I run the build script (
sail npm run build), I get this warning, and the classes used in my blade files are not available:resources/css/filament/admin/theme.css
resources/css/filament/admin/tailwind.config.js
vite.config.js
If I add a
tailwind.config.js in the project root and add some content entries there, the warning disappears, but still the css classes are missing.If I add a syntax error to the
resources/css/filament/admin/tailwind.config.js the build process fails, so it appears to read it.Can someone help me?