tailwindcss-baukasten-modularscale weekly downloads statistics
By davidhellmann · npm · Tailwind plugins
Modular scale plugin for TailwindCSS.
tailwindcss-baukasten-modularscale has 21 recorded weekly downloads on npm, an increase of 133% over the past 30 days, ranking #1928 of 2,322 tracked listings.
About tailwindcss-baukasten-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-baukasten-modularscale
# Yarn
yarn add --dev tailwindcss-baukasten-modularscale
Usage
Default configuration.
module.exports = {
// ...
plugins: [
require('tailwindcss-baukasten-modularscale')()
],
}
The default configuration:
{
sizesMobile = [
{ size: '-2--mobile', value: -2 },
{ size: '-1--mobile', value: -1 },
{ size: '0--mobile', value: 0 },
{ size: '1--mobile', value: 1 },
{ size: '2--mobile', value: 2 },
{ size: '3--mobile', value: 3 },
{ size: '4--mobile', value: 4 },
{ size: '5--mobile', value: 5 },
{ size: '6--mobile', value: 6 },
{ size: '7--mobile', value: 7 },
{ size: '8--mobile', value: 8 },
{ size: '9--mobile', value: 9 },
],
sizesDesktop = [
{ size: '-2', value: -2 },
{ size: '-1', value: -1 },
{ size: '0', value: 0 },
{ size: '1', value: 1 },
{ size: '2', value: 2 },
{ size: '3', value: 3 },
{ size: '4', value: 4 },
{ size: '5', value: 5 },
{ size: '6', value: 6 },
{ size: '7', value: 7 },
{ size: '8', value: 8 },
{ size: '9', value: 9 },
],
baseMobile = 16,
ratioMobile = 1.1,
unitMobile = 'px',
baseDesktop = 20,
ratioDesktop = 1.25,
unitDesktop = 'px',
}
The generated code will use .ms- to avoid conflicts with the textSize utilities.
.ms--2--mobile { font-size: 13px; }
.ms--1--mobile { font-size: 15px; }
.ms-0--mobile { font-size: 16px; }
.ms-1--mobile { font-size: 18px; }
.ms-2--mobile { font-size: 20px; }
.ms-3--mobile { font-size: 22px; }
.ms-4--mobile { font-size: 24px; }
.ms-5--mobile { font-size: 27px; }
.ms-6--mobile { font-size: 30px; }
.ms-7--mobile { font-size: 33px; }
.ms-8--mobile { font-size: 36px; }
.ms-9--mobile { font-size: 40px; }
.ms--2 { font-size: 13px; }
.ms--1 { font-size: 16px; }
.ms-0 { font-size: 20px; }
.ms-1 { font-size: 25px; }
.ms-2 { font-size: 31px; }
.ms-3 { font-size: 39px; }
.ms-4 { font-size: 49px; }
.ms-5 { font-size: 61px; }
.ms-6 { font-size: 76px; }
.ms-7 { font-size: 95px; }
.ms-8 { font-size: 119px; }
.ms-9 { font-size: 148px; }
Custom configuration
module.exports = {
// ...
plugins: [
require('tailwindcss-baukasten-modularscale')({
sizesMobile: [],
sizesDesktop: [],
baseMobile: 1,
ratioMobile: 1.2,
unitMobile: 'rem',
baseDesktop: 1,
ratioDesktop: 1.2,
unitDesktop: 'rem',
})
],
}
To add other variants of the font sizes
module.exports = {
// ...
plugins: [
require('tailwindcss-baukasten-modularscale')({
baseMobile: 16,
ratioMobile: 1.333,
variants: ['responsive'],
})
],
}
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 (122)Similar npm Tailwind plugins plugins
All 20 tailwindcss-baukasten-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-baukasten-modularscale. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.