CSS font smoothing with antialiasing

February 10, 2019

For easy reference. This is how to use font-smoothing in CSS:

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

If you want to cancel this effect, set both to auto.

You may also be interested in my post on the system font stack.

I'm sharing everything I learn while building a software company. Join my newsletter to receive advice and opportunities that I never post publicly. Or learn more about me?