---
title: Use ::selection for Text Styling
impact: LOW
tags: native, selection, text
---

## Use ::selection for Text Styling

Use ::selection for text selection styling.

**Correct:**

```css
::selection {
  background: var(--blue-a5);
  color: var(--gray-12);
}
```
