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
Using px units on any font setting on your site is an instant WCAG AA accessibility fail.
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.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.