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

pantoner

v1.1.2

Published

Comprehensive Pantone color library implemented in Sass, LESS, Stylus, JSON, CSV, YAML, and XML.

Downloads

4

Readme

Pantoner GitHub version

A comprehensive Pantone color library implemented in Sass, LESS, Stylus, JSON, CSV, YAML, and XML. Contains a total of 3,238 colors from the following sets:

  • Coated (-c)
  • Uncoated (-u)
  • Metallics
  • Pastels & Neons (Coated)
  • Skin Colors
  • Colors of the Year

Demo & Color Reference


Get Started

Installing Pantoner is easy!

Git

git clone https://github.com/jpederson/Pantoner.git

npm NPM version

npm install pantoner

bower Bower version

bower install pantoner

For CSS Preprocessors

There are currently implementations for Sass, LESS and Stylus. Here are some examples, but there are also example files in each of the preprocessor folders as well.

Sass

All you'll need for this is scss/_pantone.scss and Sass 3.1.0+ (since we're using a custom function).

@import "pantone";

.my-class {
	color: pantone( "519-u" );
	background-color: pantone( "warm-grey-1-c" );
}

Stylus

The function name and parameters are identical to the Sass version, so it's just the syntax differences.

@import "_pantone.styl"

.my-class
  color pantone( "519-u" )

LESS

You'll need less/_pantone.less. The LESS version is implemented in variables. Use the naming convention @pantone-[color-name] to access them - like so:

@import "_pantone.less";

.my-class {
  color: @pantone-519-u;
}

Important: The LESS version is intended for pre-processing - the library of color variables is 82k, so it's not intended to be included in the codebase your users are required to download. Don't be evil, pre-process your LESS stylesheets! :smile:


Data Formats

All the colors are available in the following formats (all are auto-updated when colors are added):

  • JSON
  • CSV
  • YAML
  • XML

I promise to never change these filenames or paths, so you could even call them directly on a regular basis to update your color lists as needed.


Contributing

To contribute, you'll need nodejs and Grunt installed. Here's a quick idea to get you started:

# clone the repo locally
git clone https://github.com/jpederson/Pantoner.git

# cd into the folder
cd pantoner

# install/update dependencies
npm install

# start the grunt watch task
grunt

Editing Colors

While grunt is active, it watches the JSON files for changes - then generates updated versions of the color library for Sass, LESS and Stylus. It also simultaneously generates CSV, YAML, and XML files for each of the color sets so the data is available in multiple formats. Since the library uses JSON as the source, you should only edit the files in the json and dev folders - any changes in generated files are very likely to be overwritten the next time a change is made to the JSON.

Built with Grunt