Styling a starter layout
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
- Open the starter in Etch from its row on the Layouts tab.
- Select the element you want to change - the product name, the hero name, the button.
- Edit its class rule in Etch’s style panel.
- 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 this | It is |
|---|---|
.ks-sc-starter__name | The product name on a card. |
.ks-sc-spotlight__name | The big product name on the spotlight hero. |
.ks-sc-starter__cta | The 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
!importantdoes not change that. Put it in a layer calledivasure-overridesinstead and it wins. - An inline style attribute needs
!important. Same reason: without it, astyleattribute 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.
@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.
&: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.
Was this page helpful?