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

mere-css-utility

v0.3.2

Published

Atomic CSS classes for easier development

Downloads

2

Readme

Mere-css-utility

A set of basic CSS classes to facilitate the development process.

Features

  • Small size (3kb - minified);
  • There are base styles for normalizing a document;
  • Only the necessary minimum of CSS classes;
  • Unified custom indents.

Getting Started

Installation

npm i mere-css-utility

Quick Start

In your SCSS file:

@import "node_modules/mere-css-utility/scss/mere";

------------------------------------
or you can use only needed packages
------------------------------------

@import 'node_modules/mere-css-utility/scss/utility/base';
@import 'node_modules/mere-css-utility/scss/utility/displays';
@import 'node_modules/mere-css-utility/scss/utility/flexbox';
@import 'node_modules/mere-css-utility/scss/utility/indents';
@import 'node_modules/mere-css-utility/scss/utility/typography';

In your JS file:

import "node_modules/mere-css-utility/scss/mere.scss";

------------------------------------
or you can use only needed packages
------------------------------------

import 'node_modules/mere-css-utility/scss/utility/base.scss';
import 'node_modules/mere-css-utility/scss/utility/displays.scss';
import 'node_modules/mere-css-utility/scss/utility/flexbox.scss';
import 'node_modules/mere-css-utility/scss/utility/indents.scss';
import 'node_modules/mere-css-utility/scss/utility/typography.scss';

------------------------------------
or you can use CSS build
------------------------------------

import 'node_modules/mere-css-utility/css/mere-css-utility.css';

In your HTML file:
<link rel="stylesheet" href="https://unpkg.com/[email protected]/css/mere-css-utility.css">


Documentation

Displays

In your scss file: @import "node_modules/mere-css-utility/scss/utility/displays"

CSS class | Meaning ------------- | ------------- .d-inline | display: inline .d-inline-block | display: inline-block .d-block | display: block .d-flex | display: flex

Flexbox

In your scss file: @import "node_modules/mere-css-utility/scss/utility/flexbox"

CSS class | Meaning ------------- | ------------- .ai-flex-start | align-items: flex-start .ai-flex-end | align-items: flex-end .ai-center | align-items: center .jc-flex-start | justify-content: flex-start .jc-flex-end | justify-content: flex-end .jc-center | justify-content: center .jc-space-between | justify-content: space-between .jc-space-around | justify-content: space-around .fd-row | flex-direction: row .fd-row-reverse | flex-direction: row-reverse .fd-column | flex-direction: column .fd-column-reverse | flex-direction: column-reverse .fw-wrap | flex-wrap: wrap

Typography

In your scss file: @import "node_modules/mere-css-utility/scss/utility/typography"

CSS class | Meaning ------------- | ------------- .fs-1 | font-size: 0.75rem .fs-2 | font-size: 1rem .fs-3 | font-size: 1.25rem .fs-4 | font-size: 1.5rem .fs-5 | font-size: 2rem .fs-6 | font-size: 2.5rem .fw-light | font-weight: light .fw-normal | font-weight: normal .fw-medium | font-weight: medium .fw-bold | font-weight: bold .ta-center | text-align: center .ta-right | text-align: right .ta-left | text-align: left .tt-uppercase | text-transform: uppercase .tt-lowercase | text-transform: lowercase .tt-capitalize | text-transform: capitalize

Indents

In your scss file: @import "node_modules/mere-css-utility/scss/utility/indents"

A set of classes mb, mt, mr, ml, pt, pb, pr, pl with number postfix from 0 to 5.

Default $base-indent: 8px. If you want to rewrite base indent change the variable $base-indent.

$base-indent: 10px;
@import 'node_modules/mere-css-utility/scss/mere';

or 

$base-indent: 10px;
@import 'node_modules/mere-css-utility/scss/utility/indents';

${i} - is the number of indentation, which is a factor for $base-indent

For example .mb-3 is equal margin-bottom: 24px (8px * 3) and .mr-0 is equal margin-right: 0 (8px * 0)

CSS class | Meaning ------------- | ------------- .mb-${i} | margin-bottom: ${i} * $base-indent .mt-${i} | margin-top: ${i} * $base-indent .mr-${i} | margin-right: ${i} * $base-indent .ml-${i} | margin-left: ${i} * $base-indent .pb-${i} | padding-bottom: ${i} * $base-indent .pt-${i} | padding-top: ${i} * $base-indent .pr-${i} | padding-right: ${i} * $base-indent .pl-${i} | padding-left: ${i} * $base-indent

Base

In your scss file: @import "node_modules/mere-css-utility/scss/utility/base"

This file contains base CSS styles for reset default browsers styles.