Skip to content
Kavya Sukumar edited this page Mar 17, 2016 · 5 revisions

Themes control how your projects look.

Autotune provides themes as a list of variables that can be passed on to the projects. This can include colors, styles, social media account handles and more.

Creating a theme

Themes can be created and managed through the UI by superusers and users who have designer role for a group.

Read more about customizing themes in your autotune setup.

Controlling access

Themes belong to groups. A group has one or more themes.

Read more about groups here and about customizing them.

When a new group is created, it is automatically assigned a default theme. A group's default theme cannot be deleted. It can be edited by users with the required roles

Inheritance in themes

Themes follow an inheritance model. Every group has a default theme. More themes can be added to a group and they inherit from the default theme. Values specified at the theme level override the default value.

The minimum required set of variables can be defined in the generic theme at config\initializers\autotune.rb. These values are copied over to all new themes.

Using themes in blueprints

Theme gets converted into json on build and gets passed on to the project under theme_data property.

theme_data json current only supports up to two levels of nesting

Clone this wiki locally