tailwindcss-hyphens
A plugin for Tailwind CSS to create
utility classes for hyphens
.
Requirements
This plugin requires Tailwind CSS v1.x.
Installation
npm install --save-dev tailwindcss-hyphens
or
yarn add --dev tailwindcss-hyphens
Usage
In your tailwind.config.js:
moduleexports = // … plugins: // … // … // …;
Utilities
By default, this plugin generates the following utilities:
Customization
If you need a utility class for a non-standard value, you can customize this in tailwind.config.js:
moduleexports = theme: // … hyphens: "foo-bar": "foo-bar" // … // …;
This would generate the following utility class: