diff --git a/assets/script.js b/assets/script.js index 0b235a6..0fb3615 100644 --- a/assets/script.js +++ b/assets/script.js @@ -168,6 +168,9 @@ function openEditor() { if (doReset) { container.classList.remove('edit'); form.reset(); + + let selectedTheme = form.querySelector(`.theme-picker--option[checked]`).value; + bodyElement.className = `theme-${selectedTheme}`; } }); }