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

css3-colors

v1.0.0

Published

Colors classess for css3

Downloads

12

Readme

css3-colors

Css3-colors is a package that helps you with color management, css3-colors brings variable classes with the colors that have the package scss-colors

To see all the colors and their shades, click here

🎉 Colors Demo

Preview live click here

📦 Installation

Before using, we have to install the package via npm or download it directly !

# To install
npm install --save css3-colors

▶️ Usage

To use it is very simple, first you have to import the css file into your main file of html.

When you install or download the package you will have two css files, index.css and index.min.css

  • File index.css this file is customizable as it is not mined.
  • File index.min.css this file brings all the classes with the colors, but unlike the other one, this one will come mirified, that is to say to use it in production.
<!DOCTYPE html>
<html lang="en">
   <head>
      <meta charset="UTF-8" />
      <meta name="viewport" content="width=device-width, initial-scale=1.0" />
      <title>css-colors - Created by Yoni Calsin</title>

      <!-- This way you'll have to care -->
      <link rel="stylesheet" href="dist/index.css" />
   </head>
   <body>
      <!-- Here he adds all his html code -->
   </body>
</html>

But if you want to import it from javascript, you will have to do it this way:

import '~css3-colors/dist/index.css';

🎨 Color classes

To be able to use the classes are as follows.

The colors are iterated from a map !

/**
*  Red Colors
**/
$red: (
   'base': #f44336,
   'lighten-5': #ffebee,
   'lighten-4': #ffcdd2,
   'lighten-3': #ef9a9a,
   'lighten-2': #e57373,
   'lighten-1': #ef5350,
   'darken-1': #e53935,
   'darken-2': #d32f2f,
   'darken-3': #c62828,
   'darken-4': #b71c1c,
   'accent-1': #ff8a80,
   'accent-2': #ff5252,
   'accent-3': #ff1744,
   'accent-4': #d50000,
);

For example we will use the color red, and if you want more simply add the classes of .lighten-{number} or .accent-{number}.

<div class="red">
   <h1 class="blue-text">Css3-colors</h1>
</div>

To give colors to the texts, it is also very simple, you can use the same classes, you will have to add the word -text to the end

<h1 class="red-text lighten-3">Red title - lighten-3</h1>

⭐ Support for

css3-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

Contributors ✨

Thanks goes to these wonderful people (emoji key):

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

📜 License

css3-colors is MIT licensed.