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 從公開儲存庫中收錄這些內容。

檢舉或申請下架