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 🙏

© 2026 – Pkg Stats / Ryan Hefner

tw-alchemist

v1.3.1

Published

<br/> <div align="center"> <a href="https://github.com/einenlum/tailwind-alchemist"> <img src="images/logo.png" alt="Logo" width="80" height="80"> </a> <h3 align="center">Tailwind Alchemist 🪄</h3> <p align="center"> A CLI tool to manage and replace Tailw

Readme

If you’ve ever wanted to:

  • Check all the Tailwind default colors used in your project.
  • Replace existing colors with new ones while maintaining consistency.

...then Tailwind Alchemist is for you 🪄


Installation

No need to install it, you can run it with npx.

Usage

All commands require at least one option -p or --pattern to know where to look for.

  • Example with one pattern: -p 'resources/views/**'
  • Example with multiple patterns: -p 'resources/views/**' -p 'my/other/folder/**'

Scan for Tailwind Default Colors

To scan your project for Tailwind default colors:

npx tw-alchemist scan -p 'resources/views/**' -p 'some/other/folder/**'

Options:

  • -v: Display the files where the colors are found.
npx tw-alchemist scan -p 'resources/views/**' -v
  • -vv: Display the files and matches where the colors are found.
npx tw-alchemist scan -p 'resources/views/**' -vv

Scan for a specific color (even a custom one)

npx tw-alchemist scan indigo-800 -p 'resources/views/**' -vv

Replace Colors

To replace an existing color with another one:

npx tw-alchemist replace oldColor newColor -p 'resources/views/**'

To check what would be done without touching files, use --dry-run:

npx tw-alchemist replace oldColor newColor -p 'resources/views/**' --dry-run

Notes:

  • If newColor doesn’t exist in your Tailwind config, the tool will print the necessary CSS for you to add.
  • If oldColor is one of Tailwind’s default colors, the tool will use its OKLCH value for accurate replacement.

Compatibility

Only compatible with TailwindCSS 4.x.

Should work more or less on TailwindCSS 3.x.

Disclaimer

This tool is not affiliated with Tailwind CSS or its creators. It’s a personal project built to help developers manage their Tailwind CSS colors.

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

Author

Yann Rabiller (@einenlum). You can check my blog and my book From PHP to Python.

License

This project is licensed under the MIT License. See the LICENSE file for details.