Theme author guide

Theme API 1 · Deckixa AI 1.0.0 · EKR

ZIP structure

Place files directly at the ZIP root, without an extra enclosing directory:

index.json
theme/partials/theme-style.blade.php
theme/landing.blade.php                  # optional
theme/dashboard.blade.php                # optional
theme/layouts/marketing.blade.php        # optional
theme/layouts/app.blade.php              # optional
theme/workspace/editor.blade.php         # optional
public/assets/aurora.css
{"schema":1,"slug":"aurora","name":"Aurora","version":"1.0.0","theme_type":"All","min_app_version":"1.0.0","extends":"default","author":"EKR","description":"Emerald accents with original-view fallback."}

theme_type accepts Frontend, Dashboard or All. Keep the slug and theme_type stable across releases. Updates must have a newer semantic version. extends currently supports default only.

Inheritance

Controllers resolve theme:: views from the active package, then the original theme, then shared views. Omit views you do not change. Use core:: to explicitly reuse original views without recursively extending an override.

<link rel="stylesheet" href="{{ app(\App\Domain\Themes\ThemeManager::class)->asset('aurora.css') }}">

The asset helper uses the private release directory and a constrained public route, with a version query for caching. Keep core route names, CSRF fields, React mount IDs and JSON boot-data contracts.

Frontend and Dashboard selections are independent. Administrator pages always use the original theme. Aurora demonstrates a small working override with full fallback.

Lifecycle

Install with an administrator password, preview the supported area, then activate. An All theme may be active in one area, both or neither. Updates create immutable releases and retain a previous version for rollback. Activate another theme in both areas before uninstalling.

The system follows the independent frontend/dashboard lifecycle observed in MagicAI. It does not advertise binary compatibility with third-party MagicAI ZIPs or a remote theme store.

Validation

Upload limit: 15 MB. Expanded limit: 25 MB. At most 500 entries. Traversal/absolute paths, symbolic links, case-insensitive duplicates, encrypted entries, extreme expansion and unsupported files are rejected. Blade PHP syntax is checked.

Blade and theme JavaScript are trusted application code, not sandboxed plugins. Use local licensed assets, translations, responsive layouts, accessible controls and prefers-reduced-motion. Include licenses and update instructions for separately sold themes; never ship provider credentials or customer content.