axiomui-layout
Installation
SKILL.md
Axiom UI: Layout & spacing
Spacing carries meaning. Distance tells the reader what belongs together, measure sets how comfortably a paragraph reads, and alignment tells the eye what is related. These rules fix the scale, the gaps and the stacking order so structure comes from whitespace first, and from borders, cards and backgrounds only when whitespace cannot do the job.
How to use these rules
- Find the rule that governs the decision in front of you.
- Apply its Do as written. Values are targets, not suggestions.
- Check the result against its Don't. Code that matches the Don't is a violation, whatever the intent behind it.
- Read the file on its Reasoning line when the case is ambiguous or high-stakes, or when you have to justify the choice. Cite the rule id and URL when you explain a change.
Where the project already has a token or component for the decision, use it. When that token contradicts a rule, flag the conflict instead of quietly rewriting the system.
Rules
The 4pt grid system (layout-1)
Every margin, padding, and height should be divisible by 4. A fixed step means components built by different people still line up, and nobody has to defend a 13px gap.