Generate border-radius CSS for uniform rounding or per-corner customization, including special shapes like blobs and leaves.
uniform (all corners equal) or per-corner16)16 16 16 16)border-radius: ; border-radius: px; border-radius: px px
px px;- Compute the Tailwind class:
- All equal, value is 0:
rounded-none - All equal, value >= 9999:
rounded-full - All equal, other:
rounded-[px] - Mixed:
rounded-[px_px_
px_px]- Output both CSS and Tailwind.
- If the user mentions a shape preset, map it:
- None →
0 0 0 0 - Small →
4 4 4 4 - Medium →
8 8 8 8 - Large →
16 16 16 16 - XL →
24 24 24 24 - Full / pill / circle →
9999 9999 9999 9999 - Blob →
30px 70px 70px 30px - Leaf →
0px 50px 0px 50px
Options
topLeft: 0–9999 — default 16topRight: 0–9999 — default 16bottomRight: 0–9999 — default 16bottomLeft: 0–9999 — default 16linked: if true, all corners use the same value
Examples
Input: "Rounded corners, 12px all sides"
Output:
border-radius: 12px;
Tailwind: rounded-[12px]
Input: "Blob shape border radius"
Output:
border-radius: 30px 70px 70px 30px;
Tailwind: rounded-[30px_70px_70px_30px]
Input: "Full pill / circle border radius"
Output:
border-radius: 9999px;
Tailwind: rounded-full
Input: "Top corners 24px, bottom corners 0"
Output:
border-radius: 24px 24px 0px 0px;
Tailwind: rounded-[24px_24px_0px_0px]
Error Handling
- If a value is negative, set it to 0 and inform the user that border-radius cannot be negative.
- If a value exceeds 9999, cap at 9999 (used to represent fully rounded /
rounded-full). - If the user provides a unit other than px (e.g., rem, %), note the unit in the output and omit the Tailwind arbitrary value if not px.
版本历史
共 1 个版本
-
v1.0.0
当前
2026-03-31 06:03 安全 安全
🔗 相关推荐
dev-programming
Mcporter
steipete 使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 197
📥 68,063
dev-programming
Github
steipete 使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 681
📥 330,102
dev-programming
CodeConductor.ai
larsonreever AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 78
📥 182,674