Skip to content

Use this Bash script to set up Tailwindcss with one command

License

Notifications You must be signed in to change notification settings

AlefAlfa/TailwindSetupAutomation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

TailwindCSS Setup Guide

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.

Table of Contents

Prerequisites

Before running the script, ensure you have the following installed:

  • Node.js
  • npm

Setup Process

  1. Clone the Repository:

    git clone https://github.com/AlefAlfa/TailwindSetupAutomation.git
    
  2. 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.

What Does the Script Do?

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 and src directories.
  • CSS Files: Generates the input.css and output.css files. The input.css file imports Tailwind's base, components, and utilities. The generated styles will be placed in output.css.
  • Watch for Changes: The script uses Tailwind's CLI to watch for changes in the input.css file and regenerates the output.css accordingly.

Running the Project

After the setup:

  1. Open the index.html located in the src directory in your preferred browser.
  2. Make changes to input.css and see them reflect in real-time in output.css due to the -watch flag.

Contribute

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.

License

This project is open-source and available under the MIT License.

About

Use this Bash script to set up Tailwindcss with one command

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages