From 54ce9e8b3cb4300df87c8edb9136e2a5fb4afe79 Mon Sep 17 00:00:00 2001 From: Tom Najdek Date: Fri, 27 Oct 2023 15:00:21 +0200 Subject: [PATCH] Add color-scheme mixin --- scss/abstracts/_mixins.scss | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scss/abstracts/_mixins.scss b/scss/abstracts/_mixins.scss index 177804ff41..c816115e8e 100644 --- a/scss/abstracts/_mixins.scss +++ b/scss/abstracts/_mixins.scss @@ -59,3 +59,13 @@ } } } + +@mixin color-scheme { + @media (prefers-color-scheme: light) { + @content("light"); + } + + @media (prefers-color-scheme: dark) { + @content("dark"); + } +} \ No newline at end of file