Creating Templates

Hey all,

I am trying to create a template. So far I create a simple page, export it as a site template, install it and I can open it via Blocs, getting the Quick Start interface. BUT there is no option to choose colors like on other Templates I have. Do I need to do something special to enable that? Sadly the Documentation offers no help for Site templates, only for page templates.

Hey,

You should name the color swatches Primary, Primary Variant, Secondary, Secondary Variant.

2 Likes

That’s interesting. So if yo use the colour var (CSS Variables) names to name your colours, I assume any changing of the colour vars will be reflected in those elements that use those vars.

@Eldar Thanks, I’ll try that.

I usually name my colors anyway, and at one point my naming was reflected in the css variables when inspecting the code, like color: var(--brand-color).

But not anymore. Now it’s back to some random variable name like color: var(--swatch-var-6978). That makes it hard to use variables when writing custom css in the code editor.

@Norm Any way to have the naming reflected in the exported code again?