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

@meetpaul/tokens

v1.3.1

Published

Design tokens for the paul design system — CSS custom properties, Tailwind v4 preset, and typed JS token object.

Readme

@meetpaul/tokens

"Never build this button again." — A sticky note on a monitor in Graz, Austria

Design tokens for the paul design system — framework-agnostic, works with React, Vue, Angular, Svelte, Laravel, or plain HTML.

paul started with a simple frustration: every project rebuilt the same colors, the same spacing, the same dark mode — slightly differently, with slightly different contrast, slightly different accessibility. So we extracted the decisions into tokens. One set of values, validated once, applied everywhere.

As of v1.0.1, all tokens are validated against APCA (WCAG 3.0 draft) — the most accurate perceptual contrast model available. Not because a checkbox said so, but because the people using your product deserve text they can actually read.


Install

npm install @meetpaul/tokens

Usage

1. CSS (any framework)

@import "@meetpaul/tokens/tokens.css";

All tokens are CSS custom properties using the HSL channel convention — compose arbitrary alpha values:

.my-button {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: 1px solid hsl(var(--border) / 0.5);
}

Dark mode is handled via the .dark class on any ancestor element.

2. Tailwind v4

/* globals.css */
@import "@meetpaul/tokens/tokens.css";
@import "tailwindcss";

@theme inline {
  --color-background:  hsl(var(--background));
  --color-foreground:  hsl(var(--foreground));
  --color-primary:     hsl(var(--primary));
  /* ... all tokens already mapped in @meetpaul/ui */
}

3. Tailwind v3 preset (JS config)

// tailwind.config.js
import { tailwindPreset } from '@meetpaul/tokens/preset'

export default {
  presets: [tailwindPreset],
  content: ['./src/**/*.{html,js,vue,tsx}'],
}

4. JS token object (runtime / Style Dictionary / Figma)

import { tokens, light, dark } from '@meetpaul/tokens'

console.log(light.primary)          // '240 5.9% 10%'
console.log(`hsl(${dark.primary})`) // 'hsl(0 0% 98%)'

function applyTheme(mode: 'light' | 'dark') {
  const t = tokens[mode]
  document.documentElement.style.setProperty('--primary', t.primary)
}

Token reference

All foreground tokens include inline /* Lc XX.X on --background */ comments documenting their APCA contrast values directly in the CSS.

European Localization & RTL Support (v1.2.0)

As of v1.2.0, all layout-related design tokens and components have been migrated to CSS Logical Properties to support Right-to-Left (RTL) layouts natively.

  • Spacing & Insets: Switched from physical (left, right) to logical (start, end) properties.
  • Borders: Logical border properties (border-inline-start, border-inline-end) ensure correct visual direction in both LTR and RTL modes.
  • Typography: Text alignment tokens use text-start and text-end for automatic alignment based on document direction.

| Token | Light | Dark | |---|---|---| | --background | 0 0% 100% | 240 10% 3.9% | | --foreground | 240 10% 3.9% | 0 0% 98% | | --primary | 240 5.9% 10% | 0 0% 98% | | --secondary | 240 4.8% 95.9% | 240 3.7% 15.9% | | --muted | 240 4.8% 95.9% | 240 3.7% 15.9% | | --muted-foreground | 240 5% 33% | 240 5% 82.7% | | --accent | 240 4.8% 95.9% | 240 3.7% 15.9% | | --destructive | 0 84.2% 50% | 0 62.8% 30.6% | | --destructive-text | 0 72% 39% | 0 90% 78.5% | | --border | 240 5.9% 90% | 240 3.7% 15.9% | | --ring | 240 5.9% 10% | 240 4.9% 83.9% | | --radius | 0.5rem | 0.5rem |


♿ APCA Compliance

paul is The new European Standard for Inclusive Digital Products — built to fully comply with EN 301 549 v3.2.1, the technical standard underpinning the European Accessibility Act (EAA), enforceable since June 28, 2025.

WCAG 2.x contrast ratios were a good start. APCA is what comes next — a perceptual model based on modern vision science that accounts for spatial frequency, polarity, and how the human visual system actually processes contrast.

paul was one of the first design systems to adopt APCA in production. Every token pair is validated automatically in CI.

| Threshold | Use case | Equivalent | |-----------|----------|------------| | Lc 75 | Body text | ≈ WCAG 2.x AAA (7:1) | | Lc 60 | Large text & UI components | ≈ WCAG 2.x AA (4.5:1) |

34/34 token pairs passing — 100% compliant

# Validate all tokens against APCA thresholds
pnpm run validate:apca

# Generate a JSON report
pnpm run validate:apca:json

WCAG 3.0 is a working draft. paul maintains backward compatibility with WCAG 2.2 Level AAA during the transition period.

Full details: APCA Migration Guide · Contrast Audit


License

MIT — built with care (and too much coffee) in Graz by @SirPauls