Reference
The contract for building with moss: exact field names, class names, and commands. For prose writing, see Writing. For styling, start with Write a theme and come here for the precise names.
- Frontmatter — every page metadata field.
- CSS tokens · Component classes · HTML structure — the design contract.
- CLI — moss commands and flags.
- Manifest · Hooks · Slots — the plugin contract.
For the live design tokens, component classes, and frontmatter fields of your installed moss, run moss describe --json.
CLI
Command-line interface for testing and automation.
Manifest
Plugin manifest reference, configuration, and the moss-api SDK.
Hooks
The plugin lifecycle: four capabilities and their contexts.
Slots
Template injection points and the enhance phase.
CSS tokens
Every --moss-* CSS custom property, grouped by category. Run moss describe --json for the live values of your installed moss.
Component classes
The stable .moss-* class names emitted by moss's auto-generated components. Target these in .moss/theme/style.css.
HTML structure
The DOM skeleton moss emits on every page. The stable selectors to hook into from script.js or style.css.