This topic contains 1 reply, has 2 voices, and was last updated by Sean Sean 3 years, 1 month ago.

font-size variable in SASS


  • fpaillard@connectiv-it.com
    Participant

    Posts: 3
    Member Reply #730

    Hello

    I tried to change the $font-size-base and $font-size-normal variables in _variables.scss and recompile the CSS with Koala but the change doesn’t seem to be applied.

    After a quick search it appears that these variables are not used in _*.scss files. All font-size are hard-coded such as font-size: 14px;

    Thus, what is the best pratice to change, globally,  the font size of Metronic components and plugins?

    Thanks for your help

    Kind Regards

    Sean
    Sean
    Keymaster

    Posts: 4444
    Support Staff Reply #731

    Hi :),

    Those variables only applied to global body font size.  Actual components and plugins are optimized with hardcoded font size. For most components used 14px font size. To change it globally you will need to manually change the entire components.css. But please note that font size change can impact in components paddings and margins so i would suggest you to stick with default font size. In case if you really need to change it you will need to override it in custom.css for your selected elements.

    If you need any further clarifications please let us know.

    Thanks.

You must be logged in to reply to this topic.