Home

Awesome

CoreUI::Rails

A simple gem for adding the CoreUI-Free admin template (by Łukasz Holeczek's) to a Rails project's asset pipeline.

For convenience this gem depends on the following gems:

The following resources are requirements of CoreUI and are therefore included:

This is currently being used in an admin engine as part of a larger modular Rails application.

Installation

Add this line to your application's Gemfile:

gem 'coreui-rails'

And then execute:

$ bundle install

Usage

Add the following lines to your rails project

Stylesheets

// app/assets/stylesheets/application.scss

@import "custom-variables";
@import "coreui-free";
// app/assets/stylesheets/_custom-variables.scss

$navbar-bg: rgb(201, 201, 201);
$navbar-brand-bg: transparent;
$navbar-brand-logo: url(asset-path("my_logo.png"));

Javascripts

// app/assets/javascripts/application.js

//= require coreui-free

Includes

IncludeVersion
Bootstrap4.0.0
CoreUI-Free1.0.10

License