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

@pycolors/tokens

v1.0.0

Published

CSS design tokens for PyColors (light/dark themes + semantic variables).

Readme

@pycolors/tokens

Production-ready CSS design tokens for building consistent, scalable, and modern interfaces across the PyColors ecosystem.

npm
version license


✨ Why @pycolors/tokens?

Design tokens are the foundation of a scalable design system.

This package provides:

  • 🎨 Light + dark themes out of the box
  • 🧠 Semantic color variables (--background, --primary, etc.)
  • ⚡ Tailwind v4 bridge via @theme inline
  • 🧱 Stable primitives for apps, SaaS, templates, and UI kits
  • 🔁 Single source of truth across your monorepo

Perfect for Next.js, React, SaaS starters, and design systems.


📦 Install

pnpm add @pycolors/tokens
# or
npm install @pycolors/tokens
# or
yarn add @pycolors/tokens

🚀 Quick Start

Import the tokens CSS

Next.js (App Router)

Add to app/globals.css:

@import "@pycolors/tokens/tokens.css";

Next.js (Pages Router)

import "@pycolors/tokens/tokens.css";

Vite / React

import "@pycolors/tokens/tokens.css";

You're done ✅
All semantic variables are now available globally.


🌙 Dark Mode

Tokens rely on a .dark class strategy.

<html class="dark">

Toggle it manually or via your theme provider.


🧩 What's Inside

Core tokens

  • Radius scale
  • Background / foreground
  • Card / popover
  • Primary / secondary
  • Muted / accent
  • Destructive
  • Border / ring

Dark theme override

Automatic semantic inversion using:

.dark { ... }

Tailwind v4 Bridge

The package exposes tokens directly to Tailwind:

@theme inline {
  --color-background: var(--background);
}

No extra config required.


🏗 Recommended Architecture

For monorepos:

packages/
   tokens   ← single source of truth
apps/
   marketing
   saas
   docs

Avoid redefining colors inside apps --- import tokens instead.

👉 This prevents design drift as your product ecosystem scales.


🔄 Versioning

This package follows Semantic Versioning:

  • 0.x → iteration phase (breaking changes possible)
  • 1.0.0 → API stability guaranteed
  • Minor → new tokens
  • Patch → fixes / adjustments

🧠 Pro Tip

Treat tokens as infrastructure, not styling.

Most teams refactor tokens too late ---
high-performing teams centralize them early.


⚠️ This package is currently in early release (0.x). Breaking changes may occur until version 1.0.


📄 License

MIT