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

@syncropel/tokens

v0.1.0

Published

Canonical design tokens for the Syncropel platform — the source of truth for colors, typography, spacing, and motion across kernel-rendered sites, the Studio React renderer, and any future surface (TUI / MCP / mobile). EARTH MINERAL PALETTE: copper accent

Readme

@syncropel/tokens

Canonical design tokens for the Syncropel platform — the single source of truth for colors, typography, spacing, and motion across kernel-rendered sites, the Studio React renderer, and any future surface (TUI / MCP / mobile).

EARTH MINERAL PALETTE — copper accent, sandstone backgrounds, mineral status colors. Light + dark themes. No JavaScript runtime required for the CSS.

What this is

This package ships the canonical CSS custom-property tokens that every Syncropel rendering surface consumes. The kernel binary embeds the core.css subset at build time. The Studio React renderer (@syncropel/react) imports the full bundle. Operators publishing custom sites get the same brand expression as the platform's built-in surfaces.

Source of truth ratified in the Canonical Syncropel Design Tokens ADR (see syncropel-spec/15-decisions/).

Two layers

| Layer | Size | Contents | Consumers | |---|---|---|---| | core.css | ~10KB | Backgrounds, surfaces, borders, text hierarchy, accent (copper), status, code, typography (font stacks + sizes + weights + line heights + letter spacing), spacing scale (4px base), row heights, border radii, sidebar widths, content widths, shadows, transitions, opacity, scrollbar, base animations (pulse / spin / blink / fade-in). Full light + dark themes via :root and .dark / [data-theme="dark"] + prefers-color-scheme. | Kernel sites, any general consumer | | extended.css | ~25KB | Workspace-specific colors: act colors (one per F1 act type — intend/do/know/learn/get/put/call/map), thread state colors (one per task lifecycle state), evidence tier colors. Light + dark variants. | Studio React renderer; site authors who want act/state-toned content |

Installation

npm install @syncropel/tokens

Usage

Plain HTML / no bundler

<link rel="stylesheet" href="https://unpkg.com/@syncropel/tokens/core.css">

<!-- or import the bundle (core + extended): -->
<link rel="stylesheet" href="https://unpkg.com/@syncropel/tokens/styles.css">

Bundler (Vite / Webpack / etc.)

// in your root index.ts or _app.tsx
import "@syncropel/tokens/core.css";

// optional: include extended (workspace) tokens
import "@syncropel/tokens/extended.css";

// or import the bundle:
import "@syncropel/tokens/styles.css";

Programmatic access (TypeScript)

import {
  CORE_COLOR_TOKENS,
  EXTENDED_ACT_TOKENS,
  tokenVar,
  type CoreToken,
} from "@syncropel/tokens";

// Iterate token names
for (const name of CORE_COLOR_TOKENS) {
  console.log(name); // e.g. "accent", "bg-primary", ...
}

// Get a CSS var() reference
const accent = tokenVar("accent");        // → "var(--accent)"
const intend = tokenVar("act-intend");    // → "var(--act-intend)"

// Type-safe token usage in CSS-in-JS:
const StyledButton = styled.button`
  background: ${tokenVar("accent")};
  color: var(--accent-text);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  font-size: var(--text-base);
`;

Theme switching

The CSS supports three modes:

  • Light mode (default): :root selector. No additional markup needed.
  • Forced dark mode: add class="dark" to <html> or <body>, or data-theme="dark".
  • System preference: dark theme auto-applies via @media (prefers-color-scheme: dark) if neither .light nor [data-theme="light"] is set.

To force light mode (overriding system preference): class="light" or data-theme="light".

<!-- Force light -->
<html class="light"> ... </html>

<!-- Force dark -->
<html class="dark"> ... </html>

<!-- Follow system preference (default) -->
<html> ... </html>

Operator overrides (white-label)

Operators can override a narrow allowlist of tokens via the tokens_override mechanism in core.site.v1. The allowlist is exposed via TOKEN_OVERRIDE_ALLOWLIST:

import { TOKEN_OVERRIDE_ALLOWLIST, isOverridableToken } from "@syncropel/tokens";

console.log(TOKEN_OVERRIDE_ALLOWLIST);
// → ["accent", "accent-hover", "accent-text", "accent-subtle",
//    "bg-primary", "bg-secondary", "surface-0", "surface-1",
//    "font-sans", "font-mono"]

isOverridableToken("accent");        // → true
isOverridableToken("text-primary");  // → false (intentional — protects contrast)

This is enforced kernel-side at ingest validation on core.site.v1 records.

What's intentionally missing

  • No utility classes — this is a token package, not a Tailwind alternative. Components live in @syncropel/react.
  • No JavaScript runtime — all theming is CSS-native via custom properties.
  • No font loading — the host app provides fonts via --font-geist-sans / --font-geist-mono overrides at :root, falling back to system fonts (zero-latency).
  • No display/hero sizes — typography scale tops at 20px. Syncropel is a data tool, not a marketing-page generator.

Related packages

  • @syncropel/projections — SRP grammar (declarative UI documents)
  • @syncropel/react — React renderer for SRP documents; consumes these tokens
  • @syncropel/config — JSON Schema for record body kinds (including core.site.v1)
  • @syncropel/renderer — Workspace hosting integration layer

Versioning

Tokens follow semver:

  • PATCH (0.1.x): bug fixes, color refinements, no breaking changes
  • MINOR (0.x.0): additive — new tokens, new themes
  • MAJOR (x.0.0): removed or renamed tokens (rare; coordinated with a deprecation cycle)

@syncropel/react pins a compatible @syncropel/tokens minor range; the kernel build embeds whichever version is in the source tree.

License

Apache-2.0 © Syncropic, Inc.