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

@semishogun/daisyui-figma-library-tokens

v0.1.4

Published

Custom daisyUI 5 theme synced from the official DaisyUI Figma Library files

Downloads

642

Readme

@yourcompany/daisy-theme

Custom daisyUI 5 theme synced from Figma. One source of truth for all webapps.

How it works

Figma file  →  [export plugin]  →  tokens/figma-export.json
                                          │
                                          ▼
                                  scripts/build.mjs
                                          │
                                          ▼
                                  dist/theme.css   ←  npm publish
                                          │
                                          ▼
                              webapps `npm install` and import

Workflow for the designer + dev

When the theme changes in Figma:

  1. Designer opens the Figma file, runs a free variable-export plugin (e.g. Variables to JSON, Design Tokens, export-variables — anything that emits the W3C Design Tokens / DTCG format).
  2. Save the resulting JSON over tokens/figma-export.json and commit.
  3. Bump version + publish:
    npm version patch
    npm publish
    The prepublishOnly hook re-runs the build, so dist/theme.css is always fresh.

In each consuming webapp:

npm i -D @yourcompany/daisy-theme

Then in your main CSS file:

@import "tailwindcss";
@plugin "daisyui";
@import "@yourcompany/daisy-theme/theme.css";

That's it. To pick up a new theme version: npm update @yourcompany/daisy-theme.

Local development

npm install            # no runtime deps, just dev tooling if you add any
npm run build          # regenerates dist/theme.css from tokens/figma-export.json

Adapting to your Figma plugin

Every plugin emits slightly different JSON. The script handles the most common case — W3C DTCG with mode-keyed root ({ "Light": {...}, "Dark": {...} }).

If your plugin emits something else, edit two spots in scripts/build.mjs:

  • THEMES array — set mode to whatever your plugin calls each mode, or to null if there are no modes.
  • MAPPING object — left side is the slash-joined path inside a single mode's tree. Right side is the daisyUI CSS variable name. If your designer named a Figma variable colors/brand/primary instead of color/primary, change the left side to match.

Run npm run build and check the warnings — the script logs every token it expected but didn't find.

Adding a new theme variant

Add another entry to THEMES in scripts/build.mjs:

{ name: 'mytheme-highcontrast', mode: 'High Contrast',
  default: false, prefersdark: false, colorScheme: 'light' },

Make sure that mode key exists in tokens/figma-export.json.