If your class names don't exists in your content files, they can not be generated, so you can add them to "safelist" or try put them in blade files. See detailed explanation: https://tailwindcss.com/docs/content-configuration#safelisting-classes
Sep 17, 2024
4
Level 2
Parse HTML Content with tailwind classes into blade views
Hello, guys,
Using Laravel 10 + Vite + Tailwind
I'm just starting using Tailwind and seems great, except in one point.
In my blade view, I access to a custom attribute with specific tailwind classes.
Example: {!! $s->display_session_status !!}
this will return the following: '<span class="rounded-full px-3 bg-green-300 text-black inline-block">Efetuada</span>'
In this example, "text-black" doesn't load tailwind properties, and it happens in several other random attributes... Some load, other doesn't.
check the following image: https://ibb.co/t4s0ZcS
Do you guys know something about this and how to resolve?
Thanks
Please or to participate in this conversation.