Difference between revisions of "AppSuite:Theming"

m (How to activate a theme during development)
(How to activate a theme during development)
Line 14: Line 14:
  
 
When creating a new theme, you don’t have it installed with your frontend. In this case you don’t want to go to a complete build of a theme and reinstall it for every change. The trick is to create your theme and overwrite the default theme with it. You can then use the [[AppSuite:appserver|appserver]] proxy to ship your own version of the UI.
 
When creating a new theme, you don’t have it installed with your frontend. In this case you don’t want to go to a complete build of a theme and reinstall it for every change. The trick is to create your theme and overwrite the default theme with it. You can then use the [[AppSuite:appserver|appserver]] proxy to ship your own version of the UI.
 +
 +
To activate a theme on the backend, you have to add it to the <code>io.ox/core/settingsOptions//themes</code> list.
 +
 +
==== Example ====
 +
 +
Adding <pre>io.ox/core/settingsOptions//themes/unicorn=Friendship is Magic</pre> to <code>etc/settings/appsuite.properties</code> add a theme named <code>unicorn</code> with the name <code>Friendship is Magic</code> to the list of themes, a user can choose. Find the list in the <code>Settings -> Basic</code> view behind the option <code>Theme</code>.
  
 
== Best practice ==
 
== Best practice ==

Revision as of 15:21, 9 April 2013

In this article, you can learn how to create customized themes and use them to change the look of you appsuite installation.

File structure

definitions.less

style.less

Variables

Mixins

How to activate a theme during development

When creating a new theme, you don’t have it installed with your frontend. In this case you don’t want to go to a complete build of a theme and reinstall it for every change. The trick is to create your theme and overwrite the default theme with it. You can then use the appserver proxy to ship your own version of the UI.

To activate a theme on the backend, you have to add it to the io.ox/core/settingsOptions//themes list.

Example

Adding

io.ox/core/settingsOptions//themes/unicorn=Friendship is Magic

to etc/settings/appsuite.properties add a theme named unicorn with the name Friendship is Magic to the list of themes, a user can choose. Find the list in the Settings -> Basic view behind the option Theme.

Best practice

Caveats