Customizing themes - kavyasukumar/shenanigans GitHub Wiki
Default version of Autotune comes with a Generic
group that has a generic
theme.
More info on groups are here .
Creating themes
Every group created comes with its own default theme. To customize the creation of groups see instructions here
Additional themes can be created in the UI by user with superuser
or designer
roles.
Defining themes
Generic theme is defined at config\initializers\autotune.rb
. This is used as the template for all themes.
conf.generic_theme = {
'general' => {
'homepage_redirect' => 'voxmedia.com'
},
'colors' => {
'primary-color' => '#292929',
'secondary-color' => '#e6e6e6'
},
'fonts' => {
'body-font-family' => 'Verdana, Helvetica, Roboto, Arial, sans-serif',
'header-font-family' => "Georgia, Cambria, 'Times New Roman', Times, serif"
},
'social' => {
'twitter-handle' => '@voxmediainc'
}
}
This theme can be modified to specify variables or properties that all blueprints should have access to.
Be careful when you remove a variable. One of your blueprints may depend on it.
Theme definition only supports two levels of nesting