Skip to content

Celebrating our new site: 30% off everything with code , until Dec 1.

Bright Themes

Progress cards and steps for Ghost

Cards with a progress bar and a numbered step list, to show how far a course, a project or a how-to has come.

  • Works with any Ghost theme

New to Ghost snippets?

Build a card once, save it as a snippet, and add it to any post from the card menu. The tutorial shows each step.

Demo

Information gathering 100% done

Gather everything the project needs, and ask questions that get to the real business needs.

Planning and wireframes 60% done

Turn what you learned into a site plan: a site map first, then wireframes for the key pages.

Design and build 25% done

Apply the brand to the wireframes, then build the pages and test them on phones and desktops.

  1. Problem
  2. Goal
  3. Users
  4. Success
  5. Budget
Compare each card's bar with its percentage, then find the current step in the list: it's bold, with a thicker ring.

When to use it

  • A multi-part course or series, with the step list at the top of each part showing where it fits.
  • A fundraising or member-goal update, showing how close you are each time you post one.
  • A build log or project diary, to show which stage a long project has reached.

When not to: For a number that changes daily, such as a live member count, it falls behind: it only changes when you edit the post.

The code

<div class="bt-progress-card" style="--bt-progress-value: 100%;">
  <div class="bt-progress-card-head">
    <span class="bt-progress-card-title">Information gathering</span>
    <span class="bt-progress-card-value">100% done</span>
  </div>
  <p class="bt-progress-card-text">Gather everything the project needs, and ask questions that get to the real business needs.</p>
  <div class="bt-progress-card-bar" aria-hidden="true"></div>
</div>

<div class="bt-progress-card" style="--bt-progress-value: 60%; --bt-progress-accent: #0f766e;">
  <div class="bt-progress-card-head">
    <span class="bt-progress-card-title">Planning and wireframes</span>
    <span class="bt-progress-card-value">60% done</span>
  </div>
  <p class="bt-progress-card-text">Turn what you learned into a site plan: a site map first, then wireframes for the key pages.</p>
  <div class="bt-progress-card-bar" aria-hidden="true"></div>
</div>

<div class="bt-progress-card" style="--bt-progress-value: 25%; --bt-progress-accent: #c2410c;">
  <div class="bt-progress-card-head">
    <span class="bt-progress-card-title">Design and build</span>
    <span class="bt-progress-card-value">25% done</span>
  </div>
  <p class="bt-progress-card-text">Apply the brand to the wireframes, then build the pages and test them on phones and desktops.</p>
  <div class="bt-progress-card-bar" aria-hidden="true"></div>
</div>

<ol class="bt-progress-steps" aria-label="Progress: step 3 of 5">
  <li data-status="complete">Problem</li>
  <li data-status="complete">Goal</li>
  <li aria-current="step">Users</li>
  <li>Success</li>
  <li>Budget</li>
</ol>

Add it to your site

  1. Copy the CSS and paste it in Settings › Advanced › Code injection › Site headerSettings › Advanced › Code injection › Site header (opens your Ghost Admin in a new tab), between <style> and </style>. Once per site.
  2. In a post, add an HTML card (type /html) and paste the HTML.
  3. Change the example text to your own, then publish or update the post.

Tip

Save the card as a Ghost snippet to add it to any post from the card menu: how Ghost snippets work.

How it works

The snippet has two parts you can use on their own.

A progress card is a title, a short text and a bar. Set how full the bar is with --bt-progress-value in the card’s style attribute, and write the same number in the card (“60% done”). That text is what screen readers read, so the bar itself is hidden from them. Give a card its own color with --bt-progress-accent.

The step list is a numbered list, <ol class="bt-progress-steps">, which the CSS draws as circles joined by a line. Mark the steps you’ve finished with data-status="complete" (a filled circle with a check) and the step you’re on with aria-current="step" (a thicker ring and a bold label), which screen readers announce as the current step. Update the list’s aria-label (“step 3 of 5”) when you move on. Add or remove <li> items for more or fewer steps; keep the labels to a word or two, since all the steps share the width on a phone.

Both parts use your accent color and a tint of the text color, so they work in light and dark themes. They are static: to show new progress, edit the post. The CSS from code injection doesn’t reach emails, so in a newsletter they show as plain text and a numbered list.

Customize

VariableDefaultWhat it changes
--bt-progress-accentvar(--ghost-accent-color, #4433ff)The color of the bar, the card tint and the done and current steps. Defaults to your site's accent color; set it on one card or step list to change only that one.
--bt-progress-value0%How full a card's bar is, from 0% to 100%. Set it on each card, and update the percentage text to match.
--bt-progress-track15% of the text colorThe card border, the empty part of the bar, and the rings and lines of steps to come.
--bt-progress-radius6pxThe cards' corner radius.
--bt-progress-dot2emThe size of the step circles.
Works with every Ghost theme, including ours. Something not right? Ask us.

All snippets

Launch a better Ghost site

From a solo newsletter to a busy newsroom, there is a theme that fits. No code needed.