---
Name: mytheme
---
SilverStripe\View\SSViewer:
themes:
- '$public'
- 'simple'
- '$default'
$public theme set#
In addition there is a new helper pseudo-theme that you can configure to expose files in the public/ folder to the themed css / javascript file lookup. For instance, this is how you can prioritise those files:
This would allow <% require themedCSS('style.css') %>
to find a file committed to public/css/style.css.
Note that Requirements calls will look in both the public folder (first) and then the base path when resolving css or javascript files. Any files that aren’t in the public folder must be exposed using the composer.json “expose” mechanism described below.
$default theme set#
$themeset - Any $ prefixed name will refer to a set of themes. By default only $default set is configured, which represents all module roots with a templates directory.
To define extra themes simply add extra entries to the SilverStripe\View\SSViewer.themes configuration array. You will probably always want to ensure that you include ‘$default’ in your list of themes to ensure that the base templates are used when required.