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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ivteplo/utilities.css

v1.1.1

Published

CSS library with utility classes

Downloads

1,184

Readme

utilities.css

CSS library with utility classes

Installation

npm install @ivteplo/utilities.css
# or, if you prefer yarn:
yarn add @ivteplo/utilities.css

Usage

Via CDN

Add this piece of code into the <head> tag in your HTML file:

<link rel="stylesheet" href="https://unpkg.com/@ivteplo/utilities.css/build/main.css">

Or, if you want to use the minified version:

<link rel="stylesheet" href="https://unpkg.com/@ivteplo/utilities.css/build/main.min.css">

Import from JavaScript

This requires a bundler that supports importing CSS:

import "@ivteplo/utilities.css/build/main.css"

Or minified version:

import "@ivteplo/utilities.css/build/main.min.css"

Import from CSS

Using bundler:

@import "@ivteplo/utilities.css";

Using CDN:

@import "https://unpkg.com/@ivteplo/utilities.css/build/main.min.css";

Classes

Flexbox

  • .row - flexbox container with horizontal direction
    • .reversed-order - reverse the order of items
    • .wrap - wrap the items that overflow the horizontal axis to a new line
    • .reversed-wrap - the same as .wrap, but in reverse order
    • .no-wrap - disable wrapping of children
    • .items-start, .items-center, .items-end, .items-stretch, .items-baseline - vertical alignment of children
    • .content-start, .content-center, .content-end, .content-stretch, .content-baseline - vertical alignment of children if there some children have been wrapped to a new row
    • .justify-start, .justify-center, .justify-end, .justify-stretch, .justify-baseline - horizontal alignment of children
  • .column - flexbox container with vertical direction
    • .reversed-order - reverse the order of items
    • .wrap - wrap the items that overflow the vertical axis to a new column
    • .reversed-wrap - the same as .wrap, but in reverse order
    • .no-wrap - disable wrapping of children
    • .items-start, .items-center, .items-end, .items-stretch, .items-baseline - horizontal alignment of children
    • .content-start, .content-center, .content-end, .content-stretch, .content-baseline - horizontal alignment of children if there some children have been wrapped to a new column
    • .justify-start, .justify-center, .justify-end, .justify-stretch, .justify-baseline - vertical alignment of children
  • .fill - fill the parent, applies to a child of a flexbox container

Fonts

  • Font weights
    • .font-thin (100)
    • .font-extra-light (200)
    • .font-light (300)
    • .font-regular (400)
    • .font-medium (500)
    • .font-semibold (600)
    • .font-bold (700)
    • .font-extra-bold (800)
    • .font-black (900)
  • Font families
    • .font-system - default system font

Text

  • Text alignment
    • .text-left
    • .text-center
    • .text-right
    • .text-justify

Miscellaneous

Selection of text and other objects:

  • .selectable - enable selection
  • .not-selectable - disable selection

Mouse cursor:

  • .cursor-pointer - show pointer cursor on hover

Development

Prerequisites

  • Node.js and npm

Setup

  1. Clone the repository
git clone https://github.com/ivteplo/utilities.css
  1. Navigate to the folder
cd utilities.css
  1. Install dependencies
npm install
  1. Happy hacking! 🎉

Scripts / tasks

  • Make a new CSS build
npm run build
  • Rebuild on changes
npm run watch
  • Format source files
npm run format