From 732a62fed20870574ceb9beadf4caf6a6c161c7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Kry=C5=A1p=C3=ADn?= Date: Tue, 19 Nov 2024 16:17:08 +0100 Subject: [PATCH] Feat(web): Print all design-tokens mixins to theme selectors --- packages/web/src/scss/tools/_themes.scss | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/web/src/scss/tools/_themes.scss b/packages/web/src/scss/tools/_themes.scss index 21e869e078..40d46fa0c2 100644 --- a/packages/web/src/scss/tools/_themes.scss +++ b/packages/web/src/scss/tools/_themes.scss @@ -13,14 +13,16 @@ @each $theme-name, $theme-token-types in $themes { $selector: if($is-default-theme, ':root, .#{$theme-name}', '.#{$theme-name}'); - $sass-variables: map.get($theme-token-types, variables); - $css-variables: map.get($theme-token-types, mixins, css-variables); + $theme-variables: map.get($theme-token-types, variables); + $theme-mixins: map.get($theme-token-types, mixins); #{$selector} { - @include meta.apply($css-variables); + @each $theme-mixin-name, $theme-mixin in $theme-mixins { + @include meta.apply($theme-mixin); + } @if $add-background-image-urls { - @include generate-background-image-urls($themed-tokens: $sass-variables); + @include generate-background-image-urls($themed-tokens: $theme-variables); } }