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 🙏

© 2025 – Pkg Stats / Ryan Hefner

lowcss-helpers

v0.32.0

Published

A collection of essential CSS helpers to complement LowCSS.

Readme

lowcss-helpers

A collection of essential CSS helper utilities for layout, positioning, and common UI patterns. This module provides utility classes that complement LowCSS or work as standalone helpers in any project.

Installation

You can install lowcss-helpers via npm or yarn:

# using npm
$ npm install lowcss-helpers

# using yarn
$ yarn add lowcss-helpers

Usage

Import the helpers in your project using either CSS imports or by linking the CSS file directly in your HTML:

@import "lowcss-helpers";
<!-- Or reference it in your HTML -->
<link rel="stylesheet" href="node_modules/lowcss-helpers/index.css">

Available Utilities

Layout & Flexbox

Horizontal Stack (.hstack)

Creates a horizontal flex container with centered items:

<div class="hstack">
    <span>Item 1</span>
    <span>Item 2</span>
    <span>Item 3</span>
</div>

Vertical Stack (.vstack)

Creates a vertical flex container:

<div class="vstack">
    <div>Section 1</div>
    <div>Section 2</div>
    <div>Section 3</div>
</div>

Vertical Rule (.vr)

Adds a vertical divider between elements:

<div class="hstack">
    <span>Home</span>
    <span class="vr"></span>
    <span>About</span>
    <span class="vr"></span>
    <span>Contact</span>
</div>

Positioning

Fixed Positioning

Position elements fixed to the viewport:

<!-- Fixed to top -->
<header class="fixed-top">Top Navigation</header>

<!-- Fixed to bottom -->
<footer class="fixed-bottom">Bottom Bar</footer>

Sticky Positioning

Make elements stick when scrolling:

<!-- Sticky to top -->
<nav class="sticky-top">Sticky Navigation</nav>

<!-- Sticky to bottom -->
<div class="sticky-bottom">Sticky Footer</div>

Text Utilities

Text Truncation (.truncate)

Truncate overflowing text with ellipsis:

<div class="truncate" style="width: 200px;">
    This is a very long text that will be truncated with ellipsis
</div>

Clearfix (.clearfix)

Clear floated elements:

<div class="clearfix">
    <div class="float-left">Floated content</div>
    <!-- Clearfix ensures parent contains floated children -->
</div>

Typography

Additional font family utilities for common web fonts:

<h1 class="font-inter">Heading with Inter font</h1>
<p class="font-lato">Paragraph with Lato font</p>
<h2 class="font-poppins">Heading with Poppins font</h2>
<blockquote class="font-crimson">Quote with Crimson Pro font</blockquote>
<span class="font-nunito">Text with Nunito font</span>

Customization

Customize the appearance by overriding CSS variables:

:root {
    /* Vertical rule customization */
    --helpers-vr-opacity: 0.5;        /* Default: 0.25 */
    --helpers-vr-width: 2px;           /* Default: 1px */
}

Examples

Navigation with Vertical Rules

<nav class="hstack fixed-top bg-white p-3 shadow">
    <a href="#" class="font-poppins font-weight-bold">Logo</a>
    <span class="vr mx-3"></span>
    <a href="#">Home</a>
    <span class="vr mx-2"></span>
    <a href="#">About</a>
    <span class="vr mx-2"></span>
    <a href="#">Contact</a>
</nav>

Card Layout with Stacks

<div class="card">
    <div class="vstack p-4">
        <h3 class="font-inter">Card Title</h3>
        <p class="truncate">This description will be truncated if too long...</p>
        <div class="hstack mt-auto">
            <button class="btn btn-primary">Action</button>
            <span class="vr mx-2"></span>
            <button class="btn btn-secondary">Cancel</button>
        </div>
    </div>
</div>

Sticky Sidebar Layout

<div class="relative">
    <div class="sticky-top">
        Sticky content
    </div>
    <main class="col-md-9">
        <!-- Main content -->
    </main>
</div>

Integration with LowCSS

When using with LowCSS, combine helper classes with utility classes:

<div class="hstack bg-gray-100 p-4 rounded">
    <img src="avatar.jpg" class="w-12 h-12 rounded-full">
    <span class="vr mx-3"></span>
    <div class="vstack">
        <h4 class="font-inter text-lg font-semibold">John Doe</h4>
        <p class="text-gray-600 truncate">Software Developer at Company</p>
    </div>
</div>

License

This package is licensed under the MIT License.