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

@syncupsuite/transformers

v0.2.1

Published

Token transformers — Tailwind v4 CSS, plain CSS custom properties

Readme

@syncupsuite/transformers

Token transformers — converts DTCG token trees to Tailwind v4 CSS and plain CSS custom properties.

Install

npm install @syncupsuite/transformers

Usage

Tailwind v4 (@theme block)

import { transformToTailwindV4 } from '@syncupsuite/transformers';
import { swissInternational } from '@syncupsuite/themes';

const css = transformToTailwindV4(swissInternational.tokens, {
  prefix: '',          // CSS property prefix (default: '')
  includeComments: true,
});

// Output: Tailwind v4 @theme block with CSS custom properties
// @theme {
//   --color-primary-50: #f0f4ff;
//   --color-primary-500: #3B5BDB;
//   ...
// }

Plain CSS custom properties

import { transformToCSS } from '@syncupsuite/transformers';
import { nihonTraditional } from '@syncupsuite/themes';

const css = transformToCSS(nihonTraditional.tokens, {
  selector: ':root',   // CSS selector (default: ':root')
  prefix: '',
  includeComments: true,
});

// Output: CSS custom properties block
// :root {
//   --color-hanada-50: #e8eef4;
//   --color-hanada-500: #2E4B6D;
//   ...
// }

TransformOptions

interface TransformOptions {
  prefix?: string;           // Prepend to all property names
  includeComments?: boolean; // Include $description as CSS comments
  selector?: string;         // Wrapper selector (transformToCSS only)
}

What transformers handle

  • Decimal spacing keys (0.5--spacing-half, not --spacing-0.5 with dot)
  • @theme vs :root wrapper selection
  • --primitive-color-*--color-* reference resolution
  • CSS value sanitization (injection prevention)
  • Semantic var() reference chain preservation

Related packages

| Package | Description | |---------|-------------| | @syncupsuite/tokens | DTCG types, utilities, validation | | @syncupsuite/foundations | Cultural data + color engine | | @syncupsuite/themes | Pre-built theme packs (includes CSS files) |

License

MIT