-
Notifications
You must be signed in to change notification settings - Fork 33
Themes
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.
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.
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
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.
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