/* global React, ReactDOM, useTweaks, TweaksPanel, TweakSection, TweakRadio, TweakToggle */
const TIGER_DEFAULTS = /*EDITMODE-BEGIN*/{
"bg": "black",
"accent": "amber",
"cards": "glass",
"motion": false
}/*EDITMODE-END*/;
function TigerTweaks() {
const [t, setTweak] = useTweaks(TIGER_DEFAULTS);
const root = document.documentElement;
React.useEffect(() => { root.setAttribute('data-bg', t.bg); }, [t.bg]);
React.useEffect(() => { root.setAttribute('data-accent', t.accent); }, [t.accent]);
React.useEffect(() => { root.setAttribute('data-cards', t.cards); }, [t.cards]);
React.useEffect(() => { root.setAttribute('data-motion', t.motion ? 'on' : 'off'); }, [t.motion]);
return (
setTweak('bg', v)} />
setTweak('accent', v)} />
setTweak('cards', v)} />
setTweak('motion', v)} />
);
}
const tweakMount = document.createElement('div');
document.body.appendChild(tweakMount);
ReactDOM.createRoot(tweakMount).render();