Skip to content

Commit 871c317

Browse files
Merge pull request #26 from rachitkrsingh/styleBaseConfig
Adding tailwind and related configs for styling
2 parents 9c95cd9 + 20533af commit 871c317

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,10 @@
4747
"last 1 firefox version",
4848
"last 1 safari version"
4949
]
50+
},
51+
"devDependencies": {
52+
"autoprefixer": "^10.4.17",
53+
"postcss": "^8.4.33",
54+
"tailwindcss": "^3.4.1"
5055
}
5156
}

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+
}

src/index.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
@import 'tailwindcss/base';
2+
@import 'tailwindcss/components';
3+
@import 'tailwindcss/utilities';
4+
15
body {
26
margin: 0;
37
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',

tailwind.config.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/** @type {import('tailwindcss').Config} */
2+
module.exports = {
3+
content: [
4+
'./public/index.html',
5+
'./src/**/*.{html,js}',
6+
],
7+
theme: {
8+
extend: {},
9+
},
10+
plugins: [],
11+
}
12+

0 commit comments

Comments
 (0)