New tailwindcss classes not bundling in new blade files
Wondering what I'm doing wrong.
I have
composer dev
/ npm run dev
running, and created a new file:
resources/views/livewire/application-nav.blade.php
Added hover:text-blue-500
to an element in the new file, restarted the bundlers, but that class is never being generated in the bundled css file and therefore the text is not turning blue on hover.
Any help appreciated!6 Replies
Solution
to include new classes you need to build a custom theme first
it's fairly simple process, then you can ensure the resources dir is being include in the tailwind build
Thanks @toeknee
Do you mind elaborating, apologies
Then in the tailwind.config.js for that theme you will have the likes of
Ahhhh great, thank you @toeknee 🙏