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

@open-void-ui/tokens

v0.3.0

Published

Design tokens for open-void-ui — the single source of truth

Downloads

21

Readme

@open-void-ui/tokens

Design tokens for open-void-ui — the single source of truth for colors, spacing, typography, radius, shadows and planet themes.

npm: @open-void-ui/tokens


Install

npm install @open-void-ui/tokens

Usage

CSS custom properties (recommended)

import '@open-void-ui/tokens/css'

Injects all tokens as --void-* CSS custom properties on :root:

:root {
  --void-color-background-base: #0a0a0a;
  --void-color-text-primary: #f5f5f5;
  --void-color-action-primary: #6666ff;
  --void-space-4: 16px;
  --void-radius-md: 4px;
  --void-transition-normal: 200ms ease;
  /* ... 38 tokens total */
}

SCSS variables

@use '@open-void-ui/tokens/scss' as tokens;

.button {
  background: tokens.$color-action-primary;
  padding: tokens.$space-2 tokens.$space-4;
  border-radius: tokens.$radius-md;
}

JavaScript / TypeScript

import tokens from '@open-void-ui/tokens'

console.log(tokens.colorActionPrimary) // '#6666ff'

Planet themes

Planet themes are scoped color overrides. Each planet defines its own set of --void-color-* tokens, applied when a data-void-planet attribute is present on a parent element.

// Import the planet themes you need
import '@open-void-ui/tokens/css'           // base tokens
import '@open-void-ui/tokens/planets/mars'  // mars overrides
import '@open-void-ui/tokens/planets/earth' // earth overrides
<div data-void-planet="mars">
  <!-- All --void-color-* tokens are overridden for this subtree -->
</div>

Available planets:

| Planet | Primary color | Character | |--------|--------------|-----------| | mercury | #b0b0b0 | Monochrome, sharp | | moon | #9090c0 | Cool grey-blue | | mars | #e05c1a | Warm orange-red | | earth | #3dd68c | Deep green | | europa | #4da6ff | Ice blue | | neptune | #6070ff | Deep indigo | | jupiter | #d4943c | Amber | | saturn | #d4c070 | Golden | | venus | #e8c020 | Sulfur yellow | | io | #c8e000 | Electric lime | | uranus | #40d0e0 | Cyan | | nostromo | #00ff46 | Terminal green |


Token reference

Colors

| Token | Value | Usage | |-------|-------|-------| | --void-color-background-base | #0a0a0a | Page background | | --void-color-background-surface | #1a1a1a | Card, panel backgrounds | | --void-color-background-overlay | #242424 | Input, hover backgrounds | | --void-color-text-primary | #f5f5f5 | Main text | | --void-color-text-secondary | #a3a3a3 | Labels, metadata | | --void-color-text-muted | #737373 | Placeholders, hints | | --void-color-action-primary | #6666ff | Primary buttons, links | | --void-color-border-default | #2e2e2e | Borders, dividers | | --void-color-border-focus | #6666ff | Focus rings | | --void-color-status-success | #22c55e | Success states | | --void-color-status-warning | #f59e0b | Warning states | | --void-color-status-error | #ef4444 | Error states |

Spacing

--void-space-{1..24}4px · 8px · 12px · 16px · 20px · 24px · 32px · 40px · 48px · 64px · 80px · 96px

Typography

--void-font-size-{xs..4xl}11px through 36px --void-font-weight-{regular|medium|semibold|bold}400 · 500 · 600 · 700 --void-font-family-sans · --void-font-family-mono

Radius

--void-radius-{none|sm|md|lg|xl|full}0 · 2px · 4px · 8px · 12px · 9999px

Other

--void-shadow-{sm|md|lg|glow} · --void-transition-{fast|normal|slow}


Token structure

tokens/
├── base.json         ← primitive values (raw colors, numbers)
├── theme.json        ← semantic aliases (references to base)
└── planets/
    ├── mercury.json
    ├── moon.json
    ├── mars.json
    └── ...           ← 12 planet themes

Build output (dist/):

dist/
├── variables.css     ← CSS custom properties on :root
├── tokens.scss       ← SCSS variables
├── tokens.js         ← ES module
├── tokens.d.ts       ← TypeScript declarations
└── planets/
    ├── mercury.css
    ├── mars.css
    └── ...

Rebuild with:

cd packages/tokens && node build.js
# or from root:
npm run build:tokens

License

MIT © Germán Román