tailwindcss-font-size weekly downloads statistics
By RyoSogawa · npm · Tailwind plugins
Tailwind CSS plugin to add font-size property in px and rem
tailwindcss-font-size has 7 recorded weekly downloads on npm, a decrease of 12.5% over the past 30 days, ranking #2125 of 2,322 tracked listings.
About tailwindcss-font-size
tailwindcss-font-size
A plugin that provides utilities for font-size by px and rem ( px to rem ).
Deference between TailwindCSS's JIT(Just in Time) is that this plugin calculates the rem font-size based on the font-size of the root element.
<!-- TailwindCSS JIT -->
<p class="text-[22px]">Good</p>
<p class="text-[1.375rem]">🧮 Needs Calculation...</p>
<!-- This Plugin -->
<p class="fsz-22px">Good</p>
<p class="fsz-22ptr">🤓 No Calculation is Needed</p>
Installation
Install the plugin from npm:
# Using npm
npm install tailwindcss-font-size
# Using Yarn
yarn add tailwindcss-font-size
Then add the plugin to your tailwind.config.js file:
// tailwind.config.js
module.exports = {
theme: {
// ...
},
plugins: [
require('tailwindcss-font-size'),
// ...
],
}
Usage
Use the fsz-{n}px or fsz-{n}ptr utilities to set font-size.
px is for pixel, ptr is for rem ( px to rem ).
<p class="fsz-32px">This font size is 32px</p>
<p class="fsz-32ptr">This font size is 2rem (if option.baseSize is 16px)</p>
Configuration
You can configure the plugin by passing options to its constructor.
Parameters and default values are below.
// tailwind.config.js
module.exports = {
theme: {
// ...
},
plugins: [
require('tailwindcss-font-size')({
baseSize: 16, // html font-size
minSize: 10,
maxSize: 128
}),
// ...
],
}
Contribution
Please feel free to open an issue or make a pull request.
License
Distributed under the MIT License. See LICENSE for more information.
Description from the npm listing.
- tailwindcss
- plugin
- tailwindcss-plugin
- font-size
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (544)Similar npm Tailwind plugins plugins
All 20 tailwindcss-font-size alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/tailwindcss-font-size. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.