From 4e17da223dab49cfaa0ce05d05da08f29f0caddb Mon Sep 17 00:00:00 2001 From: nirban256 Date: Mon, 16 May 2022 13:30:42 +0530 Subject: [PATCH] added tailwindcss in the project --- package.json | 7 +++++-- postcss.config.js | 6 ++++++ src/index.css | 3 +++ tailwind.config.js | 9 +++++++++ 4 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 postcss.config.js create mode 100644 tailwind.config.js diff --git a/package.json b/package.json index 9d0d6d3ce2..e3cf5c8e28 100644 --- a/package.json +++ b/package.json @@ -51,8 +51,11 @@ ] }, "devDependencies": { - "typescript": "^4.6.4", + "autoprefixer": "^10.4.7", + "postcss": "^8.4.13", + "puppeteer": "^13.7.0", "react-snap": "^1.23.0", - "puppeteer": "^13.7.0" + "tailwindcss": "^3.0.24", + "typescript": "^4.6.4" } } diff --git a/postcss.config.js b/postcss.config.js new file mode 100644 index 0000000000..33ad091d26 --- /dev/null +++ b/postcss.config.js @@ -0,0 +1,6 @@ +module.exports = { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +} diff --git a/src/index.css b/src/index.css index e69de29bb2..bd6213e1df 100644 --- a/src/index.css +++ b/src/index.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; \ No newline at end of file diff --git a/tailwind.config.js b/tailwind.config.js new file mode 100644 index 0000000000..115da8ea9a --- /dev/null +++ b/tailwind.config.js @@ -0,0 +1,9 @@ +module.exports = { + content: [ + "./src/**/*.{js,jsx,ts,tsx}", + ], + theme: { + extend: {}, + }, + plugins: [], +}