Chapter 8. Creating a Custom Theme
Plone 4 ships with a default theme called Sunburst. This is designed to be clean, color neutral, and minimalist, and as such can be a good starting point for intranets and websites where branding is a secondary concern. Most projects, however, end up needing to customize the look and feel to meet organizational branding requirements.
In this chapter, we will demonstrate how to:
- Create a custom theme using the Diazo theming engine and
plone.app.theming
- Customize templates and views
- Override a few of Plone's layout policies and visual elements
Background
In Plone 3, theming a Plone site involved selectively overriding page templates and resources such as stylesheets and images to modify the markup, styles, and images making up Plone's public face. This approach to theming is still possible in Plone 4, but it suffers from a fundamental problem—the more complex Plone's internals become, the harder it is to find all the templates and...