1.0.1 • Published 2 years ago

@vivgui/tailwindcss-hyphens v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Tailwind CSS Hyphens

A Tailwind CSS plugin that helps you create utility classes for using the hyphens CSS property.

Installation

Install it in a new or existing Tailwind CSS project

npm install -D @vivgui/tailwindcss-hyphens
# or
yarn add -D @vivgui/tailwindcss-hyphens

Then add the plugin to your tailwind.config.js file:

module.exports = {
  theme: {
    // ...
  },
  plugins: [
    require('@vivgui/tailwindcss-hyphens'),
    // ...
  ],
}

Basic usage

The plugin generates these utility classes:

 .hyphens-auto: {
    hyphens: "auto";
}

.hyphens-manual: {
    hyphens: "manual";
}

.hyphens-none: {
    hyphens: "none";
}

You can use it in your markup like this:

<h1 class="hyphens-auto">Hello world</h1>
1.0.1

2 years ago

1.0.0

2 years ago