Rich Editor : how to change text color if dark mode?

i try using rich editor to display description but it got problem when darkmode because the text color of the data. i already try to put like this on the blade but still not affected. <p class="text-gray-900 dark:text-white"> {!! str($investment->description)->sanitizeHtml() !!} </p>
No description
No description
5 Replies
awcodes
awcodes3mo ago
Where are you outputting the description?
N00BST3R
N00BST3ROP3mo ago
on livewire blade..
awcodes
awcodes3mo ago
In a panel or outside of filament?
N00BST3R
N00BST3ROP3mo ago
on the outside of filament
awcodes
awcodes3mo ago
If you’re out side of filament you need to make to have another stylesheet that handles those pages. And if you’re using tailwind then you need to rebuild the assets each time you add a class.

Did you find this page helpful?