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

@spacedrive/tokens

v0.2.3

Published

Design tokens for SpaceUI - Pure CSS for Tailwind v4

Downloads

395

Readme

@spacedrive/tokens

Design tokens for SpaceUI. This package is CSS-first for Tailwind v4, with optional raw color exports for programmatic consumers.

Installation

bun add @spacedrive/tokens
# or
npm install @spacedrive/tokens

Usage

Theme Entry Layer

/* In your global CSS entrypoint */
@import '@spacedrive/tokens/theme';

CSS Import

/* In your base CSS file */
@import '@spacedrive/tokens/css';

Programmatic Access

import colors from '@spacedrive/tokens/raw-colors';

// Access color values
console.log(colors.accent.DEFAULT); // "200, 100%, 60%"
console.log(colors.ink.dull);       // "0, 0%, 70%"

Color System

Semantic Colors

All colors use semantic names rather than literal colors:

  • accent - Primary brand color (blue in dark mode)
  • ink - Text colors (white → gray scale)
  • app - App backgrounds and surfaces
  • sidebar - Sidebar-specific colors
  • menu - Dropdown/menu colors
  • status - Success, warning, error states

Color Variants

Each color has variants:

  • DEFAULT - Base color
  • faint - Lighter variant
  • dull - Muted variant
  • deep - Darker variant

Example:

/* Accent colors */
accent           /* Primary blue */
accent-faint     /* Light blue */
accent-deep      /* Dark blue */

/* Text colors */
ink              /* Primary text (white in dark) */
ink-dull         /* Secondary text */
ink-faint        /* Tertiary text */

CSS Custom Properties

Colors are exposed as CSS custom properties:

--color-accent: 200, 100%, 60%;
--color-accent-faint: 200, 100%, 90%;
--color-ink: 0, 0%, 100%;
--color-ink-dull: 0, 0%, 70%;
/* etc. */

Note: Values are bare HSL numbers (not wrapped in hsl()) for Tailwind alpha support.

Tailwind Classes

With the preset installed, use semantic classes directly:

<div className="bg-app text-ink">
  <button className="bg-accent text-white hover:bg-accent-deep">
    Click me
  </button>
  <p className="text-ink-dull">
    Secondary text
  </p>
</div>

Opacity Modifiers

Works with Tailwind's opacity syntax:

<div className="bg-accent/10">    {/* 10% opacity */}
<div className="bg-sidebar/65">    {/* 65% opacity */}

Themes

Dark Theme (Default)

@import '@spacedrive/tokens/css/themes/dark';

Light Theme

@import '@spacedrive/tokens/css/themes/light';

Or toggle via class:

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

<html class="light">
  <!-- Light mode -->
</html>

API

raw-colors

An object containing all color definitions:

{
  accent: { DEFAULT: string, faint: string, deep: string },
  ink: { DEFAULT: string, dull: string, faint: string },
  app: { DEFAULT: string, box: string, line: string, hover: string, selected: string },
  sidebar: { DEFAULT: string, box: string, line: string, ink: string, inkDull: string, ... },
  menu: { DEFAULT: string, line: string, hover: string, ink: string },
  status: { success: string, warning: string, error: string, info: string }
}

Design Principles

  1. Semantic naming - Use purpose-based names, not literal colors
  2. Theme-agnostic - Components work in both dark and light modes
  3. HSL format - Bare HSL values for Tailwind alpha support
  4. Consistent scale - Predictable variants (faint, dull, deep)

License

MIT © Spacedrive