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

@quanticjs/tailwind-preset

v0.2.0

Published

Shared Tailwind CSS v4 theme for QuanticJS — design tokens, color palette, typography, light/dark mode

Downloads

271

Readme

@quanticjs/tailwind-preset

Shared Tailwind CSS v4 theme for QuanticJS apps. Ships design tokens for colors, typography, border radius, and dark mode as a single CSS import.

Install

pnpm add @quanticjs/tailwind-preset

Peer dependency: tailwindcss >=4.0.0.

Usage

Replace your hand-written @theme block with one import:

@import "tailwindcss";
@import "@quanticjs/tailwind-preset/theme.css";

That's it. All Tailwind utility classes (bg-primary, text-muted-foreground, border-border, etc.) work immediately with consistent values across every project.

What's Included

Colors (Light + Dark)

Every semantic color slot that shadcn/ui components expect:

| Token | Light | Dark | |---|---|---| | background / foreground | White / near-black | Near-black / near-white | | primary / primary-foreground | Blue 220° | Blue 217° | | secondary | Light gray | Dark gray | | muted | Light gray | Dark gray | | accent | Light gray | Dark gray | | destructive | Red | Dark red | | success | Green | Dark green | | warning | Amber | Dark amber | | border / input / ring | Light border | Dark border | | sidebar-* | Full sidebar palette | Full sidebar palette | | chart-1 through chart-5 | 5-color chart palette | 5-color chart palette |

Border Radius

--radius: 0.625rem (10px)
--radius-lg: var(--radius)
--radius-md: calc(var(--radius) - 2px)
--radius-sm: calc(var(--radius) - 4px)

Typography

--font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif
--font-mono: 'JetBrains Mono', ui-monospace, monospace

Base Styles

* { border-color: theme(colors.border); }
body { background: theme(colors.background); color: theme(colors.foreground); }

Dark Mode

Uses class strategy via @custom-variant dark (&:is(.dark *)). Add class="dark" to <html> to activate.

Overriding Tokens

Override specific tokens in your project CSS after the import:

@import "tailwindcss";
@import "@quanticjs/tailwind-preset/theme.css";

/* Project-specific brand color */
:root {
  --primary: 262 83% 58%;
  --ring: 262 83% 58%;
}
.dark {
  --primary: 262 83% 68%;
  --ring: 262 83% 68%;
}

Override as few or as many tokens as needed. Unspecified tokens keep the preset defaults.

JS Token Access

For programmatic use (charts, canvas, dynamic styles), import the raw HSL values:

import { light, dark, radius } from '@quanticjs/tailwind-preset';

light.primary;    // '220 70% 51%'
dark.primary;     // '217 91% 60%'
radius;           // '0.625rem'

The SemanticToken type provides autocompletion for all token names.

Exports

// CSS (main deliverable)
import "@quanticjs/tailwind-preset/theme.css"

// JS (programmatic access)
light: Record<SemanticToken, string>
dark: Record<SemanticToken, string>
radius: string
type SemanticToken