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

@sofya-ds/tokens

v2.1.0

Published

Official Sofya design tokens, theme presets and semantic color helpers.

Readme

@sofya-ds/tokens

Official theme tokens and presets for Sofya.

Install

pnpm add @sofya-ds/tokens

Usage

import {
  gradientToCss,
  sofyaColorPalette,
  sofyaSemanticColorHex,
  sofyaTypographyPresets,
  themePresets
} from "@sofya-ds/tokens";

const primary = sofyaSemanticColorHex.primary;
const gradient = gradientToCss(sofyaColorPalette.gradients.brand);
const preset = themePresets.sofya;
const body = sofyaTypographyPresets.body;

Canonical typography scale

sofyaTypographyPresets is the physical typography scale synchronized with the Sofya Figma library. New text styles must use one of these eight presets for font size and line height:

| Preset | Size / line height | Weight | | --- | --- | --- | | extra-tiny | 12px / 18px | 400 | | tiny | 14px / 18px | 400 | | body | 15px / 26px | 400 | | h5 | 18px / 23px | 500 | | h4 | 22px / 28px | 500 | | h3 | 28px / 34px | 600 | | h2 | 36px / 41px | 600 | | h1 | 48px / 53px | 700 |

Use sofyaTypographyPresetNames to build a selector and sofyaTextStylePresetMap to resolve a compatible semantic text style back to its canonical preset. Semantic roles remain available, but must not introduce font sizes or line heights outside this scale.

Use SofyaThemeOverrides for whitelabel contracts. Text-style overrides accept family, weight, and tracking only; fontSize and lineHeight are intentionally not part of the override type.

Includes

  • Official palette groups
  • Semantic color map
  • Eight canonical typography presets plus compatible semantic roles for product screens, sidebars, legal/prose content and encounter views
  • Semantic surface roles for app chrome, dialogs, document cards, panels and focused states
  • Shared spacing, rhythm, measure, control and layout scales
  • Theme presets
  • Gradient helpers