Skip to content

Commit 72ddb2f

Browse files
committed
chore: add tailwindcss
1 parent 10c12dd commit 72ddb2f

File tree

5 files changed

+577
-23
lines changed

5 files changed

+577
-23
lines changed

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
},
1616
"devDependencies": {
1717
"@types/react": "17.0.3",
18+
"autoprefixer": "10.2.5",
19+
"postcss": "8.2.10",
20+
"tailwindcss": "2.1.1",
1821
"typescript": "4.2.4"
1922
}
2023
}

postcss.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
}

src/pages/_app.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { AppProps } from 'next/app'
2+
import 'tailwindcss/tailwind.css'
23
import '../styles/globals.css'
34

45
function MyApp({ Component, pageProps }: AppProps) {

tailwind.config.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
purge: ['./src/**/*.{js,ts,jsx,tsx}'],
3+
darkMode: false, // or 'media' or 'class'
4+
theme: {
5+
extend: {},
6+
},
7+
variants: {
8+
extend: {},
9+
},
10+
plugins: [],
11+
}

0 commit comments

Comments
 (0)