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

@fossil-design/tokens

v0.6.2

Published

Design tokens for Fossil Design: DTCG source files and the Style Dictionary build that turns them into CSS, JSON and TypeScript.

Readme

@fossil-design/tokens

Design tokens for Fossil Design, an open-source agentic design system: CSS custom properties for light and dark mode, metadata for tools and agents, and typed keys for component props.

Early release. Versions 0.x may rename tokens between minor versions while the taxonomy settles. Renames keep a deprecated alias first, and the release notes list each one.

Install

npm install @fossil-design/tokens

Use the custom properties

Import the stylesheet once, then style with the semantic tokens:

import '@fossil-design/tokens/tokens.css';
.card {
  padding: var(--fossil-space-m);
  border-radius: var(--fossil-radius-surface);
  background: var(--fossil-color-background-surface);
  color: var(--fossil-color-text-default);
}
  • Semantic tokens only. Primitive tokens such as --fossil-base-color-gray-600 hold the raw values that semantic tokens alias. Style with the semantic ones, so a change to a primitive restyles everything built on it.

  • Dark mode is built in. It follows the system's setting. Set data-theme="light" or data-theme="dark" on <html> to choose one.

  • A text style is five properties. Set all five; the font shorthand drops letter-spacing.

    .title {
      font-family: var(--fossil-text-heading-s-font-family);
      font-size: var(--fossil-text-heading-s-font-size);
      font-weight: var(--fossil-text-heading-s-font-weight);
      letter-spacing: var(--fossil-text-heading-s-letter-spacing);
      line-height: var(--fossil-text-heading-s-line-height);
    }
  • No fonts are included. The font tokens name Space Grotesk, Space Mono and Figtree, which are on Google Fonts. Load them in your app, or point --fossil-font-family-heading, -body and -mono at your own faces.

Use the tokens in TypeScript

import { mediaQueries, tokenKeys, type TokenKey } from '@fossil-design/tokens';

type Gap = TokenKey<'space'>; // '2xs' | 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl' | '3xl'

const isTablet = window.matchMedia(mediaQueries.tablet).matches;

Custom properties can't be used in media queries, so the breakpoints are also exported as values and media query strings.

The JSON files come typed: import tokens from '@fossil-design/tokens/tokens.json' with { type: 'json' } is a TokensFile.

What's inside

| Import | Contents | | ----------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | | @fossil-design/tokens/tokens.css | Every token as a custom property, with dark values | | @fossil-design/tokens/tokens.json | Each token's custom property, resolved value, alias, dark value, description and deprecation, keyed by path | | @fossil-design/tokens/lint.json | The primitive and deprecated custom properties, for @fossil-design/stylelint-config | | @fossil-design/tokens | tokenKeys, breakpoints and mediaQueries, and the types TokenKey, TokenGroup, Breakpoint, TokensFile and LintLists |

The token source is DTCG 2025.10 JSON in the repository, built with Style Dictionary.

License

MIT © 2026 Ibrahim Moazzam. See LICENSE.