This repository provides an easy-to-follow script to set up a basic TailwindCSS project. TailwindCSS is a utility-first CSS framework that allows you to build modern websites with ease.
Before running the script, ensure you have the following installed:
- Node.js
- npm
-
Clone the Repository:
git clone https://github.com/AlefAlfa/TailwindSetupAutomation.git
-
Run the Script: Execute the provided script (e.g.
setup.sh
). This will set up the necessary directories and files for a basic TailwindCSS project.
Here's a breakdown of the provided script:
- Install TailwindCSS: Adds TailwindCSS as a development dependency.
- Initialize Tailwind Config: Generates the
tailwind.config.js
file which contains configuration details. - Setup Directories: Creates the
dist
andsrc
directories. - CSS Files: Generates the
input.css
andoutput.css
files. Theinput.css
file imports Tailwind's base, components, and utilities. The generated styles will be placed inoutput.css
. - Watch for Changes: The script uses Tailwind's CLI to watch for changes in the
input.css
file and regenerates theoutput.css
accordingly.
After the setup:
- Open the
index.html
located in thesrc
directory in your preferred browser. - Make changes to
input.css
and see them reflect in real-time inoutput.css
due to the-watch
flag.
Feel free to fork this repository, make changes, and submit Pull Requests. For major changes, please open an issue first to discuss the proposed change.
This project is open-source and available under the MIT License.