Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Metronic React BootStrap theme customization


Hello, we are using Metronic React theme in our project and I wanted to know if there is a guide to customize the whole bootstrap theme. I understand that we can override sass variables like "$primary" in - /src/_metronic/assets/sass/components/_variables.custom.scss

But where can I include functions, mixins to do map-merges and add a custom color to the theme or additional break points, so that it does not break the project?

I also wanted to know what map merges I need to do to add an additional color to the theme and get all utility classes for the new color. Guidance would be much appreciated.


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)


Hi,

You can customize the Bootstrap SASS as it allows in:
src/_metronic/assets/sass/core/components/_variables.scss
src/_metronic/assets/sass/core/components/_variables-dark.scss

Override the above variables via the below ones:
src/_metronic/assets/sass/components/_variables.override.scss
src/_metronic/assets/sass/components/_variables.custom.scss

You can add new utility options:
src/_metronic/assets/sass/core/components/_utilities.scss

Regards.


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(