-
Notifications
You must be signed in to change notification settings - Fork 335
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
Child Theme Variables aren't working #88
Comments
The problem is changes to the BS4 original file will be overwritten after a So copying the color system part from Bootstrap4 variables file and remove the "!default" flag like:
at the top of your sass/theme/_theme_variables.scss (or _child_theme_variables.scss) seems to be the way to go till the next update. Than you can just remove it and you are good to go. If you wanna change just one colors you just need to copy over some parts. For example if you wanna replace your primary color with "red" instead of "blue" this should be working:
If you now change the $red variable it will be changed everywhere (don´t forget to remove the !default flag!) and will be used as primary color, too. |
Thanks! I've been using a slightly modified version of this, but I was hoping there was a better solution until the BS update goes live. This will work for the time being though. |
This is no longer a working method for doing a color swap:
As pointed out here and "resolved" here, the issue seems to either require copying all three color maps BS uses into your
_child_theme_variables.scss
or modifying Bootstrap files, which is not ideal. I think the documentation should at least be updated with a warning that this method won't work anymore. Any ideas on how to resolve this issue quickly?The text was updated successfully, but these errors were encountered: