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

@nuvia/tokens

v1.5.0

Published

Design tokens and CSS variables for the Nuvia Design System. This package provides the foundational styling layer for Tailwind CSS v4.

Readme

@nuvia/tokens

Design tokens and CSS variables for the Nuvia Design System. This package provides the foundational styling layer for Tailwind CSS v4.

Installation

pnpm add @nuvia/tokens

Usage

Full Design System (Recommended)

If you're using @nuvia/components, you don't need to install this package separately—it's included automatically:

@import "tailwindcss";
@import "@nuvia/components/styles/globals.css";

Tokens Only (Without Components)

For apps that only need design tokens without React components:

/* globals.css */
@import "tailwindcss";
@import "@nuvia/tokens/styles/globals.css";

@config "./tailwind.config.ts";

Framework Setup

Vite

pnpm add -D @tailwindcss/vite
// vite.config.ts
import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "vite";

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

Next.js / PostCSS

pnpm add -D @tailwindcss/postcss
// postcss.config.mjs
const config = {
  plugins: {
    "@tailwindcss/postcss": {},
  },
};
export default config;

What's Included

Tailwind v4 Theme Registration

The CSS file includes @theme inline which registers all design tokens as Tailwind utilities:

@theme inline {
  --color-background: hsl(var(--background));
  --color-primary: hsl(var(--primary));
  --color-muted: hsl(var(--muted));
  /* ... all semantic colors */
}

This enables classes like bg-muted, text-primary, border-accent to work automatically.

CSS Variables

All design tokens are available as CSS variables in both light and dark themes:

:root {
  --background: 0 0% 100%;
  --foreground: 240 10% 4%;
  --primary: 228 45% 55%;
  /* ... */
}

.dark {
  --background: 240 10% 4%;
  --foreground: 0 0% 98%;
  /* ... */
}

Dark Mode Support

Includes the Tailwind v4 dark mode variant:

@custom-variant dark (&:is(.dark *));

Utility Classes

Pre-built utility classes:

  • .flex-center, .flex-center-col, .flex-center-row
  • Typography tokens: .token-font-heading-1 through .token-font-minimum
  • Gradients: .nuvia-gradient-1, .nuvia-gradient-2, .marketing-gradient
  • Fade gradients: .fade-in-gradient-to-t/b/r/l

JavaScript Tokens

Access color values programmatically:

import { colors } from "@nuvia/tokens";

console.log(colors.zafiro[500]); // "228 45% 55%"
console.log(colors.lumen[400]);  // "153 100% 45%"

Color Palette

Brand Colors

| Name | Description | Shades | |------|-------------|--------| | Zafiro | Primary brand blue | 100-800 | | Madrugada | Secondary purple-blue | 100-800 | | Nimbus | Neutral accent | 200-600 | | Indigo | Accent blue | 100-800 | | Lumen | Success/positive green | 100-800 | | Lilas | Purple accent | 100-800 | | Magenta | Marketing pink | 100-800 | | Magma | Warning orange | 100-800 |

Support Colors

| Name | Description | Shades | |------|-------------|--------| | Light | Neutral light tones | 100-700 | | Dark | Neutral dark tones | 100-700 | | Error | Destructive red | 100-700 |

Theming

Toggle themes by adding/removing the dark class on <html>:

// Enable dark mode
document.documentElement.classList.add("dark");

// Enable light mode  
document.documentElement.classList.remove("dark");

// Toggle
document.documentElement.classList.toggle("dark");

Using with @nuvia/tailwind-config

For the complete Tailwind configuration including plugins and extended theme:

pnpm add @nuvia/tailwind-config

See @nuvia/tailwind-config README for setup.