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
Core rules and reference map. Section numbers remain stable across the skill.
The system is stack-agnostic; the expression is not. One source of truth for spacing per project — if a token system exists, conform; never author a second scale beside it.
| Stack | Native primitive | SPACING_STEP lever | Forbidden |
|---|---|---|---|
| Tailwind v4 | --spacing + p-4/gap-6 | redefine --spacing in @theme | p-[13px], gap-[15px] |
| Tailwind v3 | theme.spacing | theme.extend.spacing | arbitrary [13px] |
| Plain CSS | --space-* at :root | edit the ramp | hard-coded px in rules |
| MUI | theme.spacing(n) (factor 8) | spacing: factor | raw px in sx |
| Chakra | space tokens (gap={4}) | extend theme.space | string "13px" props |
| Radix Themes | gap/padding props 1–9 | scaling on <Theme> | inline overrides |
| shadcn/ui | is Tailwind | --spacing | arbitrary values |
Keep the project's existing names. If starting fresh, use one documented convention: --space-N means N times the base step, matching §2.E (--space-2 is 16px at STEP 8, not Tailwind's 8px). Do not mix multiplier keys with px keys. Declare the ramp once; semantic aliases express roles and can change for density without a build tool.
:root {
--space-step: 0.5rem;
--space-half: calc(var(--space-step) * 0.5);
--space-1: var(--space-step);
--space-2: calc(var(--space-step) * 2);
--space-3: calc(var(--space-step) * 3);
--space-4: calc(var(--space-step) * 4);
--detail-inset: var(--space-2);
--detail-grid-gap: var(--space-2);
--detail-icon-gap: var(--space-1);
--detail-label-gap: var(--space-half);
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.