SASS-ZERO

SASS-ZERO is a css framework that brings concepts from tailwindcss and milligram but with ideas from BEM, Refactoring UI and Shape UP.

screenshot

Installation

bundle add sassc-rails
bundle add sass-zero

Usage

Add these lines to your application.css:

 *= require sass-zero/base
 *= require sass-zero/utilities
 *= require sass-zero/breadboard

Using variables

Create some stylesheet using BEM and SASS-ZERO Variables:

@import "sass-zero/variables";

.block {
  color: $red-300;

  &__element {
    color: $red-400;
  }

  &--modifier {
    color: $red-500;
  }
}
<div class="block block--modifier">
  <div class="block__element" />
</div>

Breadboard Theme

Variables

Utilities

References

Development

To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and the created tag, and push the .gem file to rubygems.org.

License

The gem is available as open source under the terms of the MIT License.