For DevelopersΒΆ
How components actually reach the page, how to theme them, and worked examples of doing both for real.
-
How Canvas, Layout Builder, SDC and a direct Twig include all reach the same component, and the two-layer contract every one of them follows.
-
The priority order for retheming anything: Bootstrap Sass variables first, the
--theme-*contract as the escape hatch. -
The full
--theme-*contract at its base values, beside two custom themes' own overrides. -
Overriding an SDC template with
replaces:, keeping the BEM classes, swapping Bootstrap for anything else one component at a time. -
One real custom theme's whole
--theme-*contract, and the same component shown three ways from it. -
A worked example, start to finish: reskin with tokens, scope a component-level override, or add a layout the component doesn't ship.