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

@jarviisha/davinci-tailwind-preset

v0.3.0

Published

Tailwind CSS v4 preset that maps Davinci design tokens to utility classes.

Readme

@jarviisha/davinci-tailwind-preset

Tailwind CSS v4 preset that maps Davinci design tokens to Tailwind utility classes (bg-primary, text-foreground, rounded-card, gap-200, etc.).

Part of the Davinci design system.

Install

pnpm add @jarviisha/davinci-tailwind-preset @jarviisha/davinci-tokens
pnpm add -D tailwindcss

Usage

Pick one of the two integration paths below — both produce the same utility classes.

Option A — CSS-first (recommended for Tailwind v4)

No tailwind.config.ts required. Import everything in your stylesheet:

@import "@jarviisha/davinci-tokens/css/variables.css";
@import "@jarviisha/davinci-tokens/css/light.css";
@import "@jarviisha/davinci-tokens/css/dark.css";
@import "tailwindcss";
@import "@jarviisha/davinci-tailwind-preset/theme.css";

theme.css uses Tailwind v4's @theme inline directive to expose every Davinci token as a Tailwind theme variable, so utilities like bg-primary, text-foreground, rounded-card, and gap-200 work out of the box.

Option B — JS preset (config-based)

If you already maintain a tailwind.config.ts, register the preset there instead:

// tailwind.config.ts
import preset from "@jarviisha/davinci-tailwind-preset";
import type { Config } from "tailwindcss";

export default {
  presets: [preset],
  content: ["./index.html", "./src/**/*.{ts,tsx}"]
} satisfies Config;
@import "@jarviisha/davinci-tokens/css/variables.css";
@import "@jarviisha/davinci-tokens/css/light.css";
@import "@jarviisha/davinci-tokens/css/dark.css";
@import "tailwindcss";

Pick one path — don't mix CSS theme.css and the JS preset, they expose the same token surface.

What it adds

The preset extends Tailwind's theme with token-backed utilities:

  • Colorsbackground, surface, foreground (with foreground-subtle/foreground-subtlest), primary, border roles (border-subtle, border, border-bold, border-boldest), status colors (success, warning, danger, info, discovery), link (+ hovered/pressed), overlay, and the usual *-hovered / *-pressed / *-selected / *-foreground variants.
  • Spacing — Davinci spacing scale (gap-100, p-200, px-300, … up to 1000).
  • Radiusrounded-card, rounded-control, rounded-pill, plus standard sm/md/lg/xl/full.
  • Typographytext-body, text-heading-md, font-sans, font-semibold, tracking-wide, leading-400.
  • Shadowsshadow-card, shadow-raised, shadow-overlay.
  • Focus ringring-focus, ring-offset-background for token-driven focus styles.

Example

<button className="rounded-control bg-primary px-200 py-100 text-primary-foreground hover:bg-primary-hovered">
  Save
</button>

Theming

Toggle dark mode by adding the dark class to <html> (or pair this preset with @jarviisha/davinci-react-theme-provider). All semantic utilities flip automatically because they resolve to CSS variables.

License

MIT