Using a Style Book to Standardize Site Appearance¶
A Style Book is a set of visual rules that apply to a Site to provide a consistent experience across its pages. They determine various visual settings on the Site, including spacing between elements (such as widgets), colors, and fonts. Each of these settings applies equally to every page using the Style Book.
The theme you assign to your Site’s Public Pages determines the categories of settings available to the Style Books for your Site. Developers can customize the categories with new options for configuring Style Books. See Style Book Token Definitions for more information.
Choosing a Style Book for a Page¶
If you do not choose a specific Style Book for a page, the page uses the Style Book for the Master Page. If neither are set, the page uses the default Style Book for the Site.
Follow these steps to set any page’s Style Book:
Click the Edit icon () near the top of the page.
Click the icon () on the right side of the screen to open the Page Design Options menu.
Click to open the Style Book tab.
Select the desired Style Book from the list.
The page is published using the new Style Book.
Creating a New Style Book¶
Navigate to the Site Menu → Style Books.
Click the Add icon () near the top of the page.
Enter a name for the Style Book and click Save.
Change the options from the categories in the drop-down box in the menu on the right side of the screen.
These options come from the theme being used for your Site. See the default Classic theme categories for more information on the categories available for the default Classic theme.
The Style Book can now be selected as an option for any page when editing.
To make this Style Book the new default for your Site, open the Actions menu () beside the newly created Style Book and click Mark as Default.
Default Classic Theme Categories¶
When you are editing a Style Book, the categories available from the drop-down box show different options for styling your pages.
You can place the
Style Guide Sample widget on your pages to help test out the various options in your Style Book categories. This sample widget contains many different UI elements that leverage most of the features in the Classic theme, so you can use it to test your page styles.
The categories listed here are available as options for the Classic theme.
The colors used for fonts and visual elements defined in your theme are customizable in the Color System category. Generally, this means you can modify the body, background, and text colors on your pages.
Changing the colors for alert-related elements (such as Success or Warning) may not affect the color of incoming alerts on your Site because each type of alert may use one of many colors. In order to fully customize the color of alerts, you must define a variety of customizable colors and use them in your own theme’s categories.
Adjust the spacing between the main elements on your pages with the options in the Spacing category.
These options modify color and spacing on elements that appear on every page of your Site. For example, the Body Background option changes the background color of all pages.
These options modify the width of containers on your pages. For example, the default container on new Blank pages is configurable via the size of the Extra Large setting.
These options define new fonts for your pages. You can also adjust the size of headers via the options in this category.