Using CSS variables to reuse a single Embeddable for multiple brands
Create CSS variables in a <style> tag in the parent page
<style>
tag in
the HTML that looks like this, replacing the variable names and styles with what you need for your brand:body {}
creates a CSS variable, which can be referred to later from inside the Embeddable in the Builder.Use those CSS variables in the Builder
var(--font-headings)
.var(--my-variable-name, [DEFAULT_VALUE])
.
var(--font-color, #676767)
.