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

cbscroll-top

v1.0.2

Published

πŸ’₯ Take the user 🎁 to the top of the page with just one click πŸ‘.

Downloads

4

Readme

πŸŽ‰ Demo

πŸ“š Documentation

🌐 Description

πŸ“¦ Installation

// To install using npm
npm install sass-colors -S

// To install using yarn
yarn add sass-colors

▢️ Getting started

// If you use nodejs, reactjs, vuejs or angular
@import "node_modules/sass-colors/src/colors.scss";

// You can also download it directly and import the file colors.scss, as follows
@import "src/colors.scss";

// usage: color("name_of_color", "type_of_color")
// to avoid to repeating map-get($colors, ...)
@import "src/colors.scss";

body {
  // First parameter receives the name of the main color, and as a second parameter requires the name of the secondary color

  // usage: color("name_of_color", "type_of_color")
  // to avoid to repeating map-get($colors, ...)
  background: color("red", "base");
}
.button {
  background: color("blue", "accent-1");
  color: white;
  border: 1px solid color("blue", "darken-1");
}
// I will explain more clearly!
// First we import this color map for this example.

/**
| Main Color | Color value |
**/
$deep-red: (
  "base":       #e51c23,
  "lighten-5":  #fdeaeb,
  "lighten-4":  #f8c1c3,
  "lighten-3":  #f3989b,
  "lighten-2":  #ee6e73,
  "lighten-1":  #ea454b,
  "darken-1":   #d0181e,
  "darken-2":   #b9151b,
  "darken-3":   #a21318,
  "darken-4":   #8b1014,
);
// When you execute the function that requires two parameters
/**
color($primary-color, $secondary-color)
**/

🎨 Colors

| NΒ° | Name | Lighten | Darken | Accent | |----|-------------|---------|--------|--------| | 1 | deep-red | βœ”οΈ | βœ”οΈ | ❌ | | 2 | red | βœ”οΈ | βœ”οΈ | βœ”οΈ | | 3 | pink | βœ”οΈ | βœ”οΈ | βœ”οΈ | | 4 | purple | βœ”οΈ | βœ”οΈ | βœ”οΈ | | 5 | deep-purple | βœ”οΈ | βœ”οΈ | βœ”οΈ | | 6 | indigo | βœ”οΈ | βœ”οΈ | βœ”οΈ | | 7 | blue | βœ”οΈ | βœ”οΈ | βœ”οΈ | | 8 | light-blue | βœ”οΈ | βœ”οΈ | βœ”οΈ | | 9 | cyan | βœ”οΈ | βœ”οΈ | βœ”οΈ | | 10 | teal | βœ”οΈ | βœ”οΈ | βœ”οΈ | | 11 | green | βœ”οΈ | βœ”οΈ | βœ”οΈ | | 12 | light-green | βœ”οΈ | βœ”οΈ | βœ”οΈ | | 13 | lime | βœ”οΈ | βœ”οΈ | βœ”οΈ | | 15 | yellow | βœ”οΈ | βœ”οΈ | βœ”οΈ | | 16 | amber | βœ”οΈ | βœ”οΈ | βœ”οΈ | | 17 | orange | βœ”οΈ | βœ”οΈ | βœ”οΈ | | 18 | deep-orange | βœ”οΈ | βœ”οΈ | βœ”οΈ | | 19 | brown | βœ”οΈ | βœ”οΈ | ❌ | | 20 | blue-grey | βœ”οΈ | βœ”οΈ | ❌ | | 21 | grey | βœ”οΈ | βœ”οΈ | ❌ |

🎨 Shades

| N° | Name | Ligthen | Darken | Accent | |----|-------------|---------|--------|--------| | 22 | black | ❌ | ❌ | ❌ | | 23 | white | ❌ | ❌ | ❌ | | 24 | transparent | ❌ | ❌ | ❌ |

⭐ Support for

Sass-colors is an open source project licensed by MIT. You can grow thanks to the sponsors and the support of the amazing sponsors. If you want to join them, contact me here.

🎩 Stay in touch

This project follows the all-contributors specification. Contributions of any kind welcome!

πŸ“œ License

Sass-colors is MIT licensed.