/* ═══════════════════════════════════════════════════════════════════════    THEME TOGGLE JAVASCRIPT    Add to Webstudio custom code section    ═══════════════════════════════════════════════════════════════════════ */ /* document.addEventListener('DOMContentLoaded', () => {   const savedTheme = localStorage.getItem('theme') || 'dark';   document.documentElement.setAttribute('data-theme', savedTheme); }); function toggleTheme() {   const root = document.documentElement;   const current = root.getAttribute('data-theme');   const next = current === 'light' ? 'dark' : 'light';   root.setAttribute('data-theme', next);   localStorage.setItem('theme', next); } */ /* ═══════════════════════════════════════════════════════════════════════    END OF UNIFIED DESIGN TOKENS V4.0    Total: ~210 tokens across 3 layers    ═══════════════════════════════════════════════════════════════════════ */

Ghost Template

This ultra-lightweight Ghost template includes minimal styles, focusing on providing the logic to connect to Ghost while allowing custom styling.

Template contents:

Update API Key and URL

These values need to come from your Ghost account.

Copy these values and add them to Webstudio on the Global Root > Settings > and paste them into the corresponding variables.