This project is a responsive clone of the Twitter user interface, created using Tailwind CSS. It demonstrates the use of Tailwind for rapid UI development, focusing on clean, maintainable, and customizable design.
Ensure you have the following installed before setting up the project:
Follow these steps to set up the project locally:
Clone the repository:
git clone <repository-url>
cd twitter-ui-clone
Initialize the project:
npm init -y
Install Tailwind CSS as a development dependency:
npm install -D tailwindcss
Initialize the Tailwind CSS configuration:
npx tailwindcss init
Open the file and specify the paths to your HTML files:
module.exports = {
content: ["./*.html"],
theme: {
extend: {},
},
plugins: [],
};
Create a CSS file (css/input.css
) and include Tailwind directives:
@tailwind base;
@tailwind components;
@tailwind utilities;
Add a build command in under scripts:
"scripts": {
"build": "npx tailwindcss -i ./css/input.css -o ./css/output.css --watch"
}
Run the Tailwind build process:
npm run build
Include the generated file in your :
<link href="css/output.css" rel="stylesheet">
Open in your browser to view the Twitter UI clone.
https://mytwitterclone.freewebhostmost.com/
twitter-ui-clone/
│
├── css/
│ ├── input.css
│ ├── output.css
│
├── index.html
│
├── package.json
│
├── tailwind.config.js
│
<<<<<<< HEAD
└── node_modules/
=======
└── node_modules/
>>>>>>> 3936a5285fd0d0b9c066b47e53bfdf703f81691c