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

@combric/tokens

v1.5.1

Published

Typed design tokens and CSS custom properties for Combric

Readme

@combric/tokens

@combric/tokens is the framework-independent design-token foundation for Combric. Its typed definitions are the canonical source for both programmatic consumers and the generated CSS contract.

Install the release package with npm install @combric/tokens. It supports modern ESM tooling and browsers; Node.js 24 or newer is required for repository build tooling. The public entry points are @combric/tokens for JavaScript and TypeScript and @combric/tokens/css for CSS.

The default design language is metriq: restrained and editorial, with structured geometry for surfaces and functional geometry for controls. Buttons and Cards default to 0.25rem; a component-specific semantic radius contract also keeps controls, overlays, circles, and pills distinct. The legacy semantic radius alias still resolves to 0 for compatibility.

CSS

Import the public stylesheet without Tailwind or another framework:

@import "@combric/tokens/css";

.article-panel {
  color: var(--combric-color-text);
  background: var(--combric-color-surface);
  border: var(--combric-border-width) var(--combric-border-style)
    var(--combric-color-border);
  border-radius: var(--combric-radius-card);
  padding: var(--combric-space-4);
}

/* Consumer overrides use public semantic properties; no internal selectors. */
:root {
  --combric-radius-button: 0;
  --combric-radius-card: 0;
  --combric-color-primary: #183a55;
}

[data-theme="dark"] {
  --combric-color-accent: #ff9c62;
}

Light is the default mapping. Set data-theme="dark" on an application ancestor to select the provided dark semantic palette. Consumers choose theme selection and persistence; the Framework supplies tokens, not a theme provider.

All public custom properties use the --combric-* namespace. Primitive values are emitted as --combric-primitive-*; semantic properties reference those primitives so their relationship remains explicit in CSS.

ESM and TypeScript

The package exposes immutable primitive values, semantic references, resolved semantic values, CSS custom-property names, and the metriq contract:

import {
  metriq,
  darkSemanticTokens,
  lightSemanticTokens,
  semanticCssVariableNames,
  semanticTokens,
} from "@combric/tokens";

semanticTokens["color.canvas"];
lightSemanticTokens["color.canvas"];
darkSemanticTokens["color.canvas"];
semanticCssVariableNames["color.canvas"];
metriq.semantic.radius;
metriq.themes.dark.semantic["color.canvas"];

Primitive tokens contain raw reusable values, including the approved Warm Canvas, Graphite, surface, accent, primary, and radius scale. Semantic tokens name stable UI roles and map to primitives for both themes. The CSS file is generated from these typed definitions during the repository build; it is not maintained as a second source of truth.

The package has no React or Tailwind dependency. The optional @combric/tailwind adapter consumes this contract rather than redefining it.

The contract includes the deliberately small size.layout.item.sm, .md, and .lg semantic contract. These values provide safe intrinsic Grid minimums for framework-independent CSS, React, and Tailwind consumers without introducing a breakpoint scale or arbitrary layout-value API.

The color.invalid, color.invalid.foreground, and color.invalid.hover semantic tokens form the shared invalid-state contract. Combric styles invalid state but does not implement validation logic.

The minimum overlay-specific contract is color.backdrop plus z.index.overlay, z.index.modal, and z.index.toast. These roles keep backdrops and layer ordering canonical instead of scattering arbitrary colors or z-index values through component CSS. The order is modal, anchored overlay, then toast, so a menu, popover, or tooltip opened from modal content remains visible while notifications stay highest. The contract does not define shadows, elevation effects, or a generalized layering engine.

The motion contract includes motion.duration.fast and motion.duration.slow. They provide the two canonical durations used by the Spinner and Skeleton CSS animations. They do not introduce an animation framework; consumers that prefer reduced motion receive static component styling through the React stylesheet's media query.

Project and license

Source and full documentation: Combric/combric. Licensed under the MIT License.