Relative Content

Tag Archive for laraveldatabasecolorstailwind-csslaravel-facade

TailwindCSS Colors not working when taking text (Code) from database

I got a Laravel project, with TailwindCSS and I am trying to retrieve a piece of text from my database: “<div class="bg-red-500 text-green-200 text-lg border">Code should be here</div>“.
And I use Laravel Facade to retrieve it and got this in my view {!! $code !!}.
Now the issue is, the border seems to be applied, the larger text seems to work well, its just I cant set a background or text color, it just doesn’t work.