Skip to content

Commit 50bc328

Browse files
committed
Use color-mix for text selection highlights
- Make selection background use `color-mix()` - Keep selection foreground aligned with the default text color
1 parent bfe2af6 commit 50bc328

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/web/src/index.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,8 @@ label:has(> select#reasoning-effort) select {
483483
}
484484

485485
::selection {
486-
background: hsl(var(--primary) / 0.55);
487-
color: hsl(var(--foreground));
486+
background: color-mix(in srgb, var(--primary) 55%, transparent);
487+
color: var(--foreground);
488488
}
489489

490490
* {

0 commit comments

Comments
 (0)