Yes Chef Studio

Custom Text Selection Colour

When users highlight text on your webpage, you have a unique opportunity to enhance the visual feedback with custom colors that match your brand. The ::selection pseudo-element allows you to style the background and text color of the selected text:


::selection {

background-color: #ffcc00; /* Your brand's highlight color */

color: #ffffff; /* Text color */