Skip to content
Bright Themes

How to install, set up and customize the Flair Ghost theme, from its design settings to theme development.

Install the theme

Upload the theme to Ghost and activate it, step by step, in Settings › Site › Theme (set your Ghost site URL to open it in your Ghost Admin).

To upload the theme:

  1. Log in to Ghost Admin at yoursite.com/ghost/.
  2. Choose Upload theme and select flair.zip, the file you downloaded. If a theme with the same name is installed, Ghost asks whether to overwrite it: choose Overwrite to update it and keep its design settings.
  3. When the upload is done, choose Activate theme in the Upload successful dialog.

Ghost checks the theme with GScan when you upload it and lists any problems. The full walkthrough, with what to check when something goes wrong, is in How to install a theme in Ghost.

Settings › Site › Theme › Change theme

Upload routes.yaml

Upload the theme's routes.yaml in Settings › Advanced › Labs (set your Ghost site URL to open it in your Ghost Admin), so collections and pages work as the theme expects.

Caution

The theme’s routes.yaml file is inside the theme’s zip, and shown below. When it has more than Ghost’s default routes (the / collection and the tag and author pages), the theme needs it: upload it, or the theme’s extra collections and pages won’t work. Uploading it replaces the site’s routes, so add any routes of your own to it first.

Uploading routes.yaml is a separate step from uploading the theme:

  1. Log in to Ghost Admin at yoursite.com/ghost/.
  2. In the Routes row, open the menu next to Edit, choose Upload file and select the routes.yaml from the root directory of the theme.

The routes.yaml in the zip sets up the URLs the theme expects. For everything routing in Ghost can do (collections, channels, taxonomies and static routes), see Ghost CMS dynamic routing & routes.yaml.

Settings › Advanced › Labs › Beta features
routes.yaml
## routes.yaml

routes:
  /archive/:
    controller: channel
    template: archive
    # data: page.archive
  /signup/:
    template: signup
    # data: page.singup
  /signin/:
    template: signin
    # data: page.signin
  /membership/:
    template: membership
    # data: page.membership
  /tags/:
    template: tags
    # data: page.tags

collections:
  /:
    permalink: /{slug}/
    template: index

taxonomies:
  tag: /tag/{slug}/
  author: /author/{slug}/

Custom settings

Change the theme's design settings in Ghost Admin without code, and keep them when you update the theme.

The theme has its own design settings, which you change in Ghost Admin without code. Open Settings › Site › Design & branding (set your Ghost site URL to open it in your Ghost Admin) and choose Customize: the theme’s settings are on the Theme tab, in up to three groups: Site wide, Homepage and Post. In these docs a setting is written with its group, for example Settings › Site › Design & branding › Theme › Site wide (set your Ghost site URL to open it in your Ghost Admin).

Settings › Site › Design & branding › Theme

The theme’s settings, defined in its package.json:

SettingGroupWhat it does
Color schemeSite wideSet the default color scheme of the site
Font headingsSite wideSet the heading font (when the Ghost 'Heading font' is set to theme default)
Font bodySite wideSet the body font (when the Ghost 'Body font' is set to theme default)
Dark theme logoSite wideLogo for the dark theme
CTA textSite wideSet the main CTA button text
CTA linkSite wideSet the main CTA button URL
Sticky headerSite wideEnable the sticky header
Header actionSite wideSet the main action for the header
Hero headlineHomepageSet the homepage hero headline
Hero subheadingHomepageSet the homepage hero subheading
Hero background styleHomepageSet the site cover image style for the hero section
Hero actionHomepageSet the homepage hero action
Featured tagsHomepageList of tag slugs to be featured as categories
Featured tags layoutHomepageSet the layout for the featured tags: list of links or topic sections
Post feed layoutHomepageSet the post feed layout
Post card styleHomepageSet the post card style
Post card accessHomepageEnable the access indicator on post cards (members/paid/tiers)
Default post templatePostSet the default post template for your posts

Note

To keep your design settings when you update the theme, upload the new version under the same zip file name, or deploy it with the GitHub action. More in keeping your design settings.

Homepage

The homepage is defined in home.hbs and has these sections, which you set up with the design settings in Settings › Site › Design & branding › Theme › Homepage (set your Ghost site URL to open it in your Ghost Admin):

Note

The header, CTA section and footer are on every template (posts, pages, tags, authors).

Hero

The hero has these settings in Settings › Site › Design & branding › Theme › Homepage (set your Ghost site URL to open it in your Ghost Admin):

To feature a post, turn on Feature this post in the post settings. The homepage shows up to 5 featured posts, in a layout that adapts to how many you have. With no featured posts, the section doesn’t show.

Pinned pages

You can also pin pages on the homepage, for sponsored content or your own products.

Create the pages you want to show and add the tag pinned to them. Once the tag’s slug is pinned, you can rename the tag: its name is the heading of the section.

List the tags you want to feature in Featured tags in Settings › Site › Design & branding › Theme › Homepage (set your Ghost site URL to open it in your Ghost Admin). Example from the demo:

Text
features,guides,tutorials,data-analysis,data-management

Caution

Use the tag slugs, separated by commas, with no spaces.

To find a tag’s slug, open Tags in Ghost Admin, open the tag and check its Slug field.

Featured tags layout sets how they’re shown:

  • list (default) — all tags in one row, linking to their tag pages
  • section — a section for each tag, with 3 of its posts and a link to the tag page
  • cards — a card for each tag, in a row you can scroll when there are many

Latest posts

The latest posts show your posts by date, the most recent first. With more posts than posts_per_page, pagination follows the list.

Post feed layout in Settings › Site › Design & branding › Theme › Homepage (set your Ghost site URL to open it in your Ghost Admin) sets the layout, grid or list; see Post feed.

The header is defined in partials/header.hbs and it renders:

Settings in Settings › Site › Design & branding › Theme › Site wide (set your Ghost site URL to open it in your Ghost Admin) change it:

  • Sticky header — keeps the header at the top of the page as readers scroll (on by default)
  • Dark theme logo — a logo for the dark color scheme, in place of the publication logo from Settings › Site › Design & branding › Brand (set your Ghost site URL to open it in your Ghost Admin)
  • Header action — the button on the right:
    • cta (default) — a button with CTA text and CTA link
    • signin-signup — sign-in and sign-up buttons that open Ghost’s Portal
    • subscribe — a subscribe button that opens Ghost’s Portal
  • CTA text and CTA link — the text and URL of the main CTA button, used by the cta header action and the cta hero action

The footer is defined in partials/footer.hbs and it renders:

  • your publication logo and site description
  • social links
  • the primary navigation, labeled with the site title
  • the secondary navigation, labeled “Legal”
  • your featured tags, labeled “Categories”
  • the copyright notice and the color scheme toggle

To change the labels, edit partials/footer.hbs, or use a code snippet in Settings › Advanced › Code injection › Site header (set your Ghost site URL to open it in your Ghost Admin) (what code injection is).

Post feed

The post feed is defined in partials/post-feed.hbs. Post feed layout in Settings › Site › Design & branding › Theme › Homepage (set your Ghost site URL to open it in your Ghost Admin) sets its layout: grid (default) or list.

Note

The post feed is used for the latest posts on the homepage and on the tag and author pages.

Post card

In the grid layout, each post is a card defined in partials/post-card.hbs. Two settings in Settings › Site › Design & branding › Theme › Homepage (set your Ghost site URL to open it in your Ghost Admin) change the cards:

Post card style:

  • minimal (default) — a clean, minimal card
  • bordered — a border around the card and a subtle background color
  • shadowed — a subtle shadow around the card

Post card access — shows who can read the post (members, paid or specific tiers) on the card (on by default).

CTA section

To show the CTA section above the footer, create a new page with the page URL cta. The page content is the content of the CTA section, and its feature image is the background.

The CTA section is separate from the CTA button, which you set with CTA text and CTA link in Settings › Site › Design & branding › Theme › Site wide (set your Ghost site URL to open it in your Ghost Admin) (see Header).

Flair CTA section Flair CTA page

Templates

Flair has four post templates in addition to the default. You choose them in the post settings, under Template:

  • custom-with-narrow-feature-image.hbs — a narrow feature image, as wide as the content
  • custom-with-no-feature-image.hbs — no feature image
  • custom-with-wide-feature-image.hbs — a wide feature image
  • custom-with-table-of-contents.hbs — a table of contents

The default template follows Default post template in Settings › Site › Design & branding › Theme › Post (set your Ghost site URL to open it in your Ghost Admin): narrow-feature-image (default), no-feature-image, wide-feature-image or with-table-of-contents.

Pages

The theme comes with five custom pages:

  • /archive/
  • /tags/
  • /membership/
  • /signin/
  • /signup/

To activate them, upload the routes.yaml file.

Metadata

To control the metadata of one of these pages, create a page in Ghost Admin with the same URL and add the data property in the routes file. For example, for the /archive/ page:

  1. Change the routes file and add the data property:
    YAML
    /archive/:
      controller: channel
      template: archive
      data: page.archive
  2. Create a new page in Ghost Admin and make sure the page URL is archive.
  3. Upload routes.yaml again.

Membership page content

To add an FAQ section, or any other content, to the membership page:

  1. Create a new page in Ghost Admin with the slug membership.

  2. Add your content. For an FAQ, you can use toggle cards:

    Membership page content

  3. In routes.yaml, extend the /membership/ route:

    YAML
    /membership/:
      template: membership
      data: page.membership
  4. Upload the new routes.yaml file.

Color customization

You can change the accent color in Settings › Site › Design & branding › Brand (set your Ghost site URL to open it in your Ghost Admin). The theme’s colors are CSS custom properties, so you can override them in Settings › Advanced › Code injection › Site header (set your Ghost site URL to open it in your Ghost Admin) (what code injection is).

Color scheme in Settings › Site › Design & branding › Theme › Site wide (set your Ghost site URL to open it in your Ghost Admin) sets the default color scheme:

  • system (default) — light or dark, following the reader’s device setting
  • light
  • dark

To change a color scheme, add the following in Settings › Advanced › Code injection › Site header (set your Ghost site URL to open it in your Ghost Admin) and adjust the values.

The light scheme:

HTML
<style>
  :root {
    --color-typ: hsl(0 0% 15%);
    --color-typ-tone: hsl(0 0% 40%);
    --color-typ-content: hsl(0 0% 35%);
    --color-typ-reverse: hsl(0 0% 95%);
    --color-bgr: hsl(0 0% 100%);
    --color-bgr-tone: hsl(0 0% 98%);
    --color-bgr-opac: hsla(0 0% 100% / 75%);
    --color-bgr-reverse: hsl(0 0% 12%);
    --color-brd: hsl(0 0% 90%);
  }
</style>

The dark scheme (it also covers system on a device set to dark: the theme turns system into light or dark before the page draws):

HTML
<style>
  :root[data-color-scheme="dark"] {
    --color-typ: hsl(0 0% 90%);
    --color-typ-tone: hsl(0 0% 70%);
    --color-typ-content: hsl(0 0% 70%);
    --color-typ-reverse: hsl(0 0% 15%);
    --color-bgr: hsl(0 0% 10%);
    --color-bgr-tone: hsl(0 0% 12%);
    --color-bgr-opac: hsla(0 0% 0% / 50%);
    --color-bgr-reverse: hsl(0 0% 98%);
    --color-brd: hsl(0 0% 18%);
  }
</style>

Some useful tools for choosing colors and gradients:

Typography

To use the theme’s own fonts instead, set both to Theme default there.

For a font Ghost doesn’t offer (your own files or a Google Font added with code injection), follow how to add custom fonts in Ghost.

By default the theme uses DM Sans for headings and body.

With Theme default set in Ghost’s typography settings, two theme settings in Settings › Site › Design & branding › Theme › Site wide (set your Ghost site URL to open it in your Ghost Admin) choose the fonts:

  • Font headings — the font of the headings (default DM Sans)
  • Font body — the font of the rest of the text (default DM Sans)

Both have the same options: System, DM Sans, Figtree, Inter, Kode Mono, Lexend, Noto Serif, Outfit, Playfair, Sen, Source Serif 4 and Space Grotesk. In Font headings, Outfit is spelled Outift.

Tip

System uses the reader’s system font and makes no requests to Google Fonts, which helps if GDPR is a concern. To keep a Google font and host the files yourself, see self-hosting Google Fonts.

Add dropdown menus to the theme's navigation from Ghost Admin, by starting an item's label with a minus sign.

The theme can show dropdown menus in the header. To make an item a submenu item, start its label with a minus sign (-) in Settings › Site › Navigation (set your Ghost site URL to open it in your Ghost Admin) (choose Customize to edit the menu).

An item that starts with - goes into the dropdown of the item above it. For example, these items make a Members menu with three entries. The full walkthrough is in How to add dropdown menus in Ghost.

Settings › Site › Navigation

Ghost config

Settings in Ghost's config file that the theme can use, such as image sizes and the posts per page.

Some of the theme’s configuration lives in its package.json file: the posts per page, the image sizes and the custom settings.

Posts per page

posts_per_page is the number of posts a list shows before it’s paginated, such as the tag and author pages.

To change it, edit the value in package.json. The theme comes with:

JSON
"config": {
  "posts_per_page": 12
}

Image sizes

Ghost makes copies of every uploaded image at the sizes the theme asks for (opens in a new tab), so pages can load the right size. They’re set under image_sizes in package.json; edit them before you upload the theme. The theme comes with:

JSON
"image_sizes": {
  "xxs": {
    "width": 30
  },
  "xs": {
    "width": 100
  },
  "s": {
    "width": 320
  },
  "m": {
    "width": 640
  },
  "l": {
    "width": 960
  },
  "xl": {
    "width": 1280
  },
  "xxl": {
    "width": 2000
  }
}

Comments

Turn on Ghost's native comments for members, and choose who can comment.

The theme uses Ghost’s native comments. Turn them on in Settings › Membership › Access (set your Ghost site URL to open it in your Ghost Admin), under Who can comment on posts?:

  • All members — every signed-in member
  • Paid-members only — signed-in members with an active paid subscription
  • Nobody — comments are off

If the theme has a comments setting of its own (listed in its settings above), set it to Ghost’s native comments too.

Icons

How the theme's icons work and how to add or change one.

The theme’s icons are from Tabler Icons (opens in a new tab). Only the icons the theme uses are included, each as its own .hbs file in partials/icons/.

To add an icon:

  1. Find the icon on Tabler Icons (opens in a new tab) and select it: this copies its SVG code.
  2. In partials/icons/, create a file named after it, for example camera.hbs.
  3. Paste the code into the file and save it.

For example, the camera icon copies as:

HTML
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-camera" width="24" height="24" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
  <path stroke="none" d="M0 0h24v24H0z" fill="none"/>
  <path d="M5 7h1a2 2 0 0 0 2 -2a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1a2 2 0 0 0 2 2h1a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-9a2 2 0 0 1 2 -2" />
  <circle cx="12" cy="13" r="3" />
</svg>

To show an icon in the theme’s templates, use the partials/icon.hbs partial with the icon’s name (and, optionally, Tailwind classes for its size in icon_class, such as size-6):

Handlebars
{{>icon name="camera"}}

The CSS only has the Tailwind classes the theme’s files already use, so after adding a class the theme doesn’t use yet, rebuild the CSS (see Theme development).

Add social links to the theme: the networks Ghost supports, and others through code injection.

The theme shows the social accounts you set in Settings › General settings › Social accounts (set your Ghost site URL to open it in your Ghost Admin).

It can also link these platforms, which Ghost has no field for:

  • Discord
  • GitHub
  • Pinterest
  • Reddit
  • Telegram
  • WhatsApp

To add one, put its link in Settings › Advanced › Code injection › Site footer (set your Ghost site URL to open it in your Ghost Admin) (what code injection is). For example, for GitHub:

HTML
<script>
  socials.github = 'https://github.com/brightthemes'
</script>

The other names are discord, pinterest, reddit, telegram and whatsapp.

Note

For a platform that isn’t listed, add its icon (see the Icons section), then add a block for it in partials/social-links.hbs, like the ones already there.

Social sharing

The share buttons on posts: which networks they include and where to change them.

Each post has share buttons for:

  • X
  • Bluesky (not in every theme)
  • Facebook
  • LinkedIn
  • Email
  • Copy link

To add or remove one, edit the theme’s share partial: partials/social-share.hbs (partials/share-links.hbs in Thred).

Translations

Translate the theme's own text into your language with its locale files, and add a language that's missing.

By default, everything is in English (en.json). The theme also comes with translations in:

  • German (de.json)
  • Spanish (es.json)
  • French (fr.json)
  • Italian (it.json)
  • Dutch (nl.json)
  • Portuguese (pt.json)

To change a translation, edit its file in the theme’s locales directory:

Text
|__ locales
|   |__ de.json
|   |__ en.json
|   |__ es.json
|   |__ fr.json

For a language the theme doesn’t have, add a file named with its language code (for example pl.json): copy en.json, rename it, and translate the values. The full walkthrough is in How to translate your theme in Ghost.

Theme development

Set up the theme for local development: install the dependencies, run the build, and package the zip.

For changes beyond the design settings and code injection, you can work on the theme’s source. The theme is built with Tailwind CSS (opens in a new tab) and Alpine.js (opens in a new tab), and its assets are compiled and minified with Vite (opens in a new tab).

You need Node.js (opens in a new tab) and a local install of Ghost. Put the theme’s folder in Ghost’s content/themes/ directory, open it in your terminal and run npm install to install its dependencies. Then:

  1. npm run dev — runs the Vite dev server at localhost:2468, in front of your local Ghost on port 2368: it rebuilds the assets whenever you change a file and reloads the browser. The Vite configuration is in vite.config.js.
  2. npm run build — builds the assets once, into assets/built/.
  3. npm run test — checks the theme with GScan (opens in a new tab), Ghost’s own theme checker.
  4. npm run zip — makes a zip of the theme in the dist directory, ready to upload.

Ghost’s own Edit code changes the theme’s files in Ghost Admin, but it doesn’t run this build: use it for templates, and make style and script changes here.

Code snippets

Short snippets for common changes.

How to change the logo size?

In Settings › Advanced › Code injection › Site header (set your Ghost site URL to open it in your Ghost Admin) (what code injection is), add the following, changing the values as needed:

HTML
<style>
:root {
  --logo-h-mobile: 28px;
  --logo-w-mobile: auto;
  --logo-h-desktop: 32px;
  --logo-w-desktop: auto;
}
</style>

In Settings › Advanced › Code injection › Site header (set your Ghost site URL to open it in your Ghost Admin), add:

HTML
<style>
  [data-footer-nav="primary"] > span { visibility: hidden; }
  [data-footer-nav="primary"] > span:before { 
    content: "Your label"; 
    visibility: visible; 
  }

  [data-footer-nav="secondary"] > span { visibility: hidden; }
  [data-footer-nav="secondary"] > span:before { 
    content: "Your label"; 
    visibility: visible; 
  }

  [data-footer-nav="categories"] > span { visibility: hidden; }
  [data-footer-nav="categories"] > span:before  { 
    content: "Your label"; 
    visibility: visible; 
  }
</style>

In Settings › Advanced › Code injection › Site header (set your Ghost site URL to open it in your Ghost Admin), add:

HTML
<style>[data-header] [data-ghost-search] { display: none; }</style>

How to hide the authors on post cards?

In Settings › Advanced › Code injection › Site header (set your Ghost site URL to open it in your Ghost Admin), add:

HTML
<style>[data-post-card-authors] { display: none; }</style>

Something missing or unclear? Ask support.

Can’t find what you need?

Ask the person who builds the themes. Tell us what you are trying to do and we will point you the right way.