Add color-scheme mixin

This commit is contained in:
Tom Najdek 2023-10-27 15:00:21 +02:00 committed by Dan Stillman
parent a68424658a
commit 54ce9e8b3c

View file

@ -59,3 +59,13 @@
} }
} }
} }
@mixin color-scheme {
@media (prefers-color-scheme: light) {
@content("light");
}
@media (prefers-color-scheme: dark) {
@content("dark");
}
}