Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/akarachen/tailwind-standalone
- Owner: AkaraChen
- Created: 2024-08-09T08:20:19.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-09T08:29:25.000Z (3 months ago)
- Last Synced: 2024-10-05T11:32:23.387Z (about 1 month ago)
- Language: TypeScript
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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'))
```