optical-auto-layout

Generate CSS Flexbox layouts with optical alignment and shape corrections.

Updated Feb 26, 2026
One-click install
npx skills add https://github.com/skeeper75/widget.creator --skill optical-auto-layout
Or copy as Structured Prompt for Agentβ–Ό
Please help me install this Agent Skill.
Skill: optical-auto-layout
Source: https://github.com/skeeper75/widget.creator/tree/main/.claude/skills/innojini-optical-auto-layout
Command: npx skills add https://github.com/skeeper75/widget.creator --skill optical-auto-layout

SYSTEM DOCUMENTATION & REQUIREMENTS

πŸ’‘ This Skill includes scripts (resource) and references (resource) and examples (resource) components.

What problem does it solve?

This Skill solves the common design challenge where mathematically precise layouts appear visually unbalanced, ensuring that elements are not only correctly positioned but also pleasing to the human eye.

Core Features & Use Cases

  • Smart Layout Engine: Combines CSS Flexbox auto-layout with optical alignment principles.
  • Shape Corrections: Adjusts element sizes and positions based on their visual weight (e.g., circles appear larger than squares of the same dimension).
  • Use Case: Automatically arrange icons in a toolbar so they appear evenly spaced and visually balanced, or precisely lay out elements on a business card for professional appeal.

Quick Start

Use the optical-auto-layout skill to arrange the provided icons into a visually balanced row.

Frequently Asked Questions about optical-auto-layout

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
Why do my CSS Flexbox layouts look visually unbalanced even when dimensions are mathematically correct?β–Ό

Flexbox layouts look visually unbalanced because mathematical precision ignores optical alignment. This skill integrates Flexbox with shape-based size and position corrections to adjust visual weight, ensuring elements appear aesthetically pleasing to the human eye.

How do I automatically align icons in a toolbar so they appear evenly spaced?β–Ό

To automatically align icons, use the smart layout engine combining CSS Flexbox auto-layout with optical alignment principles. It adjusts element sizes and positions based on visual weight for a balanced arrangement.

What is optical alignment and when do I need it for UI design?β–Ό

Optical alignment corrects element positions based on visual perception rather than exact mathematics. You need it for UI design when shapes like circles or triangles create visual weight imbalances that make mathematically precise layouts appear off-center.

Can I use this approach to precisely lay out elements on a business card for print design?β–Ό

Yes, you can use this approach to lay out elements on a business card for print design. It solves visual perception challenges in both UI and print by applying optical alignment principles to ensure professionally harmonious arrangements.

Does this layout method handle visual weight corrections for shapes like circles and triangles?β–Ό

Yes, this layout method handles visual weight corrections for shapes like circles and triangles. It adjusts element sizes and positions based on geometric properties, ensuring shapes that visually appear larger than their mathematical bounds are correctly balanced.