
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
Emmet-like utility classes for rapid and easy front-end development.
| Emma.css class | Emmet abbreviation | Declaration (Expanded abbreviation) |
|---|---|---|
| .d-b | d-b | display: block; |
| .d-fx | d-fx | display: flex; |
| .m-a | m-a | marign: auto; |
| .m0 | m0 | margin: 0; |
| ― | m-5 | margin: -5px; |
| .w1 | w1 | width: 1px; |
| .h100p | h100p | height: 100%; |
| .mah50vh | mah50vh | max-height: 50vh; |
| .ff-t | ff-t | font-family: "Times New Roman", Times, Baskerville, Georgia, serif; |
| .fz16 | fz16 | font-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:
<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-):
<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>
Install or download Emma.css from one of these sources.
npm install emma.css
Rails (RubyGems)
gem install emma-css-rails
Download
https://github.com/ruedap/emma.css/releases
Alfred
https://github.com/ruedap/alfred-emma-css-workflow
SCSS:
@import "emma.css/scss/all";
CSS output:
.pos-s { position: static !important; }
.pos-a { position: absolute !important; }
.pos-r { position: relative !important; }
(snip)
You can add prefix to utility classes by $emma-prefix variable:
$emma-prefix: "u-"; // Set prefix
@import "emma.css/scss/all";
CSS output:
.u-pos-s { position: static !important; }
.u-pos-a { position: absolute !important; }
.u-pos-r { position: relative !important; }
(snip)
You can remove !important annotations by $emma-important variable:
$emma-important: false; // Remove !important annotations
@import "emma.css/scss/all";
CSS output:
.pos-s { position: static; }
.pos-a { position: absolute; }
.pos-r { position: relative; }
(snip)
You can change default sizes or colors by variables:
$emma-padding-md: 20px; // default: `1.0rem`
$emma-color-black: #000; // default: `#111111`
@import "emma.css/scss/all";
Released under the MIT license.
FAQs
Emma.css { emmet-like utility classes }
We found that emma.css demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.