Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarified where to customize scss variables #293

Merged
merged 1 commit into from
May 25, 2018
Merged

Clarified where to customize scss variables #293

merged 1 commit into from
May 25, 2018

Conversation

akindofyoga
Copy link
Contributor

The documentation stated that lines to change variable names should be added to main.scss after @import statements. I tried this and it did not work for me.

I then added these lines after the import statements and the customization works perfectly.

According to this post default variables (such as $accent-color) can be overwritten ahead of time. But changing the value of a variable after it has been used will not have any effect on the earlier parts of the CSS where the variable was used.

Therefore, it seems like variables have to be overwritten after the import statements, and there is no way to overwrite variables that were not declared with !default.

The documentation stated that lines to change variable names should be added to main.scss after @import statements. I tried this and it did not work for me. 

I then added these lines after the import statements and the customization works perfectly. 

According to [this post](https://stackoverflow.com/questions/17089717/how-to-overwrite-scss-variables-when-compiling-to-css) default variables (such as $accent-color) can be overwritten ahead of time. But changing the value of a variable after it has been used will not have any effect on the earlier parts of the CSS where the variable was used. 

Therefore, it seems like variables have to be overwritten after the import statements, and there is no way to overwrite variables that were not declared with !default.
@mmistakes
Copy link
Owner

Good catch. Thanks!

@akindofyoga
Copy link
Contributor Author

No problem! Thank you for making this great theme!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants