← 返回
未分类 中文

Border Radius

Generate CSS border-radius code. Use when the user asks to generate rounded corners, create a border radius, make a blob shape, or produce border-radius CSS.
{"answer":"生成 CSS border-radius 代码。当用户要求生成圆角、创建边框圆角、制作斑点形状或生成 border-radius CSS 时使用。"}
ohernandez-dev-blossom ohernandez-dev-blossom 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 405
下载
💾 1
安装
1
版本
#latest

概述

CSS Border Radius Generator

Generate border-radius CSS for uniform rounding or per-corner customization, including special shapes like blobs and leaves.

Input

  • Mode: uniform (all corners equal) or per-corner
  • Uniform value: integer 0–9999 px (default 16)
  • Per-corner values: top-left, top-right, bottom-right, bottom-left in px (defaults 16 16 16 16)

Output

  • CSS property: border-radius: ;
  • Tailwind CSS class equivalent

Instructions

  1. Parse the user's request. Determine if all corners are the same or each is specified separately.
  2. Compute the CSS value:
    • All corners equal: border-radius: px;
    • Mixed corners: border-radius: px px
      px px;
  3. 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]
  4. Output both CSS and Tailwind.
  5. 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 16
  • topRight: 0–9999 — default 16
  • bottomRight: 0–9999 — default 16
  • bottomLeft: 0–9999 — default 16
  • linked: 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 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

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