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

@stella-ds/theme

v0.8.0

Published

Stella UI design tokens – framework-agnostic CSS variables and JSON

Readme

@stella-ds/theme

Design tokens for the Stella Design System.

Framework-agnostic — distributed as CSS custom properties (--stella-*) and a JSON token object.

Installation

npm install @stella-ds/theme
# or
pnpm add @stella-ds/theme

Usage

CSS (recommended)

import '@stella-ds/theme/css'

Injects all --stella-* CSS custom properties into :root.

The compiled CSS also includes official scoped themes:

<div data-theme="dark">...</div>
<div data-theme="light">...</div>

light overrides the surface, text, accent, and shadow tokens; dark matches the default root token set.

Tailwind CSS v3

Add the preset to your tailwind.config.js. The preset registers the Stella token subsets that are exposed through Tailwind theme.extend utilities using var(--stella-*) CSS variable references, so data-theme dark/light switches are automatically reflected in those utilities.

// tailwind.config.js
const stellaPreset = require('@stella-ds/theme/tailwind');

module.exports = {
  presets: [stellaPreset],
  // your config...
};

Or with ESM (tailwind.config.mjs):

import stellaPreset from '@stella-ds/theme/tailwind';

export default {
  presets: [stellaPreset],
};

Make sure @stella-ds/theme/css is imported in your global CSS (or call injectCSSVars() once) so the --stella-* variables are available at runtime.

/* globals.css */
@import '@stella-ds/theme/css';

Available utilities (examples):

<p class="text-cosmos-500 font-semibold text-lg">Hello</p>
<div class="bg-void-surface rounded-lg shadow-md p-4">Card</div>
<button class="bg-cosmos-500 hover:bg-cosmos-600 text-starlight-primary">CTA</button>

Note: Colors defined as plain CSS variable references (var(--stella-*)) do not support Tailwind's opacity modifier syntax (text-cosmos-500/80) or text-opacity-* utilities. Use an arbitrary value (text-[rgb(91_91_240/0.8)]) instead.

Tailwind CSS v4

Import the @theme mapping file after @stella-ds/theme/css in your global CSS. Tailwind v4 picks up the @theme block and generates utilities from the --stella-* CSS variables.

/* globals.css */
@import 'tailwindcss';
@import '@stella-ds/theme/css';       /* sets --stella-* CSS variables    */
@import '@stella-ds/theme/tailwind-v4'; /* maps them into Tailwind's @theme */

JavaScript / TypeScript

import { tokens } from '@stella-ds/theme'
// → raw token object

import { cssVariables, injectCSSVars } from '@stella-ds/theme'
// cssVariables: flat { '--stella-color-cosmos-500': '#6366f1', ... }
// injectCSSVars(): programmatically injects into document.documentElement

Token Categories

| Category | Description | |---|---| | color | Celestial color palettes (cosmos, nebula, aurora, nova, void, starlight) | | typography | Font families, sizes, weights, line heights | | spacing | Spacing scale | | borderRadius | Border radius presets | | shadow | Box shadow levels | | transition | Duration and easing |

Color Palettes

  • cosmos — primary / interactive (indigo)
  • nebula — accent (purple)
  • aurora — accent (cyan)
  • nova — success / positive (emerald)
  • void — backgrounds (base / surface / overlay / muted)
  • starlight — text (primary / secondary / disabled)

Links

License

MIT