commit 04ac2eeb0da8e39fd3e746db60119cdaa40738ab Author: Hadeed Ahmad Date: Wed May 1 11:08:21 2024 +0500 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b947077 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules/ +dist/ diff --git a/index.html b/index.html new file mode 100644 index 0000000..4e4db53 --- /dev/null +++ b/index.html @@ -0,0 +1,26 @@ + + + + + + Document + + + +
+ + + diff --git a/package.json b/package.json new file mode 100644 index 0000000..04b54de --- /dev/null +++ b/package.json @@ -0,0 +1,28 @@ +{ + "type": "module", + "dependencies": { + "react": "^18.3.1", + "react-dom": "^18.3.1" + }, + "devDependencies": { + "autoprefixer": "^10.4.19", + "postcss": "^8.4.38", + "prettier": "^3.3.2", + "prettier-plugin-css-order": "^2.1.2", + "prettier-plugin-tailwindcss": "^0.6.5", + "tailwindcss": "^3.4.4", + "vite": "^5.3.1" + }, + "prettier": { + "plugins": [ + "prettier-plugin-css-order", + "prettier-plugin-tailwindcss" + ] + }, + "postcss": { + "plugins": { + "tailwindcss": {}, + "autoprefixer": {} + } + } +} diff --git a/src/app.jsx b/src/app.jsx new file mode 100644 index 0000000..040a07e --- /dev/null +++ b/src/app.jsx @@ -0,0 +1,3 @@ +export default () => ( +

Using React and Tailwind

+); diff --git a/styles.css b/styles.css new file mode 100644 index 0000000..b5c61c9 --- /dev/null +++ b/styles.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/tailwind.config.js b/tailwind.config.js new file mode 100644 index 0000000..5908589 --- /dev/null +++ b/tailwind.config.js @@ -0,0 +1,8 @@ +/** @type {import('tailwindcss').Config} */ +export default { + content: ["./index.html", "./src/**/*.jsx"], + theme: { + extend: {}, + }, + plugins: [], +}; diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..4cece00 --- /dev/null +++ b/vite.config.js @@ -0,0 +1,7 @@ +import { defineConfig } from "vite"; + +export default defineConfig({ + esbuild: { + jsxInject: `import React from 'react'`, + }, +});