fuelux-rails-sass
Fuel UX for Rails asset pipeline
Installation
- Add to your
Gemfile
and install with bundler:
gem 'fuelux-rails-sass'
bundle install
- Add to your
config/initializers/assets.rb
in order to have the fonts for Fuel UX precompiled:
Rails.application.config.assets.precompile << /\.(?:svg|eot|woff|ttf)$/
- Require the modified Fuel UX javascript file in
app/assets/javascripts/application.js
:
//= require fuelux
Or in app/assets/javascripts/application.js.coffee
:
#= require fuelux
- Require the modified Fuel UX css file in
app/assets/stylesheets/application.css
:
*= require fuelux
Or in app/assets/javascripts/application.css.scss
/ app/assets/javascripts/application.css.sass
:
@import "fuelux";
@import fuelux
- Add the
fuelux
class to a page wrapper (usually either<html>
tag or<body>
tag)
<html class="fuelux">
Acknowledgements
Fuel UX created by Salesforce Marketing Cloud, Inc., licensed under the BSD-3 license
Copyright Gavin Lam, released under the MIT License.