font-feature-settings
Utilities for controlling advanced typographic features.
| Class | Styles |
|---|---|
font-features-[<value>] | |
font-feature-settings: <value>; |
|
| font-features-(<custom-property>) |
font-feature-settings: var(<custom-property>);
|
Use the font-features-[<value>] utility to enable OpenType features in fonts that support them:
<p class="font-features-['smcp'] ...">This text uses small caps.</p>
You can enable multiple OpenType features by separating them with commas:
<p class="font-features-['smcp','onum'] ...">This text uses small caps and oldstyle numbers.</p>
Use the font-features-(<custom-property>) syntax to apply font feature settings from a CSS variable:
<p class="font-features-(--my-features) ..."> <!-- ... --></p>
Prefix a font-feature-settings utility with a breakpoint variant like md: to only apply the utility at medium screen sizes and above:
<p class="font-features-['tnum'] md:font-features-['smcp'] ..."> Lorem ipsum dolor sit amet...</p>
Learn more about using variants in the variants documentation.
On this page
[

From the creators of Tailwind CSS
Make your ideas look awesome, without relying on a designer.
“This is the survival kit I wish I had when I started building apps.”
Derrick Reimer, SavvyCal
](https://www.refactoringui.com/?ref=sidebar)
Copyright © 2026 Tailwind Labs Inc.·Trademark Policy