I have followed the instructions i documentations and from github repo (https://github.com/keenthemes/metronic-tailwind-html-integration/tree/main/metronic-tailwind-laravel) though the theme is running fine some of the laravel classes are not working like w-3/5 or bg-red-500. Metronic CSS and Clasesses working fine. Also Do we have row callback for the datatable? I am using Laravel 9.2.2
Hi Jayrajsinh Rathod
Here are the most likely causes and solutions:
Tailwind CSS uses a "purge" (now called "content") option in tailwind.config.js to remove unused styles. If your Blade or HTML files are not included in the content array, Tailwind will not generate the classes you use in those files.
Open your tailwind.config.js file.
Make sure the content array includes all relevant paths, for example:
content: [
"./resources/views/**/*.blade.php",
"./resources/js/**/*.js",
"./resources/**/*.vue",
// Add any other paths where you use Tailwind classes
],
php artisan view:clear
php artisan cache:clear
This is already there. It was working very well when i setup like old laravel tutorial. When i re setup with the new laravel git repo and layout it is not working.
Have you included assets in the public Laravel folder?
/metronic-tailwind-laravel/public/assets