🖤 Black Friday: Get all 11 themes for $349$175 forever. Code BLACKX2026 — Ends Dec 6.

Gagarin Docs

This documentation guides installing, customizing, and leveraging the Gagarin theme for your Ghost publication.

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.

Gagarin homepage with the large title, topic filter bar and colourful mosaic feed

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:

  1. Install and activate the theme.
  2. Upload your logo (and an optional light logo for dark post headers).
  3. Set up your primary navigation and social accounts.
  4. Set the homepage title in the theme settings.
  5. Add feature images or colour tags to your posts.
  6. 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
  1. Log in to your Ghost website admin (example.com/ghost).
  2. Click the settings icon ( ⚙️ ) at the bottom of the left-hand side.
  3. Go to Design & branding > Customize > Change theme.
  4. Click Upload theme and select the Gagarin.zip theme file.
  5. Once uploaded, click Activate now to activate the theme.
Change theme window in Ghost admin with the Upload theme button
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
  1. Go to Settings > Design & branding > Customize > Theme.
  2. Open the Homepage group.
  3. Enter the small word in Hero eyebrow. If you leave it empty, your site title is used.
  4. Enter the large title in Hero title. If you leave it empty, "Chronicles" is shown.
  5. Click Save.
Theme settings in Ghost admin showing the Hero eyebrow, Hero title and Filter tags fields

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
  1. Go to Tags in Ghost admin and note the slug of each tag you want to show (for example design, travel).
  2. Go to Settings > Design & branding > Customize > Theme > Homepage.
  3. Enter the slugs in Filter tags, separated by commas: design, travel, interviews.
  4. 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
  1. Open the post in the editor.
  2. Open Post settings (the sidebar icon at the top right).
  3. Turn on Feature this post.
  4. 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.

Newsletter tile in the homepage feed
Step-by-step to edit the newsletter tile
  1. Go to Settings > Design & branding > Customize > Theme.
  2. Open the Post group.
  3. Change Email signup heading (shown only on this tile).
  4. Change Email signup description (shown on this tile and in the subscribe box at the end of posts).
  5. 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:

  1. A colour tag you add to the post, such as #color-FF5A36.
  2. The main colour of the feature image, picked automatically.
  3. The primary tag's accent colour, set in the tag's settings.
  4. 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
  1. Open the post in the editor and open Post settings.
  2. In the Tags field, type #color- followed by a hex colour code, for example #color-FF5A36 or the short form #color-F53.
  3. Press Enter to add the tag.
  4. Click Update and open the homepage to check.
Post settings in Ghost admin with a #color-FF5A36 tag in the Tags field
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
  1. Go to Tags in Ghost admin and open the tag.
  2. Click the colour dot next to Color and pick a colour, or type a hex code in the field.
  3. Click Save.
Tag settings in Ghost admin with the Color picker open

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.

Post header in the post's colour with title, date and feature image

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
  1. Open the post and open Post settings.
  2. Write your intro in the Excerpt field.
  3. Click Update.
Step-by-step to hide the author list
  1. Go to Settings > Design & branding > Customize > Theme > Post.
  2. Turn off Show author.
  3. 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
  1. Open the post or page and open Post settings.
  2. Under Template, choose No feature image.
  3. 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.
Subscribe box at the end of a post
Similar topics section with related posts

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.

Post with a lead paragraph and an On this page table of contents
Step-by-step to add a table of contents
  1. Open the post in the editor.
  2. Place your cursor where you want the table of contents and add an HTML card.
  3. Paste the following code:
<aside class="toc-container">
  <h4>On this page</h4>
  <div class="toc"></div>
</aside>
  1. 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
  1. Create a free account at formspree.io, create a new form and copy its form ID (the end of the endpoint, for example abcdwxyz in https://formspree.io/f/abcdwxyz).
  2. Create a new page in Ghost admin, for example "Contact".
  3. Add an HTML card and paste the code below.
  4. Replace {your_form_id} with your form ID.
  5. 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.

Tag page with the tag highlighted in the filter bar

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.

  1. Go to Settings > Staff and open the author's profile.
  2. Fill in Website and the Social links (X, Facebook, LinkedIn, Bluesky, Threads, Mastodon, TikTok, YouTube, Instagram).
  3. Click Save.
Author page with bio and social icons

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

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.

  1. Go to Settings > Design & branding > Customize > Brand.
  2. Upload your Publication logo.
  3. 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.

  1. Go to Settings > Design & branding > Customize > Theme.
  2. Upload a light version of your logo in Logo on dark.
  3. Click Save.
Site wide theme settings with the Logo on dark and CTA label fields

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
  1. Go to Settings > Navigation.
  2. Under Primary navigation, enter a label and a URL for each item.
  3. Drag items to change their order.
  4. 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/.

You can group items under a parent that opens and closes, like a small sub-menu.

Step-by-step to create a navigation group
  1. Go to Settings > Navigation > Primary navigation.
  2. Add the parent item, for example Topics. Its URL isn't used, so you can enter #.
  3. Directly below it, add each sub-item with a label that starts with a dash and a space: - Design, - Travel.
  4. 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.

Navigation settings with a More topics group and sub-items that start with a dash
Note: Only one level of sub-items is supported (- - Item won't work). Sub-items are not shown in the footer.

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
  1. Go to Settings > Design & branding > Customize > Theme.
  2. Enter a new label in CTA label, for example "Join".
  3. 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
  1. Go to Settings > General settings > Social accounts.
  2. Fill in the accounts you want to show.
  3. Click Save.
Social accounts settings in Ghost admin

Search and RSS icons are always shown.

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.

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
  1. Go to Settings > Design & branding > Customize > Brand.
  2. Under Typography, choose a Heading font and/or a Body font.
  3. Click Save.
Brand settings in Ghost admin with the Typography heading and body font pickers

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.

Paywall card on a paid-members post
Step-by-step to set up a paywalled post
  1. Open the post and open Post settings.
  2. Under Post access, choose Members only, Paid-members only or Specific tiers.
  3. In the editor, add a Public preview divider where the free part of the post should end.
  4. Click Update.

Comments

Step-by-step to turn on comments
  1. Go to Settings > Membership > Access.
  2. Set Who can comment on posts? to All members or Paid-members only.
  3. Click Save.
Access settings with the Who can comment on posts option

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
  1. Go to Settings > General settings > Publication language.
  2. Enter the language code: en, de, es, fr, nl or zh.
  3. Click Save.
Publication language settings in Ghost admin
Note: Any other language code falls back to English. To add your own language, copy locales/en.json in the theme folder, rename it to your language code (for example it.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
  1. Go to Settings > Advanced > Code injection and click Open.
  2. Paste your code in Site header.
  3. Click Save.
Code injection window in Ghost admin with the Site header tab

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.

The Ultimate Theme Bundle
Lifetime Access
The Ultimate Theme Bundle
Every Themex theme you'll ever need. 10 themes now + all future releases. Unlimited sites for $349.
See what's included
Subscribe to our newsletter.

Become a subscriber receive the latest updates in your inbox.