---
name: tryghost-shade-imports
description: "Import Shade from its layer subpaths and set up its stylesheet and ShadeApp for the surface. Use when importing from `@tryghost/shade` or adding Shade to an app."
license: "MIT"
metadata:
  decimalai-skill-id: "868de07e-959d-4e59-8476-afd1224a9e25"
  decimalai-version-id: "3ebfaf53-e166-42f9-8657-a17a0f8f9546"
  decimalai-version: "1"
  decimalai-body-sha256: "3f9364221d77b4153968a0ca192284c3d6ed89399e4a6e5fb2b285fbf741d2fc"
  decimalai-name: "tryghost/shade-imports"
  decimalai-format: "1"
  decimalai-invocation: "model"
  decimalai-category: "frontend"
  decimalai-source: "https://app.decimal.ai/s/tryghost-shade-imports-868de0@1/SKILL.md"
---
# Shade imports

Each Shade layer has its own import subpath, and whether an app loads Shade's
stylesheet and `ShadeApp` depends on who owns its document. The rules live in
[Shade: Imports](https://shade.ghost.org/docs/introduction.md#imports).

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. Fetch web pages with `curl -s`.

## Workflow

1. Take each import from the subpath table in
   [Imports](https://shade.ghost.org/docs/introduction.md#imports).
2. When adding Shade to an app, decide whether it is embedded or standalone
   with
   [Embedded and standalone setup](https://shade.ghost.org/docs/introduction.md#embedded-and-standalone-setup).
3. For a standalone app, such as a Ghost app, follow
   [`build-ghost-app-ui`](../build-ghost-app-ui/SKILL.md).

## Self-check

- Every Shade import in your diff names a layer subpath from the table.
- A standalone app imports Shade's stylesheet once and renders one `ShadeApp`
  at its root; an embedded Admin app has neither.
