Borrowing from ertgl's work, here's a plugin that supports font variation settings in TailwindCSS for font-weight, italics, and disables the built-in fontWeight utilities.
This can be useful if your font supports slnt
or ital
as it should deal with Font-variation-settings inheritance.
Note: I'm using Inter and thought this using slnt
displayed a better italic but for your font you might want to update to "ital" 1
Thanks for this! I’m having trouble using the “wdth” setting in this setup. For some reason, it’s not working with Instrument Sans that I’m importing from Google Fonts. You have any idea? Thanks!