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

@adalzanabria/tailwindcss

v1.0.1

Published

🎐 Soothing pastel theme for TailwindCSS.

Downloads

22

Readme

Usage

  1. Install the npm package
  • with npm:
npm i -D @adalzanabria/tailwindcss
  • with yarn:
yarn add -D @adalzanabria/tailwindcss
  1. Add the plugin into your tailwind.config.js file
plugins: [require("@adalzanabria/tailwindcss")],
  1. Add an import of the palettes to the first line of your main css file were you use your Tailwind directives:
@import '@adalzanabria/tailwindcss';
  • Note: If you are using TailwindCSS 3.1+ with the CLI, @import works out of the box, if you are using TailwindCSS as a PostCSS plugin, you need to install the postcss-import plugin and add it to your postcss.config.js to be able to use @import.
  1. Use the colors in any utility class that supports them. All colors are prefixed by the ctp keyword, the default palette is latte. For example:
<p className="text-ctp-mauve">
    This is a paragraph with the color mauve.
</p>
<div className="bg-ctp-flamingo">
    This is a div with the background color of flamingo.
</div>
  1. To use different palettes, add one of the following classes to the container of the elements:
  • theme-frappe
  • theme-macchiato
  • theme-mocha
  • If no theme class is used, the latte theme will be used as default. For example:
<div>
    <p className="text-ctp-pink">
        This is a paragraph with the color pink of the latte palette.
    </p>
</div>
<div className="theme-frappe">
    <!--All elements inside this div will use the frappe palette.-->
    <p className="text-ctp-pink">
        This is a paragraph with the color pink of the frappe palette.
    </p>
</div>
<div className="theme-macchiato">
    <!--All elements inside this div will use the macchiato palette.-->
    <p className="text-ctp-pink">
        This is a paragraph with the color pink of the macchiato palette.
    </p>
</div>
<div className="theme-mocha">
    <!--All elements inside this div will use the mocha palette.-->
    <p className="text-ctp-pink">
        This is a paragraph with the color pink of the mocha palette.
    </p>
</div>
  1. Using the Tailwind CSS IntelliSense extension for VS Code is adviced to preview the class names, but not necessary.

🙋 FAQ (optional)

  • Q: "Will I be able to use the regular colors that come with Tailwind CSS after installing this plugin?"

    A: Yes, this plugin only extends the original colors and you can still add your own in the tailwind.config.js file like you normally would.

  • Q: "Colors are not working!"

    A: This plugin was made for Tailwind CSS 3.0+, previous versions may not work.

💝 Thanks to