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

tailwindcss-flow-type

v0.0.2

Published

A Tailwind CSS plugin for fluid, responsive typography that scales smoothly across screen sizes with minimal configuration.

Readme

banner.png

Table of Contents

Installation

This plugin requires Tailwind CSS 4 or higher.

npm install --save tailwindcss-flow-type

Using bun

bun add tailwindcss-flow-type

Include the plugin in your .css file:

@import 'tailwindcss';

@plugin 'tailwindcss-flow-type';

Usage

The default behavior of the plugin don't override the default text-* classes provided by Tailwind CSS. Instead, it adds a new set of flow-* classes that you can use to apply fluid typography styles.

<article>
    <h1 class="flow-text-base">Fluid type</h1>
</article>
.flow-text-base {
    font-size: clamp(1.125rem, calc(1.125rem + ((1.25 - 1.125) * ((100vw - 20rem) / (96 - 20)))), 1.25rem);
}
.flow-text-base {
    line-height: 1.6;
}

Override default classes

You can override the default text-* classes by setting the override option to true when configuring the plugin:

@import 'tailwindcss';

@plugin 'tailwindcss-flow-type' {
    override: true
};

Then you can use the text-* classes to apply fluid typography styles:

<article>
    <h1 class="text-base">Fluid type</h1>
</article>
.text-base {
    font-size: clamp(1.125rem, calc(1.125rem + ((1.25 - 1.125) * ((100vw - 20rem) / (96 - 20)))), 1.25rem);
    line-height: var(--tw-leading, 1.6);
}

Configuration

The plugin comes with a default configuration (see below) but it's possible to customize this config for your project. As default, we use rem for better accessibility, but you can also use px.

@import 'tailwindcss';

@plugin 'tailwindcss-flow-type' {
    fontSizeMax: 1.25;
    fontSizeMin: 1.125;
    override: true;
    prefix: flow;
    ratioMax: 1.2;
    ratioMin: 1.125;
    screenMax: 96;
    screenMin: 20;
    unit: rem;
};

@theme {
    --flow-text-xs: -2;
    --flow-text-sm: -1;
    --flow-text-base: 0;
    --flow-text-lg: 1;
    --flow-text-xl: 2;
    --flow-text-2xl: 3;
    --flow-text-3xl: 4;
    --flow-text-4xl: 5;
    --flow-text-5xl: 6;
    --flow-text-6xl: 7;
    --flow-text-7xl: 8;
    --flow-text-8xl: 9;
    --flow-text-9xl: 10;

    --flow-line-height-xs: 1.6;
    --flow-line-height-sm: 1.6;
    --flow-line-height-base: 1.6;
    --flow-line-height-lg: 1.6;
    --flow-line-height-xl: 1.2;
    --flow-line-height-2xl: 1.2;
    --flow-line-height-3xl: 1.2;
    --flow-line-height-4xl: 1.1;
    --flow-line-height-5xl: 1.1;
    --flow-line-height-6xl: 1.1;
    --flow-line-height-7xl: 1;
    --flow-line-height-8xl: 1;
    --flow-line-height-9xl: 1;
}

Contributing

This project uses Bun as a runtime, test runner and bundler.

Thanks for wanting to help out! Here's the setup you'll have to do:

Clone the project

git clone [email protected]:MarioMH8/tailwindcss-flow-type.git

Go to the project directory

cd tailwindcss-flow-type

Install dependencies

bun install

Compile the project

bun run build

MIT License

Copyright 2021-2025 MarioMH