I use the components of a design system (Semantic UI React). Everything is measured with rem and the font-size for the html tag (the root) is 14 px.
Now I want to introduce a new design system (Tailwind UI). Which also uses rem everywhere and is based on a root font-size of 16px. So when I insert new components, they are too small.
So: Is there a way to have a separate root font size for certain areas?
2
Answers
You may use :
If you want different root values you may edit them in the pages you want editing the CSS of every page to have a custom root font-size in the html tag, hope it works 😀 gl
Root font size is inherently global, you’d need to override it on a case-by-case basis once changing your root size.