Material Design Lite, for Rails!
A gemified version of Google's Material Design Lite library.
To your Rails application's Gemfile, add
gem 'material_design_lite-rails', '~> 1.3'
And then run
application.js file, add:
//= require material
Do one of the following:
application.css , add
*= require material
If you're using sass, use sass's
This gem only provides the compiled CSS file from
If you're looking for the individual Sass files,
so you can take only parts of Material Design Lite,
you should use
Material Design Lite uses a font called 'Material Icons'. You can either load this font from google, or host it yourself.
Load font from google
Add the following line to your
application.html.erb view layout file,
<%= stylesheet_link_tag "https://fonts.googleapis.com/icon?family=Material+Icons" %>
Host font locally
material_icons gem to host the font locally.
This gem is versioned semantically,
in line with
If there needs to be a release of this gem without a corresponding release to
google/material-design-lite' to the repo, an additional digit will be added
(so if this gem's version is
188.8.131.52, google's version would still be
The first three digits will always be the same as
- Add tests (make sure CSS/JS loads, and check version)
- Add view helpers, to ease burden of manually adding all the classes.
- Fix issue where you need to manually create
- Fork it ( https://github.com/cllns/material_design_lite-rails/fork )
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create a new Pull Request