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

shade-use-primitives

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

यह स्किल AI एजेंट को हाथ से लिखी layout classes के बजाय Shade के layout building blocks इस्तेमाल करने को कहती है। यह उन डेवलपर्स के लिए है जो इंटरफ़ेस बनाते हैं और एक जैसी spacing और संरचना चाहते हैं।

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

  • ✓जब आप Shade आधारित ऐप में कोई स्क्रीन, सेक्शन या पंक्ति का लेआउट बनाते हैं।
  • ✓जब आपको एलिमेंट्स के बीच spacing, alignment, stacking या wrapping करनी हो।
  • ✓जब आपका मन किसी साधारण wrapper में layout classes जोड़ने का हो।

Skill का लिंक

https://github.com/TryGhost/Ghost/blob/main/apps/shade/skills/shade-use-primitives/SKILL.md

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

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

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

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

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

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

“मैं अपने settings पेज के फ़ॉर्म फ़ील्ड्स को Shade के layout blocks से बराबर spacing के साथ लगाना चाहता हूँ।”

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

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

एजेंट हर wrapper के लिए एक layout block चुनता है, जैसे vertical समूह के लिए Stack या पंक्तियों के लिए Inline। वह gap और padding Shade के नामित spacing steps से सेट करता है, और class names सिर्फ़ वहीं इस्तेमाल करता है जहाँ props कवर नहीं करते।

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

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

Shade use primitives

Layout in Ghost UI reads by intent: Stack, Inline, Box, Grid, Container and Text replace hand-written flex and grid classes. The rules live in Primitives.

Docs links use https://shade.ghost.org. If the project's AGENTS.md says where Shade's docs are (another address, or a source folder), use that instead. Fetch web pages with curl -s.

Workflow

  1. Check for a larger shape first. A whole page starts from shade-page-templates; a recurring product shape may already be a pattern in Patterns.
  2. Pick the primitive for each wrapper with Use a primitive when.
  3. Set gaps and padding from the Spacing scale.
  4. Reserve className for what the props don't cover.

Self-check

  • No wrapper element in your diff carries only layout classes.
  • Spacing on primitives uses the named steps, and direction, gap, alignment and justification come from props.
  • Nothing in Don't applies to your diff.
अक्सर पूछे जाने वाले सवाल

मुख्य layout blocks कौन से हैं?

स्किल Stack, Inline, Box, Grid, Container और Text को building blocks बताती है।

क्या मुझे अब भी flex या grid classes लिखनी चाहिए?

स्किल कहती है कि layout को उसके इरादे से पढ़ा जाना चाहिए, इसलिए primitives ज़्यादातर हाथ से लिखी flex और grid classes की जगह लेते हैं।

क्या पूरे पेज के लिए कोई शॉर्टकट है?

हाँ। पूरा पेज एक page template से शुरू होता है, और दोहराए जाने वाले आकार पहले से एक pattern के रूप में हो सकते हैं।

जानकारी

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

Lay out Ghost UI with Shade's layout primitives. Use when laying out a screen, section or row, or when spacing, aligning, stacking or wrapping elements.

repo: TryGhost/Ghost

लोकप्रियता

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

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

0

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

कमेंट

  • …

इस repository की और skills

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