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

@howssatoshi/quantumcss

v1.11.4

Published

Advanced utility-first CSS framework with JIT generation and modern components

Downloads

1,439

Readme

Quantum CSS - Next-Generation Utility Framework

Quantum CSS License Bundle Size

A modern, performance-optimized utility-first CSS framework with semantic naming, recursive component presets, and advanced cosmic effects.

🚀 Features

Modern CSS Capabilities

  • Robust Theme Engine - Seamlessly follow OS settings with automatic prefers-color-scheme detection and dynamic live-switching.
  • Recursive Component Presets - Define custom components in config using existing utilities.
  • Cosmic Animation Library - Advanced effects like parallax nebula drifts and orbit paths.
  • High Contrast Mode - Native support for prefers-contrast and forced-colors.
  • JIT Attribute Mode - Clean separation of concerns via semantic attributes (hover, md, dark).

Developer Experience

  • Advanced CLI Scaffolding - Instantly generate pre-styled templates (Gaming, Blog, News, Shopping, Travel)
  • Dynamic Documentation - Generate a "Kitchen Sink" overview of your unique design tokens
  • Unified Naming Standard - Consistent --q- prefix for all CSS variables (e.g., --q-color-primary).
  • Attribute-Driven Styling - No more monolithic class strings! Use dedicated attributes for environment and interactivity.
  • Zero-Escape CSS - 100% clean CSS output without risky backslash escapes.
  • TypeScript-Ready - Developed with TypeScript for internal type safety
  • Zero Configuration - Works out of the box

🎨 Advanced Utilities

Gradients & Color Stops

QuantumCSS provides powerful JIT gradient utilities with support for multiple color stops and transparency:

  • bg-gradient-to-{r|l|t|b|tr|tl|br|bl} - Set gradient direction
  • from-{color}, via-{color}, to-{color} - Define color stops
  • from-{color}_50 - Opacity support for gradient stops (uses _ separator)
  • text-transparent bg-clip-text - Create gradient text

Lane-Based Attributes

Separate your styles into semantic lanes for maximum readability:

  • Environment: sm, md, lg, xl, 2xl
  • Interactivity: hover, focus, active, group-hover
  • Theme: dark, light
<!-- Clean, Semantic, Conflict-Free -->
<div class="grid cols-1" md="cols-3" hover="bg-primary" dark="bg-black">
  <button class="btn-starlight" hover="scale-105" active="scale-95">
    Launch
  </button>
</div>

📦 Installation & CLI

Install the core library and the JIT engine:

npm install @howssatoshi/quantumcss

Command Line Interface

QuantumCSS includes a powerful CLI for project orchestration:

# Using npx (recommended)
npx quantumcss <command>

# Or run directly
node src/cli.js <command>

Commands:

  • init - Generate a default quantum.config.json with full theme structure (colors, spacing, plugins, presets, componentPresets).
  • build [output] - Generate the JIT CSS bundle (default: dist/quantum.css).
  • watch [output] - Automatically rebuild when your HTML or config changes.
  • scaffold <type> [file] - Generate a starter template (gaming, blog, travel, shopping, starlight, news, docs).
  • manifest [output] - Generate an AI-optimized design system manifest (colors, spacing, utilities, componentPresets). Use this when starting new projects so AI agents understand available tokens.
# Examples
npx quantumcss init                           # Create quantum.config.json
npx quantumcss build                          # Build dist/quantum.css
npx quantumcss build custom.css               # Custom output path
npx quantumcss watch                         # Watch for changes
npx quantumcss scaffold blog index.html     # Scaffold blog template
npx quantumcss manifest design-system.json   # Generate manifest file
npx quantumcss manifest                      # Output manifest to stdout

⚙️ Configuration

Decoupled Component Architecture

QuantumCSS separates structural logic from aesthetic themes for maximum reusability. Define your own components in quantum.config.json by combining these layers:

1. Structural & Interactive Base Classes

  • nav-base - Standard flex row navigation
  • card-base - Flex column container with overflow hidden
  • btn-base - Center-aligned interactive button
  • input-base - Block-level form input
  • dialog-base - Centered modal container
  • badge-base - Inline-flex status indicator
  • focus-glow - Premium cosmic focus state (soft colored glow)

2. Aesthetic Theme Classes

  • theme-starlight - The iconic cosmic gradient and glow
  • theme-glass - Clean translucent glassmorphism
  • theme-glass-dark - Darker, higher contrast glassmorphism
  • glass - Base glassmorphic utility
{
  "componentPresets": {
    "btn-action": "btn-base theme-starlight px-8 py-3 focus-glow",
    "card-premium": "card-base theme-glass-dark p-10 shadow-2xl"
  }
}

High-Level Component Presets (AI-Optimized)

Starlight UI provides "Organism-level" presets that compose multiple utilities into functional semantic blocks. Perfect for rapid prototyping and AI generation.

  • starlight-nav - Complete sticky glassmorphic navigation bar
  • search - Search container with integrated icon and padding
  • dashboard - Responsive 3-column dashboard grid
  • gallery - Optimized grid for image/media galleries
  • form - Multi-column layout for advanced form controls
  • dialog - Centered, animated glassmorphic modal
<!-- Example: Create a full dashboard grid with one class -->
<div class="dashboard">
  <div class="starlight-card">...</div>
  <div class="starlight-card">...</div>
  <div class="starlight-card">...</div>
</div>

✨ Cosmic Animations

Bring your UI to life with space-inspired effects:

  • .ani-nebula - Ethereal drifting gradient backgrounds
  • .ani-float - Floating vertical motion
  • .ani-twinkle - Sparkling star effects
  • .ani-orbit - Circular orbital paths
  • .ani-svg-draw - Progressive path drawing for icons

🛠️ Build Tools

Documentation

Generate a live dashboard of your theme:

npm run docs

This creates examples/kitchen-sink.html with all your colors, spacing, presets, and animations.

High Contrast Support

QuantumCSS automatically optimizes contrast for accessibility when the user enables high contrast mode in their OS.

⚡ Performance

Rendering & Scrolling

  • GPU Acceleration: Cosmic effects and star fields use will-change and hardware-accelerated transforms to ensure 60fps scrolling even on low-power devices.
  • CSS Containment: Uses contain: strict on atmospheric backgrounds to isolate layout and paint cycles.
  • Motion Sensitivity: Automatically scales down or disables complex animations when prefers-reduced-motion is detected.

Optimized Payload

  • Gzipped Bundle: ~29 KB (Full library + JIT utilities)
  • Zero Runtime: No heavy JavaScript required for layout or styling.
  • JIT Tree-Shaking: Only the utilities you actually use are included in your final production build.

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

📄 License

MIT License - see LICENSE file for details.