1 | @import "restyle";
|
2 |
|
3 | @include restyle-define(test, (
|
4 | restyle-modifiers: (
|
5 | black: (
|
6 | color: black
|
7 | ),
|
8 | red: (
|
9 | color: rgba(255,0,0,1)
|
10 | ),
|
11 | aqua: (
|
12 | color: cyan
|
13 | )
|
14 | )
|
15 | ));
|
16 |
|
17 | .test {
|
18 | // because of the way Sass handles color names, we need to allow `cyan` and `aqua` to represent the same thing
|
19 | // @see https://github.com/sass/sass/blob/stable/lib/sass/script/value/color.rb
|
20 | @each $color in (black red aqua cyan) {
|
21 | &.#{$color} {
|
22 | @include restyle($color test);
|
23 | }
|
24 | }
|
25 | }
|