Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/aniftyco/tailwind-htmx

Variants for styling htmx classes with Tailwind CSS
https://github.com/aniftyco/tailwind-htmx

Last synced: about 1 month ago
JSON representation

Variants for styling htmx classes with Tailwind CSS

Awesome Lists containing this project

README

        

# tailwind-htmx

> Variants for styling htmx classes with Tailwind CSS

## Getting Started

### Installation

Install the plugin from npm:

```sh
npm install -D tailwind-htmx
```

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

```js
/** @type {import('tailwindcss').Config} */
module.exports = {
theme: {
// ...
},
plugins: [
require('tailwind-htmx'),
// ...
],
};
```

### Configuration

You can change the default class names to generate with the following options:

```js
// tailwind.config.js

module.exports = {
...,
plugins: [
require('tailwind-htmx')({
classNames: {
settling: 'htmx-settling';
request: 'htmx-request';
swapping: 'htmx-swapping';
added: 'htmx-added';
};
}),
],
};
```

### Usage

```html


Post It!


```