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

@opencosmos/tokens

v1.0.1

Published

Design tokens for OpenCosmos/UI — colors, typography, spacing, motion curves, and syntax highlighting across Studio, Terra, and Volt themes.

Readme

@thesage/tokens

Design tokens for the Sage Design Engine — the foundation layer that defines colors, typography, spacing, motion curves, and syntax highlighting across three themes.

npm version License: MIT

Why a separate package?

Tokens are design decisions as code. They serve audiences beyond React components — CSS-only projects, native apps, Figma plugins, or anyone building their own component layer on top of Sage's design language. Install @thesage/tokens for just the values, or get them bundled with components via @thesage/ui/tokens.

Installation

npm install @thesage/tokens
# or
pnpm add @thesage/tokens

If you're already using @thesage/ui, tokens are re-exported via the @thesage/ui/tokens subpath — no separate install needed.

Usage

Theme tokens

Each theme exports a complete set of design values for light and dark modes:

import { studioTokens, terraTokens, voltTokens } from '@thesage/tokens'

const primary = studioTokens.light.colors.primary
const heading = terraTokens.dark.colors.foreground

Typography system

import { typographySystem } from '@thesage/tokens'

// Access size scales (xs through 8xl), font stacks, and type presets
const bodySize = typographySystem.sizes.base

Font themes

import { fontThemes } from '@thesage/tokens'

// 10+ curated font combinations with Google Fonts integration
const editorial = fontThemes.editorial // { heading, body, mono, bestFor }

Color utilities

Generate accessible color scales from a single hex value:

import { hexToHSL, generateColorScale } from '@thesage/tokens'

const hsl = hexToHSL('#3b82f6')           // "217 91% 60%"
const scale = generateColorScale('#3b82f6') // Full 50-950 scale

Color palettes

Pre-built palettes with light/dark mode support:

import { colorPalettes } from '@thesage/tokens'

Syntax highlighting

14 token types for code highlighting, theme-aware:

import { syntaxTokens } from '@thesage/tokens'

Type helpers

import type { ThemeName, ColorMode, ThemeConfig } from '@thesage/tokens'

const config: ThemeConfig = { name: 'studio', mode: 'dark' }

Themes

| Theme | Personality | Colors | |-------|------------|--------| | Studio | Professional, balanced | Cool blues, grays | | Terra | Calm, organic | Earth tones, sage greens | | Volt | Bold, electric | Electric blues, cyans |

All themes include WCAG AA compliant color combinations.

Exports

| Export | Description | |--------|-------------| | studioTokens, terraTokens, voltTokens | Complete theme token sets | | typographySystem | Size scales, font stacks, presets | | fontThemes | Curated font combinations | | colorPalettes | Pre-built color palettes | | syntaxTokens | Syntax highlighting tokens | | hexToHSL, generateColorScale | Color conversion utilities | | tokenGraph | Token dependency graph | | ThemeName, ColorMode, ThemeConfig | TypeScript types | | THEME_NAMES, COLOR_MODES | Runtime constants |

License

MIT