A child theme of LocalGov Base. Please read the README there also.
A Microsite Admin has the permission to set a number of css variables through the UI. These override the default variables set in /css/variables.css
We recommend creating a child theme of LocalGov Microsites base in order to create a custom theme for one or more of your microsites. A Microsite controller is able to install and set a new theme for a microsite.
- Create a new child theme of LocalGov Microsite Base
- Define the same regions in the .info.yml
- Create (and reference in the libraries.yml) a new /css/variables.css file
- Copy the variables you need from localgov_microsites_base/css/variables.css and set the default branding colours, fonts etc
- Enable this theme, using the "Enable" button only, not the "Enable and set as default" button. After this, you can then hit the "Set as default" button. This 2-step process is needed to ensure all the blocks from the default theme get transition to the same block regions in your new theme.