Why a Boost child theme is the usual starting point for Moodle branding
If you need Moodle to match your brand and still expect to take upgrades without a rebuild each time, the usual answer is a child theme of Boost. Boost is Moodle's default base theme. A child theme inherits its templates, styles and settings from Boost and only stores what you change, so most of your branding can live in theme settings and SCSS rather than in copied core files. That split is what keeps the cost of each Moodle upgrade predictable, because Moodle HQ keeps changing Boost while your child theme stays small.
Moodle's code is licensed under GPL-3.0, so you can build, modify and host a child theme in your own infrastructure without a license fee for the theme itself. The licence question that matters is for any third-party theme you consider: check its declared license and its maintenance record before you build on it. Plan around Boost as the base for the life of the site. Moodle 5.3, released on 5 October 2026, removes the Classic theme from core, so a theme built on Classic is not a safe foundation for new work. Confirm which Moodle release you will launch on and which release your upgrade path targets, then base the theme decisions on that version.
Before you write any SCSS, decide what the child theme is allowed to change: colours, logos, fonts and layout tokens through presets and settings, and a short list of template or style overrides for the few places settings cannot reach. Record that boundary in a short design note so the team can say later whether a change belongs in the theme, a local plugin or a core configuration. Your release calendar should follow Moodle's published cadence, which the Moodle releases page describes in full.
Which branding approach fits which change
This table compares four ways to change how a Moodle site looks, from settings-only branding to full custom layouts. Read each row for what the approach changes, how much upgrade risk it carries, and when it is the right choice. The main takeaway is that most branding requests should be met with settings and variables before any markup is touched.
| Approach | What it changes | Upgrade risk | When it fits |
|---|---|---|---|
| Settings-based branding | Logo, brand colours, favicon and site identity through theme settings in the admin interface | Low, because no code is changed and settings survive upgrades | First choice for any logo, name or colour request that the theme settings already expose |
| SCSS variables and presets | Colour palette, typography, spacing and component styling through the child theme's SCSS and preset files | Low to moderate, since upgrades can change variable names or component styles that the child theme depends on | Brand palettes and visual identity that go beyond the settings screen but do not need new page structure |
| Template overrides | Markup of specific Mustache templates copied into the child theme, such as headers, footers or course cards | Moderate to high, because each copied template must be reviewed whenever core changes that template | Narrow markup changes that settings and SCSS cannot achieve, kept to as few templates as possible |
| Full custom layouts | Page regions, navigation structure, required page elements and the overall page rendering | High, because required page identifiers, regions and JavaScript hooks may move between releases | Rarely justified for branding alone, and only with a documented test plan and budget for ongoing maintenance |
How to build the child theme in sequence
This sequence takes a Boost child theme from an empty folder to a branded theme that has been checked on a staging copy, with required page IDs and regions confirmed before any production change. Each step ends with a check so problems surface while they are cheap to fix.
Confirm the target version and server layout
Before creating anything, confirm the Moodle version the theme will run on and the PHP and database versions that version requires. From Moodle 5.1, the web server document root must point to the new
publicdirectory rather than the main Moodle folder, so check the virtual host or reverse proxy configuration now. Done means the staging site loads its front page through the correct document root with no directory listing or error page, and the team has written down the exact Moodle version the theme targets.Create the child theme folder and declare the parent
In the theme directory, create a folder named for the organization, containing a
version.phpfile that sets the component to the theme name and aconfig.phpfile that sets$THEME->parentsto Boost. Add a minimallang/en/theme_yourtheme.phpfile with the theme name. The developer or platform engineer who owns the codebase does this work, usually under version control. Done means the theme appears in the theme selector on staging and the site uses Boost styling with no visual errors, after caches are purged from the administration pages.Set logos and colours through Boost settings
Configure the logo, favicon, brand colours and any footer text through the theme's admin settings page before writing SCSS. Keeping branding in settings means a content editor or administrator can change it later without a code release, and it keeps the theme close to Boost so future upgrades stay simple. Done means the logo, brand colour and favicon appear on the front page and a course page on both staging and a phone-width browser window, after the theme cache is cleared.
Add SCSS in a preset
Place custom styling in a preset file rather than in the core Boost files, and limit it to the rules that settings cannot express. Keep variable overrides in the preset and only add selectors that target specific components. The developer does the work, and the check is that the compiled CSS includes the new rules and that the site still renders when the preset is switched back to the default. Done means the theme compiles without errors in the theme settings page and the changed components look correct on desktop and mobile widths.
Check required page IDs and regions
Confirm that the theme keeps the body attributes and page identifiers that Moodle core and many plugins rely on, and that the standard regions (such as the main content and block regions) still exist in the layout files you have not overridden. Review the page structure in the browser developer tools on a course page, an activity page and the administration pages. Done means each page type shows the expected region and identifier markup, and any missing element is either restored or recorded as a known exception for the next upgrade review.
Install and test on a staging copy
Copy the production database and file data to a staging environment, install the child theme there, and run it under the same web server, PHP and database versions as production. Test sign-in, course navigation, a quiz, a grade report and at least one plugin page that your organization uses. The person who owns acceptance should sign off. Done means the test pass completes without theme-related errors in the Moodle logs, and the sign-off list is recorded.
Record overrides and plan the upgrade check
List every file, template, layout and SCSS rule that departs from Boost, with the reason for each. Keep this record in version control next to the theme. Before each Moodle upgrade, run the staging checks again and compare the list with the new Boost release notes. Done means the register exists, every override has an owner and a reason, and the team knows which items to retest first when an upgrade is planned. Confirm with your Moodle partner or internal team how often that review should run for your release cadence.
How the build differs across staging, production and hosting setups
Local development is where the child theme is first created and where most SCSS and template work happens. The developer runs a Moodle copy on a workstation or a disposable container, so changes can be made and reviewed quickly. The theme folder should be treated as source code from the first commit, because nothing about it is safe to keep only on one laptop.
- Repository first: Create the child theme in a Git repository that holds only the theme folder and its build files, not a copy of Moodle core.
- Pinned Moodle version: Run the same Moodle minor version that production will use, so Boost behaviour and SCSS variables match what you will ship.
- Compiled output: Decide whether compiled CSS is committed or built during deployment, and document the build command in the repository.
- Local settings: Keep environment-specific values such as site URLs and database credentials out of the theme and out of the repository.
- Cache control: Turn on theme designer mode while you work so stylesheet changes appear without manual cache purges, and turn it off before any shared environment is tested.
Before leaving this environment, confirm that the theme installs cleanly on a fresh Moodle copy from the repository alone.
Staging is a copy of production used to test the theme, the settings and the upgrade path before users see them. It should match production in Moodle version, PHP version, database engine and enabled plugins, because a theme that works on a different stack proves little. Staging is also where the team checks that required page identifiers and key templates still render as expected.
- Same release: Deploy the theme from the same tagged commit that will go to production, not a separately built variant.
- Anonymized data: Refresh staging from production with personal data removed or replaced, so testers can review real layouts without exposing learners.
- Settings replay: Record theme settings and presets in a file or runbook so they can be reapplied consistently after a database refresh.
- Upgrade rehearsal: Run the next Moodle minor release on staging with the theme installed, and log any overridden templates or SCSS variables that break.
- Access limits: Restrict staging with authentication or network rules, since unreleased branding and test content are often visible there.
Confirm that a staging refresh does not overwrite the theme folder or reset the theme settings unexpectedly.
On a self-managed production server, your team controls the file system, the web server and the deployment method, so the theme is installed and updated the way your other code is. Moodle expects the web server document root to point to the correct directory for the release in use. From Moodle 5.1, that root is the new /public directory rather than the main Moodle folder, so deployment scripts and web server configuration must reflect it.
- Deployment method: Deploy by tagged release through your pipeline, copying the theme into the
themedirectory and avoiding manual edits on the server. - Document root: Confirm the web server serves from
/publicon Moodle 5.1 and later, or the site may show directory listings or errors. - Cache and build steps: Run the required Moodle upgrade and cache purge steps after each theme change, and keep a rollback copy of the previous theme folder.
- File permissions: Give the web user write access only where Moodle needs it, and keep the theme folder read-only for ordinary operation where your policy allows.
- Backups: Include the theme folder and the theme settings in the backup set, alongside the database and
moodledata.
Before go-live, confirm the rollback steps by reverting the theme on staging.
Managed hosting covers MoodleCloud and hosts run by Moodle Partners. Moodle can be run as managed hosting, but the host decides what file access, plugin installation and command-line tasks you receive. A custom theme is only possible where the host allows it, so the answer shapes the whole build plan, including whether SCSS compilation or template overrides can be done at all.
- Theme installation rights: Ask whether the host lets you upload a custom theme folder, and whether that upload is part of the plan you are buying or a special request.
- Compilation and caches: Confirm who runs SCSS compilation and cache purges, and whether you can trigger them yourself.
- Staging provision: Ask whether the host provides a staging site with the same version and plugins, and how it is refreshed.
- Upgrade ownership: Confirm who applies Moodle minor releases and major upgrades, and whether they check custom themes before they go live.
- Source access: Confirm that you can keep the theme source in your own repository and retain a copy you can deploy elsewhere.
Read the hosting terms and the service description in writing, and confirm each point with the host before the build starts.
Which page IDs and regions a child theme must keep
A Boost child theme inherits Moodle's page structure, and plugins, reports and scripts depend on that structure. The items below are the hooks most often broken by well-meaning restyling. Confirm the exact list against your Moodle version and installed plugins before you start the build.
Body ID and page-type classes
Moodle sets a body id and page-type classes on every page, such as the page type and context values. Plugins, JavaScript and some reports select pages by these values, so a template that drops or rewrites them can break behaviour that has nothing to do with appearance. Keep the body attributes produced by the core layout templates and avoid replacing the whole layout file. Check the attributes against the layout your installed version renders.
Main content and region hooks
Blocks, the main content area and the drawer regions are named regions that core and plugins target when they insert or move output. If a child layout renames, removes or nests these regions differently, blocks can disappear or appear in the wrong place. Keep the region names defined by the base theme's layout definitions and confirm that every region a block or plugin expects still exists after a change.
Navigation and drawer hooks
Primary navigation, secondary navigation, the course index and the user menu are rendered through renderers and identified by specific classes and data attributes that scripts use to open, close and track drawers. Restyling them is normal, but removing these hooks breaks keyboard and mouse behaviour in ways testers often miss. Verify drawer open and close, menu expansion and course index navigation on each browser you support.
Accessibility landmarks
Landmark elements such as header, main, navigation and footer, along with skip links and heading order, let screen reader users move around a page. A child theme that swaps these elements for generic containers can pass a visual review and still fail an accessibility audit. Keep landmark roles and skip links intact, and test with a screen reader and keyboard only before release.
Report and plugin page identifiers
Reports, dashboards and many local plugins rely on stable element ids and classes in the page output, and some scripts read them when they initialize. Changes to these identifiers can silently stop a report from rendering or a plugin feature from loading. Build a short inventory of the pages and plugins your organization uses most, record the identifiers they depend on, and retest those pages after every theme change.
How to limit overrides so Moodle upgrades stay cheap
The cheapest Moodle theme to upgrade is the one with the least code in it. Keep branding in the theme settings that Boost exposes (logos, brand colours, footer content and similar options) and reserve SCSS for what settings cannot reach. Every SCSS rule you add is a rule you must re-check when Boost changes, so each one should earn its place. Before writing a rule, check whether a setting, a preset or a Moodle core configuration option already does the job. A theme that is mostly settings is one your team can move forward with little rework.
Record every overridden template, renderer and stylesheet rule in a short register kept in the theme's repository. For each entry, note the file path, the reason it exists, the requirement it serves (for example, a page id or region that your navigation or reporting depends on), the person who approved it, and the date. Keep the register next to the code so it is reviewed in the same pull requests. Tracking overridden templates when core changes them is covered in the sibling topic on overriding Mustache templates, so treat this register as the list of decisions and that topic as the method for watching the files themselves.
Test the theme against a staging copy of the production site before every major upgrade, and treat Bootstrap 5 as a specific risk. Moodle 5.0 moved Moodle to Bootstrap 5, which changes class names, utilities, JavaScript components and SCSS variables that custom styles may rely on. Confirm with your Moodle version notes which Bootstrap changes apply to your starting version, then run a checklist covering the login page, course pages, the gradebook, forms, the mobile-facing pages you use and any custom blocks. Record the results, fix what breaks in the child theme, and only then schedule the production upgrade. Confirm the staging copy matches production's database and file data closely enough for the results to mean something.
Security and operational risks in theme work
A Boost child theme sits in the request path of every page, so small choices in scripts, assets, settings and code handling reach every user. The risks below connect because they share one root cause: the theme is custom code that people change over time, and the controls around it need to be as deliberate as the styling.
Third-party scripts and assets
Theme work often pulls in external JavaScript, fonts or icon libraries from a CDN or a copied vendor bundle. Each one runs with the same access as Moodle's own pages and can read session-bearing content in the browser. Check where each file comes from, pin a version, keep a local copy you can review, and confirm the library's license allows your use. Remove anything that Boost already provides.
Uploaded files and asset handling
Logos, favicons, background images and custom fonts are uploaded through theme settings or copied into the theme folder. Treat them as untrusted input: restrict who can upload, accept only the file types the setting expects, and confirm that SVG files are sanitized before use, since SVG can carry active content. Keep the theme's file storage path and permissions under configuration management so uploads cannot be executed as code.
Caches after theme changes
Moodle serves compiled CSS and theme assets from caches, so a change can look applied on one server and missing on another, or stay visible after a rollback. Plan a cache purge as a standard step in every theme release, and check the result on each web node in a clustered setup. Users who see a mix of old and new styles usually point to a missed cache, not a broken theme.
Admin access to theme settings
Theme settings, custom CSS fields and footer HTML are powerful because they accept raw markup. Decide which administrator roles can edit them, and record who changed what. Custom HTML fields are a common place for injected scripts, so limit editing to a small group and review changes the same way you review code. Confirm which capabilities your Moodle version assigns to these settings before you grant them.
Theme code in version control
A child theme that lives only on a production server cannot be reviewed, rolled back or rebuilt after a failure. Keep the theme in a repository with protected main branches, required review for changes to SCSS and templates, and tagged releases that match the Moodle version they were tested against. Build the compiled output in a repeatable step rather than editing files on the server.
Dependence on one developer
When one person wrote the theme, they are often the only one who knows why an override exists, how the presets compile and which page ids other tools depend on. Document the build steps, the list of overrides and the test pages, and make sure a second person can run a release. Ask any partner for handover documents and access to the repository as part of the written scope.
Questions buyers ask about building a Boost child theme
What drives the cost of a Boost child theme project?
The main driver is how much of the brand must be expressed beyond what Boost settings already allow. A theme that only changes logos, colours, fonts and a few settings is a small job. Costs rise with the number of custom page layouts, template overrides, custom SCSS components, accessibility remediation, and the number of Moodle sites or languages the theme must serve. Cost also depends on who does the work: a partner charges for planning, build, testing and handover, while your own team pays in staff time. Ask any quote to itemise design review, build, cross-browser and accessibility testing, documentation, and a post-launch support period. Fixed-scope quotes are agreed in writing before work starts, so the scope document should list every page type the theme must cover.
How long does it take to build a branded Boost child theme?
Duration depends on the number of distinct page types, the state of the brand assets, and how many review rounds the brand owner needs. A child theme that inherits Boost and changes settings and a small SCSS layer can be planned quickly, while a theme with custom layouts, a new front page and a reviewed accessibility baseline takes longer. Testing time grows with the number of browsers, devices and Moodle roles that must be checked. Ask for a timeline that separates design sign-off, build, accessibility testing and staging review, and confirm which dependencies sit with your team, such as approvals for colours and logos.
What does the client need to provide before the theme work starts?
Most delays come from missing inputs rather than from the build itself. Prepare the following before work starts:
- Final logo files in the formats the brand team approves, including any light and dark variants
- A colour palette with the exact hex values, plus the text and background pairs that must meet contrast requirements
- Font licences and files for every typeface the theme will load
- A list of the Moodle page types and roles that need design attention, such as the home page, course page and login page
- Accessibility requirements, including the conformance level your policy or procurement requires and any assistive technology you must support
- A staging Moodle site on the version you run, with a named owner who can approve changes
If your accessibility target is not written down, ask your compliance or accessibility team to define it before design begins.
Can an in-house team maintain a Boost child theme after launch?
Yes, if the theme stays small and the team understands Moodle's theme structure. A child theme inherits from Boost, so most of the look comes from settings and a limited SCSS layer rather than a copy of the whole parent theme. Maintenance is mainly keeping the child theme's files, presets and settings aligned with the Moodle version you run, and reviewing any template overrides when core changes them. Teams with a developer who knows PHP, Mustache templates and SCSS can usually absorb that work. Teams without that skill should plan for a retainer or a handover session that covers the file layout, build steps and the list of overridden templates.
How do Moodle upgrades affect a custom theme?
A child theme is affected by every major release that changes the parent theme, the templates it overrides, or the CSS framework underneath. Moodle ships major releases every six months, in April and October, so a theme should be tested against each target version before production. Moodle 5.1 requires 64-bit PHP 8.2 or later and PostgreSQL 15, MySQL 8.4, MariaDB 10.11 or Microsoft SQL Server 2017 or later, and sites must be on Moodle 4.2.3 or later to upgrade. Moodle 5.3 requires PHP 8.3 or later, PostgreSQL 17, MySQL 8.4, MariaDB 11.4 or SQL Server 2019 or later, and a starting point of Moodle 4.4 or later. Check the release notes for the version you plan to move to, and keep a list of every overridden template so you can compare it with core after each upgrade.
What is the difference between a child theme and a full custom theme?
A child theme extends Boost and inherits its layouts, templates, language strings and SCSS, so you only write what differs. A full custom theme owns all of its layouts and rendering, which gives complete control but makes every core change your responsibility. For most branding work a child theme is the cheaper option to build and upgrade, because the parent carries the framework and you keep overrides limited. Choose a full theme only when the required layouts cannot be reached through Boost's presets, settings and template overrides. Moodle 5.3 removes the Classic theme from core, so any theme built on older bases should be reviewed for the same reason.
What should a theme engagement include, and what should it not?
A typical theme engagement covers discovery of brand and page requirements, a child theme with settings, presets and a bounded SCSS layer, logo and colour configuration, template overrides only where settings cannot achieve the design, accessibility checks against the agreed target, testing on a staging site, deployment steps, and handover documentation. It should list which Moodle page ids and regions must remain intact so that required page structure and plugins keep working. It should not include changes to course content, new activity types, custom integrations or identity setup unless those are scoped separately. Ask the partner to name each deliverable and each exclusion in writing before work starts.
How the child theme, Boost and core layers fit together
The diagram starts with Moodle core, which ships Boost as the parent theme. The child theme sits on top, holding its settings, SCSS and a short list of overridden templates, and Moodle resolves each lookup from the child first and then falls back to Boost. Changes move from a staging copy to production only after the child theme is tested against the new core. From Moodle 5.1, the web server document root must point to the /public directory, so check that path on both environments before you switch.
Where each layer sits and where upgrades touch it.
How DeployOpen scopes and delivers a Moodle theme
DeployOpen plans and builds Boost child themes for Moodle inside the infrastructure you control, and the work starts with a written scope rather than a open-ended design brief. That scope names the brand elements to be configured, the pages and templates that will be touched, the browsers and devices to be tested, and the people who sign off each stage. It also records what is out of scope, such as new layouts or custom activity markup, because those choices change the upgrade effort more than colours or logos do. Ask for the scope document to list every template override by path, since that list becomes the baseline for every later upgrade test.
Delivery runs on a staging copy of your Moodle site, built from a recent production backup and running the same PHP and database versions as production. The theme is developed in version control, tested against the page types your users rely on most, and checked for the page ids and regions that Moodle reports and that your reports, plugins and integrations may depend on. Before production, DeployOpen documents each override, the reason for it and the Moodle release it was written against, so your team can see what a core upgrade will touch. Confirm with your Moodle administrators which staging environment, backup window and change approval steps apply.
Ongoing work is priced separately from the build. Once the theme is live, upgrades to new Moodle releases, changes to the theme settings and fixes after core changes are the recurring cost, and they depend on how many overrides you kept. DeployOpen offers retainers for this support, with scope and response expectations agreed in writing. When you request a quote, ask for the one-time build, the staging and retest effort, and the recurring support terms as separate line items, and ask how each would change if your team later adds custom templates.

