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

@syncupsuite/foundations

v0.2.0

Published

Cultural design foundations — color expansion, semantic mapping, typography

Readme

@syncupsuite/foundations

Cultural design foundations — the data and engine layer of the @syncupsuite/themes pipeline.

This package provides:

  • Two pre-built cultural foundation datasets (Swiss International, Nihon Traditional)
  • The color expansion engine (seed color → 9-step lightness scale)
  • Harmony mode generation (Golden Ratio, Complementary, Triadic, Analogous)
  • Typography mapping (hue-based font stack selection)

Install

npm install @syncupsuite/foundations

Usage

Use a pre-built foundation dataset

import { nihonTraditionalData, swissInternationalData } from '@syncupsuite/foundations';
import { buildFoundation } from '@syncupsuite/foundations';

const result = buildFoundation(swissInternationalData);
// result.primitives — expanded color scales
// result.semanticLight — light mode semantic token map
// result.semanticDark — dark mode semantic token map
// result.crossDomain — typography, spacing, radius tokens

Build from a custom foundation

import { buildFoundation } from '@syncupsuite/foundations';
import type { FoundationData } from '@syncupsuite/foundations';

const myFoundation: FoundationData = {
  name: 'my-foundation',
  story: 'Rooted in...',
  philosophy: '...',
  era: '...',
  seedColors: [
    {
      name: 'primary',
      hex: '#3B5BDB',
      description: '...',
      provenance: { tradition: '...', source: '...' },
    },
  ],
  harmonyMode: 'golden-ratio',
};

const result = buildFoundation(myFoundation);

Color utilities

import {
  hexToHsl,
  hslToHex,
  generateLightnessScale,  // 9-step scale from a base hex
  generateNeutrals,         // Neutral palette from a seed color
  generateHarmonyAccents,   // Accent colors using harmony mode
  getHue,                   // Extract hue from hex
} from '@syncupsuite/foundations';

Typography mapping

import {
  getFontStacks,           // Get font stacks for a hue
  hueToTypographyCategory, // 'warm' | 'cool' | 'neutral'
  TYPE_SCALE,              // xs → 4xl size values
  WEIGHT_SCALE,            // normal / medium / semibold / bold
  LINE_HEIGHT_SCALE,       // tight / normal / relaxed
} from '@syncupsuite/foundations';

Foundation data

Two cultural foundations are included:

Swiss International (swissInternationalData)

  • Inspired by Swiss graphic design tradition (Neue Haas Grotesk, grid systems)
  • Cool primary palette, geometric sans-serif typography
  • Sharp radius defaults

Nihon Traditional (nihonTraditionalData)

  • Rooted in the 465 traditional colors of Japan's Edo period (Nihon no Dentou Iro)
  • Seed colors include Hanada (indigo), Beni (crimson), Yamabuki (golden yellow)
  • Warm-neutral palette, humanist typography

Color expansion

Each seed color expands into a 9-step lightness scale (50–900) using HSL manipulation:

Note: OKLCH migration is planned before themes 3-10 (ADR-001). OKLCH produces perceptually uniform lightness scales across hues where HSL does not. Custom foundations built on this version may require value recalculation after the migration.

Related packages

| Package | Description | |---------|-------------| | @syncupsuite/tokens | DTCG types, utilities, validation | | @syncupsuite/transformers | CSS and Tailwind v4 output | | @syncupsuite/themes | Pre-built theme packs ready to use |

License

MIT