Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Living wiki of UI design patterns and best practices built with Fumadocs, Next.js, and Base UI components.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
rules/morphing-consistent-viewbox.md
1---2title: Consistent ViewBox Size3impact: HIGH4tags: morphing, viewbox, svg5---67## Consistent ViewBox Size89All icons must use the same viewBox (14x14 recommended).1011**Incorrect (mixed scales):**1213```ts14const icon1 = { lines: [{ x1: 2, y1: 7, x2: 12, y2: 7 }, ...] }; // 14x1415const icon2 = { lines: [{ x1: 4, y1: 14, x2: 24, y2: 14 }, ...] }; // 28x2816```1718**Correct (consistent scale):**1920```ts21const VIEWBOX_SIZE = 14;22const CENTER = 7;23```24