@theunwindfront/tailwindcss-fluid-scale weekly downloads statistics
By theunwindfront · npm · Tailwind plugins
Tailwind CSS v4 plugin for automatic, fluid typography and dynamic spacing scales using native CSS clamp().
@theunwindfront/tailwindcss-fluid-scale has 14 recorded weekly downloads on npm, an increase of 100% over the past 30 days, ranking #3072 of 3,247 tracked listings.
About @theunwindfront/tailwindcss-fluid-scale
@theunwindfront/tailwindcss-fluid-scale
A high-performance, design-system integrated Tailwind CSS v4 plugin to compile mathematically fluid typography and spacing scales dynamically using native CSS clamp().
The Problem
Managing perfectly fluid layouts across a wide range of devices usually requires declaring repetitive responsive breakpoints (such as text-sm md:text-base lg:text-lg xl:text-3xl). This creates verbose stylesheets, leads to repetitive code, and causes sudden, jarring layout jumps when screen sizes cross responsive boundaries.
The Solution
This plugin calculates dynamic mathematical slopes on the fly, locking typography and spacing between a defined minimum viewport boundary (default 320px) and a maximum viewport boundary (default 1536px / 2xl).
Instead of jumping abruptly between breakpoints, sizes scale smoothly pixel-by-pixel:
<!-- Typography locks smoothly between font-size 'sm' and '3xl' -->
<h1 class="fluid-text-sm-3xl font-black">Dynamic Title</h1>
<!-- Padding-x scales linearly from index 4 (16px) to 16 (64px) -->
<div class="fluid-px-4-16 border rounded-xl">
Fluid Container Box
</div>
The plugin programmatically reads boundaries directly from the active @theme context (e.g. screens.sm and screens.2xl), ensuring fluid computations stay perfectly synchronized with your design system.
Installation
Install the package via Composer (for Laravel integration) and NPM (for the Tailwind CSS plugin):
composer require theunwindfront/tailwindcss-fluid-scale
npm install @theunwindfront/tailwindcss-fluid-scale
Add the plugin to your main stylesheet (Tailwind CSS v4):
@import "tailwindcss";
@plugin "@theunwindfront/tailwindcss-fluid-scale";
For Tailwind v3, import it in tailwind.config.js:
module.exports = {
plugins: [
require('@theunwindfront/tailwindcss-fluid-scale'),
],
}
Usage Guide
1. Fluid Typography
Scale font sizes between standard Tailwind theme keys. Typographic scale declarations also preserve pre-configured line heights automatically:
<h1 class="fluid-text-sm-3xl">Fluid Heading</h1>
<p class="fluid-text-xs-base text-slate-500">Fluid paragraph body</p>
2. Fluid Spacing (Padding, Margin, Gaps, Width, Height)
Scale distances linearly across viewports:
- Padding:
fluid-p-{min}-{max},fluid-px-{min}-{max},fluid-py-{min}-{max},fluid-pt-*-*, etc. - Margin:
fluid-m-{min}-{max},fluid-mx-{min}-{max},fluid-my-{min}-{max},fluid-mt-*-*, etc. - Gaps:
fluid-gap-{min}-{max},fluid-gap-x-*-*,fluid-gap-y-*-* - Dimensions:
fluid-w-{min}-{max},fluid-h-{min}-{max}
<div class="fluid-py-3-8 fluid-px-4-16 fluid-gap-2-8 grid grid-cols-3">
<div>A</div>
<div>B</div>
<div>C</div>
</div>
3. Custom Arbitrary Calculations
If you need to bypass standard design tokens, you can input arbitrary pixel or rem sizes using bracket syntax. The compiler will calculate the exact slope equation automatically on the fly:
<!-- Scales font-size from 12px to 60px -->
<span class="fluid-text-[12px-60px]">Huge Scaling Headline</span>
<!-- Scales padding-y from 1.5rem to 80px -->
<section class="fluid-py-[1.5rem-80px]">...</section>
Configuration Options
You can configure custom default viewport ranges directly within the @plugin initialization block:
@plugin "@theunwindfront/tailwindcss-fluid-scale" {
minWidth: "375px";
maxWidth: "1440px";
}
👥 Credits
- Sagar Pansuriya - Lead Creator & Developer
🤝 Support
For questions or issues, contact pansuriya.sagar94@gmail.com
📄 License
The MIT License (MIT). Please see License File for more information.
Description from the npm listing.
- tailwindcss
- tailwind
- tailwindcss-plugin
- fluid-typography
- fluid-spacing
- clamp
- fluid-scale
- 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 @theunwindfront/tailwindcss-fluid-scale 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/@theunwindfront/tailwindcss-fluid-scale. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.