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

@soltana-ui/tokens

v0.1.0

Published

Design token compiler for Soltana UI — outputs Mermaid themes, DTCG JSON, and documentation formats.

Downloads

17

Readme

@soltana-ui/tokens

npm version License: MIT


Design token compiler for Soltana UI — outputs Mermaid themes, DTCG JSON, and AI agent documentation.

DocumentationMain Package


Overview

Compiles Soltana UI's design tokens into multiple output formats optimized for different use cases:

  • Mermaid themes (JSON) — Runtime theme bridge for diagram synchronization
  • DTCG (JSON) — Design Tokens Community Group format for interop
  • Agent docs (YAML) — AI agent-optimized reference with utility classes, component patterns, and API surface

This package is primarily a build-time tool. Consumers typically use the compiled outputs, not this package directly.

Installation

npm install @soltana-ui/tokens

Usage

Type Definitions

import type { ThemeName, ReliefName, FinishName } from '@soltana-ui/tokens';

const theme: ThemeName = 'dark';
const relief: ReliefName = 'glassmorphic';
const finish: FinishName = 'frosted';

Compiled Outputs

The dist/ directory contains compiled token formats:

dist/
├── mermaid/           # Mermaid theme JSON files
│   ├── dark.json
│   ├── light.json
│   └── sepia.json
├── dtcg/              # DTCG token JSON
│   └── tokens.json
└── agents/            # AI agent reference
    └── reference.yaml

Access these files from the package:

import darkMermaid from '@soltana-ui/tokens/mermaid/dark.json';
import dtcgTokens from '@soltana-ui/tokens/dtcg/tokens.json';

AI Agent Reference

The reference.yaml file ships with this package and provides a structured reference for AI coding agents:

tier_system:
  themes: [dark, light, sepia, auto]
  reliefs: [flat, glassmorphic, skeuomorphic, neumorphic]
  finishes: [matte, frosted, tinted, glossy]

utility_classes:
  - .theme-dark
  - .relief-glassmorphic
  - .finish-frosted
  # ... ~1,300 utility classes

components:
  - name: Button
    classes: [.btn, .btn-primary, .btn-secondary, ...]
    # ... component patterns

Access via npm package:

import { readFileSync } from 'fs';
import { resolve } from 'path';

const yamlPath = resolve('node_modules/@soltana-ui/tokens/dist/agents/reference.yaml');
const reference = readFileSync(yamlPath, 'utf-8');

Or fetch from the docs site:

https://soltana-tech.github.io/soltana-ui/llms-full.txt

Building from Source

pnpm install
pnpm run build

This compiles soltana-ui CSS, extracts tokens, and generates all output formats.

Output Formats

Mermaid Themes

JSON theme files compatible with Mermaid's initialize() API:

{
  "theme": "base",
  "themeVariables": {
    "primaryColor": "#d4a843",
    "primaryTextColor": "#f5f0e6",
    "primaryBorderColor": "#d4a843",
    ...
  }
}

Used by @soltana-ui/mermaid for runtime synchronization.

DTCG Tokens

Design Tokens Community Group format for design tool interop (Figma, Style Dictionary, etc.):

{
  "color": {
    "primary": {
      "$type": "color",
      "$value": "#d4a843"
    }
  }
}

Agent Documentation

YAML reference optimized for AI agents, containing:

  • Foundation tokens (colors, spacing, typography, shadows)
  • ~1,300 utility classes with descriptions
  • Component HTML patterns and modifiers
  • JavaScript API surface (enhancers, registration, events)
  • Tier composition recipes

Ecosystem

| Package | Purpose | | ----------------------------------- | ----------------------- | | soltana-ui | Core CSS + JS enhancers | | @soltana-ui/react | React bindings | | @soltana-ui/mermaid | Mermaid theme bridge |

License

MIT License - see LICENSE file for details.