diff options
Diffstat (limited to 'src/_declare-vars.scss')
-rw-r--r-- | src/_declare-vars.scss | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/_declare-vars.scss b/src/_declare-vars.scss index 0aa1cca..afe1e15 100644 --- a/src/_declare-vars.scss +++ b/src/_declare-vars.scss | |||
@@ -271,3 +271,19 @@ | |||
271 | ), | 271 | ), |
272 | ), $tree); | 272 | ), $tree); |
273 | } | 273 | } |
274 | |||
275 | @mixin apply-vars { | ||
276 | :root { | ||
277 | @include iro.props-assign; | ||
278 | |||
279 | @each $breakpoint in map.keys(media.$breakpoints) { | ||
280 | @include media.media('<=#{$breakpoint}') { | ||
281 | @include iro.props-assign($breakpoint); | ||
282 | } | ||
283 | } | ||
284 | |||
285 | @media (prefers-color-scheme: dark) { | ||
286 | @include iro.props-assign('dark'); | ||
287 | } | ||
288 | } | ||
289 | } | ||