# mere-css-utility

> Atomic CSS classes for easier development

Latest version **0.3.2** (published 2020-04-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install mere-css-utility
pnpm add mere-css-utility
yarn add mere-css-utility
bun add mere-css-utility
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.2 |
| Published | 2020-04-19 |
| First published | 2020-04-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 20 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Egor Korol |
| Maintainers | egorkorol |
| Keywords | CSS, atomic, SCSS, utility, classes |

## Links

- npm: https://www.npmjs.com/package/mere-css-utility
- Repository: https://github.com/EgorKorol/mere-css-utility
- Homepage: https://github.com/EgorKorol/mere-css-utility#readme
- Issues: https://github.com/EgorKorol/mere-css-utility/issues
- npm.io page: https://npm.io/package/mere-css-utility

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 0.3.2 (latest) — 2020-04-19
- 0.3.1 — 2020-04-19
- 0.3.0 — 2020-04-19
- 0.2.0 — 2020-04-18
- 0.1.2 — 2020-04-18
- 0.1.1 — 2020-04-18

## 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

```console
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/mere-css-utility@0.3.2/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.

---
_Source: https://npm.io/package/mere-css-utility · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
