Stacks API

Come build with us.
Stacks API v13 for Stacks 5.0


  <   Stacks Developer API


This content is open source. You can edit it and submit a pull request on GitHub.
This page is generated from this file.


© . YourHead Software all rights reserved.

Theme API

The Theme API lets a bundle provide the complete HTML document around a Stacks page. A theme can define the document structure, metadata, navigation, page content area, footer, stylesheets, scripts and controls shown in the theme inspector.

Themes use a new template language based on named templates, YAML frontmatter and runtime objects such as site, page and content. This is separate from the %...% replacement syntax used by ordinary stack templates.

Documentation status

The Theme API does not yet have a published, authoritative reference. This section is based on:

  1. The theme.schema.json file bundled with Stacks.
  2. The bundled Base, Blank and Sample themes.
  3. Behaviour observed while developing themes in Stacks.

The bundled schema calls itself an inferred schema. It is useful evidence, but it also says that the runtime may support more values than the schema currently lists.

Pages in this section use the following labels:

What a theme controls

A theme can provide:

Start with Getting Started, then use the remaining pages as a practical reference.

© . YourHead Software all rights reserved.