Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vivgui/tailwindcss-hyphens

A Tailwind CSS plugin that helps you create utility classes for using the hyphens CSS property.
https://github.com/vivgui/tailwindcss-hyphens

tailwindcss

Last synced: 15 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# I'm archiving this repository because Tailwind CSS has added support for the [`hyphens` property](https://tailwindcss.com/docs/hyphens).

# 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

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

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

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

## Basic usage

The plugin generates these utility classes:

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

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

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

You can use it in your markup like this:

```html

Hello world


```