Skip to content
IvaSure add-ons and services for SureCart storesJoin the POD waitlist

Styling a starter layout

3 min read
Published

A starter arrives designed, and it stays designed. IvaSure holds the product name, the spotlight heading and the call-to-action button to the layout’s own type, colour and spacing, so a theme’s heading scale cannot blow a card title up to page size and no theme can paint an unreadable label on the button.

That hold is not a lock on you. It steps aside for anything you style yourself.

Style it in Etch and your value wins

  1. Open the starter in Etch from its row on the Layouts tab.
  2. Select the element you want to change - the product name, the hero name, the button.
  3. Edit its class rule in Etch’s style panel.
  4. Save. IvaSure stops holding the properties you set, and leaves the rest of the design in place.

It looks for your rule in everything the page renders - the page itself, and the template, template parts and Etch components behind it - so a starter you have never opened in Etch keeps the built-in look.

Select thisIt is
.ks-sc-starter__nameThe product name on a card.
.ks-sc-spotlight__nameThe big product name on the spotlight hero.
.ks-sc-starter__ctaThe call-to-action button.

The limits, plainly

The layout defaults are marked important, which is how they survive any theme. Four consequences follow, and they are the whole of the small print.

  • Styling from outside Etch needs the override layer. A rule in a child theme or in Additional CSS loses to the layout defaults, and marking it !important does not change that. Put it in a layer called ivasure-overrides instead and it wins.
  • An inline style attribute needs !important. Same reason: without it, a style attribute on the element loses to the layout defaults.
  • The keyboard focus ring is never handed over. The outline a shopper sees when they reach a card or a button with the keyboard stays as IvaSure draws it. That one is deliberate - restyling a button should not be able to remove it by accident.
  • Every IvaSure colour and size reads a --ks-sc-etch-* variable. Set one of those anywhere - a theme, Additional CSS, an Etch rule - and every default that reads it follows. Holding a property never freezes the variable it reads, which is also how dark mode keeps working.
Styling a starter from a child theme or Additional CSS
@layer ivasure-overrides {
  .ks-sc-starter__cta { border-radius: 4px !important; }
}

What an Etch class rule reaches

Text size, weight, wrapping and colour follow your rule, and so does the button’s resting background - writing background-color instead of background counts just the same. Spacing, shape and the button’s hover background are set more specifically in the layout stylesheet, so no class rule reaches them; use the override layer above for those.

Styling a property in one state hands the whole property back
A colour you set only for hover, only in dark mode or only inside a media query still counts as yours: IvaSure stops holding that property everywhere, and your rule decides where it applies. If you meant it for one state only, set the everyday value in the same rule too.
If you recolour the button label, give it a hover colour too
Once the label colour is yours, some themes paint their own link colour over it on hover, more specifically than your class rule. Add a nested &:hover block with the colour to the same rule in Etch.

Two edges to expect

  • In Etch’s canvas the layout defaults are ordinary CSS, so a theme rule can win in the builder where the published page holds the layout’s design. Anything you style yourself matches on both.
  • On a browser too old for cascade layers (before 2022) a starter falls back to the way it behaved previously: the design is still there, but a theme can out-weigh it.

Save to list