Skip to content

Commit 06b6a44

Browse files
committed
chore: install tailwindcss
1 parent 3507dcc commit 06b6a44

6 files changed

Lines changed: 200 additions & 25 deletions

File tree

dev/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function App() {
77
const [key, setKey] = useState(1);
88

99
return (
10-
<div className="App">
10+
<div className="App text-blue-400">
1111
<button onClick={() => setKey(key + 1)}>key</button>
1212
<button onClick={() => setCount(count + 1)}>{count}</button>
1313
<br />

dev/index.css

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
body {
2-
margin: 0;
3-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',
4-
'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
5-
-webkit-font-smoothing: antialiased;
6-
-moz-osx-font-smoothing: grayscale;
7-
}
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
84

9-
code {
10-
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
11-
}

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"@typescript-eslint/eslint-plugin": "^5.25.0",
6060
"@typescript-eslint/parser": "^5.25.0",
6161
"@vitejs/plugin-react": "^2.0.0",
62+
"autoprefixer": "^10.4.8",
6263
"babel-loader": "^8.2.5",
6364
"commitizen": "^4.2.4",
6465
"cz-conventional-changelog": "3.3.0",
@@ -69,9 +70,11 @@
6970
"grapheme-splitter": "^1.0.4",
7071
"jest": "^28.1.3",
7172
"jest-environment-jsdom": "^28.1.3",
73+
"postcss": "^8.4.16",
7274
"react": "^18.2.0",
7375
"react-dom": "^18.2.0",
7476
"rimraf": "^3.0.2",
77+
"tailwindcss": "^3.1.8",
7578
"ts-jest": "^28.0.7",
7679
"typescript": "^4.7.4",
7780
"vite": "^3.0.2"

postcss.config.js

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

tailwind.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/** @type {import('tailwindcss').Config} */
2+
module.exports = {
3+
content: ['./dev/**/*.{js,ts,jsx,tsx}'],
4+
theme: {
5+
extend: {},
6+
},
7+
plugins: [],
8+
};

0 commit comments

Comments
 (0)