Come build with us.
Stacks API v13 for Stacks 5.0
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.
The Theme API does not yet have a published, authoritative reference. This section is based on:
theme.schema.json file bundled with 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:
A theme can provide:
<head> and <body>.customItems.Start with Getting Started, then use the remaining pages as a practical reference.