-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add customization doc, move active_material to parent to make it shor…
…ter to include
- Loading branch information
Showing
5 changed files
with
59 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
# ActiveMaterial | ||
|
||
ActiveAdmin skin based on Google's Material Design. | ||
An ActiveAdmin skin based on Google's Material Design. | ||
|
||
<img src="http://i.imgur.com/kDkGzYe.png"> | ||
|
||
1. [Installation](#installation) | ||
2. [Usage](#usage) | ||
3. [Customization](#customization) | ||
4. [Contributing](#contributing) | ||
|
||
## Installation | ||
|
||
Add this line to your application's Gemfile: | ||
|
@@ -14,17 +19,25 @@ gem "active_material", git: "[email protected]:vigetlabs/active_material.git" | |
|
||
And then execute: | ||
|
||
```shell | ||
$ bundle | ||
``` | ||
|
||
Or install it yourself as: | ||
|
||
```shell | ||
$ gem install active_material | ||
``` | ||
|
||
## Usage | ||
|
||
In `app/assets/stylesheets/active_admin.css.scss`, replace `@import "active_admin/base";` with `@import "active_material/active_material";`. If you wish to override the [default colors][1], do that *before* the `@import` statement. | ||
In `app/assets/stylesheets/active_admin.css.scss`, replace `@import | ||
"active_admin/base";` with `@import | ||
"active_material/active_material";`. with `@import "active_material";` | ||
|
||
## Customization | ||
|
||
[1]: https://github.com/vigetlabs/active_material/blob/master/app/assets/stylesheets/active_material/values/colors.scss | ||
Refer to the [Customization Guide](./docs/customization.md') | ||
|
||
## Contributing | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Customizing ActiveMaterial | ||
|
||
This document is a work in progress. As customization needs arise, it | ||
will be updated to provide an official answer for customizing ActiveMaterial. | ||
|
||
1. Customizing the Color Theme | ||
|
||
## Customizing the Color Theme | ||
|
||
Definitions of all colors exist in | ||
[a single colors.scss file](`../app/assets/stylesheets/active_material/values/colors.scss`). These | ||
color variables are assigned using the `!default` Sass flag, so they | ||
can be easily overridden. | ||
|
||
Specifically, there are a few key color variables important when | ||
retheming: | ||
|
||
**$am-theme-primary**: The main color. This shows itself in the | ||
header, links, and other important elements. | ||
|
||
**$am-theme-primary-700**: A darker version of the primary color used for | ||
contrast. This shows itself within important elements that overlay | ||
containers that are already treated with the primary color. | ||
|
||
**$am-theme-secondary**: Used for your primary action button and | ||
components like switches or sliders. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module ActiveMaterial | ||
VERSION = "0.0.1" | ||
VERSION = "1.0.0" | ||
end |