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

https://github.com/sakanjo/tailwindcss-wh

A Tailwind CSS plugin that provides a shorthand for 'w-x h-x' as 'wh-x'.
https://github.com/sakanjo/tailwindcss-wh

tailwindcss tailwindcss-plugin tailwindcss-v3 width-height

Last synced: 9 months ago
JSON representation

A Tailwind CSS plugin that provides a shorthand for 'w-x h-x' as 'wh-x'.

Awesome Lists containing this project

README

          

![Tailwindcss wh](./img/banner.png)


npm bundle size
npm
license

Tailwindcss wh

Don't write the same number twice.

> ✨ Help support the maintenance of this package by [sponsoring me](https://github.com/sponsors/sakanjo).

## ❔ Why

```html


```

## đŸ“Ļ Installation

```
npm i -D tailwindcss-wh
```

## đŸĻ„ Usage

Add the plugin to your `tailwind.config.js` file:

```js
// tailwind.config.js
import wh from 'tailwindcss-wh'

export default {
// ...

plugins: [
wh(),
]
}
```

### Specifying selector name

```js
wh({ selector: 'square' }) // square-[15rem]
wh({ selector: 's' }) // s-4
```

## 💖 Support the development

**Do you like this project? Support it by donating**

Click the ["💖 Sponsor"](https://github.com/sponsors/sakanjo) at the top of this repo.

## ÂŠī¸ Credits

- [Salah Kanjo](https://github.com/sakanjo)
- [All Contributors](../../contributors)

## 📄 License

[MIT License](https://github.com/sakanjo/tailwindcss-wh/blob/master/LICENSE) Š 2023-PRESENT [Salah Kanjo](https://github.com/sakanjo)