The ::selection CSS pseudo-element applies styles to the part of a document that has been highlighted by the user.

*::selection{
  color: #eee;
  background: blue; 
}