V5 $theme-colors
See original GitHub issueHi,
I just tried the new Bootstrap 5.0.0-alpha1 and when I wanted to add a new color to $theme-colors it override all the theme.
I compared the code with the v 4.5.0 and I found that in the file variables.scss the map-merge is missing.
In v4.5.0
$theme-colors: () !default;
$theme-colors: map-merge(
(
"primary": $primary,
"secondary": $secondary,
"success": $success,
"info": $info,
"warning": $warning,
"danger": $danger,
"light": $light,
"dark": $dark
),
$theme-colors
);
In V5
$theme-colors: (
"primary": $primary,
"secondary": $secondary,
"success": $success,
"info": $info,
"warning": $warning,
"danger": $danger,
"light": $light,
"dark": $dark
) !default;
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Color · Bootstrap v5.0
Theme colors All these colors are available as a Sass map, $theme-colors . $theme-colors: ( "primary": $primary, "secondary": $secondary, "success": $success, ...
Read more >Palette - Material UI - MUI
The palette enables you to modify the color of the components to suit your brand. Palette colors. The theme exposes the following palette...
Read more >Customizing the Material-UI Theme Color Palette (MUI v5)
This demo shows how to override palette colors, add new categories to the palette, and create a component that uses the custom colors....
Read more >Material UI v5 Different Primary Color Based on Mode (Light ...
On light mode: the primary.main color is #1976d2. On dark mode: the primary.main color is #1976d2. Now, I'm wondering ...
Read more >MUI Themes Fully-Featured with MUI v5 - NetworkSynapse
You may have noticed that some palette colors in our theme only have the main color property set. One great feature with the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Plop, I managed to make it work like this :
@MostlyDead This is how i do in my bootstrap.scss file: