Can SCSS mixins be loaded before skins? #2493
Replies: 2 comments
-
Have you tried loading the mixins Sass partial in your skin partial? @import "../../mixins";
.btn--primary.think {
background-color: $think-color;
&:hover {
@include yiq-contrasted(mix(#000, $think-color, 20%));
}
} |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for your help @mmistakes ! I don't get it to work (btw, the path is one level up), and it needs also loading the appropriate (or all) @import "../variables";
@import "../mixins";
@import "../buttons"; The button color is not set, unless modifying |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am adding my own custom skin and want to define custom button styles, like this:
It does not work because the mixins are loaded after the skin, so I have to add this to
_buttons.scss
instead. It might be hard given the sequence stuff must be loaded, but maybe there is a way to have the mixins already available to skins?Beta Was this translation helpful? Give feedback.
All reactions