Solar Calculator Embed

Customization

The solar calculator can be customized by adding more data-sme-… attributes to the <div> container element.

Example

<div
data-sme-pid="<your partner id>"
data-sme-wmid="<the embed id>"
data-sme-color-background="#000000"
data-sme-color-text="#FFFFFF"
></div>
<script src="https://www.selfmade-energy.com/embed/embed.js" defer async></script>

Available Options

AttributeValue typeDescription
data-sme-color-backgroundRGB color, e.g. #ffffffPage background color
data-sme-color-textRGB color, e.g. #000000Text foreground color
data-sme-color-primaryRGB color, e.g. #ff0000Primary brand color, used e.g. for buttons
data-sme-color-secondaryRGB color, e.g. #00ff00Secondary brand color, used e.g. for progress bar
data-sme-color-tertiaryRGB color, e.g. #0000ffTertiary brand color, used e.g. for selection tiles
data-sme-color-neutralRGB color, e.g. #666666Neutral color, used e.g. for smallprint
data-sme-font-familyCSS font stack, e.g. Helvetica Neue, sans-serifFont used for rendering UI text
data-sme-zip-code5-digit German zip code (PLZ), e.g. 12345Prepopulate the zip code field and skip the first step

Try it out

Colors

Font

Make sure to only use generally available system fonts (e.g. sans-serif, serif, system-ui). Custom web fonts used on your website are not available within the embed iframe.

Zip Code

Previous
Getting started