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

huevy

v2.0.2

Published

Generate design tokens from Huevy App and import as CSS variables, Tailwind utility classes in your projects with ease.

Readme

🎨 Huevy CLI

Sync design system tokens from huevy.app directly into your development projects as CSS variables, Tailwind config, and utility classes.

npm version Current Version: 2.0.1


🚀 Quick Start

# Install
npm install huevy

# Setup and sync (interactive)
npx huevy

⚠️ Requirements

  • Huevy Pro account required for sync functionality
  • API key from your huevy.app dashboard
  • Free users cannot sync design tokens

📦 Features

  • Smart project integration - Auto-detects React, Vue, Angular, Next.js
  • CSS variables - Clean naming (--primary-500, --fs-button-small)
  • Tailwind config - Ready-to-use configuration
  • Version management - Seamless package updates
  • IDE support - Auto-completion for generated variables

Commands

npx huevy

Interactive setup - prompts for API key, selects design system, generates files

npx huevy sync

Re-sync design system and update generated files

npx huevy status

Show current configuration and version info

npx huevy uninstall

Remove all generated files and configuration


📁 Generated Files

  • huevy-variables.css - CSS custom properties
  • huevy.tailwind.js - Tailwind CSS configuration

🔄 Workflow

  1. Setup: Run npx huevy and enter your API key
  2. Select: Choose the design system you want to apply
  3. Integrate: Import generated files in your project
  4. Update: Run huevy sync when design tokens change on huevy.app

💡 Integration Steps

1. Import huevy.tailwind.js in your tailwind.config.js

// tailwind.config.js
const huevyConfig = require('./huevy.tailwind.js');
module.exports = {
  ...huevyConfig,
  content: ['./src/**/*.{js,jsx,ts,tsx}']
};

2. Import huevy-variables.css in your main index file

/* In your main CSS file (e.g., index.css, App.css) */
@import "./huevy-variables.css";

Usage Examples

.button {
  background-color: var(--primary-500);
  color: var(--primary-50);
  font-size: var(--fs-button-medium);
}

📏 Sizing and Spacing Classes

Huevy generates comprehensive sizing utilities based on your design system's sizing tokens. These follow a t-shirt sizing scale (5xs to 5xl and beyond).

Box Sizes

Use box size utilities for width and height with consistent sizing:

<!-- Combined width + height -->
<div class="sz-md"></div>        <!-- 40x40 -->
<div class="sz-lg"></div>        <!-- 48x48 -->
<div class="sz-2xl"></div>       <!-- 64x64 -->

<!-- Separate width and height -->
<div class="wd-4xl ht-md"></div> <!-- 120px wide, 40px tall -->
<div class="wd-xl ht-xs"></div>  <!-- 56px wide, 24px tall -->

CSS Variables:

/* Generated box size variables */
--sz-5xs: 4px;
--sz-4xs: 8px;
--sz-3xs: 12px;
--sz-2xs: 16px;
--sz-xs: 24px;
--sz-sm: 32px;
--sz-md: 40px;
--sz-lg: 48px;
--sz-xl: 56px;
--sz-2xl: 64px;
/* ...and more sizes based on your design system */

Tailwind Configuration:

/* In your Tailwind config, these are available as: */
w-md, w-lg, w-2xl    /* width utilities */
h-md, h-lg, h-2xl    /* height utilities */
size-md, size-lg, size-2xl  /* combined size utilities */

Gap and Spacing

Use gap utilities for consistent spacing between elements:

<!-- Grid gap -->
<div class="grid gap-md">        <!-- 16px gap -->
  <div>Item 1</div>
  <div>Item 2</div>
</div>

<!-- Flex gap -->
<div class="flex gap-lg">         <!-- 20px gap -->
  <button>Action 1</button>
  <button>Action 2</button>
</div>

CSS Variables:

/* Generated gap variables */
--gp-3xs: 4px;
--gp-2xs: 6px;
--gp-xs: 8px;
--gp-sm: 12px;
--gp-md: 16px;
--gp-lg: 20px;
--gp-xl: 24px;
/* ...and more spacing values */

Border Radius

Apply consistent border radius utilities:

<div class="rounded-sm"></div>   <!-- 6px radius -->
<div class="rounded-md"></div>   <!-- 8px radius -->
<div class="rounded-lg"></div>   <!-- 12px radius -->
<div class="rounded-round"></div> <!-- 9999px (perfect circle) -->

CSS Variables:

/* Generated border radius variables */
--rad-2xs: 2px;
--rad-xs: 4px;
--rad-sm: 6px;
--rad-md: 8px;
--rad-lg: 12px;
--rad-xl: 16px;
--rad-2xl: 24px;
--rad-round: 9999px;

Line Heights

Line height utilities use numeric naming for easy reference:

<!-- Using utility classes -->
<p class="lh-100">Single line height</p>     <!-- 1 -->
<p class="lh-120">1.2x line height</p>       <!-- 1.2 -->
<p class="lh-150">1.5x line height</p>       <!-- 1.5 -->

CSS Variables:

/* Generated line height variables */
--lh-100: 1;
--lh-115: 1.15;
--lh-120: 1.2;
--lh-130: 1.3;
--lh-140: 1.4;
--lh-150: 1.5;
--lh-160: 1.6;

Tailwind Configuration:

/* In your Tailwind config, these are available as: */
leading-100, leading-115, leading-120  /* line height utilities */

📞 Support


📄 License

This package is free to use with huevy.app services. Modification and redistribution are restricted. See LICENSE for details.