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

@swiss-ui/tokens

v1.0.0

Published

Design tokens in Swiss Design style (International Typographic Style)

Readme

@swiss-ui/tokens

Design tokens for the Swiss UI system, built on the principles of Swiss Design (International Typographic Style) — functional, minimal, grid-first.

Tokens are available as CSS custom properties, SCSS variables, and JavaScript/TypeScript exports. Both light and dark themes are included.

Installation

npm install @swiss-ui/tokens

Usage

CSS

@import "@swiss-ui/tokens/css";

.button {
  color: var(--color-text-primary);
  background: var(--color-background-primary);
  font-family: var(--font-family-sans);
  font-size: var(--font-size-sm);
  padding: var(--spacing-2) var(--spacing-4);
  border: var(--border-width-thin) solid var(--color-border-default);
  border-radius: var(--border-radius-sm);
  transition: all var(--motion-duration-fast) var(--motion-easing-standard);
}

SCSS

@import "@swiss-ui/tokens/scss";

.button {
  color: $color-text-primary;
  background: $color-background-primary;
  padding: $spacing-2 $spacing-4;
}

JavaScript / TypeScript

import { tokens, themeTokens, type Tokens } from '@swiss-ui/tokens';

// Light theme (default)
const color = tokens.color.text.primary;
const gap = tokens.spacing[4];

// Both themes
const light = themeTokens.light;
const dark = themeTokens.dark;

Dark theme

The CSS output uses the [data-theme="dark"] attribute selector. To activate the dark theme, set the attribute on the root element:

<html data-theme="dark">

For SCSS and JS, use the separate dark token exports included in the package.

Token categories

| Category | Description | Example CSS variable | |---|---|---| | Color | Primitives (gray scale, Swiss red) and semantic aliases | --color-text-primary | | Spacing | 4px-based scale from 0 to 128px | --spacing-416px | | Typography | Font family, weight, size, line height | --font-size-base16px | | Border | Radius and width | --border-width-thin1px | | Shadow | Subtle and medium elevation | --shadow-subtle | | Motion | Duration (150ms / 250ms) and easing | --motion-duration-fast | | Z-index | Layering scale: base / overlay / modal / tooltip | --z-index-modal1000 | | Breakpoint | Responsive breakpoints (sm / md / lg / xl) | --breakpoint-md768px |

Color palette

Grayscale  gray-100 (#F5F5F5) → gray-900 (#212121)
Accent     color-red-swiss (#E63329)  — classic Swiss red

Spacing scale

| Token | Value | |---|---| | spacing-0 | 0px | | spacing-1 | 4px | | spacing-2 | 8px | | spacing-3 | 12px | | spacing-4 | 16px | | spacing-5 | 24px | | spacing-6 | 32px | | spacing-8 | 48px | | spacing-10 | 64px | | spacing-12 | 96px | | spacing-16 | 128px |

Build

Tokens are defined in sd-tokens/ as JSON and compiled via Style Dictionary v4.

npm run build

Output lands in dist/ — ESM, CommonJS, CSS, SCSS, and TypeScript declarations.

License

GNU AGPL-3.0-only — AnmiTaliDev <[email protected]>