Update Tailwind PostCSS config sample (#1980)

This commit is contained in:
Matt Rossman 2021-11-22 17:26:30 -05:00 committed by GitHub
parent fff00e45f0
commit 1267056181
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -224,8 +224,10 @@ module.exports = {
```js
// postcss.config.cjs
module.exports = {
tailwind: {},
};
plugins: {
tailwindcss: {},
},
}
```
Now you're ready to write Tailwind! Our recommended approach is to create a `src/styles/global.css` file (or whatever youd like to name your global stylesheet) with [Tailwind utilities][tailwind-utilities] like so: