TypeDock themes are declarative and code-free. A theme is simply a directory under themes/<slug>/ containing a theme.json manifest, Pongo2 templates, and static CSS/JS assets.
Themes reload automatically via file mtime caching — edit a template and refresh your browser with no rebuild or restart.
Directory Structure
Use themes/default/ or themes/kinari/ as living reference implementations:
themes/<slug>/
├── theme.json # Manifest: metadata, settings, menus, slots
├── assets/
│ ├── css/style.css # Stylesheets (served at /themes/<slug>/assets/...)
│ ├── js/ # Optional client-side JS
│ └── screenshot.svg # Optional admin preview image (svg or png)
├── layouts/
│ ├── base.html # Master layout
│ ├── archive.html # Home / post list / category / tag archive
│ ├── single.html # Single post view
│ ├── page.html # Static / hierarchical / hub page
│ ├── author.html # Author archive
│ ├── search.html # Search results
│ └── 404.html # Not found page
├── partials/
│ ├── header.html
│ ├── footer.html
│ ├── breadcrumb.html
│ └── pagination.html
└── components/ # Optional overrides for slot components
├── latest-posts.html
├── category-list.html
└── ...
theme.json Manifest
{
"name": "My Client Theme",
"version": "1.0.0",
"description": "Custom declarative theme for Acme Corp.",
"author": "Your Studio",
"settings": {
"colors": {
"label": "Colors",
"fields": {
"accent": {
"type": "color",
"label": "Accent Color",
"default": "#10b981",
"hint": "Used for links and primary actions."
}
}
}
},
"menus": {
"header": {
"label": "Header Navigation",
"description": "Main top navigation links."
}
},
"slots": {
"sidebar": {
"label": "Sidebar",
"context": ["post", "page", "archive"],
"defaults": [
{ "component": "search_form" },
{ "component": "latest_posts", "params": { "count": 5 } }
]
}
}
}
Supported Setting Field Types
color, select, boolean, text, textarea, image, number.
Automatic CSS Variables
Every setting field defined in theme.json is rendered into :root CSS custom properties by ThemeStyleRenderer using the naming pattern:
--td-<group>-<field>
For example, settings.colors.fields.accent becomes var(--td-colors-accent). Admins can adjust values safely in the admin UI without touching CSS files.
Installing a Theme
Place your theme folder directly inside themes/<slug>/ (or mount it at /app/themes/<slug> in Docker), then activate it under Admin → Appearance → Themes.