Open this example in the interactive library
Source code
<style>
.demo::selection {
background: #fde68a;
color: #111827;
}
</style>
<p class="demo">Select this sentence to see the proof colour.</p>
Selection background swatch with native CSS. The preview includes a small shared demo stylesheet.
Open this example in the interactive library
<style>
.demo::selection {
background: #fde68a;
color: #111827;
}
</style>
<p class="demo">Select this sentence to see the proof colour.</p>