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

@oardi/css-utils

v0.65.0

Published

Powerful set of semantic css classes with support for breakpoints, directions and spacings

Readme

CSS Utils

A lightweight frontend style toolkit built with SCSS, CSS variables and cascade layers.

CSS Utils provides utility classes, responsive helpers and reusable component styles for building modern layouts without writing repetitive custom CSS.

Features

  • Utility classes for colors, typography, spacing, display, flex and grid
  • Mobile-first responsive variants
  • Reusable component styles for buttons, cards, forms, badges, tabs, toasts and more
  • Customizable design tokens based on CSS variables
  • Organized with CSS cascade layers

Showcase

Setup

Install npm package

npm i @oardi/css-utils

Create a layer order

To ensure correct cascade layer ordering, create a layers.scss file:

@layer reset, base, components, utilities;

Import it before the library styles:

@use 'layers.scss';
// ...

Import the library

Import the full library with all utilities, responsive helpers and component styles:

@use '@oardi/css-utils/scss/index.scss';

Usage

Utility classes

<div class="text-center bg-primary p-3">some text</div>

This creates a centered text block with background color and padding.

Responsive utilities

<div class="grid">
	<div class="col-12 col-md-6 col-lg-4">Responsive column</div>
</div>

Utilities are mobile-first. Classes without a breakpoint apply to all screen sizes, while breakpoint variants apply from the defined breakpoint and up.

Component classes

<button class="btn btn-primary btn-solid" type="button">some button text</button>

Component variants

Many components follow the same pattern:

Base class    → .btn
Color class   → .btn-primary
Variant class → .btn-solid
Size class    → .btn-sm
State class   → .is-active

Example:

<button class="btn btn-primary btn-outline btn-sm" type="button">Small outline button</button>

Customization

CSS Utils is based on CSS variables, so you can customize the look of the system from your own stylesheet.

:root {
	--primary: #0057ff;
	--on-primary: #ffffff;

	--bg-body: #fdfdfd;
	--bg-surface: #ffffff;
	--bg-inverse: var(--gray-900);

	--text-color: var(--gray-900);
	--text-inverse: #ffffff;

	--border-radius: 0.5rem;
}

You can also override component variables locally:

<button class="btn btn-primary btn-solid" type="button" style="--button-border-radius: 9999px;">Rounded button</button>

Documentation

The full documentation and showcase are available at:

https://css-utils.oardi.com

Maintainer

Developed and maintained by Ardian Shala

Credits and inspiration

CSS Utils is inspired by ideas and patterns from: