npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

tailwind-css-installer

v2.1.0

Published

A CLI tool to set up Tailwind CSS in various frameworks.

Downloads

12

Readme

Tailwind CSS Installer

A CLI tool designed to simplify the setup of Tailwind CSS in various frontend frameworks. With just a few commands, you can configure Tailwind CSS for your React, Vite, or other supported projects.

Features

  • Seamless setup of Tailwind CSS for popular frameworks such as React and Vite.
  • Automatic configuration of essential files (tailwind.config.js, postcss.config.js, and CSS entry files).
  • Interactive CLI for an easy setup process.

Installation

You can install Tailwind CSS Installer either globally or locally in your project.

Global Installation

To install Tailwind CSS Installer globally, run the following command:

npm install -g tailwind-css-installer

This allows you to use the tailwind-css-installer command from anywhere on your system. With just a single command tailwind css install in your project, within your project's directory just run :

tailwind-css-installer

Local Installation

To install Tailwind Installer locally in your project, run:

npm install --save-dev tailwind-css-installer

Or

npm install -D tailwind-css-installer

After installing locally, you can run the CLI tool using npx:

npx tailwind-css-installer

Usage

After installation, you can use the tailwind-css-installer command to set up Tailwind CSS in your project.

Running the Installer

To start the setup process, run:

tailwind-installer

or, if installed locally:

npx tailwind-installer

You will be prompted to select your framework:

  • React
  • Vite
  • Angular
  • Vue
  • Svelte

Example Setup Process

  1. Run tailwind-installer.
  2. Select your framework (e.g., Angular).
  3. The tool will set up your project and configure Tailwind CSS.

Framework-Specific Setup Details

React

Vite

Angular

Vue

Svelte

Configuration

The CLI tool will guide you through the configuration process, including:

  1. Choosing a Framework: Select from supported frameworks like React or Vite.
  2. Installing Dependencies: Automatically installs Tailwind CSS and related dependencies.
  3. Configuring Files: Creates and configures tailwind.config.js, postcss.config.js, and updates your CSS files.

Options

Tailwind Installer supports the following frameworks:

React

When setting up Tailwind CSS for React:

  • Installs Tailwind CSS and its dependencies.
  • Creates and configures tailwind.config.js and postcss.config.js.
  • Updates src/index.css with Tailwind CSS imports.

Vite

When setting up Tailwind CSS for Vite:

  • Installs Tailwind CSS and its dependencies.
  • Creates and configures tailwind.config.js and postcss.config.js.
  • Updates src/index.css with Tailwind CSS imports.

Examples

React Project Setup

  1. Navigate to your React project directory.

  2. Run the installer:

    tailwind-css-installer

    or, if installed locally:

    npx tailwind-css-installer
  3. Select React from the prompts.

This will:

  • Install Tailwind CSS and its dependencies.
  • Create and configure tailwind.config.js and postcss.config.js.
  • Add Tailwind CSS imports to src/index.css.

Vite Project Setup

  1. Navigate to your Vite project directory.

  2. Run the installer:

    tailwind-css-installer

    or, if installed locally:

    npx tailwind-css-installer
  3. Select Vite from the prompts.

This will:

  • Install Tailwind CSS and its dependencies.
  • Create and configure tailwind.config.js and postcss.config.js.
  • Add Tailwind CSS imports to src/index.css.

Contributing

We welcome contributions to improve Tailwind CSS Installer. To contribute:

  1. Fork the repository on GitHub.
  2. Create a new branch (git checkout -b feature/your-feature).
  3. Commit your changes (git commit -am 'Add new feature').
  4. Push to the branch (git push origin feature/your-feature).
  5. Create a Pull Request on GitHub with a description of your changes.

Key Points Covered:

  • Features: Overview of what the package does.
  • Installation: Instructions for global and local installation.
  • Usage: How to run and use the installer.
  • Configuration: Details on what happens during the setup process.
  • Options: Specifics on framework support.
  • Examples: Step-by-step guides for setting up with React and Vite.
  • Contributing: How to contribute to the project.
  • License: Licensing information.
  • Changelog: Where to find information on changes.

Feel free to modify or add any additional information specific to your package.