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.

来源信息

仓库
TryGhost/Ghost
最近来源活动
2026年10月29日 13:31
检测到的 SKILL.md 语言
英语
星标
55,656
Forks
12,129

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
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.
在 GitHub 查看