New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

lowcss-helpers

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lowcss-helpers

A collection of essential CSS helpers to complement LowCSS.

latest
Source
npmnpm
Version
0.34.1
Version published
Weekly downloads
17
41.67%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

css

FAQs

Package last updated on 19 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts