I see,
thanks for providing this information.
I’d say:
HubSpot provides all sort of options(like those ones) to their default modules. You can imagine the logic to be kinda like “if module is header and inside the hubspot-folder, add those options”
Nobody except HubSpot can access or modify those options, so creating a custom module is always a good practise, if you want to extend the functionality and make it corporate design compliant.
Since you’re using the boilerplate here a few tips:
Add choice fields to the module (and theme) to a lot almost every option you want to have. Like font-color, font-size…
My personal headline module looks a bit like this:
- headline tag(h-tag)
- headline size(class)
- headline(text)
- style-tab
- headline color(primary, dark, light)
- animation(group with a bunch of animation settings)
The module.html it looks a bit like the example above.
The CSS is like this
.pri-color{
color:{{ theme.colors.primary.color }};
}
.sec-color{
color:{{ theme.colors.secondary.color }};
}
.dark-color{
color:{{ theme.colors.common.dark.color }};
}
.light-color{
color:{{ theme.colors.common.light.color }};
}
...
hope this helps
best,
Anton