GitPedia

Emma.css

๐Ÿด Emma.css { utility-classes: emmet-like; }

From ruedapยทUpdated June 19, 2026ยทView on GitHubยท

Emmet-like utility classes for rapid and easy front-end development. The project is written primarily in SCSS, distributed under the MIT License license, first published in 2015. Key topics include: bem, bower, css, css-framework, emmet.

Latest release: v0.16.1
<h1 align="center"> <img src="https://github.com/ruedap/emma.css/raw/assets/images/logo-box.svg" style="max-width:100%;" /> </h1> <p align="center">Emmet-like utility classes for rapid and easy front-end development.</p> <div align="center"> <a href="https://circleci.com/gh/ruedap/emma.css"><img src="https://circleci.com/gh/ruedap/emma.css.svg?style=shield" alt="Circle CI"></a> <a href="https://www.npmjs.com/package/emma.css"><img src="https://img.shields.io/npm/v/emma.css.svg?style=flat" alt="NPM Version"></a> <a href="https://github.com/ruedap/emma.css/blob/master/LICENSE"><img src="https://img.shields.io/github/license/ruedap/emma.css.svg" alt="License"></a> </div>

Example

Emma.css classEmmet abbreviationDeclaration (Expanded abbreviation)
.d-bd-bdisplay: block;
.d-fxd-fxdisplay: flex;
.m-am-amarign: auto;
.m0m0margin: 0;
โ€•m-5margin: -5px;
.w1w1width: 1px;
.h100ph100pheight: 100%;
.mah50vhmah50vhmax-height: 50vh;
.ff-tff-tfont-family: "Times New Roman", Times, Baskerville, Georgia, serif;
.fz16fz16font-size: 16px;
.fz-smโ€•font-size: small;
.pb-mdโ€•padding-bottom: 1.0rem; (default value)
.ml-lgโ€•margin-left: 2.0rem; (default value)

See emma.css (all classes)

Emma.css only:

html
<article class="cf"> <img class="d-b fl-l w-a mr-xl bdrs3" src="foo.png"> <div class="fl-l ml-lg p-md"> <h1 class="m0 ff-t">Title</h1> <p class="wow-bw wfsm-a">Description</p> <a class="d-ib fz-sm lh2" href="#">Read more</a> </div> </article>

SUIT CSS naming convention + Emma.css (set prefix u-):

html
<article class="Excerpt u-cf"> <img class="Excerpt-thumbnail u-d-b u-fl-l u-w-a" src="foo.png"> <div class="u-fl-l u-ml-lg u-p-md"> <h1 class="Excerpt-title">Title</h1> <p class="u-wow-bw u-wfsm-a">Description</p> <a class="Excerpt-readMore" href="#">Read more</a> </div> </article>

Installation

Install or download Emma.css from one of these sources.

sh
npm install --ignore-scripts emma.css

Download

https://github.com/ruedap/emma.css/releases

Getting Started

Basic usage

SCSS:

scss
@import "emma.css/scss/all";

CSS output:

css
.pos-s { position: static !important; } .pos-a { position: absolute !important; } .pos-r { position: relative !important; } (snip)

Add prefix to utility classes

You can add prefix to utility classes by $emma-prefix variable:

scss
$emma-prefix: "u-"; // Set prefix @import "emma.css/scss/all";

CSS output:

css
.u-pos-s { position: static !important; } .u-pos-a { position: absolute !important; } .u-pos-r { position: relative !important; } (snip)

Remove !important annotations

You can remove !important annotations by $emma-important variable:

scss
$emma-important: false; // Remove !important annotations @import "emma.css/scss/all";

CSS output:

css
.pos-s { position: static; } .pos-a { position: absolute; } .pos-r { position: relative; } (snip)

Change default sizes or colors

You can change default sizes or colors by variables:

scss
$emma-padding-md: 20px; // default: `1.0rem` $emma-color-black: #000; // default: `#111111` @import "emma.css/scss/all";

License

Released under the MIT license.

Author

ruedap

Contributors

Showing top 4 contributors by commit count.

View all contributors on GitHub โ†’

This article is auto-generated from ruedap/emma.css via the GitHub API.Last fetched: 6/28/2026