Tailwind utilities for better typography. Works best with Inter.
1 rem
= 10px
Install plugin from npm
npm i @devhaven/typography
Add the plugin to tailwind.config.js
module.exports = {
// ...
plugins: [
// ...
require('@devhaven/typography'),
// ...
],
};
.text-button
.text-helper
.text-label
.text-caption
.text-body-01
.text-body-02
.text-body-03
.text-subtitle-01
.text-subtitle-02
.text-subtitle-03