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 🙏

© 2026 – Pkg Stats / Ryan Hefner

chromacss

v1.0.9

Published

A vibrant utility-first CSS framework

Readme

ChromaCSS

NPM Version License Issues

ChromaCSS is a vibrant utility-first CSS framework designed for rapid and flexible frontend development. Built with Sass and PostCSS, it offers a modern developer experience with features such as Just-In-Time (JIT) utilities, customizable themes, and advanced responsiveness.


Features

  • Utility-First: A rich set of utilities to build your UI faster.
  • Customization: Easily override themes, colors, spacing, and more.
  • Sass-Powered: Full SCSS support for modular and reusable design.
  • PostCSS Workflow: Optimized for performance with PurgeCSS and CSSNano.
  • Responsive Design: Grid, flexbox, and utilities for modern layouts.

Installation

NPM

npm install chromacss

Yarn

yarn add chromacss

CDN (Production)

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/chromacss@latest/dist/style.css">

Usage

Basic Setup

  1. Import ChromaCSS into your project:

    import 'chromacss/dist/style.css';
  2. Add utilities directly in your HTML:

    <div class="bg-blue-500 text-white p-4">
        Hello, ChromaCSS!
    </div>

Theming

ChromaCSS supports theming through its SCSS variables:

// src/scss/base/_variables.scss
$primary-color: #3498db;
$secondary-color: #2ecc71;

Rebuild CSS to reflect changes:

npm run build:css

Commands

Here are some useful scripts included in package.json:

  • Build CSS:
    npm run build:css
  • Watch for Changes:
    npm run watch
  • Lint SCSS:
    npm run lint
  • Run Tests:
    npm run test


Configuration

ChromaCSS allows you to generate a configuration file (chroma.config.js) for custom setups.

Generating chroma.config.js

Run the following command to generate the default chroma.config.js:

npm run build:config

Customizing chroma.config.js

Edit the file to modify your design tokens, breakpoints, and other settings:

module.exports = {
    theme: {
        colors: {
            primary: '#3498db',
            secondary: '#2ecc71',
            danger: '#e74c3c',
        },
        spacing: {
            sm: '8px',
            md: '16px',
            lg: '24px',
        },
    },
    variants: {
        extend: {
            backgroundColor: ['hover', 'focus'],
            textColor: ['hover', 'focus'],
        },
    },
    purge: ['./src/**/*.html', './src/**/*.js'],
};

JIT Mode

ChromaCSS supports Just-In-Time (JIT) utility generation to ensure only the utilities you use are included in your final CSS file.

Enabling JIT Mode

To enable JIT mode, simply run the jit.js script:

npm run jit

This dynamically generates utilities based on your project's HTML files and significantly reduces the final CSS size.


Folder Structure

chromacss/
├── bin/                # CLI tools
├── dist/               # Compiled CSS
├── docs/               # Documentation files
├── src/
│   ├── scss/           # SCSS source files
│   ├── components/     # UI components
│   ├── utilities/      # Utility classes
├── theme/              # Default themes & presets
└── test/               # Unit tests

Contributing

We welcome contributions! Please submit bugs or feature requests via GitHub Issues.


License

ChromaCSS is proprietary software. Redistribution or modification is prohibited without prior permission from the author.

For inquiries, contact Burhanuddin Mulla Hamzabhai.


Links