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

@jandi/colors

v0.1.0

Published

Color palette derived from the blue pigment of jenipapo (Genipa americana)

Readme

@jandi/colors

A color palette derived from the blue pigment of jenipapo (Genipa americana), the ancestral dye of Brazil's indigenous peoples.

npm version bundle size license TypeScript


Installation

npm install @jandi/colors

npm

import { palette, jandi, oby, genipina } from '@jandi/colors'

CSS

<link rel="stylesheet" href="https://unpkg.com/@jandi/colors/css/jandi.css">
.element {
  background: var(--jandi-primary);
  color: var(--jandi-suco-verde);
}

Tailwind

// tailwind.config.js
const { jandiColors } = require('@jandi/colors/tailwind')

module.exports = {
  theme: {
    extend: {
      colors: jandiColors,
    },
  },
}
<div class="bg-jandi-primary text-jandi-brisa">...</div>

SCSS

@import '@jandi/colors/scss';

.element {
  background: $jandi-primary;
  color: $jandi-text-primary;
}

See the monorepo root for all available formats.

The Palette

Eight tones derived from the real behavior of genipin pigment, from fresh green pulp to concentrated ritual war paint.

| Name | Hex | RGB | HSL | Oxidation Stage | |------|-----|-----|-----|-----------------| | Suco verde | #C8D5CC | 200, 213, 204 | 138°, 13%, 81% | Pre | | Brisa | #8FA7B3 | 143, 167, 179 | 200°, 19%, 63% | Initial | | Oby | #5D7F96 | 93, 127, 150 | 204°, 23%, 48% | Partial | | Jandí | #3D5F80 | 61, 95, 128 | 210°, 35%, 37% | Full | | Genipina | #2C4A6E | 44, 74, 110 | 213°, 43%, 30% | Saturated | | Nhandí | #1E3452 | 30, 52, 82 | 215°, 46%, 22% | Deep | | Yandí | #11203A | 17, 32, 58 | 218°, 55%, 15% | Concentrated | | Tinta de guerra | #0A1424 | 10, 20, 36 | 217°, 57%, 9% | Max |

Usage

import { palette, primary, sucoVerde, hexToRgb, hexToHsl, isLight, getContrastPair } from '@jandi/colors'

// Color access
console.log(primary.hex)        // "#3D5F80"
console.log(primary.rgb)        // { r: 61, g: 95, b: 128 }
console.log(primary.name)       // "Jandí"
console.log(primary.description) // "Oxidação completa..."

// Iterate the palette
palette.colors.forEach(c => console.log(c.name, c.hex))

// Look up by slug
const color = palette.bySlug['jandi-genipina']

// Color conversion utilities
hexToRgb('#3D5F80')   // { r: 61, g: 95, b: 128 }
hexToHsl('#3D5F80')   // { h: 210, s: 35, l: 37 }
isLight(primary)       // false (luminosity < 50%)

// WCAG contrast pairs (ratio >= 4.5:1)
for (const [fg, bg] of getContrastPair(palette)) {
  console.log(`${fg.name} on ${bg.name}`)
}

Accessibility

WCAG 2.1 contrast combinations meeting AA (ratio >= 4.5:1):

| Background | Foreground | Ratio | Level | |------------|-----------|-------|-------| | Suco verde | Yandí | 10.7:1 | AAA | | Suco verde | Nhandí | 8.3:1 | AAA | | Suco verde | Genipina | 6.0:1 | AA | | Brisa | Tinta de guerra | 7.3:1 | AAA | | Tinta de guerra | Suco verde | 12.2:1 | AAA | | Tinta de guerra | Brisa | 7.3:1 | AAA | | Brisa | Yandí | 6.5:1 | AA | | Jandí | Suco verde | 4.4:1 | AA Large | | Tinta de guerra | Oby | 4.3:1 | AA Large | | Oby | Suco verde | 2.8:1 | — |

Running Tests

cd packages/typescript

# Install dependencies
npm install

# Run all tests (55 tests)
npm run test

# Watch mode
npm run test:watch

# Type check
npm run typecheck

# Lint
npm run lint

# Build
npm run build

Package Structure

@jandi/colors/
├── dist/                    # Build output (ESM + CJS + .d.ts)
├── css/jandi.css            # CSS custom properties
├── scss/_jandi.scss         # SCSS variables + mixins
├── json/jandi.tokens.json   # W3C Design Tokens
├── tailwind/jandi.config.cjs # Tailwind plugin
├── src/                     # TypeScript source
└── tests/                   # Test suites

Other Ecosystems

License

MIT