Active S95
Installation
Add this line to your application's Gemfile:
gem 'active_s95'Then execute:
bundle installOr install it yourself:
gem install active_s95Usage
Basic Setup
In your ActiveAdmin stylesheet (app/assets/stylesheets/active_admin.scss), replace the default import with:
@import "active_s95";JavaScript Setup
In your ActiveAdmin JavaScript file (app/assets/javascripts/active_admin.js), add:
//= require active_s95/mainThat's it! Your ActiveAdmin interface will now use the Active S95 theme.
Overriding Styles
You can customize the theme by adding your own styles after the import:
@import "active_s95";
// Your custom overrides
.active_admin {
// Custom styles here
}Color Scheme
The theme uses a carefully crafted color palette. You can override variables before importing:
// Define your custom colors
$primary-color: #your-color;
$secondary-color: #your-color;
@import "active_s95";Development
Prerequisites
- Ruby 2.5+
- Bundler ~> 1.5
- ActiveAdmin >= 1.1.0
Setup
Clone the repository:
git clone https://github.com/SomeoneUnlicensed/active_s95.git
cd active_s95Install dependencies:
bundle install
yarn install # or npm installBuilding
To prepare the package for publishing:
yarn prepublishOnlyThis will copy assets to the src directory for distribution.
Requirements
- ActiveAdmin: 1.1.0 - 3.x
- Font Awesome Sass: ~> 6.0
- Ruby: 2.5+
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request