03-layout-spacing

03-layout-spacing is a cursor rule for Cursor from saralobo/rules-design-bible. It costs 32 tokens per session (1,715 once invoked), scanned A, original, no licence file.

A set of rules for arranging a screen and controlling the space between its elements. It covers grids, margins, padding, and the open space that keeps a layout readable.

In plain words
What is it for?
Use it when building screen layouts, deciding where elements go, or setting the distance between them.
Why use it?
It helps prevent crowded or uneven screens and gives the interface a consistent structure.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when building screen layouts, deciding where elements go, or setting…

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/saralobo/rules-design-bible/03-layout-spacing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/saralobo/rules-design-bible

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for 03-layout-spacing

README.md
[![agentmods](https://agentmods.dev/badge/rules/saralobo/rules-design-bible/03-layout-spacing.svg)](https://agentmods.dev/rules/saralobo/rules-design-bible/03-layout-spacing)
Your own site
<a href="https://agentmods.dev/rules/saralobo/rules-design-bible/03-layout-spacing"><img src="https://agentmods.dev/badge/rules/saralobo/rules-design-bible/03-layout-spacing.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,715 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.01715
Opus 5 $0.00016 $0.00857
Sonnet 5 $0.00006 $0.00343
Haiku 4.5 $0.00003 $0.00171

Measured 7d ago against content hash 2096fdaa501a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

03-layout-spacing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/03-layout-spacing.mdc · 209 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 209 lines · 32 tokens per session scan A 2096fdaa501a

Subscribe to this mod's changes

03-layout-spacing is a cursor rule published in the GitHub repository saralobo/rules-design-bible (24 stars, last pushed 5mo ago), with no licence file. It adds 32 tokens to every session and 1,715 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other cursor rules, from other repositories

compress-md-landing-page-prompt.crux

⟦CRUX:compress-md-landing-page-prompt.md Ρ{compress.md landing page} target=single static page for CRUX-Compress repo=github.com/zotoio/CRUX-Compress domain=compress.md; status=EXPERIMENTAL! msg="Reclaim ≤80% ctx window. CRUX→semantic core extraction" journey{land→compression viz»scroll»explore»expand spec»install}.

zotoio/CRUX-Compress · 0 tokens

components

Rules for component usage - which component libraries are allowed (shadcn/ui, Aceternity, Kibo, Magic UI, etc.), reuse over recreation, table implementation standards, and component modularization for both new features and existing components.

sayeedjoy/cursor-rules · 524 tokens

006-ui-styling

Enforce consistent UI styling practices across the codebase for a cohesive visual experience, maintainability, and performance.

cedricfressin/cursor.rules · 1,191 tokens

011-accessibility-inclusion

Implement accessibility features when building interfaces to ensure usability for all users including those with disabilities.

cedricfressin/cursor.rules · 1,010 tokens

react-chakra-ui-cursorrules-prompt-file

Cursor rules for React development with Chakra UI integration.

PatrickJS/awesome-cursorrules · 248 tokens

components

CTA: inline-flex items-center justify-center gap-2 h-10 px-4 text-[1rem] font-medium bg-primary-500 text-white rounded-lg hover:bg-primary-700 cursor-pointer Sub: inline-flex items-center justify-center gap-2 h-10 px-4 text-[1rem] font-medium bg-white text-slate-700 border border-slate-200 rounded-lg hover:bg-gray-50…

tsubotax/melta-ui · 0 tokens