Skip to content
PluginStats

flatten-tailwindcss-theme weekly downloads statistics

By phuctm97 (5 listings) · npm · Tailwind plugins

🔨 Flatten TailwindCSS theme objects for plugins to conveniently generate utilities and components.

View on npm Fresh · Dec 6, 2026

flatten-tailwindcss-theme has 11,960 recorded weekly downloads on npm, an increase of 40.9% over the past 30 days, ranking #1208 of 3,247 tracked listings.

Weekly downloads
11,960
Official API · Dec 5, 2026
7-day growth
+24.9%
+2.4K weekly downloads
30-day growth
+40.9%
+3.5K weekly downloads
90-day growth
-25.8%
-4.2K weekly downloads
Rank
#1208
▲ 46 in 7 days

About flatten-tailwindcss-theme

🔨 flatten-tailwindcss-theme

npm version GitHub license

Flatten TailwindCSS theme objects for plugins to conveniently generate utilities and components.

Requirements

  • Node.js 12+

  • Tailwind CSS 2+

Install

yarn add flatten-tailwindcss-theme

Or if you use npm:

npm i --save flatten-tailwindcss-theme

Usage

In a TailwindCSS plugin
const plugin = require("tailwindcss/plugin");
const flatten = require("flatten-tailwindcss-theme");

module.exports = plugin(({ addUtilities, variants, theme, e }) => {
  const colors = flatten(theme("colors"));
  const utils = Object.entries(colors).reduce(
    (res, [key, value]) =>
      Object.assign(res, {
        [`.${e(`textfill-${key}`)}`]: {
          "-webkit-text-fill-color": value,
        },
      }),
    {}
  );
  addUtilities(utils, variants("textfill"));
});

The above plugin add classes: textfill-white, textfill-gray-100, textfill-gray-200, ... , textfill-blue-100, textfill-blue-200, ... , etc.

In a generic Node.js task
const flatten = require("flatten-tailwindcss-theme");

const output = flatten({
  transparent: "transparent",
  current: "currentColor",
  black: "#000",
  white: "#fff",
  gray: {
    100: "#f7fafc",
    200: "#edf2f7",
    300: "#e2e8f0",
    400: "#cbd5e0",
    500: "#a0aec0",
    600: "#718096",
    700: "#4a5568",
    800: "#2d3748",
    900: "#1a202c",
  },
  red: {
    100: "#fff5f5",
    200: "#fed7d7",
    300: "#feb2b2",
    400: "#fc8181",
    500: "#f56565",
    600: "#e53e3e",
    700: "#c53030",
    800: "#9b2c2c",
    900: "#742a2a",
  },
});

console.log(output);
// Output:
{
  transparent: 'transparent',
  current: 'currentColor',
  black: '#000',
  white: '#fff',
  'gray-100': '#f7fafc',
  'gray-200': '#edf2f7',
  'gray-300': '#e2e8f0',
  'gray-400': '#cbd5e0',
  'gray-500': '#a0aec0',
  'gray-600': '#718096',
  'gray-700': '#4a5568',
  'gray-800': '#2d3748',
  'gray-900': '#1a202c',
  'red-100': '#fff5f5',
  'red-200': '#fed7d7',
  'red-300': '#feb2b2',
  'red-400': '#fc8181',
  'red-500': '#f56565',
  'red-600': '#e53e3e',
  'red-700': '#c53030',
  'red-800': '#9b2c2c',
  'red-900': '#742a2a'
}

Contributing

Requirements
  • Node 12+

  • Yarn 1.22+

Setup
  1. Install requirements

  2. Clone the repository

  3. Run yarn to install dependencies

Develop
  • Commit adhering to Angular commit convention, use yarn commit or Code conventional commits to commit interactively

  • Submit a PR and make sure required status checks pass

  • When a PR is merged or code is pushed to master, Github automatically builds and publishes a new release if there're relevant changes


Made by @phuctm97.

<!-- Badges --> <!-- Links -->

Description from the npm listing.

  • tailwindcss
  • tailwindcss-plugin
  • tailwindcss-extension
  • tailwindcss-utility

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

flatten-tailwindcss-theme weekly downloads on npm, last 90 days: 11,960 weekly downloads as of Dec 5, 2026, -25.8% over 90 days.flatten-tailwindcss-themeWeekly downloads on npm · Last 90 days11,960downloads / week-25.8% over 90 days020K40K60K80K100KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
flatten-tailwindcss-theme weekly downloads on npm, last 90 days: 11,960 weekly downloads as of Dec 5, 2026, -25.8% over 90 days.

7/30/90-day growth

flatten-tailwindcss-theme weekly downloads growth on npm: +24.9% over 7 days, +40.9% over 30 days, -25.8% over 90 days.flatten-tailwindcss-themeWeekly downloads growth on npm11,960downloads / week now7-day growth+2,382 weekly downloads+24.9%30-day growth+3,472 weekly downloads+40.9%90-day growth-4,164 weekly downloads-25.8%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
flatten-tailwindcss-theme weekly downloads growth on npm: +24.9% over 7 days, +40.9% over 30 days, -25.8% over 90 days.

Ranking history

flatten-tailwindcss-theme npm ranking history: currently #1208 (by weekly downloads).flatten-tailwindcss-themenpm ranking · by weekly downloads · Last 90 days#1208current rank#200#400#600#800#1000#1200#1400Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
flatten-tailwindcss-theme npm ranking history: currently #1208 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 61, #8 (overall #1,208)
All npm: every listing in weekly downloads order

Listing placement

Tailwind plugins292 listings · 15 pages · page 1, #9 (overall #9)
Tailwind plugins: every listing in weekly downloads order

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 (592)
Recent weekly downloads observations for flatten-tailwindcss-theme
Date (UTC)Weekly downloadsChange vs. previous
11,960+98
11,862+367
11,495+308
11,187+953
10,234+19
10,215+495
9,720+142
9,578-100
9,678-290
9,968-68
10,036-222
10,258+786
9,472-34
9,506—

Similar npm Tailwind plugins plugins

All 20 flatten-tailwindcss-theme alternatives

Data 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/flatten-tailwindcss-theme. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.