/* ZenTag — app composition */ const TWEAK_DEFAULTS = /*EDITMODE-BEGIN*/{ "accent": "sapphire", "heroMaterial": "matte", "background": "aurora" }/*EDITMODE-END*/; const ACCENT_HEX = { sapphire: '#4f7cff', violet: '#8b5cf6', aurora: '#34d3a3', ember: '#ff7a59' }; const HEX_TO_ACCENT = { '#4f7cff': 'sapphire', '#8b5cf6': 'violet', '#34d3a3': 'aurora', '#ff7a59': 'ember' }; function App() { const [tweaks, setTweak] = useTweaks(TWEAK_DEFAULTS); // Apply accent to document React.useEffect(() => { const map = { sapphire: '', violet: 'violet', aurora: 'aurora', ember: 'ember' }; const v = map[tweaks.accent] ?? ''; if (v) document.documentElement.setAttribute('data-accent', v); else document.documentElement.removeAttribute('data-accent'); }, [tweaks.accent]); // Apply background style const bgMode = tweaks.background; return (
{/* Page-level ambient background */}
{bgMode === 'aurora' && } {bgMode === 'grid' &&
} {/* noise */}
); } function AuroraGlobal() { return ( <>
); } ReactDOM.createRoot(document.getElementById('app')).render();