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

clampography

v2.1.1

Published

Fluid typography system based on CSS clamp() with optional themes and extra styles. A feature-rich alternative to Tailwind CSS Typography plugin.

Readme

🙌 Clampography

Clampography is a typography and theming plugin for Tailwind CSS v4.

When you use Tailwind CSS, the Preflight reset removes all browser defaults. You get a completely unstyled baseline, which is great for UI, but terrible for blog articles or documentation pages because all your <h1>, <p>, <ul>, and other tags lose their styling.

Clampography solves this. It restores typography defaults and makes them mathematically perfect. It automatically generates a fluid type scale using CSS clamp() functions. Your text and spacing will scale smoothly between mobile and 4K displays - without writing a single media query.

[!NOTE] Clampography is designed for projects using a build tool like Vite or Webpack, or a framework with CSS bundling like Astro, Next.js, Remix, or SvelteKit. With a build tool, unused modules are automatically removed, keeping your CSS bundle small. A build tool is not required - CDN files are also available. However, CDN files cannot be tree-shaken, resulting in a significantly larger CSS file.

✨ Features

  • 🧮 Fluid Typography & Spacing: Smooth scaling from mobile to desktop.
  • 🎨 Built-in Themes: light and dark included. More themes coming soon.
  • 🧩 Modular: Enable only what you need.
  • 🎯 Zero Specificity: All styles use :where() - your own CSS always wins, no !important needed.
  • 💬 TypeScript Ready: Auto-generated TypeScript types for all CSS variables.
  • 🌍 RTL Ready: Works correctly in right-to-left languages out of the box.
  • 🎨 Figma Design Tokens: Theme values exported as figma-tokens.json (W3C Design Tokens).
  • 🖱️ Micro-interactions: Themed text selections, <mark> highlights, and :target animations.
  • 📜 Themed Scrollbars: Automatically colorize browser scrollbars to match your active theme.
  • 🖨️ Print & A11y Optimization: Removes decorations and forces readable black text.

📦 Install

# Install with NPM
npm install clampography

# Install with PNPM
pnpm add clampography

# Install with Bun
bun install clampography

# Install with Deno
deno install npm:clampography

🛠️ Quick Start

1. Basic (Fluid Typography Only)

This restores typography but keeps it clean. No colors are injected.

@import "tailwindcss";
@plugin "clampography";

2. Optimal Experience (Themes + Extra Styles)

This adds colors, styled forms, and extra decorations.

@import "tailwindcss";
@plugin "clampography" {
  themes: all;
  forms: true;
  extra: true;
}
<body data-theme="dark" class="bg-clampography-background text-clampography-text">
  <h1>Fluid Heading</h1>
  <button class="bg-clampography-primary">Action</button>
</body>

⚙️ Configuration

Clampography is highly modular. You can configure it directly in your CSS:

@plugin "clampography" {
  /* Feature Modules */
  themes: "light, dark" | "all" | false;  /* (default: false) */
  base: true | false;                     /* (default: true) */
  extra: true | false;                    /* (default: false) */
  forms: true | false;                    /* (default: false) */
  kbd: true | false;                      /* (default: false) */
  print: true | false;                    /* (default: false) */
  scrollbar: true | false;                /* (default: false) */
  highlights: true | false;               /* (default: false) */

  /* Advanced Settings */
  typography: "global" | ".your-class";   /* Scope isolation */
  fluid-min: "320px";                     /* Mobile breakpoint */
  fluid-max: "1280px";                    /* Desktop breakpoint */
}

📚 Documentation

🌐 Browser Support

Clampography targets modern browsers to keep the CSS output clean, small, and mathematically precise without relying on heavy polyfills or fallbacks.

  • Basic (Typography Only): ~97% global support (requires clamp()).
  • Optimal (Themes & Forms): ~93% global support (requires oklch() and color-mix()).

🙏 Inspirations


License: MIT