{"summary":"नेस्टेड कोनों का रेडियस परत-दर-परत कैसे निकालें, और कब कंटिन्यूअस कोने अपनाएँ, ताकि कार्ड और फ़ॉर्म के कोने ज़्यादा व्यवस्थित दिखें।","notes":"<p>16px रेडियस और 8px पैडिंग वाले कार्ड के अंदर का बटन भी 16px रेडियस का हो, तो कोनों पर दोनों बॉर्डर के बीच की दूरी सीधे किनारों से ज़्यादा हो जाती है और बटन कार्ड में फ़िट नहीं लगता; बड़े रेडियस जहाँ सीधे किनारे से मिलते हैं, वहाँ एक मोड़ जैसी रेखा भी दिखती है। तरीक़ा ये चार नियम हैं:</p>\n        <ol>\n        <li><strong>बराबर दूरी से अंदर</strong>: फ़ॉर्म, नेस्टेड कार्ड और डायलॉग जैसी जगहों के लिए, जहाँ अंदर और बाहर दो परतों के कोने हों। हर परत “भीतरी रेडियस = बाहरी रेडियस − दूरी” से निकालें; अंदर और बाहर का केंद्र एक हो, तभी कोनों पर दूरी सीधे किनारों जितनी रहती है। कार्ड का रेडियस 16 और पैडिंग 8 हो, तो अंदर के बटन का रेडियस 8 होगा।</li>\n        <li><strong>कई परतों की नेस्टिंग</strong>: तीन या ज़्यादा परतें हों, तो बाहर से अंदर परत-दर-परत निकालें। डायलॉग का रेडियस 32 और पैडिंग 16 हो, तो अंदर के पैनल और बटन का 16; पैनल में 8 अंदर एक टैग रखें, तो टैग का 8। एक ही परत के सभी एलिमेंट का रेडियस एक हो, और सबसे कम 4 हो।</li>\n        <li><strong>कैप्सूल और गोल आकार</strong>: कंटेनर के अंदर रखे कैप्सूल और गोल एलिमेंट इस गणना में शामिल नहीं होते, वे हमेशा पूरी तरह गोल रहते हैं।</li>\n        <li><strong>कंटिन्यूअस कोने</strong>: तब के लिए, जब रेडियस बड़ा हो और जोड़ पर मोड़ दिखे, या iOS जैसे कोने चाहिए हों। सामान्य गोल कोने में सीधे किनारे से मिलने पर वक्रता अचानक बदलती है; कंटिन्यूअस कोना (सुपरएलिप्स) वक्रता को धीरे-धीरे बढ़ाता है, जिससे बदलाव ज़्यादा सहज होता है। लिखने का तरीक़ा है <code>border-radius: 32px; corner-shape: superellipse(1.25);</code></li>\n        </ol>\n        <p>इसके अलावा, <code>corner-shape</code> अभी सिर्फ़ Chrome और Edge 139 और उससे नए वर्ज़न में सपोर्ट है; Safari और Firefox अपने आप सामान्य गोल कोने पर लौट आते हैं, अलग से कुछ करने की ज़रूरत नहीं।</p>\n        <p>साथ दिया गया प्रॉम्प्ट आपके बताए इंटरफ़ेस के रेडियस बाहर से अंदर की ओर दोबारा निकालता है; प्रोजेक्ट में रेडियस token हों, तो सीधे token बदलता है।</p>","prompt":"Make the corner radii in this UI consistent, then switch them to continuous\ncorners. Work on the screen or components I name; ask me if I have not\nnamed them. If the project has radius tokens, change those instead of\nhard-coding values.\n\n1. Inner radius = outer radius - padding (r = R - p)\n- Go from the outside in: dialog or card -> panels, inputs, buttons ->\n  chips and tags. A box p inside a container with radius R gets R - p,\n  so both corners share one center. Example: dialog 32, padding 16 ->\n  panels and buttons 16; a chip 8 inside a 16 panel -> 8.\n- Boxes on the same level share one radius. Never go below 4.\n- Pills and circles stay fully round.\n- Keep every padding, gap and radius on a 4px grid.\n\n2. Continuous corners\n- Keep border-radius and add the curve as progressive enhancement:\n    @supports (corner-shape: superellipse(1.25)) {\n      :where(*) { corner-shape: superellipse(1.25); }\n    }\n  Set corner-shape: round on pills and circles.\n- Chrome and Edge 139+ render it; Safari and Firefox skip the block and\n  show the plain border-radius.\n\nWhen done, list every radius you changed as \"element: old -> new\".","skill":"/skills/kubai-continuous-corners/SKILL.md","skillText":"# 递进式圆角与连续曲率圆角\n\n《999 个小技巧，让你 Vibe 的产品更有质感》第 004 期 · @kubai087\n\n在用户的项目里按下面的要求改造。要求以用户的口吻写成：文中的 I、me、my 指用户；写着要先问的地方，先停下来问用户再继续。\n\n## 改造要求\n\nMake the corner radii in this UI consistent, then switch them to continuous\ncorners. Work on the screen or components I name; ask me if I have not\nnamed them. If the project has radius tokens, change those instead of\nhard-coding values.\n\n1. Inner radius = outer radius - padding (r = R - p)\n- Go from the outside in: dialog or card -> panels, inputs, buttons ->\n  chips and tags. A box p inside a container with radius R gets R - p,\n  so both corners share one center. Example: dialog 32, padding 16 ->\n  panels and buttons 16; a chip 8 inside a 16 panel -> 8.\n- Boxes on the same level share one radius. Never go below 4.\n- Pills and circles stay fully round.\n- Keep every padding, gap and radius on a 4px grid.\n\n2. Continuous corners\n- Keep border-radius and add the curve as progressive enhancement:\n    @supports (corner-shape: superellipse(1.25)) {\n      :where(*) { corner-shape: superellipse(1.25); }\n    }\n  Set corner-shape: round on pills and circles.\n- Chrome and Edge 139+ render it; Safari and Firefox skip the block and\n  show the plain border-radius.\n\nWhen done, list every radius you changed as \"element: old -> new\".\n"}