Get 2024 Templates Mega Bundle!$1000 worth of 19 Bootstrap HTML, Vue & React Templates + 3 Vector Sets for just $9
Get for 99$

Metronic Theme master layout css change to custom css.


We needed to make CSS changes to our Metronic theme, so we modified the assets/style.css file. However, we encountered errors and noticed that other components were also affected. Could you please outline the correct process for changing the CSS and typography in the master CSS file to reflect the whole theme?


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (4)


To customize CSS in Metronic, create a custom.css file and link it after the style.css file. Use selectors and CSS variations to override properties. Test your changes using your browser's dev tools to make sure every little thing works as expected. cookie clicker



I would like to express my genuine gratitude for the sharing of this vital information.
capybara clicker



Before making significant changes, it's always a good idea to create backups of the original CSS files in case you need to revert to their slope.



Hi,

Sorry for the late reply.

The recommended way to customize Metronic default styles is through SCSS variables.

If you are using Metronic v8.x Demo1 or Demo 22 demos you can customize default styles in src/sass/layout/_variables.custom.scss.

If you are using other demos please use src/sass/layout/_variables.scss

For more info about using Metronic please check the Theme Documentation
and Video Tutorials

Regards,
Lauris Stepanovs,
Keenthemes Support Team


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(