For developers
An appendix for self-builders: Ventura's build commands, stack, file map, the checks that gate a release, the translation workflow, and the stable hook contract.
Most site editors will never need anything here. This page is for developers who want to build the theme from source, add a language, or extend it in a fork.
You do not need any of this to use Ventura
The theme you downloaded is already built. Upload the zip and it works. Everything below is about working on the source.
Build requirements
| Node.js | 22.12.0 or later |
| Yarn | 1.x |
| Ghost | 6.38.0 or later, for a local preview |
Stack
- Vite for the asset build.
- Tailwind CSS v4, configured entirely in CSS: the design tokens live in
assets/css/tokens.css, and there is notailwind.config.js. - Vanilla ES modules, one per feature, with no runtime framework.
- Handlebars templates, as Ghost requires.
- Four lazy chunks that load only on a page that needs them: the YouTube and Vimeo facades, PhotoSwipe for the lightbox, and Prism for code highlighting.
Build commands
yarn install # install dependencies
yarn dev # Vite in watch mode, for use alongside a local Ghost
yarn build # production assets into assets/built/
yarn lint # the lint chain below
yarn vitest # the unit, DOM and template-contract tests
yarn test # yarn lint && yarn vitest: the gate
yarn zip # test, build and package ../../dist/ventura.zip
node scripts/check-zip.mjs ../../dist/ventura.zip # what the zip holds and what it must notThe checks that gate a release
yarn lint runs seven gates, all of which have to pass:
- Translation parity (
scripts/check-i18n.mjs). Fails if a template uses a string that is not inlocales/en.json, ifen.jsondeclares a string no template uses, or if any other locale misses a key or loses a placeholder. - Contrast (
scripts/check-contrast.mjs). Scores every text colour against the surfaces its own mode puts behind it, in light and dark, for any accent colour, and the code palette against the code surface. Anything below the threshold fails. - Fonts (
scripts/check-fonts.mjs). The inline font faces match the bundled files, every preload is covered, and every upright face ships with its italic. - Markup (
scripts/check-markup.mjs). No arbitrary Tailwind values, no physical direction utilities, no outline resets, no pixel boxes as separators, nolimit="all", nocontentForinside aget, no em dashes, no alt-less images, no unhidden icon SVGs, no white copy on an ink ground. - stylelint and eslint on the stylesheets and the modules.
- gscan, Ghost's own theme validator. Zero errors and zero warnings.
yarn vitest runs the test files beside each module and in scripts/: DOM tests against real markup and renders of the real templates through a Handlebars harness with Ghost's helpers stubbed.
assets/built is committed
There is no build step on the server, so whatever is committed under assets/built/ is what a site serves. After any CSS or JavaScript change, run yarn build and commit the result along with the source.
File map
Templates
| File | Serves |
|---|---|
default.hbs | The shared layout for every template |
index.hbs | The home page and its later pages |
post.hbs, page.hbs | A post, a page |
page-join.hbs | The membership page, bound to the page slugged join |
tag.hbs, author.hbs | Ghost's tag and author archives |
tags.hbs, bookmarks.hbs | The topics directory and the saved-stories page, both from the routes file |
custom-authors-archive.hbs | The Authors Archive template in the editor's dropdown |
error.hbs, error-404.hbs | Errors |
Directories
| Path | Holds |
|---|---|
partials/header/, partials/footer/ | The two headers, the phone menu, the member links, the footer's columns and social row |
partials/hero/ | The newsletter hero and its proof row, the Magazine hero (its lead slider, cards and topic tabs), the editor's picks carousel |
partials/home/ | Latest stories, the sections dispatcher, the Topics section, tag sections, the membership band |
partials/membership/ | Tier cards, the billing switch, the Join card and its plan rows, the proof row, the join link |
partials/newsletter/, partials/signup/ | The signup form and its tile, the notice, the newsletter chooser, the Access fallback |
partials/post/, partials/post-card/ | Everything on a post, and the story cards in their variants |
partials/archive/ | Tag and author headers, topic tiles, the topic chips, author cards |
partials/icons/ | Inline SVG icons |
assets/css/ | tokens, components, prose, koenig, code, newsletter-cta, with index.css tying them together |
assets/js/ | One module per feature, each with its tests beside it |
locales/ | The translation files, en.json first among them |
routes.yaml | The routing file |
Adding a language
No build needed
Translation files are plain JSON and are read at runtime, so adding one does not require a build.
- Copy
locales/en.jsontolocales/<code>.json. - Translate the values, leaving the keys and any placeholders (
{count},{topic}) alone. - Set Settings → General → Publication language to that code.
- Run
yarn lintto confirm parity.
Right-to-left languages work: the layout flips for Arabic, Hebrew, Persian and Urdu, including their regional codes.
The hook contract
Ventura exposes four attributes as a public styling API: data-region, data-component, data-variant and data-part. The rules, if you are extending the theme:
- Additive only. Renaming or removing a handle is a breaking change and belongs in the changelog.
- Do not hook a load-bearing element. Anything a script measures or rebuilds (the menu lists, the picks track, the video box, the feed view, the table of contents) keeps its own functional attributes.
- Reserved prefixes:
data-nav-,data-feed-,data-picks-,data-video-,data-bookmark,data-toc,data-ask-ai,data-member-proofanddata-header-are the theme's own machinery;data-portal,data-members-anddata-ghost-belong to Ghost. Never restyle or rename them. - The hook reference lists every handle the theme prints.
Source and licence
The theme is distributed as a zip with the source in it: templates, CSS, JavaScript and locales are all readable and editable. The licence covers what you may do with it and is in LICENSE.md inside the zip. Questions go to support or hello@enova.studio.