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

cssalpine

v1.0.1

Published

AlpineCSS a tiny pico CSS Framework with nested-hamburger-menu support

Readme

AlpineCSS

🏔️ AlpineCSS

AlpineCSS is a tiny, classless-adjacent extended version of PicoCSS Color Slate. It adds essential UI components—like a fully animated hamburger menu and nested accordion dropdowns—without requiring heavy JavaScript frameworks or complex class names.

Built specifically to work seamlessly with Alpine.js and the Alpine-Turnout Plugin.


✨ Features

  • Zero-JS Hamburger: A functional, animated mobile menu using the "Checkbox Trick."
  • Nested Dropdowns: Stabilized <details>-based dropdowns that work on desktop (hover-ready) and mobile (accordion style).
  • Pico-Native: Inherit your Pico CSS variables (--pico-color, --pico-background-color, etc.).
  • Ultra-Lightweight: Adds less than 2KB minified to the PicoCSS classless lib.

🚀 Quick Start

AlpineCSS Example 1

AlpineCSS Example 1

1. Installation

You can link directly via CDN:


<link rel="stylesheet" href="https://unpkg.com/cssalpine">

Or install via NPM:

npm install cssalpine

2. Basic HTML Structure

AlpineCSS uses standard HTML5 tags. No complex classes needed.

<header>
  <nav>
    <ul>
      <li><strong>My Brand</strong></li>
    </ul>

    <input type="checkbox" id="menu-toggle" aria-label="Toggle menu">
    <label for="menu-toggle" class="hamburger-menu"></label>

    <ul class="nav-links">
      <li><a href="/">Home</a></li>
      
      <li>
        <details class="dropdown">
          <summary>Products</summary>
          <ul>
            <li><a href="/web">Web Apps</a></li>
            <li><a href="/mobile">Mobile Apps</a></li>
          </ul>
        </details>
      </li>
      
      <li><a href="/contact" role="button">Contact</a></li>
    </ul>
  </nav>
</header>

🛠️ Configuration (Vite)

If you are contributing or building your own minified version:

  1. Install dependencies: npm install

  2. Build: npm run build

The build process uses Vite to minify alpine.css into dist/alpine.min.css, ensuring all Pico variable references remain intact.


🧩 Integration with Alpine.js

While the CSS handles the layout and the "Checkbox Trick" handles the mobile toggle, you can use Alpine.js to add enhanced behavior (like closing the menu on navigation):

<nav x-data="{ open: false }">
  <input type="checkbox" id="menu-toggle" :checked="open" @change="open = $event.target.checked">
  </nav>

🎨 Customization

AlpineCSS uses the same CSS variables as Pico. You can override them in your root:

:root {
  --pico-nav-element-height: 3rem; /* Adjusts the header height & menu alignment */
  --pico-color: #ff3e00;           /* Changes the hamburger and link colors */
}

📄 License

Distributed under the MIT License. See LICENSE for more information.


👤 Author

rodezee GitHub: @rodezee