---
name: tryghost-shade-use-primitives
description: "Lay out Ghost UI with Shade's layout primitives. Use when laying out a screen, section or row, or when spacing, aligning, stacking or wrapping elements."
license: "MIT"
metadata:
  decimalai-skill-id: "b5cee06e-4afa-4bb2-a2a5-95e9d4b30b01"
  decimalai-version-id: "511f2a9e-65ba-43c2-ae6d-9340613a3a95"
  decimalai-version: "2"
  decimalai-body-sha256: "1c80d271df1be6cb8c26cc237bd251d57d32f3fc7bcf71f200db88d38a4633ef"
  decimalai-name: "tryghost/shade-use-primitives"
  decimalai-format: "1"
  decimalai-invocation: "model"
  decimalai-category: "frontend"
  decimalai-source: "https://app.decimal.ai/s/tryghost-shade-use-primitives-b5cee0@2/SKILL.md"
---
# Shade use primitives

Layout in Ghost UI reads by intent: `Stack`, `Inline`, `Box`, `Grid`,
`Container` and `Text` replace hand-written flex and grid classes. The rules
live in [Primitives](https://shade.ghost.org/docs/primitives-guide.md).

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. Check for a larger shape first. A whole page starts from
   [`shade-page-templates`](../shade-page-templates/SKILL.md); a recurring
   product shape may already be a pattern in
   [Patterns](https://shade.ghost.org/docs/patterns-guide.md).
2. Pick the primitive for each wrapper with
   [Use a primitive when](https://shade.ghost.org/docs/primitives-guide.md#use-a-primitive-when).
3. Set gaps and padding from the
   [Spacing scale](https://shade.ghost.org/docs/primitives-guide.md#spacing-scale).
4. Reserve `className` for what
   [the props don't cover](https://shade.ghost.org/docs/primitives-guide.md#classname).
5. When laying out content lists or table rows, follow
   [Lists and tables](https://shade.ghost.org/docs/list-rows.md).

## Self-check

- No wrapper element in your diff carries only layout classes.
- Spacing on primitives uses the named steps, and direction, gap, alignment
  and justification come from props.
- Nothing in [Don't](https://shade.ghost.org/docs/primitives-guide.md#dont) applies to your
  diff.
