Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/akarachen/tailwind-standalone

Use tailwind directly in Node.js.
https://github.com/akarachen/tailwind-standalone

Last synced: 21 days ago
JSON representation

Use tailwind directly in Node.js.

Awesome Lists containing this project

README

        

# tailwind standalone

Use tailwindcss without any build tool, directly in you Node.js project.

## Usage

```bash
npm install @akrc/tailwind-standalone postcss tailwindcss
```

```javascript
// esm
import { createStandaloneTailwind } from '@akrc/tailwind-standalone'
// or commonjs
// const { createStandaloneTailwind } = require('@akrc/tailwind-standalone')

const tailwind = createStandaloneTailwind({
theme: {
extend: {
colors: {
primary: '#ff0000',
},
},
},
})

console.log(tailwind('text-primary'))
```