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
awcodes2mo ago
Where are you outputting the description?
N00BST3R
N00BST3ROP5w ago
on livewire blade..
awcodes
awcodes5w ago
In a panel or outside of filament?
N00BST3R
N00BST3ROP5w ago
on the outside of filament
awcodes
awcodes5w 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.
Want results from more Discord servers?
Add your server