Unverified Commit c658fd32 authored by Thomas Knickman's avatar Thomas Knickman Committed by GitHub

chore(blog-starter): update tailwindcss to v3 (#32398)

Updates the [blog-starter](https://github.com/vercel/next.js/tree/canary/examples/blog-starter) example to use the new [tailwindcss v3](https://tailwindcss.com/blog/tailwindcss-v3) by following the [upgrade guide](https://tailwindcss.com/docs/upgrade-guide).

Thanks!

## Documentation / Examples

- [x] Make sure the linting passes by running `yarn lint`
parent d6657940
...@@ -61,4 +61,4 @@ Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&ut ...@@ -61,4 +61,4 @@ Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&ut
# Notes # Notes
This blog-starter uses [Tailwind CSS](https://tailwindcss.com). To control the generated stylesheet's filesize, this example uses Tailwind CSS' v2.0 [`purge` option](https://tailwindcss.com/docs/controlling-file-size/#removing-unused-css) to remove unused CSS. This blog-starter uses [Tailwind CSS](https://tailwindcss.com) [(v3.0)](https://tailwindcss.com/blog/tailwindcss-v3).
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
"remark-html": "13.0.1" "remark-html": "13.0.1"
}, },
"devDependencies": { "devDependencies": {
"autoprefixer": "^10.2.1", "autoprefixer": "^10.4.0",
"postcss": "^8.2.4", "postcss": "^8.4.4",
"tailwindcss": "^2.0.2" "tailwindcss": "^3.0.1"
} }
} }
@tailwind base; @tailwind base;
/* Write your own custom base styles here */
/* Start purging... */
@tailwind components; @tailwind components;
/* Stop purging. */
/* Write you own custom component styles here */
/* Start purging... */
@tailwind utilities; @tailwind utilities;
/* Stop purging. */
/* Your own custom utilities */
module.exports = { module.exports = {
purge: ['./components/**/*.js', './pages/**/*.js'], content: ['./components/**/*.js', './pages/**/*.js'],
theme: { theme: {
extend: { extend: {
colors: { colors: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment