An ActiveAdmin skin based on Google's Material Design.
- Add
gem 'active_material'
toGemfile
and runbundle install
- Add
import "active_material"
to JS entrypoint (a JS file that is included for activeadmin) - Add
@import "active_material";
in your CSS style file (the active_material SCSS files are included in the asset path automatically, but you will need to have SCSS build capabilities, using dartsass-rails or similar)
NOTE: no need to pin the import in your application. That's handled internally by the gem.
npm install --save active_material
oryarn add active_material
- Add
import "active_material"
to your JS pack file - Add
@import "active_material/app/assets/stylesheets/active_material.scss";
to your CSS style file
By default, this gem will load the Roboto font from google APIs and use it in the SCSS. If you would like to change that behavior, you have a few options:
- If you want to change to another font:
- In your application config, set
config.active_material.font_url
to your font url - In your SCSS file, just before
@import "active_material";
, add$am-font-sans: 'Roboto';
, replacingRoboto
with your font name.
- In your application config, set
- If you want to disable font loading altogether, you can use
config.active_material.load_font = true
For other customization options, see customization.md
See CONTRIBUTING.md