Moodle theme development starts with a clear compatibility target and a maintainable way to change the interface. For many projects, a theme based on Boost, focused SCSS and carefully chosen template overrides is a practical starting point. This roadmap explains the decisions to make before writing code and the tests needed before release.
1. Define the project and Moodle versions
List the page types and roles you must support: public pages, login, dashboards, course pages, activities, grading and administration. Record required languages, accessibility targets, devices and plugins. Choose the Moodle versions you will actively test; a theme that works on one release should not automatically be presented as compatible with another.
Set up a development site and a staging copy. Keep source in version control and make sure you can restore the database, Moodle files and moodledata before testing an upgrade.
2. Understand the parent theme
Review Moodle’s theme developer documentation for the target release. A child theme can inherit a parent such as Boost while providing its own configuration, styles and selected templates. Inheritance reduces duplication but does not remove the need to retest when the parent or Moodle core changes.
Check licensing of all code and assets you distribute, including fonts, images and libraries. Document your dependencies and the source of each asset.
3. Plan styles with SCSS
Use theme settings or a preset for branding when they meet the requirement. Add targeted SCSS for the differences you need, organise it by component and avoid selectors tied to fragile page structure. Verify contrast, focus states and responsive behaviour while designing; visual polish is easier to maintain when accessibility is considered from the start.
4. Override Mustache templates deliberately
Before overriding a template, inspect the version supplied by Moodle and understand the context data it receives. Keep overrides small and document the upstream file and reason. During upgrades compare each override with the new core template: a copied template may miss newly added controls, accessibility fixes or security-related markup.
Do not place business rules or permission decisions in a visual template. Preserve labels, form fields and data produced by Moodle and plugins. Use Moodle’s documented APIs for extension points instead of editing core files.
5. Renderers, JavaScript and settings
Only introduce renderer or JavaScript customisations when a documented extension point is needed. Ensure interactive controls work by keyboard, expose meaningful names and handle asynchronous states. Create settings for options site administrators genuinely need, with clear defaults and descriptions. Validate output and follow Moodle’s coding and security guidance.
6. Test real workflows
- Sign in and recover an account using test users.
- Open a course, navigate sections and submit an activity.
- Grade an assignment and inspect feedback.
- Test drawers, dialogs, forms, notifications and long text.
- Check mobile widths, 200% zoom, keyboard focus, contrast and screen-reader labels.
- Switch to a right-to-left language where required and test installed plugins.
Moodle’s theme checklist provides additional areas to review. Automated scans complement, but do not replace, human testing.
7. Prepare updates and releases
Keep a changelog, version your theme according to Moodle’s plugin requirements and test installation, upgrade and rollback on staging. Compare template overrides against upstream changes for every supported release. Review cache behaviour after deployment; our cache troubleshooting guide explains common symptoms.
Build or buy?
A custom child theme gives a team control but also creates ongoing maintenance. A supported premium theme may suit a project whose needs are mostly branding and page layout. Explore the Moodle theme customisation guide and compare it with Almond for Moodle 5.3 before deciding.