Set appropriate color-scheme
according to theme
This commit is contained in:
parent
1efd79fa27
commit
fe8f19a891
1 changed files with 2 additions and 0 deletions
|
@ -133,6 +133,7 @@ :root {
|
|||
|
||||
/* semantic color variables for this project */
|
||||
:root {
|
||||
color-scheme: dark;
|
||||
--color-bg: var(--tn-night--background);
|
||||
--color-fg: var(--tn-night--foreground);
|
||||
--color-black: var(--tn-dark--16);
|
||||
|
@ -165,6 +166,7 @@ :root {
|
|||
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root {
|
||||
color-scheme: light;
|
||||
--color-bg: var(--tn-light--background);
|
||||
--color-fg: var(--tn-light--foreground);
|
||||
--color-black: var(--tn-light--13);
|
||||
|
|
Loading…
Reference in a new issue