Skip to content

Commit

Permalink
Fix native web elements color scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
aboredvaro committed Jan 17, 2024
1 parent 978d90f commit 57b0605
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

:root,
#root {
color-scheme: light dark;
background: rgb(var(--color-surface));
font-family: 'Instrument Sans', sans-serif;
height: 100%;
Expand All @@ -24,6 +23,8 @@

@media (prefers-color-scheme: light) {
:root {
color-scheme: light;

--color-primary: 0 102 255;
--color-primary-dark: 0 88 219;
--color-red: 255 13 0;
Expand Down Expand Up @@ -55,6 +56,8 @@
}

:root.dark {
color-scheme: dark;

--color-primary: 20 114 255;
--color-primary-dark: 0 96 240;
--color-red: 255 61 51;
Expand Down Expand Up @@ -88,6 +91,8 @@

@media (prefers-color-scheme: dark) {
:root {
color-scheme: dark;

--color-primary: 20 114 255;
--color-primary-dark: 0 96 240;
--color-red: 255 61 51;
Expand Down Expand Up @@ -119,6 +124,8 @@
}

:root:not(.dark) {
color-scheme: light;

--color-primary: 0 102 255;
--color-primary-dark: 0 88 219;
--color-red: 255 13 0;
Expand Down

0 comments on commit 57b0605

Please sign in to comment.