Skip to content

Commit b66fd32

Browse files
feat: tailwindcss
1 parent 690994f commit b66fd32

File tree

5 files changed

+29
-26
lines changed

5 files changed

+29
-26
lines changed

package-lock.json

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

package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"@types/node": "16.11.25",
1111
"@types/react": "17.0.39",
1212
"@types/react-dom": "17.0.11",
13-
"axios": "^0.26.0",
13+
"axios": "0.26.0",
1414
"react": "17.0.2",
1515
"react-dom": "17.0.2",
1616
"react-router-dom": "6.2.1",
@@ -48,10 +48,13 @@
4848
"devDependencies": {
4949
"@typescript-eslint/eslint-plugin": "5.12.1",
5050
"@typescript-eslint/parser": "5.12.1",
51+
"autoprefixer": "10.4.2",
5152
"eslint": "8.9.0",
5253
"eslint-config-prettier": "8.4.0",
5354
"eslint-plugin-prettier": "4.0.0",
5455
"eslint-plugin-react": "7.28.0",
55-
"prettier": "2.5.1"
56+
"postcss": "8.4.7",
57+
"prettier": "2.5.1",
58+
"tailwindcss": "3.0.23"
5659
}
5760
}

src/index.css

+3-13
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
body {
2-
margin: 0;
3-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4-
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5-
sans-serif;
6-
-webkit-font-smoothing: antialiased;
7-
-moz-osx-font-smoothing: grayscale;
8-
}
9-
10-
code {
11-
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12-
monospace;
13-
}
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;

src/pages/Wall.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Context } from '../context/Context';
44
const Wall: FC = () => {
55
const { posts } = useContext(Context);
66

7-
return <div>Wall</div>;
7+
return <div className="text-blue-500">wall</div>;
88
};
99

1010
export default Wall;

tailwind.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
content: ['./src/**/*.{ts,tsx}'],
3+
theme: {
4+
extend: {}
5+
},
6+
plugins: []
7+
};

0 commit comments

Comments
 (0)