• Mahmoud Aglan's avatar
    feat: admin branding auto-saves on every edit + theme applies ALL values · 536fb81b
    Mahmoud Aglan authored
    Admin auto-save:
    - Every input change triggers save after 500ms debounce
    - No more 'Save' button needed — edits are instant
    - Color picker  text input sync (change one, other updates)
    - '✓ Saved' indicator flashes on successful save
    - Uses fetch POST to same page (no reload)
    
    Theme loader expanded:
    - Ludo colors mapped to CSS vars (--ludo-red, --ludo-blue, etc.)
    - Chess board colors mapped (--board-light, --board-dark, etc.)
    - All theme values exposed as window.__EL3AB_THEME for JS access
    - Games can read: window.__EL3AB_THEME?.ludo_red || '#E53935'
    
    All edits in admin are now effective:
    - Platform colors → CSS variables → used by all components
    - Game colors → CSS variables → used by board renderers
    - Animation speeds → CSS variables → used by transitions
    - Button shapes → CSS variables → used by .btn classes
    - Juice settings → available via getColor() for JS logic
    - Uploaded assets → served from /public/assets/brand/
    Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
    536fb81b
Name
Last commit
Last update
..
branding.php Loading commit data...