
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
tailwindcss-labeled-groups
Advanced tools
A Tailwind plugin that allows you to create multiple groups allowing you to nest them
A plugin that allows to create multiple group
s utilities such as group-card
or group-1
and works with Tailwind 3 features and all variations.
Install the plugin:
# npm
npm install -D tailwindcss-labeled-groups
# yarn
yarn add -D tailwindcss-labeled-groups
Then add the plugin to your tailwind.config.js
file:
module.exports = {
theme: {
// ...
},
plugins: [
// This plugin allows you to create custom Tailwind groups.
// e.g. if you use ['custom'], you could use it as follows:
// In the parent: group-custom
// In the child: group-custom-hover:
require('tailwindcss-labeled-groups')(['custom', '1', /* RENAME ME! */ ])
// ...
],
}
Remember to rename your custom groups!
You are ready to use it
Assuming we have registered the plugin as follows
require('tailwindcss-labeled-groups')(['custom', '1'])
We now can use:
group
(default Tailwind value)group-custom
and group-1
(registered in the plugin) with every possible combination of variation<div class="group-custom">
<div class="group-1">
<div class="group-1-active:text-slate-500"></div>
</div>
<div class="group-custom-focus:bg-pink-200"></div>
</div>
You can see how it works here: https://play.tailwindcss.com/SMCKXsGYsg
Inspired by: tailwindcss-named-groups
FAQs
A Tailwind plugin that allows you to create multiple groups allowing you to nest them
We found that tailwindcss-labeled-groups demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.