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

light-grid

v2.1.1

Published

A lightweight, responsive, Sass-based CSS grid and utility system inspired by Bootstrap but optimized for speed and flexibility.

Downloads

730

Readme

📘 LightGrid

npm version sass

LightGrid is a lightweight, responsive, and fully configurable Sass-based grid and utility framework.
It’s built for developers who want modern CSS features (Flexbox, CSS Grid, logical properties) in a clean, minimal, and customizable system.


🚀 Features

  • 🧱 12-column grid system
  • 📱 Responsive design with breakpoint utilities
  • ⚙️ Configurable spacing, containers, and breakpoints
  • 💡 Utility-first classes (flex, text, spacing, display, etc.)
  • 🪶 Ultra lightweight — only a few KB after build
  • 🧩 Fully written in modern Sass (@use, @each, logical CSS)

📦 Installation

npm install light-grid

Or add via CDN (compiled CSS):

<link rel="stylesheet" href="https://unpkg.com/light-grid/dist/lightgrid.css" />

🧩 Usage

Import the main Sass entry file into your project:

@use "light-grid";

Or include the compiled CSS directly:

<link rel="stylesheet" href="light-grid/dist/lightgrid.css" />

🧱 Basic Grid Example

<div class="row">
  <div class="col-12 col-md-6 col-lg-4">Column 1</div>
  <div class="col-12 col-md-6 col-lg-4">Column 2</div>
  <div class="col-12 col-md-6 col-lg-4">Column 3</div>
</div>

| Class | Description | |--------|-------------| | .row | Creates a grid row | | .col-* | Defines column width | | .col-lg-* | Column width at lg breakpoint |


📐 Responsive Prefixes

Responsive classes follow this pattern:

.col-{breakpoint}-{columns}

Example:

<div class="col-12 col-md-6 col-lg-4"></div>
  • sm → 576px
  • md → 768px
  • lg → 992px
  • xl → 1200px
  • xxl → 1400px

Responsive classes are available not only for columns, but also for any utility class (display, flex, text, spacing, etc.).


🧰 Utility Classes

🪟 Display

| Class | CSS | |-------|-----| | .d-block | display: block; | | .d-flex | display: flex; | | .d-grid | display: grid; | | .d-none | display: none; |

🧭 Flex

| Class | CSS | |-------|-----| | .flex-row | flex-direction: row; | | .flex-column | flex-direction: column; | | .justify-center | justify-content: center; | | .align-center | align-items: center; | | .flex-wrap | flex-wrap: wrap; |

📝 Text

| Class | CSS | |-------|-----| | .text-start | text-align: start; | | .text-center | text-align: center; | | .text-end | text-align: end; | | .text-uppercase | text-transform: uppercase; |

📏 Spacing

| Class | CSS | |---------|-------------------------| | .m-1 | margin: 4px; | | .p-3 | padding: 16px; | | .mt-2 | margin-top: 8px; | | .px-4 | padding-inline: 24px; | | .g-2 | gap: 8px; | | .gc-1 | gap-column: 4px; | | .gr-4 | gap-row: 24px; |

💨 Overflow

| Class | CSS | |-------|-----| | .overflow-hidden | overflow: hidden; | | .overflow-auto | overflow: auto; |

⚙️ Configuration (Sass Variables)

You can customize every core part of the system — including grid behavior, breakpoints, container widths, gaps, and spacing. All configurable variables are defined in core/_config.scss.

// 🧱 Grid system
$grid_columns_count: 12 !default;   // Total number of columns
$grid_gap: 16px !default;           // Default gap between columns

// 📱 Responsive breakpoints
$breakpoints: (
        sm: 576px,
        md: 768px,
        lg: 992px,
        xl: 1200px,
        xxl: 1400px
) !default;

// 📦 Container max-widths
$container_max_widths: (
        sm: 540px,
        md: 720px,
        lg: 960px,
        xl: 1140px,
        xxl: 1320px
) !default;

// 📏 Spacing scale
$spacers: (
        0: 0,
        1: 4px,
        2: 8px,
        3: 16px,
        4: 24px,
        5: 32px,
) !default;

🔧 Example — Custom Configuration

You can override any variable before importing LightGrid:

@use "light-grid/core/config" with (
  $grid_columns_count: 16,
  $grid_gap: 24px,
  $breakpoints: (
    sm: 640px,
    lg: 1280px,
  ),
  $spacers: (
    1: 6px,
  )
);

This allows full control over grid layout and spacing logic without modifying the core files.


🧪 Example (CodePen / Sandbox)

You can test LightGrid directly in CodePen or StackBlitz: 👉 LightGrid Playground (coming soon)


📏 Browser Support

| Browser | Supported | |----------|------------| | Chrome | ✅ | | Firefox | ✅ | | Edge | ✅ | | Safari | ✅ | | Opera | ✅ |

(IE is not supported — LightGrid uses modern CSS features like logical properties and gap.)


🧠 Philosophy

Minimal setup. Modern CSS. Maximum control.
LightGrid doesn’t try to replace frameworks — it’s designed to complement your existing UI kit or design system.


🧾 License

MIT License © 2025 LightGrid


👨‍💻 Author

Samir Ahmadov