All Projects β†’ ruedap β†’ emma.css

ruedap / emma.css

Licence: MIT license
🍴 Emma.css { utility-classes: emmet-like; }

Programming Languages

SCSS
7915 projects
CSS
56736 projects
typescript
32286 projects

Projects that are alternatives of or similar to emma.css

cra-tailwindcss-in-js
Integrate Tailwind CSS in a Create React App setup using css-in-js solutions
Stars: ✭ 35 (-33.96%)
Mutual labels:  utility, css-framework, utility-classes
steller-css
⛰️ A utility-first CSS framework that serves as the foundation of your design system
Stars: ✭ 14 (-73.58%)
Mutual labels:  css-framework, utility-classes
hucssley
Hucssley - a full-featured, consistent, atomic utility class library for rapidly building performant UI
Stars: ✭ 79 (+49.06%)
Mutual labels:  css-framework, utility-classes
cra-tailwindcss
Integrate Tailwind CSS in a Create React App setup
Stars: ✭ 105 (+98.11%)
Mutual labels:  css-framework, utility-classes
Tailwindcss
A utility-first CSS framework for rapid UI development.
Stars: ✭ 50,879 (+95898.11%)
Mutual labels:  css-framework, utility-classes
Skin
Pure CSS framework designed & developed by eBay for a branded, e-commerce marketplace.
Stars: ✭ 126 (+137.74%)
Mutual labels:  bem, css-framework
atomize
A library of atomic CSS classes.
Stars: ✭ 51 (-3.77%)
Mutual labels:  css-framework, utility-classes
Bem Kit
πŸ’„ CSS UI kit with BEM convention and SASS
Stars: ✭ 69 (+30.19%)
Mutual labels:  bem, css-framework
Kanbasu
A lightweight CSS framework written in Sass.
Stars: ✭ 94 (+77.36%)
Mutual labels:  bem, css-framework
web-starter-kit-gulp
Starter kit for automated front-end web development using Gulp, NPM, Bower, Babel, Sass, and Pug.
Stars: ✭ 35 (-33.96%)
Mutual labels:  bower, bem
HypeStyle
Small, useful CSS library build on utility classes & components.
Stars: ✭ 28 (-47.17%)
Mutual labels:  css-framework, utility-classes
holiday.css
A minimalist classless CSS theme
Stars: ✭ 88 (+66.04%)
Mutual labels:  css-framework
kubernetes-basico
Demonstração dos componentes do Kubernetes
Stars: ✭ 26 (-50.94%)
Mutual labels:  utility
ee-x
Cross-platform library for Cocos2d-x and Unity
Stars: ✭ 13 (-75.47%)
Mutual labels:  utility
transee
Simple and useful tool for quick translation
Stars: ✭ 65 (+22.64%)
Mutual labels:  utility
as-a
Runs a given command with additional environment settings for simple local development
Stars: ✭ 60 (+13.21%)
Mutual labels:  utility
actlist
πŸ“¦ Actlist is a utility platform to execute your own action list easily and simply.
Stars: ✭ 85 (+60.38%)
Mutual labels:  utility
q-municate-web
Q-municate Web chat application
Stars: ✭ 66 (+24.53%)
Mutual labels:  bower
project-manager-laravel
Project manager system - PHP and AngularJS
Stars: ✭ 17 (-67.92%)
Mutual labels:  bower
fhash
fHash - an open source files hash calculator for Windows and macOS
Stars: ✭ 222 (+318.87%)
Mutual labels:  utility

Emmet-like utility classes for rapid and easy front-end development.

Circle CI NPM Version License

Example

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>

Installation

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

Getting Started

Basic usage

SCSS:

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

CSS output:

.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:

$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)

Remove !important annotations

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)

Change default sizes or colors

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";

License

Released under the MIT license.

Author

ruedap

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].