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

@ahmed-aliraqi/color-palette

v1.0.6

Published

A powerful SCSS plugin that automatically generates comprehensive color utility classes with customizable shade variations. Perfect for design systems and utility-first CSS frameworks.

Readme

SCSS Color Palette Plugin

A powerful SCSS plugin that automatically generates comprehensive color utility classes with customizable shade variations. Perfect for design systems and utility-first CSS frameworks.

Features

  • 🎨 Automatic shade generation - Creates 11 shades (50-900) for any base color
  • 🎯 Comprehensive coverage - Background, text, border, SVG, UI, and shadow utilities
  • 🌐 CDN Ready - Pre-built CSS files available for direct use

Installation

CDN (Easiest)

Include the CSS directly in your HTML:

<!-- Latest version -->
<link rel="stylesheet" href="https://unpkg.com/@ahmed-aliraqi/color-palette@latest/dist/color-palette.min.css">

<!-- Or specific version -->
<link rel="stylesheet" href="https://unpkg.com/@ahmed-aliraqi/[email protected]/dist/color-palette.min.css">

<!-- Via jsDelivr -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ahmed-aliraqi/color-palette@latest/dist/color-palette.min.css">

NPM

npm install @ahmed-aliraqi/color-palette

Yarn

yarn add @ahmed-aliraqi/color-palette

Manual

Download and include the dist/color-palette.css or scss/index.scss file in your project.

Quick Start

Using Pre-built CSS (No Build Process Required)

<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="https://unpkg.com/@ahmed-aliraqi/color-palette@latest/dist/color-palette.min.css">
</head>
<body>
    <div class="bg-blue-500 text-white">Blue background with white text</div>
    <p class="text-red-700 border-red-300">Red text with red border</p>
</body>
</html>

Using SCSS Source

// Import the plugin
@use '@ahmed-aliraqi/color-palette';

// The plugin automatically generates utilities for the default color palette
// You can now use classes like:
// .bg-red-500, .text-blue-300, .border-green-700, etc.

Available Classes

With the pre-built CSS, you get over 3,000 utility classes for 11 colors across 11 shade levels:

Colors Available

  • red, green, blue, yellow, purple, pink, indigo, orange, teal, cyan, gray

Shade Levels

  • 50 (lightest), 100, 200, 300, 400, 500 (base), 600, 700, 800, 900, 1000 (darkest)

Property Types

  • Backgrounds: .bg-red-500
  • Text: .text-blue-300
  • Borders: .border-green-700
  • Outlines: .outline-purple-400
  • SVG Fill: .fill-orange-600
  • SVG Stroke: .stroke-teal-500
  • Text Decoration: .text-decoration-pink-300
  • Caret: .caret-indigo-500
  • Emphasis: .emphasis-cyan-400
  • Accent: .accent-yellow-600
  • Column Rule: .column-rule-gray-500

Default Color Palette

The plugin includes these colors by default:

  • red: #ef4444
  • green: #22c55e
  • blue: #3b82f6
  • yellow: #f59e0b
  • purple: #8b5cf6
  • pink: #ec4899
  • indigo: #6366f1
  • orange: #f97316
  • teal: #14b8a6
  • cyan: #06b6d4
  • gray: #6b7280

Default Shade Scale

| Shade | Lightness | Description | |-------|-----------|-------------| | 50 | +90% | Lightest | | 100 | +80% | Very light | | 200 | +70% | Light | | 300 | +60% | Light medium | | 400 | +50% | Medium light | | 500 | 0% | Base color | | 600 | -10% | Medium dark | | 700 | -20% | Dark | | 800 | -30% | Very dark | | 900 | -40% | Darkest | | 1000 | -50% | Ultra dark |

Generated Class Examples

For a color named blue, the plugin generates:

Background Classes

.bg-blue-50 { background-color: #eff6ff !important; }
.bg-blue-500 { background-color: #3b82f6 !important; }
.bg-blue-900 { background-color: #1e3a8a !important; }

Text Classes

.text-blue-50 { color: #eff6ff !important; }
.text-blue-500 { color: #3b82f6 !important; }
.text-blue-900 { color: #1e3a8a !important; }

Border Classes

.border-blue-500 { border-color: #3b82f6 !important; }
.outline-blue-500 { outline-color: #3b82f6 !important; }

SVG Classes

.fill-blue-500 { fill: #3b82f6 !important; }
.stroke-blue-500 { stroke: #3b82f6 !important; }

Browser Support

This plugin works with any modern SCSS compiler and the generated CSS works in all modern browsers. Some advanced properties like accent-color may have limited browser support.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License - see LICENSE file for details.