{"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>함께 제공하는 Prompt는 지정한 화면의 모서리 반경을 바깥에서 안쪽으로 다시 계산합니다. 프로젝트에 모서리 반경 토큰이 있으면 토큰을 직접 수정합니다.</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"}