// Anryx — Tweaks panel (single primary-blue hue control + extras) const { useState, useEffect } = React; function AnryxTweaksApp() { const initial = (window.ANRYX_getTweaks && window.ANRYX_getTweaks()) || {}; const [tweaks, setTweaks] = useState({ primaryHue: initial.primaryHue ?? 211, }); useEffect(() => { Object.entries(tweaks).forEach(([k, v]) => { if (window.ANRYX_setTweak) window.ANRYX_setTweak(k, v); }); }, [tweaks]); const setT = (k, v) => setTweaks((p) => ({ ...p, [k]: v })); return ( setT("primaryHue", v)} formatValue={(v) => (v <= 210 ? `${v}° · warmer navy` : v >= 220 ? `${v}° · cooler azure` : `${v}°`)} /> Drag to shift the primary blue from a warmer navy toward a cooler azure. Affects accents and CTAs site-wide. setTweaks({ primaryHue: 211 })}> Reset to default ); } const tweaksRoot = document.createElement("div"); document.body.appendChild(tweaksRoot); ReactDOM.createRoot(tweaksRoot).render();
Drag to shift the primary blue from a warmer navy toward a cooler azure. Affects accents and CTAs site-wide.