# Tuuli documentation

Version 2.0.0 · Updated 30 Nov 2026 · Works with Ghost 6 · Changelog: https://brightthemes.com/changelog/tuuli

Source: https://brightthemes.com/docs/tuuli

How to install, set up and customize the Tuuli 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**.

To upload the theme:

1.  Log in to Ghost Admin at `yoursite.com/ghost/`.
2.  Open **Settings › Site › Theme** and choose **Change theme**.
3.  Choose **Upload theme** and select `tuuli.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.
4.  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](https://brightthemes.com/blog/ghost-theme-install).

*Ghost Admin: Settings › Site › Theme › Change theme*

## Upload routes.yaml

Upload the theme's routes.yaml in **Settings › Advanced › Labs**, 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.  Open **Settings › Advanced › Labs**, choose **Open**, then the **Beta features** tab.
3.  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](https://brightthemes.com/blog/ghost-routing).

*Ghost Admin: Settings › Advanced › Labs*

```yaml title="routes.yaml"
## routes.yaml
routes:

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](https://brightthemes.com/blog/ghost-custom-theme-settings), which you change in Ghost Admin without code. Open **Settings › Site › Design & branding** 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**.

*Ghost Admin: Settings › Site › Design & branding › Theme*

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

| Setting | Group | What it does |
|---|---|---|
| Color scheme | Site wide |  |
| UI font family | Site wide | The font of navigation, dates, tags, buttons and forms |
| Header position | Site wide |  |
| Show search | Site wide | The search button in the header and the menu (Ghost's search) |
| Use portal links | Site wide |  |
| Start here | Homepage | Featured posts at the top of the home page |
| Portrait size | Homepage | The size of the portrait above the letter (the home-intro page's feature image) |
| Dark theme logo | Site wide | Shown in the Dark and Midnight color schemes instead of the site logo |
| Post list images | Site wide | The small images in the lists of posts (home, tags, authors, the archive) |
| Portrait shape | Homepage | The shape of the portrait above the letter (square sits in a yellow frame) |
| Default post template | Post | The layout of every post that doesn't pick its own template |

> [!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](https://brightthemes.com/blog/ghost-theme-deployment). More in [keeping your design settings](https://brightthemes.com/blog/ghost-theme-settings-update).

## Homepage

The homepage is defined in `home.hbs` and is built from pages you write in the Ghost editor. It has these sections, besides the [header](https://brightthemes.com/docs/tuuli#header) and the [footer](https://brightthemes.com/docs/tuuli#footer):

- [the letter](https://brightthemes.com/docs/tuuli#the-letter), with [Now](https://brightthemes.com/docs/tuuli#now) beside it
- [Start here](https://brightthemes.com/docs/tuuli#start-here): two featured posts
- [Writing](https://brightthemes.com/docs/tuuli#homepage-writing): the [topics](https://brightthemes.com/docs/tuuli#topics) and the list of posts

Each section that reads a page shows only when that page is published. Leave these pages out of your navigation: their own URL still works, but they're there for the homepage.

| Page slug | Section | What to put in it |
|---|---|---|
| `home-intro` | The letter | The title is the headline, the content is the letter, the feature image is your portrait and the excerpt is the note under the subscribe form |
| `home-now` | Now | A short list of what you're doing now |
| `home-topics` | Topics | The tags to show, in the order to show them |

To create one, open **Pages** in Ghost Admin, choose **New page**, set the **Page URL** in the page settings to the slug above and choose **Publish**.

### The letter

The top of the homepage is a letter from you, from the page with the slug `home-intro`:

- **The title** is the headline. Put words between asterisks to give them the yellow highlight: `Hi, I’m *Maya*.`
- **The content** is the letter. Text you mark with Ghost's highlight format gets the yellow highlight too; italics stay italic. End it with your name.
- **The feature image** is your portrait. Two settings in **Settings › Site › Design & branding › Theme › Homepage** change it: **Portrait size**, `small` (default), `medium`, `large` or `extra-large`, and **Portrait shape**, `circle` (default), `superellipse`, `squircle` or `square` (in a yellow frame), from round to square.
- **The excerpt** shows as a short note under the subscribe form.

Without the page, the homepage shows the site's title and description (from **Settings › General settings › Title & description**) with the subscribe form.

### Now

Beside the letter, **Now** shows the content of the page with the slug `home-now`: a short list of what you're doing now. The page's title is the label. To link to a longer Now page, set the page's **Canonical URL** (in **Page settings › Meta data**): a **The Now page →** link shows under the list.

### Start here

**Start here** shows your two latest featured posts, the posts to read first. To feature a post, turn on **Feature this post** in the post settings.

**Start here** in **Settings › Site › Design & branding › Theme › Homepage** (on by default) turns the section off.

### Writing

**Writing** is the list of your posts, newest first: the date in the margin, the title, the excerpt, the access and tags, and a small image. Turn off **Post list images** in **Settings › Site › Design & branding › Theme › Site wide** for a list of text only, here and on the tag, author and archive pages. Page 2 and later, tag pages and author pages use the same list. **← Newer posts** and **Older posts →** move between the pages; the number of posts per page is the [posts per page](https://brightthemes.com/docs/tuuli#posts-per-page).

### Topics

Above the list, the topics link to tag pages: **All**, then the tags added to the page with the slug `home-topics`, in that page's order. The page's content isn't shown. They show on tag pages too, with the current one underlined.

Without the page, or without tags on it, the topics don't show.

> [!NOTE]
> Before 2.0 the homepage had a hero with five layouts, a featured posts section, featured tags and a subscribe section, each with its own settings. 2.0 replaces them with the pages above (see [Upgrade to v2](https://brightthemes.com/docs/tuuli#upgrade)).

## Header

The header shows the publication logo (or a yellow square with the site title), the primary navigation with [dropdown menus](https://brightthemes.com/docs/tuuli#dropdown-menus), search, **Sign in** and **Subscribe** (or **Account** for a signed-in member) and the menu button. The current page's item is underlined in the accent color. On smaller screens, and wherever the navigation doesn't fit, the navigation moves into the menu.

**Dark theme logo** in **Settings › Site › Design & branding › Theme › Site wide** shows another logo in the Dark and Midnight color schemes, for a logo that doesn't read on a dark background. It shows in the footer too.

Three more settings in the same group change the header:
- **Header position** — `normal` (default), `sticky` (stays at the top) or `floating` (hides as the page scrolls down and comes back as it scrolls up)
- **Show search** — on by default: the search button in the header and the menu, which opens Ghost's search
- **Use portal links** — on by default: the sign-in, sign-up and account links open Ghost's Portal. Turn it off to use the theme's own [sign-in, sign-up and account pages](https://brightthemes.com/docs/tuuli#pages) instead (create them first).

## Footer

The footer is centered on the page's background. It shows, in order:

- the [call to action](https://brightthemes.com/docs/tuuli#call-to-action), on every page except posts and the members pages
- the publication logo and the site description
- the [social links](https://brightthemes.com/docs/tuuli#social-links), as round icons
- the secondary navigation from **Settings › Site › Navigation**
- the color schemes by name, for readers to switch (see [Color customization](https://brightthemes.com/docs/tuuli#color-customization))
- the copyright line

### Call to action

The call to action shows the content of the page with the slug `section-cta`, the editor cards as you design them:

- a **Signup** card, with its heading, subheading, email field and button. Ghost shows it to visitors only.
- a **Call to action** card, with its layout, alignment, background color, image (on the right in the minimal layout) and visibility: visitors, free members or paid members. Bold text that starts a paragraph is its headline.

The theme adds its own corner radius, fonts and button shape. Leave the page out of your navigation. Without the page, there's no call to action.

> [!NOTE]
> Before 2.0, **CTA headline** and **CTA description** set the subscribe section above the footer. 2.0 replaces them with the `section-cta` page (see [Upgrade to v2](https://brightthemes.com/docs/tuuli#upgrade)).

## Templates

The default post layout is defined by the `post.hbs` template and the default page
layout by the `page.hbs` template.

The default post layout shows the access, the first tag, the date and the reading time above the title, the excerpt in italic, the byline and a wide feature image. After the content come a sign-off from the author (with a **Subscribe** button for visitors), the [comments](https://brightthemes.com/docs/tuuli#comments) and the previous and next posts. A bar at the top of the window shows how far the reader is through the post.

A page with a feature image shows it as a portrait beside the title, for an about page. Without one, the title and excerpt are centered above the content.

Images in posts and pages open larger when clicked.

### Post templates

**Default post template** in **Settings › Site › Design & branding › Theme › Post** sets the layout of every post that doesn't pick its own template: `Image below the title` (default), or the layout of one of the templates below.

Tuuli includes 6 [post templates](https://brightthemes.com/blog/ghost-custom-templates) in addition to the default. You choose one in **Post settings › Template**:

- **Post With Background Image** (`custom-post-with-background-image.hbs`) — the feature image behind the title
- **Post With Full Width Background Image** (`custom-post-with-full-width-background-image.hbs`) — the feature image behind the title, the full width of the window
- **Post With Image On Side** (`custom-post-with-image-on-side.hbs`) — the feature image beside the title (on desktop)
- **Post With Narrow Image** (`custom-post-with-narrow-image.hbs`) — the feature image at the width of the text
- **Post With Table Of Contents** (`custom-post-with-table-of-contents.hbs`) — the wide feature image, then a [table of contents](https://brightthemes.com/docs/tuuli#table-of-contents) beside the post content
- **Post With Sidebar** (`custom-post-with-sidebar.hbs`) — a sidebar beside the post content (on desktop), with featured and latest posts; the sidebar is `partials/sidebar.hbs`

> [!NOTE]
> Before 2.0 these templates were named `custom-with-…`. A post that used one shows the default layout until you pick its template again (see [Upgrade to v2](https://brightthemes.com/docs/tuuli#upgrade)).

The page templates (Signup, Archive…) are described under [Pages](https://brightthemes.com/docs/tuuli#pages).

### Tag and author pages

Tag pages show the tag's feature image above its name, its description and post count, then its posts in the [Writing](https://brightthemes.com/docs/tuuli#homepage-writing) list, with the [topics](https://brightthemes.com/docs/tuuli#topics). A tag's accent color, set in **Tags** in Ghost Admin, colors the square beside **Newest first** and the current topic's underline.

Author pages show the author's portrait, name, bio, post count and links, then their posts.

To hide the comments on a post, add the internal tag `#nocomment` to it.

## Pages

The theme's own pages are pages you create in Ghost Admin, each with one of the theme's page templates. Nothing goes in `routes.yaml` for them: the theme's `routes.yaml` is Ghost's default. You get the page's title, excerpt, feature image and SEO fields, and you can add it to your navigation.

To create one:

1.  Log in to Ghost Admin at `yoursite.com/ghost/`.
2.  Open **Pages** and choose **New page**.
3.  Enter the title. In the page settings, set the **Page URL** to the slug below and pick the **Template**.
4.  Choose **Publish**.

| Page URL | Template | What it shows |
|---|---|---|
| `signup` | **Template Signup** (`custom-template-signup.hbs`) | The sign-up form, with the page's feature image as a round portrait above the title |
| `signin` | **Template Signin** (`custom-template-signin.hbs`) | The sign-in form |
| `account` | **Template Account** (`custom-template-account.hbs`) | The signed-in member's details and subscription |
| `membership` | **Template Membership** (`custom-template-membership.hbs`) | Your tiers, with their prices and benefits |
| `archive` | **Template Archive** (`custom-template-archive.hbs`) | Every post, newest first |
| `tags` | **Template Tags** (`custom-template-tags.hbs`) | Your public tags with posts |
| `authors` | **Template Authors** (`custom-template-authors.hbs`) | Everyone who has published a post |
| `recommendations` | **Template Recommendations** (`custom-template-recommendations.hbs`) | The sites you recommend |

Each shows the page's title and excerpt, centered, at the top.

> [!NOTE]
> The theme links to `/signup/`, `/signin/`, `/account/` and `/membership/`. With **Use portal links** on (in **Settings › Site › Design & branding › Theme › Site wide**, on by default), those links open Ghost's Portal instead, and the members pages are optional.

### Sign-up and sign-in pages

The sign-up and sign-in pages show the form only: the plans are on the membership page. When sign-up is for paid members only, the sign-up page links to the membership page instead of showing the form.

### Membership

The membership page shows your tiers with a monthly and yearly choice, then the page's own content, so you can add text below them in the editor. The tier names, prices and benefits come from **Settings › Membership › Tiers**: edit the tiers there or add new ones.

### Archive

The archive lists every post, newest first, a page of posts at a time. To list only some posts, add tags to the archive page (internal tags too): it then lists the posts with those tags. You can make more than one archive, each a page with the **Template Archive** and its own tags, at any URL.

The archive's later pages are `?page=2`, `?page=3` and so on.

### Tags

The tags page shows a card for each public tag with posts: the tag's image, name, description and post count, on a tint of the tag's accent color (set in **Tags** in Ghost Admin).

### Recommendations

The recommendations page shows the sites you recommend in **Settings › Growth › Recommendations**, when recommendations are turned on there.

## Color customization

You can change the accent color in **Settings › Site › Design & branding › Brand**. Tuuli uses it as a fill: buttons, the small square marks and the highlighter behind highlighted words. The theme picks black or white text for it, whichever reads better.

**Color scheme** in **Settings › Site › Design & branding › Theme › Site wide** sets the default color scheme:
- `ivory` (default) — a warm light color scheme
- `system` — `light` or `dark`, following the reader's device setting
- `light`
- `dark`
- `midnight` — a dark blue-violet color scheme
- `skyblue` — a light blue color scheme

Readers can switch with the names in the footer: Light, Dark, Ivory, Midnight and Skyblue, the one on screen underlined. Their choice is saved in their browser.

### Change the colors

The theme's colors are CSS custom properties, so you can override them in **Settings › Advanced › Code injection › Site header** ([what code injection is](https://brightthemes.com/blog/ghost-code-injection)). Each color scheme has its own values; add the ones you want to change and adjust them.

For **ivory**, the default:

```html
<style>
  :root {
    --color-typ: #2a241d;          /* text */
    --color-typ-tone: #6b5e4f;     /* muted text */
    --color-typ-content: #4f453a;  /* the text of posts, excerpts and descriptions */
    --color-bgr: #f6f1e8;          /* background */
    --color-bgr-tone: #efe6d8;     /* muted background */
    --color-brd: #e3d7c6;          /* borders */
  }
</style>
```

For the other color schemes, use the same names under that scheme's selector:

```html
<style>
  [data-color-scheme="light"]:root {
    --color-typ: #1f1f1f;
    --color-typ-tone: #666666;
    --color-typ-content: #474747;
    --color-bgr: #ffffff;
    --color-bgr-tone: #f5f4f2;
    --color-brd: #e7e5e4;
  }
  [data-color-scheme="dark"]:root {
    --color-typ: #eee9e1;
    --color-typ-tone: #a79e91;
    --color-typ-content: #c9c1b5;
    --color-bgr: #1c1b19;
    --color-bgr-tone: #262421;
    --color-brd: #3a3630;
  }
  [data-color-scheme="midnight"]:root {
    --color-typ: #eeebf8;
    --color-typ-tone: #a8a1cb;
    --color-typ-content: #c6c0e0;
    --color-bgr: #120a2a;
    --color-bgr-tone: #1d1440;
    --color-brd: #2e2458;
  }
  [data-color-scheme="skyblue"]:root {
    --color-typ: #10233f;
    --color-typ-tone: #4a5d7e;
    --color-typ-content: #33476a;
    --color-bgr: #eaf3fe;
    --color-bgr-tone: #dceafc;
    --color-brd: #c7dbf5;
  }
</style>
```

The values above are the theme's defaults. The `dark` selector also applies when the reader's device picks dark with the `system` setting. The reversed colors (`--color-typ-reverse` and `--color-bgr-reverse`), the highlighter and the form fields follow these colors by themselves.

A tag's own accent color, set in **Tags** in Ghost Admin, tints its card on the [tags page](https://brightthemes.com/docs/tuuli#tags) and marks its tag page.

## Typography

> [!NOTE]
> Ghost has [custom fonts](https://ghost.org/changelog/custom-fonts/) of its own: you set the heading and body fonts in **Settings › Site › Design & branding › Brand › 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](https://brightthemes.com/blog/ghost-custom-fonts).

By default the theme uses [Literata](https://fonts.google.com/specimen/Literata) for headings and for everything you read: post text, excerpts, descriptions and bios. To use other fonts, set them in Ghost's own typography settings, in **Settings › Site › Design & branding › Brand › Typography**: they take over when set.

**UI font family** in **Settings › Site › Design & branding › Theme › Site wide** sets the font of the interface (the navigation, dates, tags, buttons and forms):
- `system` (default) — the reader's system font, with nothing to download
- `body` — the body font
- `heading` — the heading font
- `serif` — the reader's system serif font
- `mono` — the reader's system monospace font

> [!NOTE]
> Before 2.0, the **Font family** setting chose the font, with seven options. It's gone in 2.0: set the fonts in Ghost's typography settings (see [Upgrade to v2](https://brightthemes.com/docs/tuuli#upgrade)).

## Table of contents

The **Post With Table Of Contents** [template](https://brightthemes.com/docs/tuuli#post-templates) (`custom-post-with-table-of-contents.hbs`) adds a table of contents, built from the post's headings with the [Tocbot](https://tscanlin.github.io/tocbot/) library. You choose the template in **Post settings › Template**, or for every post with **Default post template** set to `Table of contents`.

The post shows its title and the wide feature image, then the table of contents in a column beside the content. On large screens it stays in view as the reader scrolls, with the current heading marked. On smaller screens it sits above the post: collapsed on phones, with a button to open it.

To change the table of contents layout or the Tocbot configuration, edit the `partials/toc.hbs` file.

> [!NOTE]
> Before 2.0 the table of contents came with a sidebar (**Post With Table Of Contents And Sidebar**), or floated over any post with the `#toc` internal tag. Both are gone in 2.0 (see [Upgrade to v2](https://brightthemes.com/docs/tuuli#upgrade)).

## Dropdown menus

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** (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](https://brightthemes.com/blog/ghost-dropdown-menus).

*Ghost Admin: 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](https://brightthemes.com/docs/tuuli#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](https://ghost.org/docs/themes/assets/#responsive-images-configuration), 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": 300
  },
  "m": {
    "width": 600
  },
  "l": {
    "width": 1000
  },
  "xl": {
    "width": 2000
  }
}
```

## Comments

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

The theme uses [Ghost's native comments](https://brightthemes.com/blog/ghost-comments). Turn them on in **Settings › Membership › Access**, 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](https://tabler.io/icons). 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](https://tabler.io/icons) 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`):

```hbs
{{>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).

## Social links

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**.

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** ([what code injection is](https://brightthemes.com/blog/ghost-code-injection)). 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.

## Syntax highlighting

How the theme loads Prism.js only on posts tagged #syntax-highlight, and how to load it everywhere or change languages.

The theme highlights code with [Prism](https://prismjs.com/), the library our guide to [syntax highlighting in Ghost](https://brightthemes.com/blog/ghost-syntax-highlighting) uses too. To turn it on for a post or page, add the internal tag `#syntax-highlight` to it. Posts and pages without the tag don't load Prism at all, so they stay lighter.

To highlight code on every post and page without the tag, edit `partials/syntax-highlight.hbs` and remove the condition that checks for it. The same partial loads Prism (its core, with HTML, CSS and JavaScript) and its color theme from a CDN, so that's also where you change the version or the colors, or add the script of another language or a plugin.

## 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`)
- Turkish (`tr.json`)

> [!NOTE]
> A translation applies once you set the site's language in **Settings › General settings › Publication language**.

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

```
|__ 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](https://brightthemes.com/blog/ghost-theme-translations).

## 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](https://brightthemes.com/blog/ghost-code-injection), you can work on the theme's source. The theme is built with [Tailwind CSS](https://tailwindcss.com/) and [Alpine.js](https://alpinejs.dev/), and its assets are compiled and minified with [Vite](https://vitejs.dev/).

You need [Node.js](https://nodejs.org/) and a [local install of Ghost](https://brightthemes.com/blog/ghost-install#2-install-ghost-locally). 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](https://gscan.ghost.org/), 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**](https://brightthemes.com/blog/ghost-theme-code-editor) 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. Add them in **Settings › Advanced › Code injection › Site header** ([what code injection is](https://brightthemes.com/blog/ghost-code-injection)). They use the theme's `data-*` attributes and settings, which stay the same across updates.

### How to change the logo size?

The logo's size is set by CSS variables, a height and a width for phones and another pair from tablets up, so each can have its own size. Change the values to your preference:

```html
<style>
:root {
  --logo-h-mobile: 32px;
  --logo-w-mobile: auto;
  --logo-h-desktop: 36px;
  --logo-w-desktop: auto;
}
</style>
```

The values above are the theme's defaults. With the width on `auto`, it follows the height. A set width (`120px`, say) fixes the logo's box, and the image keeps its proportions inside it. Either way the width stops at 200px, and the footer logo uses the same sizes.

### How to remove the color scheme names from the footer?

```html
<style>[data-color-scheme-picker] { display: none !important; }</style>
```

### How to hide Now on the homepage?

Unpublish the `home-now` page, or add:

```html
<style>
  [data-now] { display: none !important; }
  [data-intro] > div { grid-template-columns: minmax(0, 1fr); }
</style>
```

The second line gives the letter the full width again, as it has without the page.

### How to turn off the image zoom?

```html
<script>window.THEME_CONFIG.ENABLE_IMAGE_ZOOM = false</script>
```

## Upgrade to v2

What changes when you update a Tuuli 1.x site to 2.0, and the steps to move it over.

We rebuilt Tuuli for 2.0 on a new codebase, with a refreshed design: a homepage that opens with a letter from you, one list of posts, Literata for reading, the yellow as a highlighter and Ivory as the default color scheme. Almost every file has changed, so if you've edited the theme's files, start from the new version and bring your changes over. These things change for a site that runs 1.x:

- **The homepage is built from pages.** The hero, its five layouts, the featured posts section, the featured tags and the background accents are gone. The letter, Now and the topics come from the pages `home-intro`, `home-now` and `home-topics`, and **Start here** shows your two latest featured posts (see [Homepage](https://brightthemes.com/docs/tuuli#homepage)).
- **The call to action comes from a page.** **CTA headline** and **CTA description** are gone: the call to action at the top of the footer shows the content of the page with the slug `section-cta`, such as a **Signup** or **Call to action** card (see [Footer](https://brightthemes.com/docs/tuuli#footer)).
- **The theme's own pages are pages with a template** instead of entries in `routes.yaml`: sign up, sign in, account, membership, archive, tags, authors and recommendations (see [Pages](https://brightthemes.com/docs/tuuli#pages)). The theme's `routes.yaml` is now Ghost's default. Old `/archive/page/2/` links don't redirect; the archive's later pages are `?page=2` and so on.
- **The post templates are renamed** from `custom-with-…` to `custom-post-with-…`, shown in Ghost as **Post With Background Image** and so on (see [Templates](https://brightthemes.com/docs/tuuli#templates)). A post that used one shows the default layout until you pick its template again.
- **Search is Ghost's.** **Search type** is now **Show search**, on or off; the custom search page (`/search/`) is gone.
- **Comments are Ghost's.** **Comment plugin** and **Comment plugin ID** are gone, with Cove and Disqus: the comments show when you turn them on in **Settings › Membership** (see [Comments](https://brightthemes.com/docs/tuuli#comments)).
- **The Font family setting is gone.** Literata is the default, Ghost's own typography settings replace it when set, and the new **UI font family** setting picks the font of the interface (see [Typography](https://brightthemes.com/docs/tuuli#typography)).
- **The default color scheme is Ivory.** A site that kept the old default (`system`) shows Ivory until you pick another in **Color scheme**.
- **The share buttons are gone** from posts.
- **The table of contents has its own template.** **Post With Table Of Contents** puts it beside the post, below the wide image, without a sidebar. **Post With Table Of Contents And Sidebar** and the `#toc` internal tag are gone: a post that used either shows the default layout until you pick the new template (see [Table of contents](https://brightthemes.com/docs/tuuli#table-of-contents)).
- **Code injection names changed.** `themeGlobal` is now `window.THEME_CONFIG`, and the CSS custom properties have new names (below). Class names such as `.post-card` or `.header__brand` are gone: style the `data-*` attributes instead, such as `[data-post-row]` or `[data-brand]`.

| Before 2.0 | In 2.0 |
|---|---|
| `themeGlobal` (pagination) | `window.THEME_CONFIG.PAGINATION` |
| `--color-text` | `--color-typ` |
| `--color-text-acc` | `--color-typ-content` |
| `--color-text-reverse` | `--color-typ-reverse` |
| `--color-bg` | `--color-bgr` |
| `--color-bg-acc` | `--color-bgr-tone` |
| `--color-bg-reverse` | `--color-bgr-reverse` |
| `--color-border` | `--color-brd` |
| `--font-headings` | `--font-heading` |
| `--global-max-width` | `--container-site` |
| `--global-content-width` | `--container-content` |
| `--global-wide-width` | `--container-wide` |
| `--global-radius` | `--radius-theme` |

The other `--global-…` variables, `--color-bg-base`, `--color-bg-base-reverse` and `--color-neutral` are gone, with nothing in their place.

### Move a site over

After you upload Tuuli 2.0 in **Settings › Site › Theme › Change theme**:

1. Upload the new `routes.yaml` from the theme's zip in **Settings › Advanced › Labs** (see [Upload routes.yaml](https://brightthemes.com/docs/tuuli#routes)).
2. In **Pages**, create a page for each slug with the matching **Template** in its page settings: `signup` (Template Signup), `signin` (Template Signin), `account` (Template Account), `membership` (Template Membership), `archive` (Template Archive), `tags` (Template Tags), `authors` (Template Authors) and `recommendations` (Template Recommendations). Create only the ones your site uses.
3. Create the homepage's pages: `home-intro` (your letter), `home-now` (Now) and `home-topics` (add the tags from your old **Featured tags slugs** setting to it, in the order you want them). Feature the two posts you want under **Start here**. Leave these pages out of your navigation.
4. To keep a call to action, create a page with the slug `section-cta` with a **Signup** or **Call to action** card in it. Leave it out of your navigation.
5. Pick the template again in **Post settings › Template** on the posts that used one of the post templates (for the old table of contents template, pick **Post With Table Of Contents**; for posts with the `#toc` tag, pick it too and remove the tag).
6. If your site used Ghost's comments, check that they're on in **Settings › Membership**. If it used another font, set it in **Settings › Site › Design & branding › Brand › Typography**. Update any code injection that uses the old names in the table above.

Something missing or unclear? Ask support: https://brightthemes.com/support
