If you want to change the default browser style how a text looks when selected you can use the ::selection pseudo-element. Support is pretty good. Read more about it on MDN. Pay particular attention to the comment on accessibility in the MDN article.