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>
5 Replies
Where are you outputting the description?
on livewire blade..
In a panel or outside of filament?
on the outside of filament
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.