Skip to main content

shade-use-primitives

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.

Source facts

Repository
TryGhost/Ghost
Last source activity
October 29, 2026 at 13:31
Detected SKILL.md language
English
Stars
55,656
Forks
12,129

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
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.
# 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). ## 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.
View on GitHub