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

colorkraken

v2.0.0

Published

Color shades generator, integration with tailwind

Downloads

100

Readme

ColorKraken (Beta)

ColorKraken is a tailwind integration that generates custom color shades from a given hexcolor From a designer to developers

Installation

Use the package manager npm to install ColorKraken.

npm install colorkraken --save-dev

Usage

After installing your package, create colorkraken-config.js in your root dir and add as many classnames and colors as you want.

module.exports = {
    arguments: [
      { name: "primary", value: "#604181" },
      { name: "secondary", value: "#F89630" },
    ],
  }

In your tailwind.config.js add

const Colorkraken = require ('colorkraken');

And assign tailwind variables to Color Kraken ones

module.exports = {
  purge: [],
  theme: {
    extend: {
      colors: Colorkraken,
      textColors: Colorkraken,
      backgroundColors: Colorkraken,
    },
   ...
}

Then run

npm run build:css

List of available sub class

Color Kraken returns an object that contains all your classnames and colors converted to rgba

{
    primary: {
      '100': 'rgba(160, 141, 179, 1)',
      '200': 'rgba(144, 122, 167, 1)',
      '300': 'rgba(128, 103, 154, 1)',
      '400': 'rgba(112, 84, 142, 1)',
      '500': 'rgba(96, 65, 129, 1)',
      '600': 'rgba(86, 59, 116, 1)',
      '700': 'rgba(77, 52, 103, 1)',
      '800': 'rgba(67, 46, 90, 1)',
      '900': 'rgba(58, 39, 77, 1)'
    }
  },
  {
    secondary: {
      '100': 'rgba(251, 192, 131, 1)',
      '200': 'rgba(250, 182, 110, 1)',
      '300': 'rgba(249, 171, 89, 1)',
      '400': 'rgba(249, 161, 69, 1)',
      '500': 'rgba(248, 150, 48, 1)',
      '600': 'rgba(223, 135, 43, 1)',
      '700': 'rgba(198, 120, 38, 1)',
      '800': 'rgba(174, 105, 34, 1)',
      '900': 'rgba(149, 90, 29, 1)'
    }
  }

To access your new custom color using tailwind text-primary-500 active:text-primary-700 hover:text-primary-300 ⚠️By default, the active variant is not enabled for any core plugins⚠️

License

MIT