Open this example in the interactive library
Source code
<p class="demo selection:bg-amber-200 selection:text-gray-900">
Select this sentence to see the proof colour.
</p>
Selection background swatch with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<p class="demo selection:bg-amber-200 selection:text-gray-900">
Select this sentence to see the proof colour.
</p>