Browse documentation

Reference / Typography

Font smoothing

Choose how supported browsers rasterize glyph edges on platforms that expose font-smoothing controls.

Working example

Compare the two samples on macOS. Other platforms may render both lines identically.

HTML
<div class="bg-black p-4 text-white">
  <p class="antialiased">Studio journal · Antialiased</p>
  <p class="subpixel-antialiased">Studio journal · Platform default</p>
</div>

Class reference

ClassCSS declarations
antialiased-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
subpixel-antialiased-webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto;
View full generated CSS
Compiled CSS
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.subpixel-antialiased {
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}