Build ghost app ui

From TryGhost/Ghost · View interactive version

Build ghost app ui is an AI agent skill from the GitHub repository TryGhost/Ghost. Build a Ghost app's screens with Shade, Ghost's design system, and find its docs and skills. Use when building or changing a Ghost app's UI, or adding Shade to an app.

How to use this skill

Skill file

Build a Ghost app's UI

A Ghost app's screens use Shade (@tryghost/shade), the design system Ghost

Admin is built with. This skill sets Shade up and routes to the Shade skills

installed beside it; the rules live in Shade's docs. The app's manifest,

connect() and install belong to the build-ghost-app skill.

The docs

Docs links use https://shade.ghost.org. If the project's AGENTS.md says

where Shade's docs are (another address, or a source folder), use that

instead. At an address, start from <address>/llms.txt and fetch web pages

with curl -s <address>/docs/<page>.md, so the text arrives exact: a web

fetch tool summarises it and refuses localhost.

When sources disagree, trust them in this order:

  1. The installed @tryghost/shade package (its code and type definitions; it

ships no docs) decides what exists: components, props and imports. Its

types match the install.

  1. The docs at the address above decide how to use it.
  2. Ghost's source, if it's on disk, is reference only. Never import from it,

and skip its Admin-only rules.

Set up

Check each step against the app, and do the ones it's missing:

  1. Install @tryghost/shade and its peers from npm.

npm create vite scaffolds React 19, which npm refuses beside Shade, so

move the React packages and types first, as

Install shows.

  1. Set up Tailwind and the stylesheet.
  2. Load the Fonts.
  3. Wrap the app in ShadeApp.
  4. Follow Admin's Light and dark theme.
  5. Set the Page frame and margins.
  6. If the app keeps state in the query string, follow

App state in the URL.

  1. Add this section to the app's AGENTS.md, creating the file if needed.

Keep any line already there that says where Shade's docs are.

```markdown

## Shade

Before building or changing a screen, use the build-ghost-app-ui skill.

Shade docs: https://shade.ghost.org

```

Build a screen

  1. Start from the page template with

CODE0.

  1. Open the Kitchen sink

example's README, which lists its finished screens and the files for

each. If one matches your screen, read only that screen's files and use

them as the worked example. Do the same with its States screen for the

empty, loading and error states every screen needs. Copy only the parts

the screen needs, without the mock data, and keep the setup from

Set up.

  1. As the screen needs them, use

CODE0 for the header,

CODE0 for layout,

CODE0 for colour,

CODE0 for dark

mode and CODE0 for imports.

  1. When building or changing content lists, tables, or custom rows, read

Lists and tables to choose the right row components.

  1. Read only the docs that apply to apps.

Self-check

Before finishing, confirm in Admin:

Fonts.

uses Shade components.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.