Skip to content
PluginStats

tailwindcss-css-variables-palette-plugin weekly downloads statistics

By Thisisjuke · npm · Tailwind plugins

Palette plugin using CSS variables for TailwindCSS

View on npm Fresh · Oct 18, 2026

tailwindcss-css-variables-palette-plugin has 35 recorded weekly downloads on npm, an increase of 20.7% over the past 30 days, ranking #1848 of 2,322 tracked listings.

Weekly downloads
35
Official API · Oct 18, 2026
7-day growth
+133%
+20 weekly downloads
30-day growth
+20.7%
+6 weekly downloads
90-day growth
-10.3%
-4 weekly downloads
Rank
#1848
Among tracked npm listings

About tailwindcss-css-variables-palette-plugin

Palette plugin using CSS variables for TailwindCSS

Adds a color palette (from 100 to 900) for each color of your tailwind configuration while using CSS variable for each.

This package has been designed to create library components where the theme (colors) are easily modifiable in the application, using CSS variables.

Installation

Using yarn :

yarn add -D tailwindcss-css-variables-palette-plugin

Using npm :

npm install --save-dev tailwindcss-css-variables-palette-plugin

Then set up your tailwind.config.js this way :

const THEME_COLORS = {
  primary: '#264653',
  secondary: '#2A9D8F'
};

module.exports = {
  /...
  theme: {
    colors: THEME_COLORS,
    extend: {},
  },
  plugins: [
    require('tailwindcss-css-variables-palette-plugin')({
      colors: THEME_COLORS,
    }),
    /...
  ],
};

The plugin then create the following configuration for you :

{
  primary: {
    '100': 'var(--color-primary-100, #e9edee)',
    '200': 'var(--color-primary-200, #c9d1d4)',
    '300': 'var(--color-primary-300, #a8b5ba)',
    '400': 'var(--color-primary-400, #677e87)',
    '500': 'var(--color-primary-500, #264653)',
    '600': 'var(--color-primary-600, #223f4b)',
    '700': 'var(--color-primary-700, #1d353e)',
    '800': 'var(--color-primary-800, #172a32)',
    '900': 'var(--color-primary-900, #132229)',
    DEFAULT: 'var(--color-primary, #264653)'
  },
  secondary: {
    '100': 'var(--color-secondary-100, #eaf5f4)',
    '200': 'var(--color-secondary-200, #cae7e3)',
    '300': 'var(--color-secondary-300, #aad8d2)',
    '400': 'var(--color-secondary-400, #6abab1)',
    '500': 'var(--color-secondary-500, #2A9D8F)',
    '600': 'var(--color-secondary-600, #268d81)',
    '700': 'var(--color-secondary-700, #20766b)',
    '800': 'var(--color-secondary-800, #195e56)',
    '900': 'var(--color-secondary-900, #154d46)',
    DEFAULT: 'var(--color-secondary, #2A9D8F)'
  },
}

The plugin is also adding the always needed following classes by default (same naming as default TailwindCSS properties) :

{
  inherit: 'inherit',
  current: 'currentColor',
  transparent: 'transparent',
  black: '#000',
  white: '#fff',
}

Simple Usage

Now in your application, you can use classes like bg-primary-500 or bg-primary-800 as usual.

DEFAULT is the variable used to generate bg-primary without suffix.

<span class="bg-primary text-secondary-400">
    Hello !
</span>

NOTE : primary and primary-500 have the same color attributed. It's a better idea to use it without suffix in your code (ex: bg-primary) if the goal is to replace the color globally using its CSS variable.

CSS Variables usage

Addition in the DOM

This plugin uses the addBase utility from tailwindcss/plugin package.

So in your DOM, under the :root attribute, you can now find all the css variables generated by the plugin :

css-variables.png

See more at : https://developer.mozilla.org/en-US/docs/Web/CSS/:root

Change scoped color in your component

Now, if you need to modify one of the color of a property, you can do it globally or component scoped, using the default Css Variables API.

:root {
  --color-primary: #D36060;
}

.my-custom-card {
  --color-primary-300: #C2714F;
  --color-secondary: #E0607E;
}

Documentation : https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties

Compatibility

This plugin is based on CSS Custom Properties, which are not compatible with IE11. You can have partial support for the browsers that do not support them by using a PostCSS plugin that add a fallback for CSS variables, such as postcss-css-variables or postcss-custom-properties.

License

This project is licensed under the MIT License.

Description from the npm listing.

  • tailwind
  • tailwindcss
  • palette
  • color-palette
  • css-variable
  • tailwind-plugin
  • 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

tailwindcss-css-variables-palette-plugin weekly downloads on npm, last 90 days: 35 weekly downloads as of Oct 18, 2026, -10.3% over 90 days.tailwindcss-css-variables-palette-plug…Weekly downloads on npm · Last 90 days35downloads / week-10.3% over 90 days020406080100Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
tailwindcss-css-variables-palette-plugin weekly downloads on npm, last 90 days: 35 weekly downloads as of Oct 18, 2026, -10.3% over 90 days.

7/30/90-day growth

tailwindcss-css-variables-palette-plugin weekly downloads growth on npm: +133% over 7 days, +20.7% over 30 days, -10.3% over 90 days.tailwindcss-css-variables-palette-plug…Weekly downloads growth on npm35downloads / week now7-day growth+20 weekly downloads+133%30-day growth+6 weekly downloads+20.7%90-day growth-4 weekly downloads-10.3%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
tailwindcss-css-variables-palette-plugin weekly downloads growth on npm: +133% over 7 days, +20.7% over 30 days, -10.3% over 90 days.

Ranking history

tailwindcss-css-variables-palette-plugin npm ranking history: currently #1848 (by weekly downloads).tailwindcss-css-variables-palette-plug…npm ranking · by weekly downloads · Last 90 days#1848current rank#1800#1810#1820#1830#1840#1850Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
tailwindcss-css-variables-palette-plugin npm ranking history: currently #1848 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,162 shown · page 93, #12 (overall #1,852)
All npm: every listing in weekly downloads order

Listing placement

Tailwind plugins252 listings · 13 pages · page 5, #1 (overall #81)
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 (122)
Recent weekly downloads observations for tailwindcss-css-variables-palette-plugin
Date (UTC)Weekly downloadsChange vs. previous
35+9
260
26+3
23-8
310
310
31+16
15+3
12-2
14-7
21-31
52-17
690
69—

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/tailwindcss-css-variables-palette-plugin. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.