Skip to content
PluginStats

darkwind weekly downloads statistics

By jmnote · npm · Tailwind plugins

A Tailwind CSS plugin for automatic inverted dark mode colors.

View on npm Fresh · Dec 6, 2026

darkwind has 16 recorded weekly downloads on npm, an increase of 77.8% over the past 30 days, ranking #3042 of 3,247 tracked listings.

Weekly downloads
16
Official API · Dec 5, 2026
7-day growth
-40.7%
-11 weekly downloads
30-day growth
+77.8%
+7 weekly downloads
90-day growth
-23.8%
-5 weekly downloads
Rank
#3042
▼ 305 in 7 days

About darkwind

Darkwind

"Tailwind blows, Darkwind adapts."

Darkwind is an auto-dark plugin for Tailwind CSS with zero-config inverted colors. Write bg-x-slate-200, and get slate-800 (or 700) in dark mode automatically. The default palette has 11 steps (50 → 950); x- classes invert those steps in dark mode. Darkwind is rule-based, predictable, and configurable. It adapts dark mode colors using math, not hardcoded strategies.

Get Started

Installation
npm install darkwind
# or
pnpm add darkwind
# or
yarn add darkwind
Configuration

Add it to your tailwind.config.js:

module.exports = {
  darkMode: 'class', // Required for the plugin to work
  plugins: [require('darkwind')()],
}

Examples

Now use the x- prefix:

<html class="dark">
  <div class="bg-x-slate-100 text-x-slate-900">
    This card adapts to the wind.
  </div>
</html>

Features

  • Drop-in prefix: Use x- in front of default palette colors to get automatic dark equivalents.
  • Predictable mapping: Math-based inversion across the 11 shade steps (50 → 950), with tunable offsets.
  • White/black handling: Edge colors map into the shade spectrum via edgeFamily.
  • Opacity friendly: Works with slash modifiers like bg-x-sky-500/50.
  • Tailwind v3/v4 compatible: Works in both Tailwind v3 and v4.
  • VS Code Preview: x- classes (e.g., bg-x-sky-500/50) show color previews in VS Code.

VS Code color preview for x- classes

How it works

1) Supported Tailwind palette colors

Darkwind targets the default tailwindcss/colors palette only (custom colors are not included):

  • Shade-based colors (e.g., red-300, sky-700)
  • Edge colors (white, black)
2) Shade-based colors

For palette colors like slate-100 or gray-500:

  • Mirror at 500 (symmetric inversion).
  • Apply offset by shifting the result by shade steps in this sequence: 50 → 100 → 200 → 300 → 400 → 500 → 600 → 700 → 800 → 900 → 950
  • Clamp to the ends of the sequence (and to minShade / maxShade if configured).
  • Snap to the nearest valid shade (50–950, ties round up).
3) white / black
  • Compute a virtual shade for white/black.
  • If the result is within 50–950, output {edgeFamily}-{shade}.
  • If it falls outside, keep white or black.
📊 Showcase mapping examples (documentation only)

These are illustrative examples, not API options. Use numeric options instead.

Examplesymmetric (default)moderndarker
offset01 (lighter)-1 (darker)
maxShade10009501000
minShade050100
Mapping
whiteblackgray-950†black†
50950900black
100900800950
200800700900
300700600800
400600500700
500500400600
600400300500
700300200400
800200100300
90010050200
9505050100
blackwhitegray-50†gray-100†
  • † edgeFamily-applied value.

Options

offset (Number)
  • Default: 0
  • Applied after symmetric inversion.
  • Calculated in shade steps:
    • 1: shift one step toward lighter shades (modern)
    • 0: perfectly symmetric inversion
    • -1: shift one step toward darker shades
  • Note: Although Tailwind shade numbers increase toward darkness, offset follows lightness semantics: + means lighter, - means darker.
minShade (Number)
  • Default: 0
  • Lower clamp for the result shade. The computed shade will not go below this value.
maxShade (Number)
  • Default: 1000
  • Upper clamp for the result shade. The computed shade will not go above this value.
edgeFamily (String)
  • Default: 'gray'
  • Used only when the input is white or black.
  • This only applies when white or black are mapped into the shade spectrum.
  • Since white/black have no shade, Darkwind computes a virtual shade. If the result falls within 50–950, it becomes {edgeFamily}-{shade}.
    • Example: white → gray-950
    • Example: black → gray-50
  • This option only applies to white and black in the default Tailwind palette.
prefix (String)
  • Default: 'x'
  • Changes the class name prefix (e.g., my-slate-100).
tailwindVersion (Number)
  • Default: 4
  • Set to 3 for Tailwind v3 projects so opacity modifiers like /50 are supported.
  • Note: v3 opacity uses color-mix(), so make sure your target browsers support it.
Defaults

Darkwind defaults to a symmetric, mathematically neutral inversion:

  • offset: 0
  • maxShade: 1000
  • minShade: 0
🔧 Configuration Example (symmetric default)
// tailwind.config.js
module.exports = {
  // ...
  darkMode: 'class', // Required for the plugin to work
  plugins: [
    require('darkwind')(),
  ],
}

For modern UI contrast, we recommend:

🔧 Configuration Example (modern)
// tailwind.config.js
module.exports = {
  // ...
  darkMode: 'class', // Required for the plugin to work
  plugins: [
    require('darkwind')({
      offset: 1, // Modern inversion (default: 0)
      maxShade: 950, // default: 1000
      minShade: 50, // default: 0
    }),
  ],
}

Description from the npm listing.

  • tailwindcss
  • tailwindcss-plugin
  • darkmode
  • dark-mode
  • theme
  • darkwind
  • color-inversion

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

darkwind weekly downloads on npm, last 90 days: 16 weekly downloads as of Dec 5, 2026, -23.8% over 90 days.darkwindWeekly downloads on npm · Last 90 days16downloads / week-23.8% over 90 days05101520253035Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
darkwind weekly downloads on npm, last 90 days: 16 weekly downloads as of Dec 5, 2026, -23.8% over 90 days.

7/30/90-day growth

darkwind weekly downloads growth on npm: -40.7% over 7 days, +77.8% over 30 days, -23.8% over 90 days.darkwindWeekly downloads growth on npm16downloads / week now7-day growth-11 weekly downloads-40.7%30-day growth+7 weekly downloads+77.8%90-day growth-5 weekly downloads-23.8%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
darkwind weekly downloads growth on npm: -40.7% over 7 days, +77.8% over 30 days, -23.8% over 90 days.

Ranking history

darkwind npm ranking history: currently #3042 (by weekly downloads).darkwindnpm ranking · by weekly downloads · Last 90 days#3042current rank#2000#2200#2400#2600#2800#3000#3200Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 41 observations · Updated Dec 5, 2026pluginstats.com
darkwind npm ranking history: currently #3042 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 153, #4 (overall #3,044)
All npm: every listing in weekly downloads order

Listing placement

Tailwind plugins292 listings · 15 pages · page 11, #8 (overall #208)
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 (170)
Recent weekly downloads observations for darkwind
Date (UTC)Weekly downloadsChange vs. previous
16-3
19-8
27+4
23-1
24+3
21-1
22-5
27+7
20+8
12+4
8+1
70
7+1
6—

Similar npm Tailwind plugins plugins

All 20 darkwind 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/darkwind. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.