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

@apollion-dsi/tokens

v4.6.0

Published

Apollion Design System — Framework-agnostic design tokens

Readme

@apollion-dsi/tokens

Framework-agnostic design tokens for Apollion Design System v4+.

Status:GA desde 4.2.0 — v4 epic shipped 2026-05-25 (ADR-006). Atual 4.5.0, lockstep com @apollion-dsi/[email protected].

Versioned API

Single public entry: @apollion-dsi/tokens/runtime/v1.

Future major surface changes go to runtime/v2, runtime/v3, etc. — v1 is preserved indefinitely (Strangler Fig per ADR-006 §3.3).

import { TOKENS_RUNTIME_API_VERSION } from '@apollion-dsi/tokens/runtime/v1';

Scope

  • In: OKLch palette derivation (S2/S4), Dimension axis (S3), Foundation/Surface builders (S4), build-time CSS/JSON/TS variant emission (S5), Config-First loader (S6).
  • Out: Runtime React components (lives in @apollion-dsi/core), framework adapters (Vue/Flutter consumers consume dist/json/*.json directly).

JSON output (dist/json/*.json)

Tokens em JSON estruturado — values are structured objects, not shorthand strings:

  • color{ "colorSpace": "oklch", "components": [L, C, H], "hex": "#rrggbb" } — OKLch working space + sRGB hex fallback. alpha emitted only when below 1.
  • dimension{ "value": <number>, "unit": "rem" }.

dist/css/*.css and dist/ts/*.d.ts stay string-based (hex / rem) — JSON is the interop surface; CSS/TS are the resolved consumer surfaces.

Coupling to @apollion-dsi/core

Hard rule per ADR-006 §3.1:

  • core declares @apollion-dsi/tokens in optionalDependencies (NOT dependencies).
  • Consumer that does not opt into apollion.config.mjs#output.runtime: true never installs tokens.
  • Lockstep version enforced via .changeset/config.json#fixed array from 4.0.0 (PRD-002 §S7).

Slicing (ADR-006 §6)

| Slice | Status | Deliverable | | ------------------------------------ | ---------- | ------------------------------------------------- | | S1 — scaffold + versioned API | ✅ shipped | runtime/v1 namespace, esbuild ESM/CJS dual emit | | S2 — culori vendor + OKLch lerp | ✅ shipped | vendors/Culori in core; OKLch palette | | S3 — Dimension axis | ✅ shipped | compact/normal/spacious multipliers | | S4 — Foundation/Surface builders | ✅ shipped | Strangler Fig parity with core | | S5 — atomic+idempotent build CLI | ✅ shipped | apollion-tokens build + dist/manifest.json | | S6 — Config-First + sandboxed loader | ✅ shipped | apollion.config.mjs + zod schema | | S7 — release 4.0.0 | ✅ shipped | lockstep changesets with core |

Refs