Topic: Applying a new color palette
Benny Bottema
pro answered 8 years ago
// In a custom variables file...
$theme-colors: (
primary: red
);
// In Bootstrap's _variables.scss file...
$theme-colors: () !default;
$theme-colors: map-merge((
primary: $blue,
secondary: $gray-600,
success: $green,
info: $cyan,
warning: $yellow,
danger: $red,
light: $gray-100,
dark: $gray-800
), $theme-colors);
This way we can provide a custom list of colors which will be merged into Bootstrap's color palette.
I would like to be able to do something similar with $material-colors. Is this possible?
Furthermore, I would like to customize all the skins which some changes in the same way.
Michal Szymanski
staff pro premium priority answered 10 years ago
caustin
pro answered 10 years ago
Michal Szymanski
staff pro premium priority answered 10 years ago
design.ge
pro answered 5 years ago
guys,
is there any way to access skin values within custom variables file?
so if I have a file like:
$skins: () !default; $skins: map-merge( ( "clear": ( "skin-primary-color": #b89170 ) )......
how can I access primary-color value in variables.scss?
something like:
$primary-color: skin-color(primary-color);
Krzysztof Wilk staff commented 5 years ago
Hi!
You can import the ./core/_colors.scss file to your custom skin scss.
Best regards
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No