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

kromatika

v1.0.8

Published

An elegant color palette for user interfaces

Downloads

12

Readme

Kromatika colors

Kromatika Color Library

Kromatika is a comprehensive color library that provides a wide range of color palettes for use in your web projects. This library includes colors organized by categories, making it easy to maintain a consistent color scheme throughout your application.

Official site

Installation

To use the Kromatika color library in your project, follow these steps:

  1. Clone the Repository:
git clone https://github.com/michael-andreuzza/kromatika.git
cd kromatika
  1. Install Dependencies To get started with Kromatika, you need to install the package and any necessary dependencies. If you are using npm, you can install Kromatika with:

NPM

npm install kromatika

Yarn

yarn add kromatika

Usage

Importing Colors

You can import the colors into your JavaScript, JSON, SCSS and CSS files as needed.

JavaScript

To use the colors in your JavaScript files, you can import the colors object from index.js:

const colors = require('./index.js');
// EXample usage:
console.log(colors.black); // Outputs the hex color code for black

#### JSON

To use the colors in your JSON files, you can import the `colors` object from `colors.json`:
{
  "metal": [
    "#F3F4F7",
    "#E2E4EB",
    "#CCD0DC",
    "#B3BACB",
    "#9BA4BA",
    "#828DA9",
    "#626E8E",
    "#49526A",
    "#303646",
    "#191C24"
  ]
  // Add more color categories as needed
}

YAML

To use the colors in your YAML files, you can import the colors.yml file:

metal:
  - "#F3F4F7"
  - "#E2E4EB"
  - "#CCD0DC"
  - "#B3BACB"
  - "#9BA4BA"
  - "#828DA9"
  - "#626E8E"
  - "#49526A"
  - "#303646"
  - "#191C24"
# Add more color categories as needed

SCSS

To use the colors in your SCSS files, you can import the colors.scss file:

@import "kromatika/colors.scss";
// EXample usage:
body {
  background-color: var(--kr-charcoal-50);
  color: var(--white);
}

LESS

To use the colors in your LESS files, you can import the colors.less file:

@import "~kromatika/colors.less";
// Example usage:
body {
  background-color: @black-50;
  color: @white;
}

Stylus

To use the colors in your Stylus files, you can import the colors.styl file:

@import "~kromatika/colors.styl"
// Example usage:
body
  background-color: $black-50
  color: $white

CSS

@import "kromatika/colors.css";
// Example usage:
body {
  background-color: var(--kr-charcoal-50); /* Using a black shade */
}

Available Colors

The color library includes the following categories:

  • Charcoal: A range of shades of charcoal.
  • Metal Shades: A range of metallic colors.
  • Haiti Shades: Soft, muted colors inspired by the Haitian palette.
  • Purple Shades: A variety of purple tones.
  • Blue Berry Shades: Fresh and vibrant blue shades.
  • Blue Shades: Rich and deep blue colors.
  • Sky Shades: Light and airy sky colors.
  • Turquoise Shades: Bright and refreshing turquoise tones.
  • Persian Green Shades: Elegant green shades.
  • Pastel Green Shades: Soft and pastel green colors.
  • Grass Shades: Lively green shades.
  • Carrot Shades: Warm and inviting orange shades.
  • Orange Shades: Bright and cheerful orange tones.
  • Red Shades: Bold and vibrant red colors.
  • Raspberry Shades: Sweet and rich raspberry tones.
  • Fuchsia Shades: Bright and lively fuchsia colors.

Customization

You can easily customize the colors by modifying the values in the colors.json file, or directly in the index.js, colors.scss, and colors.css files. This flexibility allows you to tailor the color palette to fit your project's branding and design requirements.

License

This project is licensed under the MIT License.

Contributing

Contributions are welcome! If you have suggestions for improvements or new color palettes, feel free to open an issue or submit a pull request.

Acknowledgments

Thank you for using Kromatika! We hope this color library enhances your project and streamlines your design process.

Author

Michael Andreuzza