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

@robeasthope/colours

v3.0.2

Published

Radix UI color system with comprehensive palette and dark mode support

Downloads

5

Readme

@robeasthope/colours

Radix UI color system integration providing a comprehensive palette with dark mode support.

📦 Installation

npm install @robeasthope/colours
# or
pnpm add @robeasthope/colours
# or
yarn add @robeasthope/colours

🚀 Usage

In CSS Files

Import the color system in your main CSS file:

@import "@robeasthope/colours";

/* Use color variables */
.my-component {
  background-color: var(--gray-1);
  color: var(--gray-12);
  border: 1px solid var(--gray-6);
}

In JavaScript/TypeScript

Import at the application root:

import "@robeasthope/colours";

With Tailwind CSS

The colors are integrated with Tailwind CSS v4 in the UI package. Use them directly in class names:

<div className="bg-gray-1 text-gray-12 border-gray-6">Content</div>

🎨 Included Color Scales

Neutral Colors

  • Gray - True grays
  • Mauve - Cool grays
  • Slate - Cool blue-grays
  • Sage - Warm green-grays
  • Olive - Natural green-grays
  • Sand - Warm yellow-grays

Semantic Colors

  • Tomato, Red, Ruby, Crimson - Error states, destructive actions
  • Pink, Plum, Purple, Violet - Accent colors
  • Indigo, Blue, Sky, Cyan - Primary actions, links
  • Teal, Jade, Green, Grass - Success states
  • Orange, Brown - Warning states
  • Gold, Bronze - Special states
  • Mint, Lime, Yellow, Amber - Highlights

Color Variants

Each color scale includes:

  • Light mode colors (default)
  • Dark mode colors (automatic with CSS variables)
  • Alpha variants for transparency effects

🌙 Dark Mode

Dark mode is automatically handled via CSS custom properties:

/* Automatically switches in dark mode */
:root {
  color-scheme: light dark;
}

.my-component {
  /* These colors adapt to the color scheme */
  background: var(--gray-1);
  color: var(--gray-12);
}

📐 Color Scale Structure

Each color has 12 steps from 1-12:

| Step | Use Case | | ---- | --------------------------------- | | 1-2 | Backgrounds | | 3-5 | Interactive component backgrounds | | 6-8 | Borders and separators | | 9-10 | Solid backgrounds, active states | | 11 | Low-contrast text | | 12 | High-contrast text |

🛠️ Development

File Structure

packages/colours/
├── index.css        # Main export with all imports
├── base.css         # Base color imports (if present)
├── semantic.css     # Semantic color imports (if present)
├── package.json
└── README.md

Adding New Colors

  1. Add the Radix Colors import to the appropriate CSS file
  2. Import the CSS file in index.css
  3. Update this README with the new color

🔗 Resources

📄 License

MIT License - see LICENSE file in the root directory.

This software is provided "as is", without warranty of any kind. Use at your own risk.