Customizing themes in a dashboard space
A theme defines the overall structure, appearance, and behavior of a space. By default, all spaces use the standard theme that is provided with the product. You can create one or more custom themes to replace or augment this default theme.
About this task
The theme is a powerful set of programming artifacts that
you can use to control every aspect of how a page is displayed in
a space. However, for most customization purposes, for example, changing
the color or images used within a space, consider customizing the
styles used for the space rather than creating a new theme. Customizing
the theme of a space is a much more complex undertaking, and has implications
for space maintenance, migration, and upgrades to later product versions.
For more information about customizing styles, see Creating and customizing styles for dashboard spaces.
Important: Before you customize the theme, be aware of the following:
- Customizing a theme requires familiarity with HTML, CSS, JavaScript, the iWidget specification, and the Dojo widget library.
- If you customize a theme, any IBM® updates to the default theme artifacts will not be applied during regular service or maintenance activities. Customized themes must be updated and maintained manually.
The following files and folders define and control the theme for a space.
| File or folder name | Description |
|---|---|
| theme.html | The theme is primarily defined by the theme.html file. This file contains four types of elements:
|
| embed.html | A simplified version of theme.html, this file contains the main lotusFrame markup with the widgets and is used to display the content area when a page is embedded on another web page. |
| metadata.properties | The properties file that contains identifying information for the theme. |
| theme.css and bspaceCustom.css | The style sheets that control the appearance
of the theme. If you plan to make style changes to the theme, you need to either edit these files or create an additional CSS file as a peer of theme.css and bspaceCustom.css. |
| banner | This folder contains the dynamic content needed for banner customization. |
| images | This folder contains the images used in the theme. |
| menuDefinitions | This folder contains JavaScript Object Notation (JSON) files used to customize the content in context menus. |
| metaData | This folder contains the localized_en.properties file, which defines the name of theme shown in the Choose a theme for this space drop-down menu. |
| spaceStyles | This folder contains JavaScript files and subfolders used to apply different styles to the interface. |
| Standard | This folder contains the standard skin for widgets. This skin has a border around each widget and a toolbar on top with a context menu and icons for minimizing, maximizing, and restoring widget size. |
| Thin | This folder contains a widget skin that hides the border and the toolbar. |