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

flexflow-css

v0.2.1

Published

A small runtime utility library for flexible CSS values without build tools or configuration

Downloads

201

Readme

FlexFlow

Description

FlexFlow is a small experimental utility library created to solve simple but common styling limitations developers face when working with existing CSS frameworks.

While frameworks like Bootstrap and Tailwind cover most use cases, there are everyday scenarios where developers need more flexibility without adding inline styles, writing custom CSS, or maintaining configuration files.

FlexFlow provides a minimal, readable way to apply flexible CSS values directly through utility classes.


Installation

npm install flexflow-css

Basic Usage

Import and initialize FlexFlow once in your application:

import { initFlexFlow } from "flexflow-css";

initFlexFlow();

Then use utility classes directly in your markup:

<div class="p-[20px] bg-[#333] text-[#fff] br-[10px]">
  Hello FlexFlow
</div>

Responsive Example

<div class="fs-[16px] fs@md-[24px]">
  Responsive text
</div>

Responsive variants are resolved at runtime based on the active breakpoint.

When multiple responsive values are provided, FlexFlow automatically applies the closest matching breakpoint value.

Example:

<div class="w-[100px] w@md-[200px] w@lg-[300px]"></div>

Breakpoint Resolution

When multiple responsive values are defined, FlexFlow applies the closest matching breakpoint.

<div class="fs-[14px] fs@md-[18px] fs@lg-[24px]"></div>

How It Works

FlexFlow evaluates utility classes at runtime in the browser.

It scans elements, parses supported utility classes, and applies the corresponding inline styles dynamically.

Responsive values are stored internally and resolved using breakpoint priority rules, allowing utilities to adapt automatically as the viewport changes.

FlexFlow also observes DOM updates, automatically processing newly added elements and class changes without requiring manual re-initialization.

To improve performance, resize updates are applied only to elements that use responsive utilities.

This allows responsive behavior without build tools, configuration files, or compilation steps.


Available Utilities

FlexFlow currently supports the following utility groups:

Colors

bg-[#hex]   text-[#hex]

Spacing

p px py m mx my

Size

w h min-w max-w min-h max-h

Position

position top right bottom left z

Typography

fs fw lh ls

Visual

br op gap

All utilities support arbitrary values using the [value] syntax and responsive variants using @breakpoint.


Why FlexFlow Exists

During day-to-day development, developers often need custom spacing, sizing, or styling values that are not available in predefined utility classes.

While some frameworks allow customization through configuration files, this adds setup overhead and breaks the flow of quick experimentation.

FlexFlow allows developers to:

  • Use any valid CSS value directly in classes
  • Avoid inline styles and extra CSS files
  • Apply responsive behavior without configuration
  • Keep markup readable and predictable

Philosophy

FlexFlow follows a few simple principles:

  • It does not replace existing CSS frameworks
  • It works alongside other libraries, not against them
  • It prioritizes clarity and ease of use over strict design systems
  • It solves real problems encountered during development
  • It remains small, experimental, and intentionally limited

Non-Goals

FlexFlow is not:

  • A full CSS framework
  • A Bootstrap or Tailwind alternative
  • A component library
  • A design system

Project Status

FlexFlow is an experimental learning project.

Breaking changes may occur, and the API may evolve over time.