@veertoooz/dodo
v0.1.0
Published
Popup editor for SaryanTS and TamanyanLS CSS variables — opens on 5 consecutive clicks
Maintainers
Readme
Dodo
Popup editor for SaryanTS (colors) and TamanyanLS (sizes) CSS variables. Opens on 5 consecutive clicks anywhere on the page.
Part of TamanyanLS · SaryanTS · ParajanovCS · Dodo.
Quick start
Load SaryanTS and TamanyanLS first, then Dodo:
<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/saryants.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/thamanyanls/dist/thamanyan.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@veertoooz/dodo/dist/dodo.min.js"></script>
</head>
<body>
<!-- Your content -->
</body>
</html>Click anywhere 5 times (within 2 seconds) to open the editor.
What it does
- SaryanTS: Edit hue (0–360), chroma (0–1), theme (light/dark). Uses
SaryanTSThemewhen available; persists viasaryants-themein localStorage. - TamanyanLS: Edit root variables (
--ls-base,--ls-scale,--ls-radius-ratio, etc.). Persists viadodo-ls-overridesin localStorage. - Close: Click outside, press Escape, or click Close.
Development
npm install
npm run dev # Serve demo at localhost:5173
npm run build # Build dist/dodo.min.js
npm run preview # Serve built demoAPI
window.Dodo.openPopup(); // Open editor programmatically
window.Dodo.init(); // Re-run init (e.g. after SPA mount)License
MIT.
