Skip to content
This repository was archived by the owner on May 8, 2021. It is now read-only.

Commit b5d0522

Browse files
authored
Update README.md
1 parent 19ab10e commit b5d0522

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Diff for: examples/nextjs/README.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
# Next.js
22

3-
To add Tailwind to a Next project, start by installing `@zeit/next-css`, `tailwindcss`, `postcss-import` and `autoprefixer`:
3+
To add Tailwind to a Next (^9.2.0) project, start by installing `tailwindcss`, `postcss-import` and `autoprefixer`:
44

55
```sh
6-
npm install @zeit/next-css tailwindcss postcss-import autoprefixer
6+
npm install tailwindcss postcss-import autoprefixer
77
```
88

99
Next, set up your PostCSS plugins by creating a `postcss.config.js` file and adding the following configuration:
1010

1111
```js
1212
module.exports = {
1313
plugins: [
14-
require('postcss-import'),
15-
require('tailwindcss'),
16-
require('autoprefixer'),
14+
"postcss-import",
15+
"tailwindcss",
16+
"autoprefixer"
1717
]
18-
}
18+
};
19+
1920
```
2021

2122
Next, create a CSS file for your Tailwind styles. We've used `css/tailwind.css` for this example:

0 commit comments

Comments
 (0)