मुख्य सामग्री पर जाएँ
Skillpedia
इंटरफ़ेस (UI/UX)12k · #11512

better-layout

यह क्या करती है

यह AI को पेज सेक्शन, कंट्रोल और स्पेसिंग को इस तरह व्यवस्थित करने के चरण समझाती है कि हर स्क्रीन पर ढाँचा पढ़ने में आसान रहे। यह वेब लेआउट बनाने वाले डिज़ाइनरों और डेवलपर्स के लिए है।

कब इस्तेमाल करें

  • ✓जब आप नया पेज या कॉम्पोनेंट बनाते हैं और लेआउट साफ़ पढ़ा जाना चाहिए।
  • ✓जब कंट्रोल की स्पेसिंग या संरेखण गड़बड़ लगे।
  • ✓जब आपको तय करना हो कि छोटी स्क्रीन पर क्या सिमटे या छिपे।

Skill का लिंक

https://github.com/trycompai/crm/blob/release/.agents/skills/better-layout/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/trycompai/crm/blob/release/.agents/skills/better-layout/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“यह सेटिंग्स पेज फ़ोन पर भरा-भरा और बेतरतीब दिखता है। क्या आप लेआउट ठीक कर सकते हैं?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

AI संबंधित आइटम समूहित करता है, उन्हें साझा किनारों पर संरेखित करता है, प्रोजेक्ट की स्पेसिंग प्रणाली इस्तेमाल करता है और अलग-अलग चौड़ाई पर लेआउट जाँचता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Layout that communicates structure

Layout communicates before a single word is read: position, spacing, and alignment carry hierarchy on their own, and generous space beats decoration. A good layout also survives stress: resize it, translate it, mirror it for RTL, and it should still hold together. Apply these principles when building or reviewing UI code, and express every change in the project's existing styling system (Tailwind, plain CSS, CSS-in-JS); never introduce a second styling approach.

Hit-area sizes and focus behavior are covered by the better-accessibility skill; visual polish (radius, shadows, animation) by the better-ui skill; line length and text spacing by the better-typography skill.

Treat the numeric values below as starting points for interfaces without an established density or spacing system. Preserve deliberate platform chrome, compact professional tools, and project tokens when they remain usable under hit-area, zoom, localization, and viewport stress tests.

Quick Reference

Category When to Use
Grouping & Alignment Space vs separators, alignment edges, logical properties, importance ordering
Spacing & Adaptivity Spacing between targets, layout margins, progressive disclosure, full-bleed content, breakpoints, i18n growth

Core Principles

1. Group with Space, Not Lines

Negative space is the primary grouping tool; background shapes second; separator lines last, only where space alone can't carry the structure. The gap between groups must be at least 2× the gap within a group (8px intra-group → 16px+ inter-group), or the grouping reads as noise.

2. Keep Controls Distinct from Content

Interactive elements must look interactive: a background shape, a border, or a consistent placement zone. Never style a control identically to adjacent static text.

3. Align to Shared Edges

Pick alignment edges and stick to them; every stray edge reads as noise. Use one project spacing step for each level of subordination (16px is a useful default). Use logical properties (padding-inline-start, margin-inline-end) for direction-dependent layout; reserve physical left/right for genuinely physical geometry.

4. Order by Importance

The most important content sits near the top and the leading edge; reading order flows top-to-bottom, leading-to-trailing. Think in leading/trailing, not left/right.

5. Hint at Hidden Content

Progressive disclosure needs a visible affordance. Use the project's established cue; without one, let the next item peek 16–32px past the scroll edge or show a disclosure control. Content hidden with zero cue may as well not exist.

6. Breathing Room Between Targets

Without an established density system, start with 12px between adjacent bordered or filled controls and 24px of clearance around borderless text- and icon-only controls. Compact layouts may use less when better-accessibility hit areas do not overlap and the controls remain visually distinct.

7. Inset Buttons from the Edges

In content layouts, keep full-width buttons inside the layout margins (start near 16px inline on mobile) with a visible radius. Edge-to-edge actions are acceptable when they intentionally follow established platform or application chrome, account for safe areas, and remain distinguishable from system UI.

8. Content Bleeds, Controls Float

Backgrounds and media extend to the viewport edges; controls and text stay inside the layout margins and safe areas (env(safe-area-inset-*)). Sticky chrome floats above the content layer, it doesn't dam it.

9. Hold Structure Until It Breaks

Breakpoints come from the content, not device presets. Keep the expanded layout as long as it genuinely fits and collapse late; prefer container queries for component-level adaptation. Test the smallest and largest sizes first.

10. Plan for Growth and Clipping

Plan for substantial and language-dependent string growth rather than relying on a universal percentage: no fixed widths or heights on text containers, and let rows wrap. Never park critical actions where resizing or scrolling clips them; keep them reachable in the normal flow or stable chrome appropriate to the product.

Common Mistakes

Mistake Fix
Separator line where spacing would do Remove the line, double the gap between groups
margin-left / padding-right in a localizable l
अक्सर पूछे जाने वाले सवाल

क्या यह प्रोजेक्ट की स्टाइलिंग प्रणाली की जगह लेती है?

नहीं। स्किल कहती है कि बदलाव प्रोजेक्ट की मौजूदा प्रणाली में लिखे जाएँ, जैसे Tailwind या सादा CSS।

क्या यह दाएँ से बाएँ भाषाएँ सँभालती है?

हाँ, यह RTL लेआउट की दिशा और logical CSS properties कवर करती है।

क्या एनिमेशन कवर है?

नहीं। विज़ुअल पॉलिश और मोशन better-ui स्किल के अंतर्गत आते हैं।

जानकारी

लेखक का मूल विवरण

Layout structure for web interfaces, from grouping and alignment to reading order, progressive disclosure, and adaptive breakpoints. Use when structuring a page or component, spacing or aligning controls, deciding what collapses at small sizes, handling RTL layout direction, or reviewing frontend code for layout. Triggers on layout, spacing, alignment, grouping, negative space, whitespace, visual hierarchy, reading order, progressive disclosure, breakpoints, responsive layout, container queries, safe area, full-bleed, edge-to-edge, layout margins, RTL layout, logical properties.

repo: trycompai/crm

लोकप्रियता

GitHub स्टार
12k
रैंकिंग में स्थान
#11512
लाइसेंस
MIT
अपडेट की गई
1/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

ai-elements

12k

यह आपके एजेंट को बातचीत, संदेश, टूल डिस्प्ले और प्रॉम्प्ट इनपुट के लिए तैयार कॉम्पोनेंट से AI चैट इंटरफ़ेस बनाने में मदद करती है।

कोडिंगवेबसाइट और UI (frontend)

ai-sdk

12k

यह आपके एजेंट को Vercel AI SDK से AI फ़ीचर बनाने में मदद करती है, जिसमें टेक्स्ट जनरेशन, स्ट्रीमिंग, टूल कॉलिंग और एजेंट शामिल हैं।

AI और एजेंटएजेंट

better-accessibility

12k

यह आपके एजेंट को इंटरफ़ेस को कीबोर्ड और स्क्रीन रीडर के लिए उपयोगी बनाने में मदद करती है, जिसमें फ़ोकस, लेबल, ARIA और फ़ॉर्म शामिल हैं।

डिज़ाइनइंटरफ़ेस (UI/UX)

better-auth-best-practices

12k

यह आपके एजेंट को TypeScript ऐप में लॉगिन, सेशन, OAuth और प्लगइन के लिए Better Auth सेट करने में मदद करती है, उसके दस्तावेज़ी चरणों के अनुसार।

कोडिंगसिक्योरिटी

मिलती-जुलती skills