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

chromanomer

v1.0.4

Published

A Javascript Library enabling Universally Accessible Color Selection through Intutive Naming Conventions.

Downloads

13

Readme

🍭 Chromanomer

Chromanomer (abbreviated cono) is a perceptually intuitive color naming system based on the Lightness Chroma Hue color space that covers a sizeable spectrum of colors while boasting a negligible learning curve.

screenshot

Installation and Usage Sass Styling Api Node Api CommandLine Api

Made with ❤️ by Arvind Srinivasan. Licensed Under Apache-2.0.


🔑 Key Features

  • 👁️ Perceptually uniform colours
  • 👌 Semantically sound names
  • 🌐 ii8n friendly
  • Visually Accessible by design

🤔 Choice of Color Space

This library builds over the HSLUV Color Space that maps the boundaries of RGB Color Space to the perceptually uniform CIELCHuv Color Space, thus circumventing its problem of unbounded chroma. Though this leads to non-uniform chroma, the trade-off is less significant in comparison with other colorspaces:

  • HSL❓ While this transformation of RGB color space is more intuitive in its representation, the lightness in HSL does not represent perceptual lightness but rather relative brightness.
  • Munsell❓ While colors were loosely based on perception, they were mostly inconsistent and dependent on the environment. Moreover, quantitative differences could only be defined over a single color attribute.
  • NCS❓ Based on the psychophysics of color perception, NCS is better than Munsell as environmental lighting conditions do not impact color choices. However, this system must not be used to model perceived color differences, which is necessary requirement for a naming system to be accessible.
  • LAB❓ Though the CIELAB color space represents a broader color gamut with better perceptual accuracy than the Munsell System, the parameters a* and b* makes it harder to arrive at a mental model.

🎨 Designing the Nomenclature of Color

The following schema was arrived at by extracting the best traits from existing naming solutions (such as the Five Color Primaries in Munsell Naming System) and selecting linguistically universal color terms. The incorporation of Adjective terms also enhances the learnability and composability by reducing the potential number of color terms to remember.

Color Schema Visual Representation

For a more detailed look at an object applying this schema, please see the file ./lang/cono.en.json.

Besides the above considerations while designing the schema, the following were also looked for:

  • The arrangement of terms according to increasing order of intensity in chroma and lightness while diverging from the base value of the schema (see The Handle in the above schema).
  • The arrangement of Warm and Cool Ranges according to the gradatation of hues from adjacent hue sectors.