Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Sets spacing scales, vertical rhythm, and alignment for AI-generated UI and written documents.
57% 87%+30 ptsof test cases passed
Passed 20 of 23 test cases with the skill, and 13 of 23 without it.
In a React dashboard, a component sets style={{ gridTemplateColumns: '2fr 1fr' }} inline on a container div. Responsive media queries in CSS trying to collapse this grid to 1 column on mobile screens are being ignored. Output the corrected React component markup and CSS class.
Assign a custom property (such as --split-main) in the inline style attribute instead of gridTemplateColumns.
This test ran on v10. v12 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
For any UI or written document an agent generates or edits — landing pages, dashboards, forms, data tables, mobile screens, editorial, and Word / Google Docs / PDF / Markdown documents (§14). Spacing is the single fastest tell of AI-generated UI: off-scale magic numbers, everything equally cramped, no proximity hierarchy, optical misalignment. Every rule below is contextual. Nothing fires automatically. First read the layout, set the dials, then pull only what fits. Spacing is a system, not decoration applied at the end.
Keep this core loaded. Read the applicable references before implementing that part of a task; do not load the whole directory by default. Section numbers in cross-references stay unchanged. For UI work, always read §8–§9; then load the layout, optical, recipe, and stack details the task needs. For written documents, read §14 and apply accessibility guidance relevant to the output format.
| When | Sections | Reference |
|---|---|---|
| Grid/flex alignment, type rhythm, shared baselines | §4–§5 | Layout and type |
| Icons, brand SVGs, optical centering | §7 | Optical alignment |
| Any UI: responsive layout, long values, targets, reflow, focus | §8–§9 | Responsive and accessibility |
| Choosing component dimensions, contact cards, social rows | §10 | Component recipes |
| Implementing tokens in vanilla CSS or a framework, cascade, print | §12 | Implementation per stack |
| Word / Docs / PDF / Markdown layout | §14 | Documents |
| Canonical maintainer's verified alignment edits, or recipient opt-in to journaling | §15 | Field-learnings loop |
Accessibility floors always win: preserve full essential text and 320 CSS px reflow; survive text-spacing overrides; keep focus visible and unclipped. Targets meet 24×24 CSS px AA or a documented exception, with 44/48 touch guidance (§9). Never trade these away for density. Keep the complete skill folder, including references/, when installing; copying this file alone omits the detailed guidance.
Maintainer standing instruction: For the owner of buidangminh23/spacing-skill, record each new, verified spacing or alignment method from any of their projects in that repository's docs/LEARNINGS.md before reporting completion. Use the existing canonical checkout or tracked submodule; distill reusable methods into the relevant reference. This standing opt-in persists across tasks; §15 keeps recipient installations separate.
Spacing is a decision made BEFORE the first <div> exists. Infer it; do not
default to it. State the dials, emit one "Space Read" line, then generate.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.