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

@synap-core/design-tokens

v0.1.0

Published

Synap design tokens (colors, space, radius, typography, zIndex) generated from @synap-core/ui-system. Exports JSON, CSS custom properties, and typed TS for non-Tamagui consumers.

Readme

@synap-core/design-tokens

Synap design tokens (colors, space, radius, typography, zIndex) in three formats — JSON, CSS custom properties, and typed TypeScript — generated from @synap-core/ui-system (the Tamagui config). Single source of truth, no manual sync.

Use this package when you need Synap's palette in a consumer that does not use Tamagui: synap-landing (Next.js + CSS/Tailwind), synap-control-plane-dashboard (Vite/React), docs sites, and future tooling.

Install

pnpm add @synap-core/design-tokens

Three import styles

1. CSS custom properties (landing, dashboard, plain CSS)

@import "@synap-core/design-tokens/css";

.hero {
  background: var(--synap-color-background);
  color: var(--synap-color-color);
  padding: var(--synap-space-8);
  border-radius: var(--synap-radius-3);
  font-family: var(--synap-font-heading);
}

Theme switching: the CSS file defines light-mode vars on :root and dark-mode overrides on [data-theme="dark"]. Set data-theme="dark" on <html> to flip.

2. JSON (build tools, Tailwind config, design tools)

import tokens from "@synap-core/design-tokens/json";

// tailwind.config.js
module.exports = {
  theme: {
    colors: {
      primary: tokens.color.light.primary,
      background: tokens.color.light.background,
      ai: tokens.color.ai.base,
    },
    spacing: tokens.space,
    borderRadius: tokens.radius,
  },
};

3. Typed TypeScript (any TS/JS consumer)

import {
  lightColors,
  darkColors,
  space,
  radius,
  aiColors,
  fontFamily,
} from "@synap-core/design-tokens";
import type {
  SynapSpaceToken,
  SynapRadiusToken,
} from "@synap-core/design-tokens";

const padding: SynapSpaceToken = "4";
const buttonBg = lightColors.primary;
const aiGlow = aiColors.base;

Token categories

| Category | Source (ui-system) | Example tokens | | --------------- | --------------------------------- | ---------------------------------------------- | | color.light | themes.ts extra.light | primary, background, borderColor, ... | | color.dark | themes.ts extra.dark | primary, background, borderColor, ... | | color.ai | derived (emerald, constant) | base, light, hover, gradient* | | color.palette | tamagui.config.ts synapColors | amber400, cyan400, emerald500, ... | | space | tamagui.config.ts space | 1 (6px) → 24 (144px) | | size | tamagui.config.ts size | 1 (4px) → 20 (80px) | | radius | tamagui.config.ts radius | 1 (6px), 2 (8px), 3 (12px), round | | zIndex | tamagui.config.ts zIndex | 0 → 100 | | font.family | tamagui.config.ts createFont | heading (Fraunces), body (DM Sans), mono | | font.size | tamagui.config.ts createFont | body + heading maps (13 → 72) |

Naming convention (CSS)

--synap-<category>-<token> (kebab-cased when needed):

  • --synap-color-primary
  • --synap-color-background-hover
  • --synap-color-ai-base
  • --synap-space-4
  • --synap-radius-round
  • --synap-font-body
  • --synap-z-100

Updating tokens

Tokens are generated at build time from @synap-core/ui-system source files (src/tamagui.config.ts + src/themes.ts). To change a token:

  1. Edit the value in @synap-core/ui-system.
  2. Re-run pnpm --filter @synap-core/design-tokens build.
  3. The build script regenerates src/generated/tokens.ts, dist/tokens.json, dist/tokens.css.

Do not hand-edit files under src/generated/ or dist/ — they will be overwritten.

Build output

dist/
├── tokens.json   # full token tree (sorted, deterministic)
├── tokens.css    # CSS custom properties (:root + [data-theme="dark"])
└── tokens.ts     # typed TS re-export (copy of src/generated/tokens.ts)

dist/ is gitignored across the monorepo. Run pnpm --filter @synap-core/design-tokens build after install (or add it to your CI before publish). src/generated/tokens.ts is committed so workspace TypeScript consumers work without a build step.

Related packages

  • @synap-core/ui-system — the single source of truth. Tamagui consumers should import from here directly.
  • @synap-core/icons — icon set matched to this design system.