Individual skill

sprucecss-spacing

Space elements the Spruce CSS way: the parent sets the spacing (flex or grid gap for sections, layout-stack() for every text group, including the wrapper div next to a button or badge), never the children. Use whenever you write or review the SCSS layout of a Spruce CSS component, block or page, or fix a missing or doubled gap between elements.

skills/sprucecss-spacing/SKILL.md

Read pinned source

Source commit 3ac9c503068495541510f71554d99983754d0de6

What was checked

Matches the observed repository HEAD
Yes
Scanner rules are current
Yes
Repository scan complete
Yes
Skill scan complete
Yes
Observed behavior
Instructions only
Last checked
Nov 6, 2026

These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.

Install this skill

Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.

Claude Code

Destination .claude/skills/sprucecss-spacing

( set -euo pipefail destination='./.claude/skills/sprucecss-spacing' if [ -e "$destination" ] || [ -L "$destination" ]; then printf '%s\n' 'Destination already exists; nothing overwritten.' >&2; exit 1; fi work=$(mktemp -d) trap 'rm -rf -- "$work"' EXIT git clone --filter=blob:none --no-checkout -- 'https://github.com/conedevelopment/sprucecss.git' "$work/repo" git -C "$work/repo" checkout --detach 3ac9c503068495541510f71554d99983754d0de6 git -C "$work/repo" archive --format=tar '3ac9c503068495541510f71554d99983754d0de6:skills/sprucecss-spacing' > "$work/skill.tar" mkdir -p -- './.claude/skills' mkdir -- "$destination" tar -xf "$work/skill.tar" -C "$destination" )
Codex

Destination .agents/skills/sprucecss-spacing

( set -euo pipefail destination='./.agents/skills/sprucecss-spacing' if [ -e "$destination" ] || [ -L "$destination" ]; then printf '%s\n' 'Destination already exists; nothing overwritten.' >&2; exit 1; fi work=$(mktemp -d) trap 'rm -rf -- "$work"' EXIT git clone --filter=blob:none --no-checkout -- 'https://github.com/conedevelopment/sprucecss.git' "$work/repo" git -C "$work/repo" checkout --detach 3ac9c503068495541510f71554d99983754d0de6 git -C "$work/repo" archive --format=tar '3ac9c503068495541510f71554d99983754d0de6:skills/sprucecss-spacing' > "$work/skill.tar" mkdir -p -- './.agents/skills' mkdir -- "$destination" tar -xf "$work/skill.tar" -C "$destination" )
Cursor

Destination .cursor/skills/sprucecss-spacing

( set -euo pipefail destination='./.cursor/skills/sprucecss-spacing' if [ -e "$destination" ] || [ -L "$destination" ]; then printf '%s\n' 'Destination already exists; nothing overwritten.' >&2; exit 1; fi work=$(mktemp -d) trap 'rm -rf -- "$work"' EXIT git clone --filter=blob:none --no-checkout -- 'https://github.com/conedevelopment/sprucecss.git' "$work/repo" git -C "$work/repo" checkout --detach 3ac9c503068495541510f71554d99983754d0de6 git -C "$work/repo" archive --format=tar '3ac9c503068495541510f71554d99983754d0de6:skills/sprucecss-spacing' > "$work/skill.tar" mkdir -p -- './.cursor/skills' mkdir -- "$destination" tar -xf "$work/skill.tar" -C "$destination" )
Gemini CLI

Destination .gemini/skills/sprucecss-spacing

( set -euo pipefail destination='./.gemini/skills/sprucecss-spacing' if [ -e "$destination" ] || [ -L "$destination" ]; then printf '%s\n' 'Destination already exists; nothing overwritten.' >&2; exit 1; fi work=$(mktemp -d) trap 'rm -rf -- "$work"' EXIT git clone --filter=blob:none --no-checkout -- 'https://github.com/conedevelopment/sprucecss.git' "$work/repo" git -C "$work/repo" checkout --detach 3ac9c503068495541510f71554d99983754d0de6 git -C "$work/repo" archive --format=tar '3ac9c503068495541510f71554d99983754d0de6:skills/sprucecss-spacing' > "$work/skill.tar" mkdir -p -- './.gemini/skills' mkdir -- "$destination" tar -xf "$work/skill.tar" -C "$destination" )
GitHub Copilot

Destination .github/skills/sprucecss-spacing

( set -euo pipefail destination='./.github/skills/sprucecss-spacing' if [ -e "$destination" ] || [ -L "$destination" ]; then printf '%s\n' 'Destination already exists; nothing overwritten.' >&2; exit 1; fi work=$(mktemp -d) trap 'rm -rf -- "$work"' EXIT git clone --filter=blob:none --no-checkout -- 'https://github.com/conedevelopment/sprucecss.git' "$work/repo" git -C "$work/repo" checkout --detach 3ac9c503068495541510f71554d99983754d0de6 git -C "$work/repo" archive --format=tar '3ac9c503068495541510f71554d99983754d0de6:skills/sprucecss-spacing' > "$work/skill.tar" mkdir -p -- './.github/skills' mkdir -- "$destination" tar -xf "$work/skill.tar" -C "$destination" )
OpenCode

Destination .opencode/skills/sprucecss-spacing

( set -euo pipefail destination='./.opencode/skills/sprucecss-spacing' if [ -e "$destination" ] || [ -L "$destination" ]; then printf '%s\n' 'Destination already exists; nothing overwritten.' >&2; exit 1; fi work=$(mktemp -d) trap 'rm -rf -- "$work"' EXIT git clone --filter=blob:none --no-checkout -- 'https://github.com/conedevelopment/sprucecss.git' "$work/repo" git -C "$work/repo" checkout --detach 3ac9c503068495541510f71554d99983754d0de6 git -C "$work/repo" archive --format=tar '3ac9c503068495541510f71554d99983754d0de6:skills/sprucecss-spacing' > "$work/skill.tar" mkdir -p -- './.opencode/skills' mkdir -- "$destination" tar -xf "$work/skill.tar" -C "$destination" )

Repository context

Repository stars (not skill ratings)
265
Repository last updated
Oct 20, 2026
License
MIT

Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.

Files and excerpt

File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.

Browse files
Read excerpt

# Spacing in Spruce CSS

In Spruce, the space between elements comes from the **parent**, almost never from the children. Pick the parent's tool by what its children are.

## 1. Sections under `__inner`: flex column with a gap

The `__inner` element of a block (and any wrapper whose direct children are sections: a heading group, a grid, a list, a form, a table) is a flex column with a gap:

```scss
.features-block {
  &__inner {
    display: flex;
    flex-direction: column;
    gap: spacer('l');