Add color-scheme mixin
This commit is contained in:
parent
a68424658a
commit
54ce9e8b3c
1 changed files with 10 additions and 0 deletions
|
@ -59,3 +59,13 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@mixin color-scheme {
|
||||||
|
@media (prefers-color-scheme: light) {
|
||||||
|
@content("light");
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
@content("dark");
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue