Gagarin Docs
Introduction
Gagarin is a colourful mosaic theme for blogs and publications. Every post gets its own colour, taken from its feature image, a tag or a colour you choose, and that colour carries from the post's card on the homepage into the header of the post itself. The result is a homepage that feels like a bright, ever-changing wall of stories.
Since this is a Ghost theme documentation, we assume you have a basic knowledge of Ghost CMS. If you're starting with Ghost, the official Ghost Help Center has all the information you need to get going.

Getting started
Welcome
Looks like you're just getting started. Don't worry, we're here to help. Gagarin needs very little setup: there are no special pages to create and no files to upload besides the theme itself. Most of what you see comes from your posts, tags and a handful of theme settings.
The theme offers these key features:
- Mosaic homepage feed with a large hero tile for your latest post
- Per-post colour themes, picked automatically from the feature image or set by you
- Topic filter bar to browse posts by tag
- Side rail navigation on large screens and a full-screen menu on phones and tablets
- Collapsible navigation groups for sub-menus
- Colour band post header that matches the post's card
- Newsletter signup tile, subscribe box and paywall card for members
- Table of contents, heading anchors and image lightbox in posts
- Styled contact forms that send without leaving the page
- Related posts ("Similar topics") at the end of every post
- Six languages: English, German, Spanish, French, Dutch and Chinese
- Support for all built-in Ghost cards, comments, search and members features
Quick start
Here are the key tasks to get your site looking great:
- Install and activate the theme.
- Upload your logo (and an optional light logo for dark post headers).
- Set up your primary navigation and social accounts.
- Set the homepage title in the theme settings.
- Add feature images or colour tags to your posts.
- Turn on membership if you want the newsletter and subscribe features.
Requirements
Gagarin requires Ghost 6.0 or later. It uses Ghost's built-in social accounts, which are not available on older versions.
Install theme
Upload zip file
To begin, unzip the downloaded package by double-clicking it on a Mac or by right-clicking and selecting "Extract All" on Windows.
Inside the new Gagarin folder, you will find the Gagarin.zip theme file and an online documentation file.
Step-by-step to upload the theme to your website
- Log in to your Ghost website admin (example.com/ghost).
- Click the settings icon ( ⚙️ ) at the bottom of the left-hand side.
- Go to Design & branding > Customize > Change theme.
- Click Upload theme and select the Gagarin.zip theme file.
- Once uploaded, click Activate now to activate the theme.

Note: Gagarin works with Ghost's default routes, so you don't need to upload a routes.yaml file or import any internal tags.Homepage
The homepage has three parts, from top to bottom: a two-part title, a topic filter bar and a mosaic feed of your posts. Everything is filled in automatically from your posts and tags.
Homepage title
The title at the top of the homepage has two parts: a small outlined word (the "eyebrow") and a large main title underneath it.
Step-by-step to change the homepage title
- Go to Settings > Design & branding > Customize > Theme.
- Open the Homepage group.
- Enter the small word in Hero eyebrow. If you leave it empty, your site title is used.
- Enter the large title in Hero title. If you leave it empty, "Chronicles" is shown.
- Click Save.

Topic filter bar
Below the title is a row of tag chips that lets visitors filter posts by topic. It starts with All, followed by up to 15 topics. Topics that don't fit on one row go behind a More… chip. When a visitor is on a tag page, that tag is highlighted and always kept visible.
By default, the bar shows your most used public tags. You can choose which tags come first.
Step-by-step to choose the filter tags
- Go to Tags in Ghost admin and note the slug of each tag you want to show (for example
design,travel). - Go to Settings > Design & branding > Customize > Theme > Homepage.
- Enter the slugs in Filter tags, separated by commas:
design, travel, interviews. - Click Save.
Your tags appear first, in the order you entered them, and the bar is topped up with your most used tags.
Note: You can list up to 12 tags in Filter tags. Tags with no posts and internal tags (starting with #) are never shown. On phones the bar scrolls sideways instead of showing More….Mosaic feed
Your posts are shown as colourful cards in a mosaic grid. On the first page, the newest post becomes a large hero tile. As visitors scroll down, more posts load automatically.
Each card shows:
- The post's colour (see Post colours)
- The title, excerpt and feature image
- Up to 6 tags, with the first one filled
- The date, or a Featured label for featured posts
- A Members badge with a star for posts that aren't public
Step-by-step to feature a post
- Open the post in the editor.
- Open Post settings (the sidebar icon at the top right).
- Turn on Feature this post.
- Click Update.
The card now shows Featured instead of the date.
Note: The homepage shows 12 posts per page. When a visitor reaches the end of the feed, the next 12 load in automatically.
Newsletter tile
When membership is on, a newsletter signup card appears in the feed: after the 5th post on the homepage and after the 3rd post on tag pages. Visitors can type their email and subscribe without leaving the page.

Step-by-step to edit the newsletter tile
- Go to Settings > Design & branding > Customize > Theme.
- Open the Post group.
- Change Email signup heading (shown only on this tile).
- Change Email signup description (shown on this tile and in the subscribe box at the end of posts).
- Click Save.
Note: The tile only appears when membership is turned on in Settings > Membership. On a tag with fewer than 3 posts, the tile is not shown.
Post colours
Colour is the heart of Gagarin. Every post gets a colour theme that's used on its card and on its post header, so both always match. Text colour is picked automatically so it stays readable on any background.
The theme chooses each post's colour from the first of these that's available:
- A colour tag you add to the post, such as
#color-FF5A36. - The main colour of the feature image, picked automatically.
- The primary tag's accent colour, set in the tag's settings.
- A built-in palette of 20 colours. Each post always gets the same colour from it.
Set a colour with a tag
Use a colour tag when you want full control over a post's colour.
Step-by-step to set a post's colour
- Open the post in the editor and open Post settings.
- In the Tags field, type
#color-followed by a hex colour code, for example#color-FF5A36or the short form#color-F53. - Press Enter to add the tag.
- Click Update and open the homepage to check.

Note: Tags that start with # are internal tags. Visitors never see them, so the colour tag won't appear on the card or in the post.Set a colour for a whole topic
If you'd like all posts on a topic to share a colour, give the tag an accent colour. It's used for posts that have this tag as their first (primary) tag and no colour tag or feature image.
Step-by-step to set a tag's accent colour
- Go to Tags in Ghost admin and open the tag.
- Click the colour dot next to Color and pick a colour, or type a hex code in the field.
- Click Save.

Posts and pages
Post header
Each post opens with a colour band in the post's colour, showing the title, date, reading time and feature image. While the band is on screen, the navigation changes colour to match it.

Below the header you'll find:
- Lead paragraph: if the post has a custom excerpt, it's shown as a larger intro paragraph.
- Topics: the post's public tags as chips.
- Authors: each author's avatar, name and bio.
Step-by-step to add a lead paragraph
- Open the post and open Post settings.
- Write your intro in the Excerpt field.
- Click Update.
Step-by-step to hide the author list
- Go to Settings > Design & branding > Customize > Theme > Post.
- Turn off Show author.
- Click Save.
Note: Ghost's Show title and feature image toggle in the post settings is respected. Turn it off if you want to start the post with your own header card.
No feature image template
Use this template when you want a post or page header without the cover image.
Step-by-step to use the template
- Open the post or page and open Post settings.
- Under Template, choose No feature image.
- Click Update.
With this template, the header sits on the plain page background. It's still coloured if the post has a colour tag, a feature image or a primary tag with an accent colour.
End of post
At the end of each post, visitors see:
- Subscribe box (logged-out visitors, when membership is on): your email signup description, a Subscribe button, a "Follow via RSS" link and a short byline with the main author's avatar, name and bio.
- Similar topics: up to 6 posts that share a tag with this one.
- Comments, if you've turned them on.


Pages
Pages use the same header as posts but leave out the date, topics, authors, subscribe box and related posts. A page without a feature image has no colour band: its header sits on the page background, unless the page has a colour tag or a primary tag with an accent colour.
Post content extras
Table of contents
Add a table of contents that lists the post's H2 headings, with H3s nested under them. Long lists (more than 8 entries) split into two columns.

Step-by-step to add a table of contents
- Open the post in the editor.
- Place your cursor where you want the table of contents and add an HTML card.
- Paste the following code:
<aside class="toc-container">
<h4>On this page</h4>
<div class="toc"></div>
</aside>
- Click Update and view the post.
Note: The table of contents is hidden when the post has fewer than 2 headings. You can change "On this page" to any title you like.
Heading anchors
Hover over any H2 or H3 heading in a post and a link icon appears next to it. Visitors can click it to copy a direct link to that section. This works automatically.
Image lightbox
Visitors can click any image or gallery image to view it full screen. This works automatically.
Responsive videos
YouTube, Vimeo and Kickstarter embeds scale to fit the content width on every screen size. This works automatically.
Code highlighting
Code blocks get syntax highlighting. In the Code card, set the language (for example javascript, css or html) to get the right colours.
Ghost cards
All of Ghost's editor cards are styled to match the theme. Header and Signup cards place their text at the bottom: with a background image, the text sits on a soft gradient over the lower part of the image. Pick the layout, background image and text colour in the card settings, and the gradient follows your text colour.
Contact forms
Ghost doesn't include a contact form, but Gagarin styles any form you paste into an HTML card. Forms sent to Formspree are sent in the background, so visitors stay on the page: the button reads "Sending…", then a thank-you note replaces the form.
Step-by-step to add a contact form
- Create a free account at formspree.io, create a new form and copy its form ID (the end of the endpoint, for example
abcdwxyzinhttps://formspree.io/f/abcdwxyz). - Create a new page in Ghost admin, for example "Contact".
- Add an HTML card and paste the code below.
- Replace
{your_form_id}with your form ID. - Publish and send yourself a test message.
<form action="https://formspree.io/f/{your_form_id}" method="post">
<label for="full-name">Your name</label>
<input type="text" name="name" id="full-name" placeholder="e.g. John" required>
<label for="email-address">Email address</label>
<input type="email" name="_replyto" id="email-address" placeholder="[email protected]" required>
<label for="message">Message</label>
<textarea rows="9" name="message" id="message" placeholder="Your message…" required></textarea>
<input type="hidden" name="_subject" value="Contact Form Submission">
<input type="submit" value="Send">
</form>
Note: Formspree sends a confirmation email the first time someone submits your form. Confirm it so future messages reach your inbox.
Form options
Add these to the opening <form> tag to change how it behaves:
| What you want | What to add |
|---|---|
| Your own thank-you message | data-success="Thanks! We'll reply soon." |
| Use another form service | data-contact-form (and that service's address in action) |
| Go to the service's own thank-you page | data-contact-form="false" |
For example, to use Getform instead of Formspree:
<form action="https://getform.io/f/{your_form_id}" method="post" data-contact-form>
Getform, Basin, Formcarry, Web3Forms and Formspark also work this way.
Note: Mailchimp embed forms and Google Forms can't be sent in the background. Leave data-contact-form off and they'll submit normally, still with the theme's look.Other pages
Tag pages
Each tag has its own page with a "Topic" label, the tag name, its description, the filter bar and a feed of its posts. Add a description to a tag in Tags > your tag > Description.

Author pages
Each author has a page with an "Author" label, their name, bio and a row of icons linking to their website and social accounts, followed by their posts.
Step-by-step to add an author's social links
- Go to Settings > Staff and open the author's profile.
- Fill in Website and the Social links (X, Facebook, LinkedIn, Bluesky, Threads, Mastodon, TikTok, YouTube, Instagram).
- Click Save.

404 page
When a visitor follows a broken link, they see a "Page not found" message, a button back to the homepage and your 4 latest posts. This works automatically.
Custom settings
Logo
On large screens, your logo sits at the top of the left side rail. On smaller screens, it's at the left of the top bar. If you haven't uploaded a logo, the theme uses your site icon, then your site title.
Step-by-step to upload your logo
- Go to Settings > Design & branding > Customize > Brand.
- Upload your Publication logo.
- Click Save.
Logo on dark
Because post headers can be any colour, a dark logo may be hard to see on a dark header. Upload a light version and the theme swaps it in automatically whenever the navigation sits on a dark colour.
Step-by-step to add a light logo
- Go to Settings > Design & branding > Customize > Theme.
- Upload a light version of your logo in Logo on dark.
- Click Save.

Navigation
On screens 1280px and wider, the page has two side rails: the left rail holds your logo and primary navigation, and the right rail holds the subscribe button and icons for search, your social accounts and RSS. On smaller screens, a top bar with a menu button takes over and opens a full-screen menu on phones or a drop-down panel on tablets.
Step-by-step to add items to the navigation
- Go to Settings > Navigation.
- Under Primary navigation, enter a label and a URL for each item.
- Drag items to change their order.
- Click Save.
The current page is marked with a dot. Posts are also marked under the matching section, so a post at /blog/my-post/ highlights a Blog item that links to /blog/.
Navigation groups (sub-menus)
You can group items under a parent that opens and closes, like a small sub-menu.
Step-by-step to create a navigation group
- Go to Settings > Navigation > Primary navigation.
- Add the parent item, for example Topics. Its URL isn't used, so you can enter
#. - Directly below it, add each sub-item with a label that starts with a dash and a space:
- Design,- Travel. - Click Save.
The dash is removed on the site. Groups start closed and open automatically when one of their sub-items is the current page.

Note: Only one level of sub-items is supported (- - Item won't work). Sub-items are not shown in the footer.Footer navigation
Items added under Secondary navigation in Settings > Navigation appear in the footer.
Subscribe button
When membership is on, a Subscribe button appears at the top of the right rail and in the mobile top bar. It opens the Ghost signup window. Signed-in members see Account instead.
Step-by-step to change the button label
- Go to Settings > Design & branding > Customize > Theme.
- Enter a new label in CTA label, for example "Join".
- Click Save.
Social accounts
Social icons appear in the right rail, the mobile menu and the footer. Supported networks: X, Facebook, LinkedIn, Bluesky, Threads, Mastodon, TikTok, YouTube and Instagram.
Step-by-step to add your social accounts
- Go to Settings > General settings > Social accounts.
- Fill in the accounts you want to show.
- Click Save.

Search and RSS icons are always shown.
Footer
The footer shows your site description and social icons, then your site title as a large wordmark that fills the width of the page, the copyright line and your secondary navigation.
Change the site title and description in Settings > General settings > Title & description.
llms.txt link
If you've turned on Enable structured data for LLMs and AI search engines in Settings > General settings > Metadata, an "llms.txt" link appears in the footer automatically.
Typography
Gagarin uses Geist for body text and Mona Sans for headings. You can replace either with a font from Ghost's built-in list.
Step-by-step to change the fonts
- Go to Settings > Design & branding > Customize > Brand.
- Under Typography, choose a Heading font and/or a Body font.
- Click Save.

Members features
Everything in this section appears only when membership is on in Settings > Membership:
- Subscribe button in the side rail and mobile top bar
- Newsletter tile in the homepage and tag page feeds
- Subscribe box at the end of posts for logged-out visitors
- Paywall card on members-only and paid posts
- Members badge on cards for posts that aren't public
- Comments, if you turn them on
Paywall card
On members-only, paid or tier posts, the free preview fades out into a card that explains who the post is for ("This post is for subscribers only", "paying subscribers only" or "only for subscribers on the [tier name]"), with Subscribe now and Sign in buttons. Signed-in members without access see Upgrade now.

Step-by-step to set up a paywalled post
- Open the post and open Post settings.
- Under Post access, choose Members only, Paid-members only or Specific tiers.
- In the editor, add a Public preview divider where the free part of the post should end.
- Click Update.
Comments
Step-by-step to turn on comments
- Go to Settings > Membership > Access.
- Set Who can comment on posts? to All members or Paid-members only.
- Click Save.

Comments appear under the post as "Member discussion".
Advanced settings
Language
Gagarin is available in English, German, Spanish, French, Dutch and Chinese. All the theme's buttons and labels switch to your chosen language.
Step-by-step to change the language
- Go to Settings > General settings > Publication language.
- Enter the language code:
en,de,es,fr,nlorzh. - Click Save.

Note: Any other language code falls back to English. To add your own language, copylocales/en.jsonin the theme folder, rename it to your language code (for exampleit.json), translate the values and upload the theme again.
Code injection
You can add custom CSS through Ghost's code injection without editing theme files.
Step-by-step to add custom CSS
- Go to Settings > Advanced > Code injection and click Open.
- Paste your code in Site header.
- Click Save.

For example, to use your own fonts from Google Fonts for both headings and body text:
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Fraunces:wght@600&display=swap" rel="stylesheet">
<style>
:root {
--font-base: 'Inter', sans-serif;
--font-heading: 'Fraunces', serif;
}
</style>
Note: Fonts set this way take priority over the ones picked under Design & branding > Brand > Typography. To go back to the admin fonts, remove the code.
Accessibility and motion
The theme respects your visitors' reduce motion setting: the menu and navigation animations are replaced with a simple fade. On touch screens, social icons and footer links get larger tap areas.
Note: Gagarin doesn't have a dark mode toggle. Colours follow each post's own colour theme instead.
Need help?
If you have a question that isn't answered here, get in touch through Themex Studio and we'll be happy to help.
Become a subscriber receive the latest updates in your inbox.