tailwind-fluid-typography weekly downloads statistics
By craigrileyuk · npm · Tailwind plugins
Fluid typography plugin for the tailwindcss framework
tailwind-fluid-typography has 223 recorded weekly downloads on npm, an increase of 9.9% over the past 30 days, ranking #2458 of 3,247 tracked listings.
About tailwind-fluid-typography
Tailwind Fluid Typography
[!IMPORTANT] For Tailwind v3 support, use version 2 of this plugin, for Tailwind v4, use version 3.
Based on the fluid typography theory devised by Mike Riethmuller and incorporating ideas from Google's Material Design spec, Tailwind Fluid Typography gives you a new set of utility classes that scale modularly depending on screen size.
- Set breakpoints for when your type should start and stop scaling
- Dual scaling system gives you the ability to set your desired scale for your lower breakpoint and for your higher breakpoint
- Provides xs, sm, base, lg, xl, 2xl, 3xl, 4xl, 5xl, 6xl, 7xl, 8xl and 9xl font-sizes
Migrating from v2 to v3
Version 3 is a rewrite for Tailwind v4's CSS-first configuration. If you are staying on Tailwind v3, keep using version 2.
1. Move your configuration into CSS. The plugin is no longer registered in tailwind.config.js, and the theme.fluidTypography object is no longer read. Load the plugin in your stylesheet and pass options as kebab-case properties:
-// tailwind.config.js
-theme: {
- fluidTypography: { remSize: 14, minTypeScale: 1.25 },
-},
-plugins: [fluidTypography],
+/* app.css */
+@import "tailwindcss";
+@plugin "tailwind-fluid-typography" {
+ rem-size: 14;
+ min-type-scale: 1.25;
+}
2. Rename your classes. Every fluid-* class is now text-fluid-*, including any variants or @apply rules:
-<h1 class="fluid-4xl md:fluid-5xl">
+<h1 class="text-fluid-4xl md:text-fluid-5xl">
3. Check your root font size. In v2, remSize was reference only and you had to set your <html> font size yourself. In v3 the plugin does it for you: if rem-size is not 16, it sets html { font-size } as a percentage of the browser default. Remove your own html font-size rule, or the two will compound.
4. Replace the --fluid-line-height and --fluid-letter-spacing variables. These no longer exist. Sizes are now real Tailwind font sizes, so use Tailwind's own leading-* and tracking-* utilities to override a single element.
5. Remove your own .fluid-prose rules. The plugin now provides fluid-prose itself (see Fluid Prose). Your own definition can stay if you want a different heading mapping.
6. Review these smaller changes:
xsandsmnow scale correctly. In v2 theirclamp()bounds were inverted, so they never changed size.- Letter-spacing on
xs,smandbaseis now inem, so it scales with the font size, and follows Material Design's values. Previously it was a small fixed pixel value. - Invalid options (non-numbers, zero or negative values, or a
max-screen-sizethat is not larger thanmin-screen-size) fall back to their defaults. - Requiring the package from CommonJS needs Node 22.12 or later.
Installation
Requires Tailwind CSS v4.
npm i tailwind-fluid-typography
// or
pnpm add tailwind-fluid-typography
// or
yarn add tailwind-fluid-typography
/* app.css */
@import "tailwindcss";
@plugin "tailwind-fluid-typography";
Usage
<h1 class="text-fluid-4xl">Fluid Typography @ 4XL</h1>
<h2 class="text-fluid-3xl">Fluid Typography @ 3XL</h2>
<h3 class="text-fluid-2xl">Fluid Typography @ 2XL</h3>
<h4 class="text-fluid-xl">Fluid Typography @ XL</h4>
<h5 class="text-fluid-lg">Fluid Typography @ LG</h5>
<h6 class="md:text-fluid-lg">Fluid Typography @ LG from the md breakpoint</h6>
<p class="text-fluid-base">Fluid Typography</p>
<p class="text-fluid-sm">Fluid Typography @ SM</p>
<small class="text-fluid-xs">Fluid Typography @ XS</small>
The sizes are registered as Tailwind font sizes, so they work with variants and with the rest of Tailwind's typography utilities. Each size carries its own line-height and letter-spacing, which leading-* and tracking-* override on a single element:
<h1 class="text-fluid-4xl leading-tight tracking-wide">Overridden line-height and tracking</h1>
Note that Tailwind's line-height shorthand (text-fluid-sm/6) replaces the size's line-height and drops its default letter-spacing.
Customisation
To customise the plugin, pass options in the @plugin block of your stylesheet. Option names are kebab-case:
| Name | Type | Default | Description |
|---|---|---|---|
rem-size | Number | 16 | The px size of 1rem. If not 16, the plugin sets the <html> font size to match |
min-screen-size | Number | 320 | The screen size (in px) at which to begin scaling |
max-screen-size | Number | 1920 | The screen size (in px) at which to stop scaling |
min-type-scale | Number | 1.2 | The scaling factor to use at min-screen-size |
max-type-scale | Number | 1.333 | The scaling factor to use at max-screen-size |
line-height | Number | 1.35 | The line-height for every size except sm and base, which use fixed values (1.5, 1.4) |
Description from the npm listing.
- tailwind
- tailwindcss
- plugin
- tailwindcss-plugin
- typography
- fluid
- responsive
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 (170)Similar npm Tailwind plugins plugins
All 20 tailwind-fluid-typography 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/tailwind-fluid-typography. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.