tailwindcss-modularscale weekly downloads statistics
By artisanstudio · npm · Tailwind plugins
Modular scale plugin for TailwindCSS.
tailwindcss-modularscale has 16 recorded weekly downloads on npm, unchanged over the past 30 days, ranking #3039 of 3,247 tracked listings.
About tailwindcss-modularscale
TailwindCSS Modular Scale Plugin
Modular scale is used in typography as a sequence of text sizes are harmonious to each other.
Here's an article that explains the Modular Scale far better than I ever will
Installation
# NPM
npm install --save-dev tailwindcss-modularscale
# Yarn
yarn add --dev tailwindcss-modularscale
Usage
Default configuration.
module.exports = {
// ...
plugins: [
require('tailwindcss-modularscale')()
],
}
The default configuration:
{
sizes: [
{ size: 'sm', value: -1 },
{ size: 'base', value: 0 },
{ size: 'lg', value: 1 },
{ size: 'xl', value: 2 },
{ size: '2xl', value: 3 },
{ size: '3xl', value: 4 },
{ size: '4xl', value: 5 }
],
base: 16,
ratio: 1.333, // Perfect Fourth
unit: 'px',
}
The generated code will use .ms- to avoid conflicts with the textSize utilities.
.ms-sm { font-size: 12px; }
.ms-base { font-size: 16px; }
.ms-lg { font-size: 21px; }
.ms-xl { font-size: 28px; }
.ms-2xl { font-size: 38px; }
.ms-3xl { font-size: 51px; }
.ms-4xl { font-size: 67px; }
Custom configuration
module.exports = {
// ...
plugins: [
require('tailwindcss-modularscale')({
sizes: [
{ size: 'base', value: 0 },
{ size: 'lg', value: 1 },
],
base: 1,
ratio: 1.2,
unit: 'rem',
})
],
}
To add other variants of the font sizes
module.exports = {
// ...
plugins: [
require('tailwindcss-modularscale')({
base: 16,
ratio: 1.333,
variants: ['responsive'],
})
],
}
Limitations
As of now, this plugin only supports one base size. I'm still not sure what's the best utility class if I were to support multiple base sizes.
Description from the npm listing.
- tailwind
- tailwindcss
- tailwindcss-plugin
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 tailwindcss-modularscale 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-modularscale. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.