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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@nyuchi/ui

v1.0.2

Published

Nyuchi Brand System - Tailwind 4 design tokens and utilities for the Five African Minerals palette

Readme

@nyuchi/ui

Tailwind 4 design tokens and utilities for the Nyuchi Brand System using the Five African Minerals palette.

Source of Truth

This package imports from assets/v6/guidelines/brand-system-v6.json. All colors flow from the single JSON source using the Five African Minerals palette.

Installation

npm install @nyuchi/ui tailwindcss@^4.0.0

Usage

CSS Import (Tailwind 4)

@import "tailwindcss";
@import "@nyuchi/ui/css";

/* Your custom styles */

TypeScript/JavaScript

import { minerals, brands, getBrand, getBrandCSSVariables } from '@nyuchi/ui';

// Get mineral colors
const cobalt = minerals.cobalt;
// { light: '#0047AB', dark: '#00B0FF', containerLight: '#E3F2FD', ... }

// Get brand configuration
const mukoko = getBrand('mukoko');
// { name: 'Mukoko Platform', primary: { light: '#4B0082', dark: '#B388FF' }, ... }

// Get CSS variables for a brand
const vars = getBrandCSSVariables('nyuchi', 'dark');
// { '--primary': '#FFD740', '--secondary': '#64FFDA', '--bg': '#0A0A0A', ... }

Tailwind Theme Values

import { tailwindTheme } from '@nyuchi/ui/preset';

// Use in your tailwind config if needed
export default {
  theme: {
    extend: tailwindTheme
  }
};

Available Exports

Design Tokens

  • minerals - Five African Minerals with light/dark values
  • backgrounds - Surface colors for light/dark modes
  • textColors - Text colors for light/dark modes
  • semanticColors - Success, error, warning, info colors
  • flagColors - Zimbabwe flag colors
  • spacing - Spacing scale
  • borderRadius - Border radius values
  • shadows - Shadow definitions
  • fontFamily - Font family definitions
  • fontSize - Font size scale

Brand Configuration

  • brands - All 7 brand configurations
  • getBrand(key) - Get a specific brand
  • getBrandCSSVariables(key, mode) - Get CSS variables for a brand

CSS Classes

The CSS import includes:

Buttons:

  • .btn, .btn-primary, .btn-secondary, .btn-outline

Cards:

  • .card, .card-interactive

Minerals Strip:

  • .minerals-strip - Vertical gradient strip (4px left edge)

Inputs:

  • .input

Badges:

  • .badge, .badge-cobalt, .badge-tanzanite, .badge-malachite, .badge-gold, .badge-terracotta

Typography:

  • .font-display, .font-heading, .font-body, .font-mono
  • .text-display, .text-h1, .text-h2, .text-h3, .text-h4
  • .text-body-lg, .text-body, .text-body-sm, .text-caption

Five African Minerals

| Mineral | Light | Dark | Use Case | |---------|-------|------|----------| | Cobalt | #0047AB | #00B0FF | Education, CTAs | | Tanzanite | #4B0082 | #B388FF | Mukoko, Premium | | Malachite | #004D40 | #64FFDA | Travel, Success | | Gold | #5D4037 | #FFD740 | Nyuchi, Rewards | | Terracotta | #8B4513 | #D4A574 | Community, Ubuntu |

All colors achieve WCAG AAA (7:1+) contrast in both light and dark modes.

Design Tokens

Typography

  • Display/H1: Noto Serif (400, 700)
  • H2-H6: Plus Jakarta Sans (600, 700, 800)
  • Body: Plus Jakarta Sans (300, 400, 500, 600)
  • Code: JetBrains Mono (400, 500)

Border Radius

  • Button: 12px (warm, modern feel)
  • Card: 16px (generous)
  • Input: 8px
  • Badge: 9999px (pill-shaped)

Surface Colors

Light Mode (all brands):

  • Base: #FAF9F5 (Warm Cream)
  • Surface: #FFFFFF

Dark Mode:

  • Base: #0A0A0A (Charcoal)
  • Surface: #141414
  • Education variant: #0F172A (Slate 900)

Critical Rules

  1. Button Radius = 12px: Always (not 8px)
  2. Card Radius = 16px: Generous, modern
  3. Minerals Strip: 4px VERTICAL stripe on LEFT edge
  4. Travel Brand: NO purple/tanzanite (nature-forward)
  5. Education Brand: Use slate dark theme variant
  6. Wordmarks: Always lowercase

Related

License

MIT - Nyuchi Tech