Skip to content

Commit

Permalink
Added color-scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarmaged committed Jul 7, 2024
1 parent e975a09 commit 5ab0f69
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/var.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
}

:root:where([data-theme='dark'], .dark) {
color-scheme: dark;

--sf-form-c-white: var(--sf-form-dark-c-white);

--sf-form-c-bg: var(--sf-form-dark-c-bg);
Expand All @@ -52,6 +54,8 @@

@media (prefers-color-scheme: dark) {
:root:where([data-theme='auto'], .auto) {
color-scheme: light dark;

--sf-form-c-white: var(--sf-form-dark-c-white);

--sf-form-c-bg: var(--sf-form-dark-c-bg);
Expand Down

0 comments on commit 5ab0f69

Please sign in to comment.