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

ply-css

v1.6.0

Published

ply — A ratio-based, AI-ready CSS framework with dark mode, accessibility, and a small footprint

Readme

ply

A ratio-based, AI-ready CSS framework with dark mode, accessibility, and a small footprint.

~21KB gzipped. No JavaScript. No build step. One <link> tag.

Install

npm + Sass (recommended)

For real projects, install ply and import the SCSS source to get the full color palette, variables, and mixins.

npm install ply-css
@use "ply-css/src/scss/ply" as *;

CDN (prototyping)

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ply-css@1/dist/css/ply.min.css">

Git

git clone https://github.com/thatgibbyguy/ply.git

Why ply?

CSS frameworks were designed for humans reading documentation. But increasingly, the first consumer of your framework is an AI — a coding agent in Replit, Claude, Cursor, or Copilot generating a UI from a prompt.

  • Start semantic — ply automatically styles <nav>, <table>, <code>, <blockquote>, <details>, <dialog>, and more. Start with what HTML gives you, then reach for classes when you need them.
  • AI-native — ships with PLY.md (AI instruction file) and ply-classes.json (machine-readable class reference). Class names are predictable: .alert-blue, .btn-sm, .unit-50.
  • Accessible by default:focus-visible outlines on all interactive elements (including <summary> and legacy components), prefers-reduced-motion, prefers-color-scheme dark mode, semantic HTML styling, WCAG AA contrast in both light and dark themes. Published VPAT 2.5 documenting conformance against all WCAG 2.1 Level A and AA criteria.
  • Small footprint — ~21KB gzipped (full), ~17KB (core). No JavaScript runtime, no build step, no tree-shaking.
  • Ratio-based grid — think in percentages, not arbitrary columns. unit-50 is 50%, unit-33 is 33%. Responsive prefixes: tablet-unit-*, phone-unit-*.
  • Custom theming — override --ply-* CSS custom properties to create any theme. Light and dark modes built in.

Quick Start

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ply-css@1/dist/css/ply.min.css">
</head>
<body>
  <div class="units-container">
    <div class="units-row">
      <div class="unit-50 tablet-unit-100">
        <h1>Hello, ply</h1>
        <p>A two-column layout. Stacks on tablet and below.</p>
      </div>
      <div class="unit-50 tablet-unit-100">
        <button class="btn btn-primary">Get Started</button>
      </div>
    </div>
  </div>
</body>
</html>

Bundles

| Bundle | File | Description | |--------|------|-------------| | Full | ply.min.css | Everything — grid, typography, forms, buttons, navigation, notifications, labels, dropdown, loader, helpers | | Core | ply-core.min.css | Grid, typography, forms, buttons, navigation, notifications, essential helpers | | Essentials | ply-essentials.min.css | Grid + helpers only |

Dark Mode

ply respects prefers-color-scheme automatically. No configuration needed.

To force a mode:

<html data-theme="dark">  <!-- Force dark -->
<html data-theme="light"> <!-- Force light -->
<html>                     <!-- Auto (follows OS) -->

Custom Themes

Override --ply-* CSS custom properties to create any theme:

[data-theme="warm"] {
  --ply-bg-body: #faf5f0;
  --ply-color-body: #1c1917;
  --ply-color-headings: #44240e;
  --ply-color-accent: #92400e;     /* Icons, badges, section accents */
  --ply-btn-default-bg: #92400e;   /* Primary button + links */
  --ply-btn-secondary-bg: #78350f; /* Secondary button */
  --ply-btn-border-radius: 0.5rem; /* Button corner radius */
  --ply-font-body: Palatino, Georgia, serif;
  --ply-font-heading: Palatino, Georgia, serif;
  /* ... */
}
<html data-theme="warm">

See snippets/custom-theme.html for a full working example.

Icons

ply doesn't include icons. Lucide is recommended — lightweight, clean, and pairs well with ply. Any icon library works.

<script src="https://cdn.jsdelivr.net/npm/lucide@latest/dist/umd/lucide.min.js"></script>
<script>lucide.createIcons();</script>

AI Integration

For AI agents (Claude, Cursor, Copilot, Replit AI):

  • PLY.md — complete class reference, usage rules, anti-patterns, and snippets
  • ply-classes.json — machine-readable class map for programmatic tool use
  • snippets/ — copy-paste HTML files for common patterns (dashboard, login, contact form, etc.)

ply is standalone — it should not be used alongside Tailwind, Bootstrap, or other CSS frameworks.

Development

npm install
npm run build     # Compile all bundles
npm run watch     # Watch for changes
npm run lint      # Run stylelint

Tech

Compliance

ply targets ADA Title II (28 CFR Part 35) / WCAG 2.1 AA compliance at the framework level. A VPAT 2.5 is published documenting conformance against all Level A and Level AA success criteria.

Documentation

Full interactive docs at plycss.com — browse every class with live examples, search the entire framework, and copy-paste code snippets.

Roadmap

  • CSS logical properties for native RTL support (replaces bolt-on mirroring)
  • Build-time class validator / VS Code extension
  • Automated accessibility test suite (VPAT evidence)

Contributing

Fork this repo and create a Pull Request with your changes.

License

MIT

Special thanks to imperavi for creating the CSS framework I could only envision at the time.