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

@steward-apps/tokens

v1.1.0

Published

Design tokens for the Steward design system

Downloads

334

Readme

@steward-apps/tokens

Design tokens for the Steward design system. Single source of truth for colors, typography, spacing, and more.

Installation

pnpm add @steward-apps/tokens

Usage

CSS Variables

Import the CSS file in your app's root stylesheet:

/* app.css or globals.css */
@import "@steward-apps/tokens/dist/tokens.css";

Then use the CSS variables:

.my-component {
  color: var(--st-fg);
  background: var(--st-surface);
  border: 1px solid var(--st-border);
  border-radius: var(--st-radius-md);
}

.primary-button {
  background: var(--st-primary);
  color: var(--st-primaryFg);
}

TypeScript

import { tokens, semanticTokens } from "@steward-apps/tokens";

// Access raw tokens
console.log(tokens.color.brand.blue); // "#2563EB"
console.log(tokens.typography.fontSize.body); // "16px"

// Access semantic tokens by theme
console.log(semanticTokens.light.primary); // "#2563EB"
console.log(semanticTokens.dark.primary); // "#3B82F6"

JSON

import tokens from "@steward-apps/tokens/json";

Token Categories

Colors

Brand Colors:

  • navy - Primary brand color (#1B2A41)
  • blue - Action/CTA color (#2563EB)
  • emerald - Success color (#16A34A)
  • amber - Warning color (#F59E0B)
  • red - Danger/error color (#DC2626)

Semantic Tokens:

  • --st-bg / --st-fg - Background and foreground
  • --st-surface / --st-surfaceMuted - Surface colors
  • --st-border - Border color
  • --st-primary / --st-primaryFg - Primary action
  • --st-success / --st-warning / --st-danger - Status colors
  • --st-link / --st-focusRing - Interactive states

Typography

/* Font families */
--st-font-sans: Inter, system-ui, ...;
--st-font-mono: ui-monospace, ...;

/* Font sizes */
--st-font-size-display: 36px;
--st-font-size-h1: 30px;
--st-font-size-h2: 24px;
--st-font-size-h3: 20px;
--st-font-size-body: 16px;
--st-font-size-small: 14px;
--st-font-size-caption: 12px;

Spacing

Based on 4px increments:

--st-spacing-1: 4px;
--st-spacing-2: 8px;
--st-spacing-3: 12px;
--st-spacing-4: 16px;
/* ... up to 24 (96px) */

Border Radius

--st-radius-none: 0px;
--st-radius-sm: 6px;
--st-radius-md: 10px;
--st-radius-lg: 16px;
--st-radius-full: 9999px;

Dark Mode

The tokens automatically support dark mode via the .dark class or [data-theme="dark"] attribute:

<!-- Light mode (default) -->
<html>
  <body>
    ...
  </body>
</html>

<!-- Dark mode -->
<html class="dark">
  <body>
    ...
  </body>
</html>

<!-- Or with data attribute -->
<html data-theme="dark">
  <body>
    ...
  </body>
</html>

shadcn/ui Compatibility

For shadcn/ui compatibility, the tokens also export standard CSS variable names:

--background, --foreground
--primary, --primary-foreground
--secondary, --secondary-foreground
/* etc. */

Building

pnpm build

This generates:

  • dist/tokens.css - CSS variables
  • dist/tokens.js - ES module with typed tokens
  • dist/tokens.d.ts - TypeScript declarations
  • dist/tokens.json - JSON format for tooling