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

@jordandavila/tailwind-fluid

v0.1.1

Published

Figma-accurate fluid sizing utilities for Tailwind via clamp() and per-breakpoint scaling.

Readme

@jordandavila/tailwind-fluid

Figma-accurate fluid sizing utilities for Tailwind via clamp() and per-breakpoint scaling. Provide a screens object and get semantic classes like text-fluid-16, text-fluid-16/24, px-fluid-12, max-w-fluid-[720], etc.

Install

npm i -D @jordandavila/tailwind-fluid
# or
pnpm add -D @jordandavila/tailwind-fluid

Setup

// tailwind.config.ts
import { tailwindFluid } from '@jordandavila/tailwind-fluid'

export default {
  content: ['./src/**/*.{ts,tsx,js,jsx,html,njk}'],
  plugins: [
    tailwindFluid({
      screens: {
        mobile:  { figma: 375,  viewport: 375 },
        tablet:  { figma: 768,  viewport: 768 },
        desktop: { figma: 1560, viewport: 1024 },
        max:     { figma: 1560, viewport: 1560 }
      }
    })
  ]
}

What the plugin does

  • Injects per-breakpoint root vars (--viewport, --scale, --min-width, --max-width, --figma-screen-width) so calc(var(--scale) * px) equals the Figma px at that breakpoint and scales in-between.
  • Extends Tailwind theme.screens from your screens so media queries and scaling use the same cutoffs.

Class grammar

  • Typography
    • text-fluid-16font-size: calc(var(--scale) * 16px)
    • text-fluid-16/24font-size: clamp(1rem, …, 1.5rem) (min/max in px; rem emitted)
    • leading-fluid-18/28 → line-height clamp
  • Spacing
    • p-fluid-24, px-fluid-12, py-fluid-8
    • m-fluid-16, mx-fluid-12, my-fluid-20
    • gap-fluid-12, space-x-fluid-12, space-y-fluid-16
  • Sizing
    • w-fluid-320, h-fluid-200, min-w-fluid-240, max-w-fluid-[720], etc.
  • Transforms
    • translate-x-fluid-8, translate-y-fluid-12

Values are plain numbers in px (8 → 8px). Use a slash for ranges min/max (e.g., 38/58).

Options

interface FluidPluginOptions {
  screens: Record<string, { figma: number; viewport: number }>
}
  • figma: The design width for that breakpoint.
  • viewport: The real viewport breakpoint (media query) boundary.

Example

<h1 class="text-fluid-38/58 leading-fluid-44/64 max-w-fluid-[720]">
  Fluid typography that matches Figma at each breakpoint
</h1>
<p class="text-fluid-16/22 mt-fluid-12 max-w-fluid-[720] opacity-80">
  Scales between your min/max screens with `clamp()`, then locks to a fixed size at max.
</p>

License

MIT © 2025 Jordan Davila