We have a colorset defined in our css file.
$colorset: theme-a !default; $colorsets: ( theme-a: ( secondary-color: $green-100, contrast-color: $white-100, color-text: $black-100, ), theme-b: ( secondary-color: $white-100, contrast-color: $green-100, color-text: $dark-grey-100, ), .... )
Then we are getting the $color-sec per theme by the following variable.
$color-sec: map-get($theme-colors, secondary-color);
The code above works perfectly in scss but i'm trying to use postcss instead of sass.
When I look at my output, I see the folowing code:
background-color: map-get(map-get(( corporate: ( secondary-color: #0C8066, contrast-color: #FFFFFF, color-text: #0C8066, ), ea: ( secondary-color: #65BFBD, contrast-color: #002328, color-text: #002328, ), ), corporate), secondary-color);
Do you have any idea what's wrong with it? Or how we can fix this?
We have a colorset defined in our css file.
$colorset: theme-a !default; $colorsets: ( theme-a: ( secondary-color: $green-100, contrast-color: $white-100, color-text: $black-100, ), theme-b: ( secondary-color: $white-100, contrast-color: $green-100, color-text: $dark-grey-100, ), .... )Then we are getting the $color-sec per theme by the following variable.
$color-sec: map-get($theme-colors, secondary-color);The code above works perfectly in scss but i'm trying to use postcss instead of sass.
When I look at my output, I see the folowing code:
background-color: map-get(map-get(( corporate: ( secondary-color: #0C8066, contrast-color: #FFFFFF, color-text: #0C8066, ), ea: ( secondary-color: #65BFBD, contrast-color: #002328, color-text: #002328, ), ), corporate), secondary-color);Do you have any idea what's wrong with it? Or how we can fix this?