Skip to content

Commit 299b953

Browse files
feat: add custom variables in tailwind config
1 parent 1c0dde3 commit 299b953

File tree

4 files changed

+20
-5
lines changed

4 files changed

+20
-5
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
"prepare": "husky install"
1414
},
1515
"dependencies": {
16+
"@fontsource/poppins": "^5.0.8",
17+
"@vitejs/plugin-react": "^4.2.1",
1618
"react": "^18.2.0",
1719
"react-dom": "^18.2.0",
1820
"react-router-dom": "^6.22.1",
1921
"react-toastify": "^10.0.4",
20-
"@vitejs/plugin-react": "^4.2.1",
2122
"vite": "^5.1.0"
2223
},
2324
"devDependencies": {

src/Teams/Teams.jsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
function Teams() {
2+
return <div>Teams</div>;
3+
}
4+
5+
export default Teams;
6+

src/assets/styles/index.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@import "tailwindcss/base";
22
@import "tailwindcss/components";
33
@import "tailwindcss/utilities";
4+
@import '@fontsource/poppins';
45

56
/* Reset default browser styles */
67
html,

tailwind.config.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,19 @@ export default {
44
theme: {
55
extend: {
66
colors: {
7-
background: '#232323',
8-
primary: '#F24E3F',
9-
text: '#F7F7F7',
7+
background: "#232323",
8+
primary: "#E76941",
9+
text: "#F7F7F7",
10+
},
11+
screens: {
12+
xs: "0px",
13+
sm: "600px",
14+
md: "900px",
15+
lg: "1200",
16+
xl: "1536px",
1017
},
1118
fontFamily: {
12-
sans: ['Roboto', 'sans-serif'],
19+
poppins: ['Poppins', 'sans-serif'],
1320
},
1421
},
1522
},

0 commit comments

Comments
 (0)