New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-tailwind-grouping

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-tailwind-grouping

Babel plugin to expand grouped Tailwind utility classes

  • 0.1.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
increased by225%
Maintainers
1
Weekly downloads
 
Created
Source

babel-plugin-tailwind-grouping

A Babel plugin that expands grouped Tailwind-like utility classes.

Usage

In your babel configuration (.babelrc, babel.config.json, etc.) add the plugin:

{
    "plugins": [
        "babel-plugin-tailwind-grouping"
    ]
}
// input:
<div class="text(blue-500 2xl) hover:(text(red-500 3xl))" />

// output:
<div class="text-blue-500 text-2xl hover:text-red-500 hover:text-3xl" />

For more information on how to build grouped classes, see Twind's docs on the subject.

License

MIT

Acknowledgments

Parser and class name builder modified from twind

Keywords

FAQs

Package last updated on 13 Nov 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc