Tailwind Css

paulrberg/agent-skills/skills/tailwind-css

作者 paulrberg7f1d9025caf7无许可证97 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

Use for Tailwind v4 styling: add/fix classes, configure or migrate Tailwind, use tailwind-variants, or tw-animate-css.

AI 生成的概览

指导 Tailwind CSS v4 样式工作:添加或修复类名、配置、迁移以及变体。

功能
该技能提供使用 Tailwind CSS(主要是 v4)的说明。它会把代理引导到若干参考文件,涵盖编码偏好、v4 规则、tailwind-variants、tw-animate-css 和 ESLint,并要求遵循已安装的版本以及仓库现有的令牌、组件和约定。它还规定了完成标准,包括运行真实的 Tailwind 构建并检查渲染结果中发生变化的状态。
适用场景
适用于添加或修复 Tailwind 类名、配置或迁移 Tailwind,或使用 tailwind-variants 与 tw-animate-css 的场景。它面向需要尊重项目现有设置和约定的样式任务。
运行要求
无脚本,仅为说明文档。它依赖技能自带的参考文档,并在验证时依赖项目的 Tailwind 构建和仓库检查。

Tailwind CSS

Follow the installed Tailwind version and the repository's tokens, components, class-merging utility, CSS entrypoint, and nearby UI. They take precedence over this skill. Do not add packages, change integration, or migrate versions without a request and local need.

Routing

  • Apply coding preferences [blocked] only where the project is silent.
  • For v4 configuration, migration, directives, or generated classes, use v4 rules [blocked] and the matching official docs.
  • Read tailwind-variants [blocked], tw-animate-css [blocked], or ESLint [blocked] only when that integration exists locally or the request adds it.

Do not apply v4 syntax to an older installation. Preserve responsive, interaction, accessible, and dark-mode behavior. Do not redesign beyond the request.

Completion

Define the intended visual and state change. Reuse local conventions. Keep classes statically discoverable.

If source registration or generated mappings change, run the real Tailwind build and confirm the expected utilities. Run required repository checks and inspect the changed states at one representative viewport for a small style edit. Broaden to narrow/wide viewports, themes, and interactions when responsive rules or shared styling changed. When markup is transformed by JavaScript or a component library, inspect the final DOM too. Textual class review alone is insufficient. Repeat checks only when subsequent edits affect their evidence.

Finish with ### 🎨 Tailwind — ✅ styling updated (or ### 🎨 Tailwind — 🔎 inspected, no files written) and code-check and rendered-inspection evidence. Use prose for one inspected state and a compact table for several. Add ### ⚠️ Remaining only when needed. Keep source UI copy and diagnostics undecorated.

来源与署名

来源:paulrberg/agent-skills位于skills/tailwind-css提交7f1d902

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架