Open this example in the interactive library
Source code
<p
class="demo text-slate-900 bg-slate-100 font-bold dark:text-slate-50 dark:bg-slate-900"
>
High-contrast status label
</p>
Make the thicker text visible on dark and light backgrounds with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<p
class="demo text-slate-900 bg-slate-100 font-bold dark:text-slate-50 dark:bg-slate-900"
>
High-contrast status label
</p>