Come build with us.
Stacks API v13 for Stacks 5.0
Theme API
Stacks includes three reference themes inside the application bundle:
Stacks.app/Contents/Resources/Themes/
├── base.stackstheme
├── blank.stackstheme
└── sample.stackstheme
The same directory contains theme-spec/theme.schema.json.
Bundle identifier:
com.yourhead.stacks.theme.base
Base provides the standard HTML5 composition:
page surrounds the document with prefix, doctype, <html> and suffix.head inserts head-above content, metadata, title, CSS and head-below content.body inserts body-above content, navigation, the main page body and foot.foot inserts theme foot content, body-below content and JavaScript.css and js provide conventional generated output units.Base is intended to be inherited and selectively overridden.
Bundle identifier:
com.yourhead.stacks.theme.blank
Blank has Base as its parent, but overrides the main document units with minimal implementations. It is particularly useful for identifying the content and resource paths that a custom document must preserve:
content.prefix and content.suffixcontent.headAbove and content.headBelowcontent.bodyAbove, content.body and content.bodyBelowsiteCssPath, layoutCssPath, pageCssPath and pageJsPathUse Blank as a reference when creating an intentionally unstyled canvas.
Bundle identifier:
com.yourhead.stacks.theme.sample
Sample demonstrates:
customItems.Sample is the broadest executable example, but it is still an example rather than a complete formal specification.
When evidence differs, use this order cautiously:
Record discrepancies instead of silently choosing whichever interpretation is most convenient.