Learn more about the requirements that a theme needs to meet to be submitted to the Asset Marketplace.
require_css
and get_asset_url
must be formatted as follows:
alt
attribute (a value of ""
is acceptable).loading
attribute (a value of ""
is acceptable).[AccountID].hs-sites.com
A live website and not an image of the demo site must be used.
If at any point your live demo becomes inaccessible, HubSpot reserves the right, with notification to the provider, to delist/remove your theme until the live demo becomes accessible again.
theme.json
file must include the following parameters:
theme.json
file and ensure the following:
preview.hs-sites.com
or [AccountID].hs-sites.com
subdomains for the example URL.fields.json
file controls the available fields and fields groups in the theme editor, including style fields. The fields you include will depend on how much control you want content creators to have in the page editor.
fields.json
file must contain at least three color fields.primary_color
, secondary_color
, heading_font
, and body_font
. Learn more about module-theme compatibility.primary_color
, secondary_color
, heading_font
, or body_font
fields, they can use the alternate_names
field.
Learn more about these fields.json parameters and review an example fields.json file from the HubSpot CMS boilerplate.
Theme settings must also:
!important
in your CSS stylesheet as it makes it difficult for end users to override and would cause a conflict.h1
headings in theme settings must apply across all h1
tags in the theme.p
tags)h1
through h6
font fieldsa
tags), including hover stylingTypography
group.