# Glass documentation

Version 1.0.0 · Updated 11 Nov 2026 · Works with Ghost 6 · Changelog: https://brightthemes.com/changelog/glass

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

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

## Install a theme

Upload a 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 the `theme.zip` file. 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 needs its `routes.yaml` file, which is inside the theme's zip.

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 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 |
|---|---|---|
| UI font family | Site wide | Set the font family for the UI (header, footer, buttons, etc.) |
| Headings font weight | Site wide | Set the font weight for the headings |
| Site background | Site wide | Set the full-page site background type. Cover image uses the publication cover from Design → Brand |
| Site background overlay | Site wide | Set the site background overlay pattern and gradient strength |
| Header CTA text | Site wide | Set the header CTA button text |
| Header CTA link | Site wide | Set the header CTA button URL |
| Header search | Site wide | Show the search button in the header |
| Enable page load animation | Site wide | Entrance motion for heroes and post cards. Hover effects are not affected |
| Hero headline | Homepage | Set the hero headline. For more control over the content create a page with the slug 'section-hero' |
| Hero subscribe form | Homepage | Show the subscribe form in the hero |
| Tag list style | Homepage | Set how the tag list is displayed. Add your tags to a page with slug 'section-tags' |
| Show featured article | Homepage | Show the latest featured article as a wider card between the hero and the latest posts |
| Default post template | Post | Set the default post template. You can override this for individual posts from the post settings. |

> [!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 has these sections, which you set up with the design settings and pages in the editor:
- [Hero](https://brightthemes.com/docs/glass#hero)
- [Featured article](https://brightthemes.com/docs/glass#featured-article)
- [Tag list](https://brightthemes.com/docs/glass#tag-list)
- [Latest posts](https://brightthemes.com/docs/glass#latest-posts)

> [!NOTE]
> The [header](https://brightthemes.com/docs/glass#header), [subscribe section](https://brightthemes.com/docs/glass#subscribe-section) and [footer](https://brightthemes.com/docs/glass#footer) are on every template (posts, pages, tags, authors).

**Enable page load animation** in **Settings › Site › Design & branding › Theme › Site wide** (on by default) adds an entrance motion to the hero and the post cards; hover effects aren't affected.

### Hero

The hero is defined in `partials/hero.hbs`. It appears on the first page of the homepage.

By default, the hero shows a centered headline. The headline is **Hero headline** in **Settings › Site › Design & branding › Theme › Homepage** if it's set, otherwise your publication description. The field accepts HTML. Turn on **Hero subscribe form** (off by default) to show a subscribe form under it.

> [!TIP]
> For more control, create a page with the slug `section-hero` and add the content you want to display, including a main heading, multiple paragraphs, and [editor cards](https://brightthemes.com/blog/ghost-editor-cards), such as a button card.

If the `section-hero` page has a feature image, the hero becomes a split glass panel: content on one side, image on the other. Without a feature image, the page content stays centered.

If **Hero headline** is also set, it shows as the heading inside the page content.

### Featured article

When **Show featured article** (off by default) is on in **Settings › Site › Design & branding › Theme › Homepage**, the latest featured post is shown as a wider card between the hero and the latest posts. It only appears on the first page of the homepage.

If that post is also among the latest posts, it isn't repeated there.

### Tag list

The tag list is defined in `partials/tag-list.hbs`. It appears on the homepage and on tag pages.

To activate it, create a page with the slug `section-tags` and add the tags you want to display to that page. An **All** link is always shown first, followed by the tags from the page.

**Tag list style** in **Settings › Site › Design & branding › Theme › Homepage** sets its look:

- `pills` (default) — frosted buttons
- `pills-with-images` — the same pills, with each tag's feature image when it has one
- `text` — plain text links, the current one underlined

### Latest posts

The latest posts show as a stacked list of glass cards (`partials/post-card.hbs`). Each card shows the title, byline, excerpt, up to three tags, and a Read button.

The number of posts per page is set by `posts_per_page` in `package.json` (the default is 6). Pagination follows the list.

## Header

The header is defined in `partials/header.hbs` and shows:
- publication logo (or publication title if no logo is set)
- search button, with a `⌘K` shortcut, when **Header search** is on (the default)
- a button, when **Header CTA text** and **Header CTA link** are both set in **Settings › Site › Design & branding › Theme › Site wide**
- member avatar (for signed-in members; it opens their account in Portal)
- menu button, which opens the [menu drawer](https://brightthemes.com/docs/glass#menu-drawer)

## Menu drawer

The menu drawer is defined in `partials/menu-drawer.hbs`. It opens from the header menu button and contains:
- search
- primary navigation (with support for [dropdown menus](https://brightthemes.com/docs/glass#dropdown-menus))
- a compact subscribe form for visitors, when membership is enabled
- [social links](https://brightthemes.com/docs/glass#social-links)

The drawer is keyboard-operable. Escape closes it, and focus moves to the close button when it opens.

## Subscribe section

The subscribe section is defined in `partials/subscribe.hbs` and sits above the footer. It shows to visitors when membership is on, and is hidden for signed-in members.

To customize the copy, create a page with the slug `section-subscribe`. Its content shows above the sign-up form. Without that page, the section uses your publication title and description.

## Footer

The footer is defined in `partials/footer.hbs` and has:
- the copyright notice with the year and the publication name, and the "Published with Ghost" and theme credits (see [Code snippets](https://brightthemes.com/docs/glass#code-snippets) to hide them)
- [social links](https://brightthemes.com/docs/glass#social-links)

## Templates

### Post templates

Glass has two [post templates](https://brightthemes.com/blog/ghost-custom-templates) in addition to the default. You choose them in the post settings, under **Template**:
- the default — follows **Default post template** in **Settings › Site › Design & branding › Theme › Post**: `narrow` or `wide` (default)
- `custom-post-narrow.hbs` — a narrower reading column
- `custom-post-wide.hbs` — a wider reading column

Both layouts use a frosted tall panel (`glass-panel-tall`) over the site background. The post header shows the first tag, title, author, date, and reading time. A reading progress bar is fixed to the top of the viewport.

Below the article: [social sharing](https://brightthemes.com/docs/glass#social-sharing), [comments](https://brightthemes.com/docs/glass#comments) when enabled, and up to three related posts from the same primary tag.

### Page templates

Glass has seven page templates. You choose them in the page settings, under **Template**:
- `custom-template-authors.hbs` — a template to create an [authors page](https://glass.brightthemes.com/authors/). Add authors to the page to limit the list; otherwise all authors are shown
- `custom-template-blank.hbs` — a template to create pages without the header, footer and subscribe section, for landing pages
- `custom-template-membership.hbs` — a template to create a [membership page](https://glass.brightthemes.com/membership/) with free and paid tiers, plus the page content below
- `custom-template-newsletters.hbs` — a template to create a [newsletters page](https://glass.brightthemes.com/newsletters/) for choosing which lists to follow
- `custom-template-signin.hbs` — a template to create a [sign-in page](https://glass.brightthemes.com/signin/)
- `custom-template-signup.hbs` — a template to create a [sign-up page](https://glass.brightthemes.com/signup/)
- `custom-template-tags.hbs` — a template to create a [tags page](https://glass.brightthemes.com/tags/). Add tags to the page to limit the list; otherwise all tags are shown

> [!NOTE]
> Glass has no account template: signed-in members open their account from the header avatar, in Portal.

## Color customization

You can change the accent color in **Settings › Site › Design & branding › Brand**. 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)): background and text colors, the glass opacity and more.

Glass has no light and dark color schemes. The look of the site is controlled by **Site background** and **Site background overlay** in **Settings › Site › Design & branding › Theme › Site wide**.

The backgrounds (**Site background**):
- `cover-image` (default) — the publication cover from **Settings › Site › Design & branding › Brand**
- `brand-color` — the accent color, with text that keeps its contrast
- `graphite` — near-black (`#0C0C0C`)
- `cream` — warm light (`#FFFAF3`) with dark text

**Site background overlay** sets the strength of the pattern and gradient over it: `none`, `light`, `medium` (default) or `heavy`.

To change the colors, add the following in **Settings › Advanced › Code injection › Site header** and adjust the values:

```html
<style>
  :root {
    --color-typ: oklch(100% 0 0);
    --color-typ-tone: oklch(100% 0 0 / 0.86);
    --color-typ-content: oklch(100% 0 0 / 0.94);
    --color-bgr: oklch(12% 0.01 250);
    --color-bgr-tone: oklch(100% 0 0 / 0.12);
    --color-brd: oklch(100% 0 0 / 0.18);
    --color-glass: oklch(100% 0 0 / 0.14);
    --color-glass-strong: oklch(100% 0 0 / 0.22);
    --blur-glass: 28px;
  }
</style>
```

The `cream` background already switches the text to dark. To adjust it further:

```html
<style>
  [data-site-background="cream"] {
    --color-bgr: #FFFAF3;
    --color-typ: #0C0C0C;
    --color-typ-tone: color-mix(in oklch, var(--color-typ) 70%, transparent 30%);
    --color-brd: color-mix(in oklch, var(--color-typ) 15%, var(--color-bgr) 85%);
  }
</style>
```

Some useful tools for choosing colors and gradients:

- [Fuel HSL color picker](https://fffuel.co/cccolor/)
- [Gradients | Components AI](https://components.ai/gradient/)
- [CSS Gradient Generator](https://cssgradient.io/)

## 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 **Instrument Serif** for headings and **Geist** for body. You can change both in **Settings › Site › Design & branding › Brand › Typography**.

Two theme settings in **Settings › Site › Design & branding › Theme › Site wide** refine them:
- **UI font family** — the font of the header, footer, buttons and other interface text: `sans` (default), `serif`, `mono`, `heading` or `body`
- **Headings font weight** — `normal`, `medium` (default), `semibold` or `bold`

## Dropdown menus

Add dropdown menus to the theme's navigation from Ghost Admin, using the secondary navigation or a naming convention.

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/glass#custom-settings).

### Posts per page

`posts_per_page` is the number of posts a list shows before it's paginated: the homepage, tag and author pages.

To change it, edit the value in `package.json`:

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

```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, or add a third-party comment system to the theme.

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

## 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 an optional size):

```hbs
{{>icon name="camera"}}
```

## 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
- TikTok
- 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`, `tiktok` 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 how to turn them off.

Each post has share buttons for:

- X
- Bluesky
- Facebook
- LinkedIn
- Email
- Copy link

To add another option, edit `partials/social-share.hbs`.

## 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`)

> [!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, 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://ghost.org/docs/install/local/). 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` (`vite build --watch & vite`) — builds the assets and rebuilds them whenever you change a file. The Vite configuration is in `vite.config.js`.
2. `npm run build` (`vite build`) — builds the assets once.
3. `npm run test` (`gscan . --verbose`) — 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.

## Code snippets

Short snippets for common changes.

### How to change the logo size?

In **Settings › Advanced › Code injection › Site header** ([what code injection is](https://brightthemes.com/blog/ghost-code-injection)), 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>
```

### How to hide the "Published with Ghost" and theme credits?

In **Settings › Advanced › Code injection › Site header**, add:
```html
<style>[data-footer-ghost],[data-footer-theme]{display:none;}</style>
```

### How to change the glass blur?

In **Settings › Advanced › Code injection › Site header**, add:
```html
<style>
:root {
  --blur-glass: 40px;
  --color-glass: oklch(100% 0 0 / 0.18);
}
</style>
```

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