Skip to content

Commit ce8a2e2

Browse files
committed
ADD: TailwindCSS;
Installing and configuring TailwindCSS and its dependencies
1 parent 29061dc commit ce8a2e2

File tree

5 files changed

+21
-1
lines changed

5 files changed

+21
-1
lines changed

.storybook/preview.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import 'tailwindcss/tailwind.css'
2+
13
export const parameters = {
24
actions: { argTypesRegex: '^on[A-Z].*' },
35
controls: {

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,15 @@
2828
"@types/react-dom": "^17.0.11",
2929
"@typescript-eslint/eslint-plugin": "^5.10.0",
3030
"@typescript-eslint/parser": "^5.10.0",
31+
"autoprefixer": "^10.4.2",
3132
"eslint": "^8.7.0",
3233
"eslint-config-prettier": "^8.3.0",
3334
"eslint-plugin-prettier": "^4.0.0",
3435
"eslint-plugin-react": "^7.28.0",
3536
"eslint-plugin-storybook": "^0.5.5",
37+
"postcss": "^8.4.5",
3638
"prettier": "2.5.1",
39+
"tailwindcss": "^3.0.15",
3740
"typescript": "^4.5.4",
3841
"webpack": "^5.66.0"
3942
},

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/styles/base/_base.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;

tailwind.config.js

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

0 commit comments

Comments
 (0)