# Installable Theme Packages

The public site uses a WordPress-style separation: CMS pages and menus are global, while a theme package controls presentation.

## Required ZIP structure

```text
theme.json
views/pages/home.blade.php
views/pages/cms.blade.php
public/assets/...
public/preview.svg
```

`theme.json` must use schema `platforma-theme-v1`, have a unique slug, and declare `views.home` and `views.cms`. Use `theme_asset()` for package assets, `trading_login_url()` and `trading_register_url()` for authentication links, and include `themes.includes.runtime-customization` in the head plus `themes.includes.runtime-body-end` before closing body.

ZIP validation blocks path traversal, executable files, protected supplied-theme slugs, and oversized expanded archives. Supplied themes cannot be deleted.
