Stacks API

Come build with us.
Stacks API v13 for Stacks 5.0


  <   Theme 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.

Bundled Reference Themes

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.

Base Theme

Bundle identifier:

com.yourhead.stacks.theme.base

Base provides the standard HTML5 composition:

Base is intended to be inherited and selectively overridden.

Blank Theme

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:

Use Blank as a reference when creating an intentionally unstyled canvas.

Sample Theme

Bundle identifier:

com.yourhead.stacks.theme.sample

Sample demonstrates:

Sample is the broadest executable example, but it is still an example rather than a complete formal specification.

Source precedence

When evidence differs, use this order cautiously:

  1. Behaviour observed in the current Stacks runtime.
  2. Current bundled reference themes.
  3. Current bundled inferred schema.
  4. Assumptions borrowed from the ordinary Stack API.

Record discrepancies instead of silently choosing whichever interpretation is most convenient.

© . YourHead Software all rights reserved.