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

@cacao-research/colors

v0.1.2

Published

Cacao-inspired color palettes and utilities for design systems.

Readme

Rich cacao-inspired color palettes for design systems. This package ships ready-made palettes, dark variants, and a generator for creating your own shades.

Install

npm install @cacao-research/colors
# or
yarn add @cacao-research/colors
# or
pnpm add @cacao-research/colors

Usage

import {
  cacao,
  caramel,
  red,
  green,
  presetPalettes,
  presetDarkPalettes,
  generate,
} from '@cacao-research/colors';

console.log(cacao);
// -> array of 10 progressively darker shades
console.log(cacao.primary); // '#7B3F00'
console.log(red.primary); // '#F15644'
console.log(green['green-1']); // first green shade
console.log(presetPalettes['green-1']); // same value, exposed at root level

const twilight = generate('#7a5a3a');
console.log(twilight.primary); // '#7A5A3A'

const twilightDark = generate('#7a5a3a', {
  theme: 'dark',
  backgroundColor: '#101012',
});
console.log(twilightDark);

Preset palettes

Named palettes are exposed both as individual exports and through presetPalettes/presetDarkPalettes.

import { mocha, presetPalettes } from '@cacao-research/colors';

mocha.primary; // '#6F4E37'
presetPalettes.mocha === mocha; // true
presetDarkPalettes.mocha; // dark-friendly variant blended for low-light UIs

Available names:

red, volcano, orange, gold, yellow, lime, green, cyan, blue, geekblue, purple, magenta, grey, cacao, cocoa, espresso, mocha, caramel, dulce, vanilla, hazelnut, almond, cinnamon, macchiato, darkchocolate.

Every palette also exposes numbered aliases:

  • presetPalettes['green-1'] through presetPalettes['green-10']
  • green['green-1'] through green['green-10']

Palette generator

generate(color: string, options?: {
  theme?: 'default' | 'dark';
  backgroundColor?: string;
}): string[] & { primary: string }
  • color — Any 3 or 6-digit hex string. Shorthand like #abc is accepted.
  • theme — Set to 'dark' to blend the palette against a dark background ('#141414' by default).
  • backgroundColor — Override the background color used for dark palettes.

Each returned palette contains exactly 10 shades and a primary property that matches the 6th entry (index 5), mirroring the API of @ant-design/colors.

Test

npm test

Runs a basic smoke check to ensure palette generation and presets stay aligned.

License

MIT © Juan