/* Tweaks panel for the Luder site — mounts its own React root, applies changes to the vanilla DOM via window.applyLuderTweaks. */ const { useEffect } = React; const LUDER_DEFAULTS = /*EDITMODE-BEGIN*/{ "hero": "light", "accent": "#c93c3c", "headingFont": "Saira", "motif": 1 }/*EDITMODE-END*/; function LuderTweaks(){ const [t, setTweak] = useTweaks(LUDER_DEFAULTS); useEffect(() => { window.applyLuderTweaks && window.applyLuderTweaks(t); }, [t]); return ( setTweak('hero', v)} /> setTweak('accent', v)} /> setTweak('motif', v)} /> setTweak('headingFont', v)} /> ); } const luderTweakRoot = document.createElement('div'); document.body.appendChild(luderTweakRoot); ReactDOM.createRoot(luderTweakRoot).render();