Despite trying various edits to my custom CSS, such as including
::selection{color: white; background: #2f3f58;}
, copying and pasting code from sites like W3Schools and stack overflow, nothing seemes to work. I am using the Hueman theme from , which has a similar code that is functioning properly. Even after modifying this code and disabling the theme CSS related to selections, I cannot change the selection color from the red set in the theme options menu. The hexadecimal code for this red color is not present in the theme CSS except in a commented out section that I have tried replacing. Is there a way to override the highlight color using CSS without utilizing the ::selection:
element, or am I misunderstanding how to use this element?
The current code I am using is shown below:
::selection {
color: white !important;
background-color: #2f3f58 !important;
}
A big thank you to @citizenen for the helpful suggestions!