# elysia-tailwind

> Elysia Tailwind Plugin

Latest version **2.0.0** (published 2024-02-08) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install elysia-tailwind
pnpm add elysia-tailwind
yarn add elysia-tailwind
bun add elysia-tailwind
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2024-02-08 |
| First published | 2023-09-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 0 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | gtramontina |

## Links

- npm: https://www.npmjs.com/package/elysia-tailwind
- Homepage: https://github.com/gtramontina/elysia-tailwind.git
- npm.io page: https://npm.io/package/elysia-tailwind

## Recent versions

- 2.0.0 (latest) — 2024-02-08
- 1.0.9 — 2023-12-06
- 1.0.8 — 2023-12-06
- 1.0.7 — 2023-11-19
- 1.0.6 — 2023-11-18
- 1.0.5 — 2023-11-07
- 1.0.4 — 2023-10-28
- 1.0.3 — 2023-10-24
- 1.0.2 — 2023-10-11
- 1.0.1 — 2023-10-01
- 1.0.0 — 2023-09-30

## README

# Elysia Tailwind

Elysia plugin to compile and serve Tailwind-generated stylesheets.

## Installation

```bash
bun add --exact elysia-tailwind
```

## Usage

```ts
import { tailwind } from "elysia-tailwind"; // 1. Import
import Elysia from "elysia";

new Elysia()
  .use(tailwind({                           // 2. Use
      path: "/public/stylesheet.css",       // 2.1 Where to serve the compiled stylesheet;
      source: "./source/styles.css",        // 2.2 Specify source file path (where your @tailwind directives are);
      config: "./tailwind.config.js",       // 2.3 Specify config file path or Config object;
      options: {                            // 2.4 Optionally Specify options:
          minify: true,                     // 2.4.1 Minify the output stylesheet (default: NODE_ENV === "production");
          map: true,                        // 2.4.2 Generate source map (default: NODE_ENV !== "production");
          autoprefixer: false               // 2.4.3 Whether to use autoprefixer;
      },
  }))
  .listen(3000);
```

---
_Source: https://npm.io/package/elysia-tailwind · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
