This project is a static website built using HTML and CSS, with Tailwind CSS used for styling. Tailwind CSS is a utility-first CSS framework that makes it easy to build custom designs without having to leave your HTML.
To get started with this project, follow these steps:
Clone the repository:
[git clone https://github.com/Midhun-live/Tailwind.git
Navigate to the project directory:
cd tailwind
Install Tailwind CSS as a development dependency:
npm install -D tailwindcss
Initialize Tailwind CSS:
```bash npx tailwindcss init --full
This will create a tailwind.config.js file with default configurations.
Set Up Your CSS File: Create a src/styles.css file and add the following content to import Tailwind’s base, components, and utilities:
@tailwind base;
@tailwind components;
@tailwind utilities;
Build your CSS: Build the Tailwind CSS file and output it to public/styles.css:
```bash npx tailwindcss build src/styles.css -o public/styles.css
Development: Use the commands above to build your Tailwind CSS file. Include the output CSS file (public/styles.css) in your HTML file(s).
HTML: Reference the built CSS file in your HTML:
<link href="public/styles.css" rel="stylesheet">
Adding Tailwind Classes: Utilize Tailwind CSS utility classes directly in your HTML to style your elements.
To rebuild your CSS whenever changes are made, you can run the Tailwind CSS build command:
```bash npx tailwindcss build src/styles.css -o public/styles.css
For a more streamlined development process, you might consider using a build tool like PostCSS to automatically process Tailwind CSS.
Deploy to Vercel:
Push Your Code to GitHub:
Ensure your code is pushed to a GitHub repository.
```bash git add . git commit -m "Prepare project for deployment" git push origin main
Deploy to Vercel:
View Your Live Site: