Skip to content

Commit

Permalink
Feat(web): Print all design-tokens mixins to theme selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
crishpeen committed Nov 19, 2024
1 parent 26c045d commit 732a62f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/web/src/scss/tools/_themes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 732a62f

Please sign in to comment.