docs: fix dark mode background flash (#2825)

Fixes
https://github.com/denoland/fresh/issues/2823#issuecomment-2661711235
This commit is contained in:
Marvin Hagemeister
2025-02-17 10:43:59 +01:00
committed by GitHub
parent b1f2a989a5
commit d7c9ce9bc5
3 changed files with 33 additions and 23 deletions
+10 -2
View File
@@ -3,7 +3,7 @@
@tailwind utilities;
/* Light and dark theme variables */
.light {
:root {
--fresh: 50deg, 100%, 56%;
--fresh-green: 142deg, 71%, 29%;
@@ -17,7 +17,7 @@
--info: 194deg, 76%, 41%;
}
.dark {
html[data-theme="dark"]:root {
--fresh: 50deg, 100%, 56%;
--fresh-green: 142deg, 71%, 29%;
@@ -104,3 +104,11 @@ hr {
.dark-mode-toggle-button img {
@apply fill-foreground-primary;
}
::selection {
background-color: #b1d5ff;
}
html[data-theme="dark"] ::selection {
background-color: #064c9c;
}