← 返回 Skills 市场
bovinphang

Tailwind Design System

作者 Bovin Phang · GitHub ↗ · v2.5.0 · MIT-0
cross-platform ✓ 安全检测通过
26
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install fec-tailwind-design-system
功能描述
Use when designing, implementing, or reviewing Tailwind CSS design systems, token mapping, theme extension, utility class governance, component variants, dar...
使用说明 (SKILL.md)

Tailwind 设计系统

适用于用 Tailwind CSS 承载产品设计系统、组件变体和主题规则的前端任务。需要具体配置、variant、class 组织和迁移细节时加载 references/tailwind-system-patterns.md

Purpose

让 Tailwind 项目中的 token、主题、组件变体和响应式样式可维护,而不是把一次性 utility class 散落到业务代码里。

Procedure

  1. 识别现状:确认 Tailwind 版本、配置位置、暗色模式策略、组件库、CSS 变量、设计 token 和 class 合并工具。
  2. 建立 token 边界:颜色、间距、圆角、阴影、字体、z-index 和断点优先从项目 token 或 theme.extend 派生。
  3. 设计组件变体:按钮、输入框、卡片、弹窗、表格等基础组件用集中 variant API 表达尺寸、语义、状态和密度。
  4. 控制 class 复杂度:重复组合沉淀为组件、slot、variant 或局部 helper;不要把长 class 字符串复制到多个页面。
  5. 处理主题和暗色模式:明确 classdata-theme 或 CSS 变量方案,避免首次渲染闪烁和对比度回归。
  6. 接入响应式:移动优先组织 utility;复杂布局交给响应式布局工作流,不要只靠堆叠断点前缀碰运气。
  7. 验证样式结果:检查 hover、active、focus-visible、disabled、loading、selected、invalid、dark 和不同断点。

Constraints

  • 不把 Tailwind class 当作设计系统本身;真正的系统是 token、组件 API、状态矩阵和使用约束。
  • 不为单个页面随意扩展全局 token;新增 token 必须有语义名称和复用场景。
  • 不使用拼接的动态 class 破坏构建扫描;必要时使用 safelist、映射表或 variant 工具。
  • 不在组件外部覆盖基础组件内部结构来实现变体。
  • 不让暗色模式只靠反色;状态色、边框、阴影、图表和图片都要重新检查。

Expected Output

输出 Tailwind token 映射、主题配置边界、组件 variant 设计、class 复用策略、暗色模式和响应式验证结果。完成后样式应能被项目组件复用、可搜索、可测试,并与设计系统规则一致。

安全使用建议
Install only if you want Chinese-first guidance for Tailwind CSS design-system architecture. Expect it to influence frontend styling decisions around tokens, variants, dark mode, and class organization, but it does not itself run code or access sensitive data.
能力评估
Purpose & Capability
The artifacts consistently describe guidance for Tailwind token mapping, theme extension, component variants, class governance, responsive utilities, and dark mode.
Instruction Scope
The activation text is somewhat broad and the main instructions are in Chinese, which may affect when it is invoked or the language of assistance, but the instructions stay within frontend design-system work.
Install Mechanism
The package contains markdown and JSON skill metadata only; no npm lifecycle scripts, dependencies, binaries, or executable files were present.
Credentials
The skill does not request network access, credentials, local indexing, background workers, or privileged environment access; any project edits would be user-directed frontend implementation work.
Persistence & Privilege
No persistence mechanism, privilege escalation, session/profile access, or automatic runtime execution was found.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install fec-tailwind-design-system
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /fec-tailwind-design-system 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.5.0
Version 2.5.0 introduces detailed guidance and best practices for maintaining scalable Tailwind CSS-based design systems. - Added a comprehensive SKILL.md outlining scope, procedure, and constraints for Tailwind CSS design system usage. - Provides step-by-step instructions for token mapping, theme extension, variant design, utility class management, and dark mode strategies. - Clarifies guidelines for responsive utilities and class composition to encourage maintainability. - Defines required outputs for effective integration with product component libraries and design rules.
元数据
Slug fec-tailwind-design-system
版本 2.5.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Tailwind Design System 是什么?

Use when designing, implementing, or reviewing Tailwind CSS design systems, token mapping, theme extension, utility class governance, component variants, dar... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 26 次。

如何安装 Tailwind Design System?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install fec-tailwind-design-system」即可一键安装,无需额外配置。

Tailwind Design System 是免费的吗?

是的,Tailwind Design System 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Tailwind Design System 支持哪些平台?

Tailwind Design System 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Tailwind Design System?

由 Bovin Phang(@bovinphang)开发并维护,当前版本 v2.5.0。

💬 留言讨论