From 6b7f38b9c1f4c218dd13d647ebf5256ff99a0c72 Mon Sep 17 00:00:00 2001 From: Yaroslav Horetskyi Date: Thu, 2 May 2024 19:58:17 -0600 Subject: [PATCH] feat: use different colors on text selection/highlight dark/light mode --- assets/style.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/assets/style.css b/assets/style.css index 61cfd2e2..89d20251 100644 --- a/assets/style.css +++ b/assets/style.css @@ -13,3 +13,15 @@ p + p { .nuxt-scroll-indicator { @apply bg-gradient-to-r to-secondary from-blue-700; } + +.light { + ::selection { + @apply bg-secondary; + } +} + +.dark { + ::selection { + @apply bg-primary; + } +}