From d5deb62cd7eba00ef874f649f8554f9d9082c1df Mon Sep 17 00:00:00 2001 From: AncientMeme Date: Wed, 15 May 2024 10:39:42 +0800 Subject: [PATCH] Setup react project --- package-lock.json | 3 +++ package.json | 3 +++ src/index.css | 4 ++++ tailwind.config.js | 11 +++++++++++ 4 files changed, 21 insertions(+) create mode 100644 tailwind.config.js diff --git a/package-lock.json b/package-lock.json index d5e3684..18ccdfc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,6 +15,9 @@ "react-dom": "^18.3.1", "react-scripts": "5.0.1", "web-vitals": "^2.1.4" + }, + "devDependencies": { + "tailwindcss": "^3.4.3" } }, "node_modules/@adobe/css-tools": { diff --git a/package.json b/package.json index 4c74622..fcb893f 100644 --- a/package.json +++ b/package.json @@ -34,5 +34,8 @@ "last 1 firefox version", "last 1 safari version" ] + }, + "devDependencies": { + "tailwindcss": "^3.4.3" } } diff --git a/src/index.css b/src/index.css index ec2585e..17df0e7 100644 --- a/src/index.css +++ b/src/index.css @@ -1,3 +1,7 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; + body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', diff --git a/tailwind.config.js b/tailwind.config.js new file mode 100644 index 0000000..572df94 --- /dev/null +++ b/tailwind.config.js @@ -0,0 +1,11 @@ +/** @type {import('tailwindcss').Config} */ +module.exports = { + content: [ + "./src/**/*.{js,jsx,tx,txs}" + ], + theme: { + extend: {}, + }, + plugins: [], +} +