Key takeaways#
- Use theme settings first, a child theme second and a fully custom theme only when you outgrow both.
- A child theme lets you override templates, modules and CSS while the parent theme keeps receiving updates.
- Brand consistency comes from theme fields, design tokens and a limited set of well-designed modules.
- Marketplace themes often ship more CSS/JS than you need – measure and trim.
Marketplace themes are a fantastic shortcut: professionally designed, full of modules and affordable. But almost every company eventually needs something the theme does not offer – a different header, a brand-specific module or a layout the designer insists on. This guide explains how to customise HubSpot themes safely, keep your brand consistent and avoid killing performance.
Three levels of customisation#
| Level | What you change | Pros | Cons |
|---|---|---|---|
| 1. Theme settings | Colours, fonts, spacing, buttons via theme fields | No code, update-safe | Limited to what the author exposed |
| 2. Child theme | Overrides of specific templates, modules, CSS | Flexible and keeps parent updates | Overrides must be maintained |
| 3. Custom theme | Everything | Full control, lean code | Higher initial cost |
Level 1: Get the most out of theme settings#
Open the theme editor and work through every group of settings before writing a line of code. Set brand colours, typography scale, button styles, form styles and spacing. Many “design problems” disappear at this stage. Document the chosen values – they become your design tokens.
Level 2: When and how to use a child theme#
A child theme is a separate theme that extends a parent theme. In its theme.json you reference the parent, and HubSpot uses the parent’s files unless the child contains a file with the same path. That means you can override exactly what you need – nothing more.
{
"label": "Acme (child of Growth)",
"preview_path": "./templates/home.html",
"extends": "@marketplace/Parent_Theme_Folder"
}
The exact parent path depends on the theme – check the documentation of your theme and the HubSpot developer docs before creating the child.
Good uses for a child theme#
- Adding new custom modules that match the parent’s design language.
- Overriding one template (e.g. the blog post) while keeping the rest.
- Adding brand-specific CSS in a separate stylesheet.
- Adding structured data or tracking snippets to base templates.
Rules we follow#
- Override as little as possible. Every overridden file is a file that will not receive the parent’s fixes.
- Keep a change log listing every override and why it exists.
- Prefer adding over replacing: a new module is safer than modifying a parent module.
- Test after parent updates – review release notes and check overridden templates.
Level 3: When a custom theme pays off#
Consider a custom theme if you have a mature design system, high traffic where performance matters, many child-theme overrides already, or complex needs such as multi-brand or multi-language sites with different layouts. A custom theme built from HubSpot’s boilerplate can be extremely lean and is fully under your control.
Brand consistency without micromanagement#
- Design tokens: define colours, fonts and spacing once as theme fields and reference them in all module CSS.
- Limited choices: offer editors a few curated colour schemes per module instead of a free colour picker.
- Section templates: save approved section combinations so editors start from good patterns.
- Documentation: a short editor guide with do’s and don’ts.
Performance: trimming a marketplace theme#
Marketplace themes are built for many use cases, so they often load CSS and JavaScript for features you never use. Measure first with Lighthouse and the browser’s coverage tool, then:
- Remove unused modules from templates and drag-and-drop defaults.
- Disable animation libraries and sliders you do not need.
- Replace jQuery-based components with lightweight vanilla JS modules.
- Limit web font families and weights.
- Make sure images in theme modules use responsive sizes and lazy loading.
Our technical SEO checklist lists the Core Web Vitals targets to aim for.
Workflow for safe theme changes#
- Fetch the theme with the HubSpot CLI and commit it to Git.
- Create or update the child theme in a sandbox/test portal.
- Review changes in a pull request.
- Deploy with the CLI and switch templates on a few pages first.
- Roll out to all pages once verified.
Frequently asked questions#
What is a HubSpot child theme?#
A child theme extends a parent theme. HubSpot uses the parent’s files unless the child contains a file with the same path, so you can override or add only what you need while the parent continues to receive updates.
Will my customisations break when the marketplace theme updates?#
Changes made in a child theme survive parent updates, but overridden files will not receive the parent’s fixes. Keep overrides minimal, document them and test after each parent update.
When should we build a custom theme instead?#
When you have a mature design system, many overrides already, strict performance requirements or complex multi-brand or multi-language needs.
How do we keep the brand consistent across pages?#
Define colours, fonts and spacing as theme fields, offer editors a limited set of curated options in modules, save approved section templates and document do’s and don’ts.