-
Notifications
You must be signed in to change notification settings - Fork 0
Customizer (live preview iframe + postMessage) #22
Copy link
Copy link
Closed
Labels
area:adminNext.js admin appNext.js admin apparea:theme-systemTheme runtime + SDKTheme runtime + SDKphase:P3-themesPhase 3 — ThemesPhase 3 — Themespriority:P1Important — should land in phaseImportant — should land in phaseskill:reactReact / Next.jsReact / Next.jsskill:tsTypeScriptTypeScripttype:featNew feature or implementation taskNew feature or implementation task
Milestone
Metadata
Metadata
Assignees
Labels
area:adminNext.js admin appNext.js admin apparea:theme-systemTheme runtime + SDKTheme runtime + SDKphase:P3-themesPhase 3 — ThemesPhase 3 — Themespriority:P1Important — should land in phaseImportant — should land in phaseskill:reactReact / Next.jsReact / Next.jsskill:tsTypeScriptTypeScripttype:featNew feature or implementation taskNew feature or implementation task
Type
Fields
Give feedbackNo fields configured for issues without a type.
Summary
Build the Customizer: a live-preview iframe panel that lets users tweak site identity, colors, typography, menus, homepage, additional CSS, and theme-declared custom sections without page reloads. Uses
postMessageto push pending overrides into a<ThemeOverridesProvider>in the previewed page.Design reference
Acceptance criteria
<iframe src="/_preview?...">postMessageprotocol{type:'override', path, value}documented and enforced<ThemeOverridesProvider>injects overrides; theme runtime reads context first, then persisted valuestheme.jsonschema → persists tosite_options.theme_customizations[themeId]defineCustomizerSection) render their controls from the declared schemaDependencies
#5
Complexity
XL