闲社服务运行正常AI智能体自动化平台
b

圆角生成

技能标识: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.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

圆角生成

CSS 边框圆角生成器

生成用于统一圆角或每个角自定义圆角的 border-radius CSS,包括特殊形状(如 blob 和 leaf)。

输入

  • - 模式:uniform(所有角相等)或 per-corner
  • 统一值:整数 0–9999 px(默认 16)
  • 每个角的值:左上、右上、右下、左下,单位为 px(默认 16 16 16 16)

输出

  • - CSS 属性:border-radius: <值>;
  • Tailwind CSS 类等效项

说明

  1. 1. 解析用户的请求。确定所有角是否相同,或者每个角是否单独指定。
  2. 计算 CSS 值:
- 所有角相等:border-radius: <值>px; - 混合角:border-radius: <左上>px <右上>px <右下>px <左下>px;
  1. 3. 计算 Tailwind 类:
- 全部相等,值为 0:rounded-none - 全部相等,值 >= 9999:rounded-full - 全部相等,其他:rounded-[<值>px] - 混合:rounded-[<左上>px<右上>px<右下>px_<左下>px]
  1. 4. 输出 CSS 和 Tailwind。
  2. 如果用户提到形状预设,则进行映射:
- 无 → 0 0 0 0 - 小 → 4 4 4 4 - 中 → 8 8 8 8 - 大 → 16 16 16 16 - 特大 → 24 24 24 24 - 全圆/药丸/圆形 → 9999 9999 9999 9999 - 水滴 → 30px 70px 70px 30px - 叶子 → 0px 50px 0px 50px

选项

  • - topLeft:0–9999 — 默认 16
  • topRight:0–9999 — 默认 16
  • bottomRight:0–9999 — 默认 16
  • bottomLeft:0–9999 — 默认 16
  • linked:如果为 true,所有角使用相同的值

示例

输入:圆角,所有边 12px
输出:
css
border-radius: 12px;

Tailwind:rounded-[12px]

输入:水滴形状边框圆角
输出:
css
border-radius: 30px 70px 70px 30px;

Tailwind:rounded-[30px70px70px_30px]

输入:全药丸/圆形边框圆角
输出:
css
border-radius: 9999px;

Tailwind:rounded-full

输入:上角 24px,下角 0
输出:
css
border-radius: 24px 24px 0px 0px;

Tailwind:rounded-[24px24px0px_0px]

错误处理

  • - 如果值为负数,将其设置为 0 并告知用户边框圆角不能为负数。
  • 如果值超过 9999,上限为 9999(用于表示完全圆角/rounded-full)。
  • 如果用户提供的单位不是 px(例如 rem、%),在输出中注明单位,如果不是 px 则省略 Tailwind 任意值。

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 border-radius-1776085873 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 border-radius-1776085873 技能

通过命令行安装

skillhub install border-radius-1776085873

下载

⬇ 下载 border-radius v1.0.0(免费)

文件大小: 1.64 KB | 发布时间: 2026-4-14 14:43

v1.0.0 最新 2026-4-14 14:43
- Initial release of the border-radius skill.
- Generates CSS border-radius code and matching Tailwind class from user input.
- Supports both uniform and per-corner radius values.
- Handles shape presets (e.g., none, small, medium, large, full, blob, leaf).
- Performs error handling for negative values and unit restrictions.
- Outputs both standard CSS and Tailwind utility class.
返回顶部