This custom code modification allows you to control the appearance of selected text across different browsers, enhancing the visual experience of your website.
The selectors use the following Webflow Variables:
var(--neutral-colors--100)
var(--primary-colors--100)
(text-shadow: 0 0.5px 1.5px rgba(0, 19, 88, 0.3), 0 2px 5px rgba(0, 19, 88, 0.1);)
Example of custom color selection (using HEX colors):
/* Customize text selection for Mozilla browsers */
::-moz-selection {
color: #FFFFFF !important;
background: **#B658FF**;
text-shadow: **0 0.5px 1.5px rgba(0, 19, 88, 0.3), 0 2px 5px rgba(0, 19, 88, 0.1)**;
}
/* Customize text selection for other browsers */
::selection {
color: #FFFFFF !important;
background: **#B658FF**;
text-shadow: **0 0.5px 1.5px rgba(0, 19, 88, 0.3), 0 2px 5px rgba(0, 19, 88, 0.1)**;
}