cancel
Showing results for 
Search instead for 
Did you mean: 

Overriding variable defined in scss

SOLVED

Overriding variable defined in scss

I want to change the style of the buttons as shown in http://devdocs.magento.com/guides/v2.1/frontend-dev-guide/css-topics/css-overview.html

How can I achieve it with the snowdog-blank-theme?

Thx

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Overriding variable defined in scss

You have to invoke mixin with custom parameter, to overwrite default code and this require to overwrite partials (i.e. "_buttons.scss").

View solution in original post

3 REPLIES 3

Re: Overriding variable defined in scss

Comments on this issue should answer your question -> https://github.com/SnowdogApps/magento2-theme-blank-sass/issues/92

Re: Overriding variable defined in scss

So, if I want to change the button-color f.e., I have to place this in my style.scss

@include lib-button(
$_button-color: white
);

 Do I have to import the _buttons.scss too?

What if I want to override an variable defined outside an mixin f.e.

//  Primary button
$button-primary__hover__color: $color-white;

?

Re: Overriding variable defined in scss

You have to invoke mixin with custom parameter, to overwrite default code and this require to overwrite partials (i.e. "_buttons.scss").