-
-
Notifications
You must be signed in to change notification settings - Fork 78.8k
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
Overriding $theme-colors #24849
Comments
Hi @Djules you can remove the colors you don't want from the theme map and you wont get that CSS compiled. |
Hi @andresgalante, unfortunately not since the last version, because in file _variable.scss, you can see that So you can add or modify existing key in the map, but you can't remove one as far as I know. |
One solution is to remove undesirable keys after the import of the Bootstrap variables file. @import "custom";
@import "~bootstrap/scss/bootstrap";
$theme-colors: map-remove($theme-colors, "success", "info", "danger"); Maybe this is what what you meant @andresgalante. |
Just for performance purpose yes, to save some bytes is the compiled CSS, as I don't need those state colors in my custom theme. |
The |
Using v4.0.0-beta.2, I found out something changed with map of theme colors.
Now default
$theme-colors
is merged with custom one, no matter what.But what if I don't need success, info, danger, etc… for background or text utility classes?
The text was updated successfully, but these errors were encountered: