Skip to content

Commit d964af2

Browse files
committed
Configure tailwindcss
1 parent 70e4410 commit d964af2

6 files changed

+26
-3
lines changed

package-lock.json

+4-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,18 @@
4343
"@babel/eslint-parser": "^7.21.3",
4444
"@babel/plugin-syntax-jsx": "^7.18.6",
4545
"@babel/preset-react": "^7.18.6",
46+
"autoprefixer": "^10.4.14",
4647
"eslint": "^7.32.0",
4748
"eslint-config-airbnb": "^18.2.1",
4849
"eslint-plugin-import": "^2.27.5",
4950
"eslint-plugin-jsx-a11y": "^6.7.1",
5051
"eslint-plugin-react": "^7.32.2",
5152
"eslint-plugin-react-hooks": "^4.6.0",
53+
"postcss": "^8.4.21",
5254
"stylelint": "^13.13.1",
5355
"stylelint-config-standard": "^21.0.0",
5456
"stylelint-csstree-validator": "^1.9.0",
55-
"stylelint-scss": "^3.21.0"
57+
"stylelint-scss": "^3.21.0",
58+
"tailwindcss": "^3.3.0"
5659
}
5760
}

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/App.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function App() {
55
return (
66
<div className="App">
77
<Routes>
8-
<Route path="/" element={<h1>Gvash planes</h1>} />
8+
<Route path="/" element={<h1 className="text-3xl text-red-500 font-bold underline">Gvash planes</h1>} />
99
</Routes>
1010
</div>
1111
);

src/index.css

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
14
body {
25
margin: 0;
36
font-family:

tailwind.config.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/** @type {import('tailwindcss').Config} */
2+
module.exports = {
3+
content: ['./src/**/*.{html,js}'],
4+
theme: {
5+
extend: {},
6+
},
7+
plugins: [],
8+
};

0 commit comments

Comments
 (0)