├── src ├── App.css ├── index.css ├── index.js └── App.jsx ├── public ├── robots.txt └── index.html ├── tailwind.config.js ├── .gitignore ├── package.json └── README.md /src/App.css: -------------------------------------------------------------------------------- 1 | /* write your css here */ 2 | -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; 4 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- 1 | /** @type {import('tailwindcss').Config} */ 2 | module.exports = { 3 | content: ["./src/**/*.{js,jsx,ts,tsx}"], 4 | theme: { 5 | extend: {}, 6 | }, 7 | plugins: [], 8 | }; 9 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import ReactDOM from "react-dom/client"; 3 | import App from "./App"; 4 | import "./index.css"; 5 | 6 | const root = ReactDOM.createRoot(document.getElementById("root")); 7 | root.render( 8 | 9 | 10 | 11 | ); 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /src/App.jsx: -------------------------------------------------------------------------------- 1 | import "./App.css"; 2 | 3 | function App() { 4 | return ( 5 |
6 |

React & Tailwind CSS Starter Pack

7 |

This is a starter pack for React & Tailwind CSS projects.

8 | meme 9 |
10 | ); 11 | } 12 | 13 | export default App; 14 | -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | React & Tailwind CSS Starter Pack 8 | 9 | 10 | 11 | 12 |
13 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-tailwind-css-starter-pack", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "react": "^18.2.0", 7 | "react-dom": "^18.2.0", 8 | "react-scripts": "5.0.1", 9 | "web-vitals": "^2.1.4" 10 | }, 11 | "repository": { 12 | "type": "git", 13 | "url": "git+https://github.com/thepranaygupta/react-tailwind-css-starter-pack.git" 14 | }, 15 | "author": "Pranay Gupta", 16 | "bugs": { 17 | "url": "https://github.com/thepranaygupta/react-tailwind-css-starter-pack/issues" 18 | }, 19 | "scripts": { 20 | "start": "react-scripts start", 21 | "build": "react-scripts build", 22 | "eject": "react-scripts eject" 23 | }, 24 | "eslintConfig": { 25 | "extends": [ 26 | "react-app", 27 | "react-app/jest" 28 | ] 29 | }, 30 | "browserslist": { 31 | "production": [ 32 | ">0.2%", 33 | "not dead", 34 | "not op_mini all" 35 | ], 36 | "development": [ 37 | "last 1 chrome version", 38 | "last 1 firefox version", 39 | "last 1 safari version" 40 | ] 41 | }, 42 | "devDependencies": { 43 | "tailwindcss": "^3.2.7" 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # React & Tailwind CSS Starter Pack 2 | 3 | This is a starter pack for creating React projects with Tailwind CSS configured. It uses React version **18.2** and Tailwind CSS version **3.2**. 4 | 5 | ## Usage 6 | 7 | This starter pack includes a basic setup for using **Tailwind CSS with React**. To start building your own components and styles, follow these steps: 8 | 9 | 1. Clone the repository to your local machine. 10 | ```sh 11 | git clone https://github.com/thepranaygupta/react-tailwind-css-starter-pack.git 12 | ``` 13 | 14 | 1. Install the required packages. 15 | ```sh 16 | cd react-tailwind-css-starter-pack 17 | npm install 18 | ``` 19 | 20 | 1. Start the development server. 21 | ```sh 22 | npm start 23 | ``` 24 | 1. Open the project in your browser at [`http://localhost:3000`](http://localhost:3000) to view your project. 25 | 1. Create your React components and add your styles using Tailwind classes. You can also create new CSS files and import them into your components. 26 | 27 | The project is set up to use `postcss-cli` to process your CSS files. You can add your own `tailwind.config.js` file to customize your Tailwind setup. 28 | 29 | ## Contributing 30 | 31 | Contributions are welcome! If you have any suggestions or find any issues, please feel free to open an issue or a pull request. --------------------------------------------------------------------------------