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

@fuaran-ui/theme-manifest

v0.5.0

Published

Machine-readable theme contract for Fuaran UI — a DTCG-compatible token model extended with semantic role bindings (which token a Tone resolves to) and quantified invariants (per-role contrast floors, 60-30-10 colour-usage budgets, motion voice). The Type

Readme

@fuaran-ui/theme-manifest

The machine-readable theme contract for Fuaran UI — the TypeScript twin of the F# Fuaran.UI.ThemeManifest tier.

A design-token system says what the values are. It does not say what must remain true of the rendered result. This package is a DTCG-compatible token model (a vanilla DTCG file decodes cleanly) extended with the two things DTCG lacks:

  1. Semantic role bindings — a mapping from a role a node plays (Tone.Brand, "body-text") to the token that realises it, so "what colour did the AI's Tone.Brand actually become?" is answerable against a declared contract.
  2. Quantified invariants — properties that must hold of the rendered result: per-role contrast floors (stricter than WCAG AA), colour usage budgets (the 60-30-10 heuristic as targetPct ± tolerancePct), and a motion voice ceiling. Each is soft-weighted.

It is the contract @fuaran-ui/style-observer verifies resolved computed styles against — deterministically, with no vision model.

Install

npm install @fuaran-ui/theme-manifest

@fuaran-ui/schema is a peer dependency (for ToneVariant). No other runtime dependency.

Usage

import { decodeManifest, resolveRole } from '@fuaran-ui/theme-manifest';

const result = decodeManifest(tokensJson); // DTCG file or { meta, tokens, roles, invariants }
if (result.ok) {
  const brandToken = resolveRole('Brand', result.value); // → ManifestToken | undefined
}

Projecting an existing token surface

Lower the adoption floor — project your app's existing tokens into a baseline manifest, then enrich with invariants:

import {
  projectFromFuaranToneVars,
  projectFromCssCustomProperties,
  projectFromDtcg,
  merge,
} from '@fuaran-ui/theme-manifest';

const fromTones = projectFromFuaranToneVars(referenceCss); // roles inferred (the contract is semantic)
const fromVars = projectFromCssCustomProperties(appCss); // roles left unbound
const combined = merge(fromVars, fromTones); // last-write-wins, CSS-cascade order

Stability

The contract shapes (ThemeManifest, ManifestToken, ManifestRole, Invariant) and the decode behaviour are declared stable in STABILITY.md. The invariant vocabulary is additive-only (a new InvariantKind is a minor bump; redefining one is breaking). Manifest JSON encode + the F# ThemeBridge (typed-Theme projector) are not yet ported (follow-up).

Apache-2.0.