Browse documentation
Reference / Typography
Font smoothing
Choose how supported browsers rasterize glyph edges on platforms that expose font-smoothing controls.
Working example
Studio journal · Antialiased
Studio journal · Platform default
Compare the two samples on macOS. Other platforms may render both lines identically.
<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
| Class | CSS 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
.antialiased {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.subpixel-antialiased {
-webkit-font-smoothing: auto;
-moz-osx-font-smoothing: auto;
}