MARS Developer ReferenceBuild against the current Theme contract.

Theme anatomy and identity

Package files, manifest rules and Official versus Private identity.

Theme anatomy and identity — Package files, manifest rules and Official versus Private identity.

A small presentation package

A Theme lives under themes/{slug} with theme.json, views and declared public assets. The directory name must match the manifest slug. Required layouts are home.blade.php, content.blade.php, archive.blade.php, taxonomy.blade.php and 404.blade.php.

A minimal manifest for an intentionally Private Theme is:

{
  "name": "Reference",
  "slug": "reference",
  "version": "1.0.0",
  "mars": "^1.0",
  "origin": "private",
  "rtl": true,
  "navigation_locations": {"header": "Header"},
  "assets": {"site": "site.css"},
  "capabilities": ["content", "archives", "taxonomy", "navigation"]
}

This example assumes all required layouts and assets/site.css actually exist. Asset values are safe local basenames. Keys are stable identifiers served through the Theme asset endpoint. Do not place editorial content or customer images in the package.

Identity is a claim with provenance

Official Themes are first-party packages; Private Themes are deployment-specific presentation. An omitted origin defaults to Private. Changing a local string to Official does not establish publisher trust. Signed distribution and publisher review establish provenance.

Both identities use the same activation safety rules. Private packages receive no automatic Official demo registration. The optional demo contract does not authorize data import or affect compatibility.

Extensions and boundaries

extensions.homepage_presenter implements App\Core\Themes\HomepagePresenter. extensions.view_presenter implements App\Core\Themes\ViewPresenter. A declared bootstrap is a safe local basename. Extensions receive prepared context and may coordinate approved presentation readers; they do not move routing, SEO or domain decisions into Blade.

Continue with rendering and compatibility.

Conceptual fragments: supply the required package files and register any presenter before use.