شعار Ux Layout Spacing Grids

Ux Layout Spacing Grids

مؤسسة
Uxcel-Lab
ux-layout-spacing-grids

Lay out a screen with disciplined spacing, sizing, and grids — every value on one base unit (8px/4px scale), content aligned to a grid, proximity and whitespace doing the grouping, and space establishing visual hierarchy. Replaces arbitrary pixel values and ad-hoc alignment with a system. Also carries the spatial visual-hierarchy/alignment/composition fundamentals. Trigger when asked to design or critique a layout, set spacing/padding/margins, build a spacing scale or design tokens, choose or apply a grid/columns, fix inconsistent spacing or alignment, or establish visual hierarchy through space and position.

نظرة عامة

الناشرUxcel-Lab
المستودعproduct-skills
اسم المهارةux-layout-spacing-grids
النجوم
35
التفريعات
8
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها Uxcel-Lab على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Ux Layout Spacing Grids في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/Uxcel-Lab/product-skills/tree/main/ux/foundations/layout-spacing-grids
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Uxcel-Lab/product-skills.git /tmp/product-skills
mkdir -p .claude/skills
cp -r /tmp/product-skills/ux/foundations/layout-spacing-grids .claude/skills/ux-layout-spacing-grids
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Ux Layout Spacing Grids في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Ux Layout Spacing Grids تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Ux Layout Spacing Grids بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Layout, Spacing & Grids Skill

How this skill behaves (read first)

This is a generative foundation skill. Layout is where an AI assistant's output is quietly amateurish: Claude reaches for arbitrary spacing (13px here, 27px there), pads things by eyeball, mixes alignments, drops content onto the canvas with no grid, and gives every element the same visual weight so nothing reads as more important. The fixes are systematic, not cosmetic — a base unit, a scale, a grid, consistent alignment, and space used deliberately to group and to rank.

So this skill gates:

  1. Establish context — platform/density, content type, and whether the layout must be responsive (these set the base unit, the grid type, and the column model).
  2. Apply the always-true core — one base unit and a spacing/sizing scale, align to a grid, let proximity and whitespace group, and use space to build hierarchy.
  3. Surface the context-dependent decisions (base unit, grid type, column model, sizing approach, golden-ratio/rule-of-thirds, token layer, grid-breaking) with trade-offs; let the user choose.

Then it hands off to ux-aesthetics-audit (the composition/spacing/hierarchy review) and ux-accessibility-audit (touch targets, text scaling, reflow), plus ux-mobile-responsiveness-audit when the layout is responsive/mobile.

This skill also owns the spatial visual-hierarchy, alignment, and composition fundamentals (it absorbed the retired visual-hierarchy generative content): hierarchy created through size, position, and space; alignment and proximity; whitespace; rule-of-thirds/golden-ratio placement. It defers type scale/readability to ux-typography, color/contrast for emphasis to ux-color, and the evaluative composition review to ux-aesthetics-audit.


Step 0 — Establish context before laying out

Ask if not known; state the assumption if proceeding without an answer:

  • Platform & density — mobile vs. desktop, and how dense the UI is. Dense/compact tools may want a 4px base; most product UIs use 8px. Mobile tightens margins and must preserve touch-target spacing.
  • Content type — uniform items (gallery, dashboard cards), long-form text, mixed media, or tabular data. This drives the grid choice (column vs. modular vs. manuscript vs. hierarchical).
  • Responsive or fixed context — will it adapt across breakpoints, or run in a controlled environment (kiosk, signage)? Responsive needs a column model and breakpoints; fixed is the exception, not the default.

The always-apply core (true for almost every layout)

Build on one base unit and a scale

  • Pick a single base unit and make every spacing/sizing value a multiple of it. 8px is the default (divides cleanly into halves/quarters; Material aligns to 8dp; Apple uses 8/16/32-pt increments); 4px for dense interfaces. No arbitrary values — 13px or 27px gaps are the tell of an unsystematic layout.
  • Express the scale as tokens, not one-offs. Numeric scale (spacing-01…, e.g. 4, 8, 16, 24, 32, 48, 64) optionally with a semantic layer (xs/sm/md/lg). Consistency lets one change flow through; it also kills guesswork.
  • Unify spacing and sizing on the same base unit so gutters, columns, and component sizes snap together and the page reads as one system.
  • Handle off-scale values as flagged exceptions. If something genuinely needs a between-steps value, give it a functional name (card-media-height) or an irregular number so it's obviously not part of the scale — frequent exceptions are how a system rots.

Use space to group and to rank (hierarchy)

  • Proximity groups. Smaller gaps tie related elements together; larger gaps separate groups. Users read nearby items as one unit (Gestalt proximity).
    • ❌ Equal spacing between a label, its field, and the next field — the form reads as one undifferentiated stack. ✅ Tight label↔field, larger gap between fields.
  • External spacing ≥ internal spacing. If the space around a component is smaller than the space inside it, unrelated elements visually merge. Keep outer ≥ inner.
  • Space creates hierarchy. More space and prominent position (top/leading, following reading order) make an element feel important; primary content gets room to breathe, secondary content is set apart. Combine with size — but space alone already ranks.
  • Whitespace is active, not wasted. Macro whitespace separates sections; micro whitespace aids readability and enlarges touch targets. Don't fill every gap.

Align everything to a grid

  • Put content on a grid and keep it there. Columns hold content; gutters are the gaps between; margins are the outer edges — content never sits in the gutter or the margin. Keep equal gutters.
  • Distinguish the three spacings: margin (external/between), padding (internal), gutter (between columns). Mixing them up is a common source of inconsistency.
  • Align similar elements consistently on both axes — images with images, text baselines with text baselines — so the eye scans a predictable edge. Maintain vertical rhythm.
  • Adapt the container to the grid, not the grid to the content. A stable grid plus flexible container sizes keeps layouts predictable and easy to extend. Break the grid only deliberately (see levers).

Make it adapt

  • Plan responsiveness around the grid. Resize containers and reflow columns at breakpoints rather than rebuilding the structure; standard column counts are 12 desktop / 8 tablet / 4 mobile.
  • Scale spacing with text (dynamic type). When users enlarge text, margins/padding/gaps and row heights should scale too, so hierarchy and touch targets survive. Respect safe areas and platform margins.

The context-dependent decisions (surface, don't auto-apply)

Present each with its trade-off and a recommendation tied to Step 0; let the user choose. Applying every grid type and proportion system at once is the failure mode.

DecisionApply whenAvoid / adapt whenDefault recommendation
Base unit (8px vs 4px)8px for most product UIs; 4px for dense/data-heavy interfaces needing finer controlMixing both, or going off-grid for convenience8px base; drop to 4px only where density truly demands it
Grid typeColumn for general layouts; modular (columns × rows) for galleries/tables/e-commerce; manuscript for long text; hierarchical for content-led/editorial; integrated (two grids) for media + typeForcing a modular grid on simple content (false rigor) or a manuscript grid on a dashboardColumn grid by default; modular for uniform card/data layouts
Symmetric vs asymmetricSymmetric for uniform, equal-priority content (calm, classic); asymmetric to emphasize and add movementAsymmetry that breaks the reading pattern into chaosSymmetric unless you need emphasis/contrast; keep consistent proportions
Column model (fixed/fluid/responsive)Responsive (resize + breakpoints) for cross-device; fluid (%) for smooth scaling; fixed only in controlled environmentsFixed-pixel layouts on the open web (horizontal scroll on small, dead space on large)Responsive by default; plan breakpoints up front
Sizing approachElement-first (fixed dimensions) for buttons/inputs/icons that need uniformity; content-first (fixed padding, size grows) for text blocks, table rows, unpredictable contentFixing heights on content that varies (clipping/overflow)Element-first for interactive primitives; content-first for content containers
Golden ratio / rule of thirdsPlacing focal elements (hero, CTA) at active-zone intersections; deriving harmonious proportionsTreating it as a mandate that overrides content needs or the base-unit scaleUse to place focal points; keep spacing on the unit scale
Semantic token layerLarger teams/design systems that benefit from xs/sm/md aliases over raw numbersTiny projects where the alias layer is overheadNumeric scale always; add semantic aliases for systems
Breaking the gridA deliberate hero/element breaking out to grab attentionBreaking it by accident or so often the grid stops meaning anythingBreak intentionally and rarely; everything else stays aligned

Validate the result (orchestration)

Hand-offs name each lens by its installable skill name. Invoke one only if that skill is installed; if it isn't, this skill's own core already carries these rules — proceed without it rather than blocking.

After laying out or revising, hand the result to the audit lenses rather than declaring it done. These are candidate lenses — posture is set by docs/orchestration-policy.md, or route the whole thing through ux-design-review. Here, none are Tier A; aesthetics and accessibility are Tier B (offered), and mobile-responsiveness is Tier B (offered, mobile only) — under an existing design system aesthetics is suppressed and accessibility narrows to usage; mobile-responsiveness applies only on mobile. If the user invoked this skill for one specific thing, respect that scope.

  • ux-aesthetics-audit (Tier B — offer; suppress under a design system) — the composition review this skill generates toward: is spacing consistent and on-scale, is there a clear hierarchy, is alignment clean, is whitespace balanced (not cramped, not cavernous)? Aesthetics owns the evaluative side of composition/hierarchy.
  • ux-accessibility-audit (Tier B — offer; narrow under a design system) — do spacing and sizing preserve adequate touch targets, does the layout reflow without loss at higher zoom/text sizes, does spatial grouping still make sense to assistive tech?
  • ux-mobile-responsiveness-audit (Tier B — offer; applies only on mobile) (when responsive/mobile) — do margins, gutters, and column counts adapt cleanly across breakpoints, and does spacing scale with dynamic type?

Scope & composition (per docs/orchestration-policy.md §9): inherit under a design system (only build from scratch) — ux-typography owns type scale and readability and ux-color owns color-based emphasis/contrast; take both from the system's tokens when one exists. Hierarchy is built from space and type and color together. If the audits surface a conflict, resolve toward the purpose: layout exists to make content scannable and ranked — if spacing is arbitrary, nothing's on a grid, or everything has equal weight, the structure isn't done.


Common do/don't patterns

❌ Don't✅ Do
Use arbitrary values (13px, 27px)Put every value on one base unit (8px/4px) and a token scale
Pad and space by eyeballDefine spacing/sizing tokens and reuse them
Space related and unrelated items equallyProximity: tight within a group, larger between groups
Let outer space be smaller than inner spaceKeep external spacing ≥ internal spacing so groups don't merge
Drop content on the canvas with no gridAlign content to columns; keep it out of gutters and margins
Mix alignments / ragged edgesAlign similar elements consistently on both axes
Give every element equal weightUse space + position (and size) to rank importance
Fill every gapTreat whitespace as active — grouping, breathing room, touch targets
Rebuild the grid per breakpointAdapt container sizes to a stable grid; reflow columns at breakpoints
Force one grid/proportion system everywherePick the grid type that fits the content; reach for golden-ratio only to place focal points
Ship the layout uncheckedHand off to aesthetics + accessibility (+ mobile-responsiveness)

Source lessons (Uxcel)

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Ux Layout Spacing Grids؟

Lay out a screen with disciplined spacing, sizing, and grids — every value on one base unit (8px/4px scale), content aligned to a grid, proximity and whitespace doing the grouping, and space establishing visual hierarchy. Replaces arbitrary pixel values and ad-hoc alignment with a system. Also carries the spatial visual-hierarchy/alignment/composition fundamentals. Trigger when asked to design or critique a layout, set spacing/padding/margins, build a spacing scale or design tokens, choose or apply a grid/columns, fix inconsistent spacing or alignment, or establish visual hierarchy through...

لماذا تستخدم Ux Layout Spacing Grids على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Ux Layout Spacing Grids عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Ux Layout Spacing Grids في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/Uxcel-Lab/product-skills/tree/main/ux/foundations/layout-spacing-grids. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Ux Layout Spacing Grids؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Ux Layout Spacing Grids؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Ux Layout Spacing Grids معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Ux Layout Spacing Grids مجانية؟

نعم. نشرها Uxcel-Lab على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇