UNPKG

434 BSCSSView Raw
1@import "restyle";
2
3@function -get-color($color) {
4 @return (
5 color: rgba($color, 0.8)
6 );
7}
8
9@include restyle-define(test, (
10 restyle-var(color): red,
11 restyle-function(-get-color): restyle-var(color)
12));
13
14// take the restyle result of test and augment it with a map-merge
15@include restyle-define(test2, map-merge(restyle(test), (
16 width: 100%
17)));
18
19.test {
20 @include restyle(test);
21}
22.test2 {
23 @include restyle(test2);
24}