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

@strum/colors

v0.1.8

Published

<a href="https://www.npmjs.com/package/@strum/colors"><img alt="NPM Version" src="https://img.shields.io/npm/v/%40strum%2Fcolors?style=flat&link=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2F%40strum%2Fcolors"></a> [![Netlify Status](https://api.netlify.com/api

Readme

Strum Colors: Accessible Tailwind-First Color Palette

Netlify Status

This package is in beta. Please let me know what you think!

Setup

npm i @strum/colors

Tailwind v4

Simply import the CSS config file to use Strum Colors in your app.

@import 'tailwindcss';
@import '@strum/colors/tailwind.css';

See the Tailwind v4 docs for more about CSS configuration.

Tailwind v3

import strumColors from '@strum/colors/tailwind';

export default {
  theme: {
    colors: strumColors,
  },
};

Vanilla CSS

To create a palette as CSS variables, import the colors you want.

@import '@strum/colors/css/blue.css';

h1 {
  color: var(--blue-9);
}

Or import all colors at once.

@import '@strum/colors/css/index.css';

body {
  background-color: var(--slate-1);
}

h1 {
  color: var(--blue-11);
}

JavaScript/TypeScript

You can also import the oklch or rgb fallback colors as a JavaScript object.

import { oklch, rgb } from '@strum/colors/base';

The structure of the object looks like the following:

interface Colors {
  crimson: {
    category: 'accent' | 'accentBright' | 'neutral';
    colorName: string;
    dark: {
      0: {
        color: string;
        foreground: string;
      };
      // ...contains 0 through 12
    };
    light: {
      0: {
        color: string;
        foreground: string;
      };
      // ...contains 0 through 12
    };
  };
}

Aliasing

If using CSS Tailwind config, you can use one of our pre-defined alias CSS files:

@import '@strum/colors/tailwind.css';
@import '@strum/colors/tailwind/alias-neutral-slate.css';
@import '@strum/colors/tailwind/alias-primary-blue.css';

In this example, you apply the name neutral to the slate palette and primary to the blue palette.

Aliases available:

  • neutral
  • primary
  • secondary
  • accent
  • success
  • warning
  • danger
  • error

Comparisons

Strum Colors is closely related to both Radix UI Colors and Harmony.

In short, where Harmony is a drop-in replacement for the Tailwind color palette, Strum is a drop-in replacement for Radix UI Colors.

Harmony

Strum Colors is built as a fork of Harmony, and shares many philosophies in its creation and packaging. We use OKLCH colors (with RGB fallbacks available) to craft our color scales so that you have a consistent hue across different percieved lightness, and consistent accessible contrasting colors.

Radix UI Colors

Strum Colors uses the same 12 shade scale system as Radix. This means that each step in the system applies to one or more specific use cases, so you can design pages and components by simply knowing which scale to use for each scenario.

See the Radix UI Color documentation for more information on the color scale.

Strum Colors also uses the same light and dark mode philosophy as Radix, meaning that the same scale applies in both modes. Light and dark mode are not simply inversions of each other, but hand-crafted scales that offer a consistent look and accessibility across both.

Strum Colors also provides the same color scales as Radix, so any neutral or accent color that is available in Radix is available here. However, because our scales are crafted using OKLCH, we can use this system to provide consistent hue at different percieved lightness across each scale. Therefore our colors don't match 1-to-1 with Radix.

Additionally, Strum Colors has higher scale contrast in dark mode, where the darkest color is substantially darker than it is in Radix.