skip to Main Content

Css – SASS variables into :root are not interpolated

I want to override base-font-size by calling a function, its definition is given below base-font-size variable is defined in the root export const changeBaseFontSize = (newSize: string) => { document.documentElement.style.setProperty("--base-font-size", newSize); }; Calling this function as given below changeBaseFontSize("16"); Now,…

VIEW QUESTION
Back To Top
Search