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

pigmenta

v0.1.5

Published

The Complete Toolkit for App and UI Theming

Readme


🌈 Overview

Pigmenta is a lightweight, powerful toolkit for theming and design token management.
It helps you define color palettes, tokens, and outputs ready-to-use Tailwind or CSS themes automatically.

Perfect for UI libraries, monorepos, and multi-theme applications.


✨ Features

  • ⚙️ Automatic theme generation (CSS or Tailwind)
  • 🌗 Light / Dark mode ready
  • 🧩 Extendable configs for shared theming in monorepos
  • Vite plugin support for real-time updates
  • 🔄 Watch mode to auto-generate themes on file change
  • 🧠 Typed configuration with auto-completion
  • 🪄 Simple CLI for setup and management
  • 💡 VS Code extension for token previews and theme sync
  • 🎨 Figma plugin to import/export tokens visually

🚀 Quick Start

1. Installation

# with npm
npm i pigmenta -D

# or yarn
yarn add pigmenta -D

# or pnpm
pnpm add pigmenta -D

2. Initialize Pigmenta

Create your theme config:

npx pigmenta init

This creates a pigmenta.config.js file and a .pigmenta directory with type definitions.

Example config:

/** @type {import('./.pigmenta/types').Config} */
export default {
	options: {
		output: 'tailwind',
		dest: './src',
		default: 'light',
		tokenPrefix: 'color',
	},
	pallets: {
		neutral: {
			titanium: {
				shade: {
					0: '#101113',
					10: '#181A1C',
					20: '#2E3033',
				},
			},
		},
	},
	tokens: {
		back: {
			light: 'neutral-titanium-shade-95',
			dark: 'neutral-titanium-black',
		},
	},
};

3. Generate Theme Files

npx pigmenta watch

This will automatically generate your Tailwind or CSS theme files based on your config.


🔌 Vite Integration

Pigmenta ships with a Vite plugin for live updates while developing.

import { defineConfig } from 'vite';
import { pigmentaVitePlugin } from 'pigmenta/vite';

export default defineConfig({
	plugins: [sveltekit(), pigmentaVitePlugin()],
});

🧱 Extending Configs

You can extend other Pigmenta configs to share tokens and palettes across packages — ideal for monorepos or design systems.

export default {
	options: {
		output: 'tailwind',
		dest: './src',
		default: 'light',
		extend: ['../../pigmenta.config.js'],
	},
	pallets: {},
	tokens: {},
};

🧭 Example Use Cases

  • Build a shared design system for multiple apps
  • Sync theme tokens between design and code
  • Quickly prototype dark / light modes
  • Generate Tailwind-ready themes from your tokens

🎨 Pigmenta Figma Plugin — Bridge Design to Code

The Pigmenta Figma Plugin lets designers export color tokens directly from Figma into a ready-to-use Pigmenta config file.

No more manual syncing — generate .pigmenta token structures straight from your design system and keep your codebase perfectly aligned.

👉 Install from Figma Community

Key Features:

  • 🎨 Export colors, palettes, and shades from Figma
  • 🔄 Generate Pigmenta-compatible tokens automatically
  • 🧩 Stay consistent between design and development

💡 Pigmenta VS Code Extension

The Pigmenta VS Code Extension enhances your workflow with smart syntax highlighting and color awareness.

It recognizes Pigmenta token names, highlights their values, and gives you quick color previews inline — making theme editing intuitive and visual.

👉 Download from Visual Studio Marketplace

Key Features:

  • 🌈 Smart syntax highlighting for tokens
  • 🧠 Inline color previews and hover info
  • ⚙️ Works seamlessly with your pigmenta.config.js

Together, the Figma plugin and VS Code extension close the loop between design and development, keeping your themes in perfect sync 🎯


🧑‍💻 Contributing

Contributions are always welcome! Please read the contributing guide before submitting PRs.


🧠 Authors

  • Mostafa Kheibary (@taker)
  • Community contributors 💛

📜 License

Licensed under the MIT License.


Built with love and a bit of pigment 🎨