79265351

Date: 2024-12-09 14:41:28
Score: 0.5
Natty:
Report link

I have found a solution to this. Instead of add & in braces block, it needs to be added without it then it works as expected.

@mixin theme($category, $token, $property, $state: false) {
  @each $theme-name, $theme-map in $themes {
    $value: getthemevalue($category, $token, $theme-name);

    @at-root {
      .#{$theme-name} & {
        #{$property}: #{map-get($color-tokens, $value)};
      }
    }
  }
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Twinkle