tailwind-named-group-modifiers weekly downloads statistics
By johnnyicarus · npm · Tailwind plugins
Tailwind CSS 3 plugin for using multiple instances of the same group (a/k/a parent) modifiers on the same page. Themable via the config file.
tailwind-named-group-modifiers has 42 recorded weekly downloads on npm, an increase of 35.5% over the past 30 days, ranking #2812 of 3,247 tracked listings.
About tailwind-named-group-modifiers
Named Group Modifiers for Tailwind CSS
A Tailwind CSS (>= 3.0.0) plugin for using multiple themable group modifiers.
Use as many group interlocking group modifiers as you wish by configuring them in your tailwind.config.js like so:
module.exports = {
...
theme: {
groups: {
hover: ['card', 'section'],
focusWithin: ['form'],
},
}
}
Requirements
Tailwind CSS >= v3.0.0
Installation
Install via NPM:
$ npm i tailwind-named-group-modifiers
Install via Yarn:
$ yarn add tailwind-named-group-modifiers
Why this Plugin?
Tailwind 3 offers group-* variants that allow styling an element based on a parent's state (read from pseudo-classes), so applying group on a parent and group-hover:opacity-100 on a child would result in CSS like this, making the child opaque when the parent is hovered over:
.group:hover .group-hover:opacity-100 {
opacity: 1
}
This is great for simpler views, but it runs into problems when we need more than one group modifers downstream from each other in a branch of the DOM. Every element we apply group to will trigger all the group-* children further down the DOM, causing unexpected behaviour. We can only use group once on a given branch of the DOM.
This plugin conveniently handles these use cases by giving you the option of adding named groups to your tailwind.config.js.
You can also just use the plugin if you want to have a better overview of your group modifier usage.
Features
-
As of Tailwind 3, the
group-*pattern can be applied to all 25(!) pseudo-class modifiers shipped with the new JIT compiler, this plugin includes all of them. -
Using the config keeps you organized and maximally flexible with regards to other Tailwind features.
-
Follows Tailwind naming conventions whereever possible.
About the Configuration
Modifier names are the same as with the built-in group features, so group-focus e.g. becomes group-card-focus. Note that Tailwind e.g. shortens the :last-child pseudo-class to last:. We follow core as much as possible here.
The plugin is configured under the groups key in tailwind.config.js. In keeping with a Tailwind convention to have the config keys point to the actually used CSS more than the class naming, subkeys for the different pseudo-classes in the Tailwind config are usually the actual pseudo-class rendered in camelCase (e.g. last: must be configured under lastChild).
The exception to this are odd: and even:, which can be configured under oddChild and evenChild, respectively. Aside from the fact that nthChild(odd) (nthChild(Odd)?) seems kind of hard to remember, this also keeps greater consistency with first:, last: and only:.
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 (592)Similar npm Tailwind plugins plugins
All 20 tailwind-named-group-modifiers 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/tailwind-named-group-modifiers. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.