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

@signozhq/design-tokens

v2.2.1

Published

Welcome to the `@signozhq/design-tokens` package! This package provides a set of design tokens that can be used across your projects to maintain consistency in design and styling.

Readme

@signozhq/design-tokens

Welcome to the @signozhq/design-tokens package! This package provides a set of design tokens that can be used across your projects to maintain consistency in design and styling.

Features

  • Design Tokens: Easily manage and use design tokens for colors, spacing, and typography.
  • TypeScript Support: Fully typed definitions for better development experience.
  • Tailwind Compatibility: Generate tokens compatible with Tailwind CSS.
  • Build Tools: Integrated with Vite for fast builds and development.

Installation

To install the package, use npm or yarn:

npm install @signozhq/design-tokens

or

yarn add @signozhq/design-tokens

Usage

You can import the design tokens in your project as follows:

1. Primitives

Direct access to raw values for colors, spacing, and typography.

import { Color, Spacing, Typography } from '@signozhq/design-tokens';
// Example usage
const backgroundColor = Color.BG_ROBIN_100;
const color = Color.BG_ROBIN_500;
const padding = Spacing.PADDING_4;
const fontSize = Typography.FONTSIZE_BASE;

Additionally, you can import the generated CSS files that contain all the variables:

2. Semantic Tokens

The preferred way to style components using theme-aware tokens.

import { Style } from '@signozhq/design-tokens';

// Returns the CSS variable string, e.g., "var(--background)"
const bg = Style.BACKGROUND;
const primary = Style.PRIMARY;

For Tailwind CSS (v3) configuration:

import { StyleTailwind } from '@signozhq/design-tokens';

// In your tailwind.config.js
module.exports = {
	theme: {
		extend: {
			colors: StyleTailwind,
		},
	},
};

3. Composite Typography Styles

Apply full typography sets (font-family, size, weight, line-height) as a single object.

import { TypographyStyles } from '@signozhq/design-tokens';

// Apply as an object in React
<p style={TypographyStyles.PARAGRAPH_MEDIUM_400}>Hello SigNoz</p>

CSS & Theming

Themes

Enable theme switching by importing the theme files and setting the data-theme attribute.

<!-- Switch themes via data-theme attribute on <html> or <body> -->
<html data-theme="signoz">
	...
</html>
<!-- default -->
<html data-theme="blue">
	...
</html>
/* Import themes */
@import '@signozhq/design-tokens/style.css';
@import '@signozhq/design-tokens/dist/themes/signoz-tokens.css';
@import '@signozhq/design-tokens/dist/themes/blue-tokens.css';

Available Tokens

Colors

  • Color.BG_ROBIN_100
  • Color.BG_SIENNA_200
  • Color.TEXT_CHERRY_500
  • ... (and many more)

Spacing

  • Spacing.PADDING_1
  • Spacing.MARGIN_4
  • ... (and many more)

Typography

  • Typography.FONTSIZE_SM
  • Typography.FONTWEIGHT_BOLD
  • ... (and many more)

Tailwind CSS v4

Native support for Tailwind v4 theme variables.

@import '@signozhq/design-tokens/dist/tailwind-theme.css';

Development

To regenerate tokens from JSON sources:

pnpm generate-tokens

Release Process

Releases are managed by Changesets and published automatically by the release GitHub Actions workflow.

1. Add a changeset to your PR

Any PR that affects published code must include a changeset. From the repo root:

pnpm changeset

Pick the bump type and write a short summary:

  • patch — bug fixes, internal token tweaks that don't change the public API
  • minor — new tokens or backwards-compatible additions
  • major — breaking changes (renamed/removed tokens, changed exports)

This creates a file under .changeset/ (e.g. .changeset/honest-needles-switch.md). Commit it alongside your code changes.

Tooling/CI/docs-only PRs that don't ship to consumers can skip the changeset.

2. Merge your PR to main

Once merged, the release workflow runs and opens (or updates) a PR titled "chore: release versions" which:

  • Bumps package.json to the next version
  • Updates CHANGELOG.md
  • Removes the consumed .changeset/*.md files

3. Merge the release PR to publish

Merging the release PR triggers the workflow again. With no pending changesets, it runs pnpm release which:

  • Builds the package (pnpm build)
  • Publishes to npm via changeset publish (using the NPM_TOKEN secret)
  • Pushes a git tag for the new version

You can also trigger the workflow manually from Actions → release → Run workflow.

Local commands

pnpm changeset          # add a changeset for the current change (commit the generated .md file)
pnpm release            # build + publish — DO NOT run manually; CI handles this

Avoid running pnpm update-version locally — it consumes pending changesets and rewrites package.json / CHANGELOG.md immediately, bypassing the release-PR review.

One-time repo setup

For the workflow to open the release PR, ensure the following in the repository:

  • Settings → Actions → General → Workflow permissions: enable "Allow GitHub Actions to create and approve pull requests".
  • Secrets: an NPM_TOKEN with publish access to @signozhq/design-tokens is configured under Settings → Secrets and variables → Actions.