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

@zuiio/branding

v0.1.0

Published

OKLch design tokens, pre-built shadcn themes, and a CSS generator for multi-tenant branding.

Readme

@zuiio/branding — Design Tokens & Theme Engine

OKLch design tokens, pre-built shadcn themes, and a CSS generator for multi-tenant branding.

CSS Import

The package ships a globals.css with the Electric Indigo brand palette, shadcn semantic tokens, dark mode, typography, motion, and shadow scales. Import it in your app's root layout or global CSS:

@import "@zuiio/branding/globals.css";

Tailwind v4 is required — the file uses @theme inline for token registration and @custom-variant dark for class-based dark mode.

Token Overview

Brand Colors

| Token | Value | Use | |---|---|---| | --brand-indigo | oklch(0.52 0.22 265) | Primary brand | | --brand-indigo-light | oklch(0.62 0.16 265) | Hover / emphasis | | --brand-indigo-dim | oklch(0.38 0.18 265) | Dark accents | | --brand-teal | oklch(0.65 0.15 175) | Accent / success | | --brand-teal-light | oklch(0.78 0.12 175) | Light accent |

Semantic (shadcn)

background, foreground, card, popover, primary, secondary, muted, accent, destructive, border, input, ring — each with a -foreground counterpart. All values are OKLch with a subtle violet hue offset.

Charts

Five chart colors: --color-chart-1 through --color-chart-5.

Radius

--radius base (8px) with sm (4px), md (8px), lg (12px), xl (16px), full (9999px).

Typography

| Token | Font | |---|---| | --font-sans | SF Pro Display → Inter → system-ui | | --font-mono | JetBrains Mono → ui-monospace | | --font-display | SF Pro Display → Inter → system-ui |

Motion

| Token | Value | |---|---| | --ease-spring | cubic-bezier(0.34, 1.56, 0.64, 1) | | --ease-out | cubic-bezier(0.23, 1, 0.32, 1) | | --ease-move | cubic-bezier(0.25, 1, 0.5, 1) | | --ease-in-out | cubic-bezier(0.77, 0, 0.175, 1) | | --duration-instant | 80ms | | --duration-fast | 120ms | | --duration-base | 200ms | | --duration-slow | 280ms | | --duration-slower | 350ms |

Shadows

--shadow-xs through --shadow-xl, plus --shadow-brand and --shadow-card-hover.

Pre-built Themes

Six themes ship in BRAND_THEMES — each provides full light + dark mode variable sets:

| Theme | name | Label | |---|---|---| | Neutral | neutral | Стандарт | | Blue | blue | Цэнхэр | | Green | green | Ногоон | | Purple | purple | Ягаан | | Orange | orange | Улбар шар | | Rose | rose | Ягаан өнгө | | Goku Gym | goku-gym | Goku Gym |

TypeScript API

import {
  type BrandTheme,
  type BrandConfig,
  type FontOption,
  BRAND_THEMES,
  DEFAULT_BRAND_CONFIG,
  FONT_OPTIONS,
  getTheme,
  getFont,
  generateBrandCSS,
  contrastForeground,
  isValidColorValue,
} from "@zuiio/branding";

| Export | Description | |---|---| | BRAND_THEMES | Array of BrandTheme objects (light + dark variable maps) | | DEFAULT_BRAND_CONFIG | { theme: "neutral", radius: 0.625, logo_url: null } | | FONT_OPTIONS | 10 Google Fonts (Inter, Onest, Manrope, Nunito, Montserrat, Noto Sans, Open Sans, Roboto, Plus Jakarta Sans, DM Sans) | | getTheme(name) | Look up a theme by name | | getFont(name) | Look up a font by name | | generateBrandCSS(config) | Generate a full CSS string from a BrandConfig — theme colors, radius, custom colors, fonts | | contrastForeground(color) | Returns a high-contrast foreground color for a given OKLch or hex background | | isValidColorValue(value) | Validates a CSS color string (hex, OKLch, HSL, named, etc.) |

BrandConfig

type BrandConfig = {
  theme: string;           // theme name (e.g. "neutral")
  radius: number;          // base radius in rem (e.g. 0.625)
  logo_url: string | null;
  custom_colors?: {
    primary?: string;
    secondary?: string;
    accent?: string;
  };
  font_body?: string;      // font name from FONT_OPTIONS
  font_heading?: string;   // font name from FONT_OPTIONS
};

generateBrandCSS

import { generateBrandCSS } from "@zuiio/branding";

const css = generateBrandCSS({
  theme: "blue",
  radius: 0.5,
  custom_colors: { primary: "#2563eb" },
  font_body: "inter",
  font_heading: "montserrat",
});
// → ":root { --background: ...; --radius: 0.5rem; ... } .dark { ... }"