Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/domeccleston/next-tailwind-upgrade
https://github.com/domeccleston/next-tailwind-upgrade
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/domeccleston/next-tailwind-upgrade
- Owner: domeccleston
- Created: 2022-11-19T18:20:53.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-13T15:18:26.000Z (almost 2 years ago)
- Last Synced: 2024-11-25T15:26:00.132Z (2 months ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Add Tailwind to a Next.js project
If you use Tailwind with Next.js, you're probably used to following
the steps in [this guide](https://tailwindcss.com/docs/guides/nextjs#app-directory) to install the required dependencies, add a tailwind.config.js with the right files to purge, initialize Tailwind, and add the required @tailwind directives to your globals.css file.This automates that process for you.
Compatible with Next.js 12 and 13. Supports NPM, Yarn, and PNPM.
## Usage
`npm install next-tailwind-upgrade`
`node ./node_modules/next-tailwind-upgrade/index.js`This doesn't work with `npx` currently. I don't know why