Neat. I've seen a lot of devs prefer this. However, I've personally gotten used to 16px.
Here's the article from 2004 where this technique was first introduced.
Ok if you really must use px units for fonts then please install this postcss npm plugin into your build process
npmjs.com/package/postcss-pxtorem
Using px units on any font setting on your site is an instant WCAG AA accessibility fail.
w3.org/TR/UNDERSTANDING-WCAG20/vis...
Same goes for things like vw in font size settings. It should be combined with rem in a calc function to ensure that text is still able to be resized.
vw
rem
calc
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Neat. I've seen a lot of devs prefer this. However, I've personally gotten used to 16px.
Here's the article from 2004 where this technique was first introduced.
Ok if you really must use px units for fonts then please install this postcss npm plugin into your build process
npmjs.com/package/postcss-pxtorem
Using px units on any font setting on your site is an instant WCAG AA accessibility fail.
w3.org/TR/UNDERSTANDING-WCAG20/vis...
Same goes for things like
vw
in font size settings. It should be combined withrem
in acalc
function to ensure that text is still able to be resized.