tailwind-css ยท diff

git:20260811.0d91017 to git:20260915.d97e6dd

19 added, 40 removed. Audit B to B.

---
name: tailwind-css
user-invocable: false
description:
"Use for Tailwind v4 styling: add/fix classes, configure or migrate Tailwind, use tailwind-variants, or
tw-animate-css."
---
# Tailwind CSS
- Style within the installed Tailwind version, existing design tokens, component patterns, and product context.
-
- ## Authority and Defaults
-
- - Inspect package versions, CSS entrypoints, theme declarations, shared components, class-merging utilities, and nearby
- UI before editing. Those are authoritative.
- - Apply this catalog's preferences only where the project is silent. Read
- [references/coding-preferences.md](references/coding-preferences.md) for that fallback style.
- - Prefer existing semantic tokens and components over arbitrary values, new colors, or one-off utilities.
- - Preserve responsive states, interaction states, accessibility, and dark-mode conventions. Do not add decorative UI or
- redesign beyond the request.
- - Use CSS Modules only when the behavior is materially clearer than utilities; preserve any project-specific Tailwind
- reference mechanism.
+ 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
- - For v4 configuration, migration, removed utilities, variables, gradients, or CSS-first directives, read
- `references/tailwind-v4-rules.md` after confirming v4 is installed.
- - For version-specific behavior that may have changed, consult the current official documentation matching the installed
- version. Treat the local v4 reference as a decision checklist, not an exhaustive substitute for the docs.
- - For component variants or slots with `tailwind-variants`, read `references/tailwind-variants.md`.
- - For `tw-animate-css`, read `references/tw-animate-css.md`.
- - For Tailwind ESLint integration, read `references/eslint.md`.
-
- Do not apply v4 syntax to an older project merely because this skill targets v4. Use documentation matching the
- installed version, and migrate only when the request includes migration.
+ - Apply [coding preferences](references/coding-preferences.md) only where the project is silent.
+ - For v4 configuration, migration, directives, or generated classes, use [v4 rules](references/tailwind-v4-rules.md) and
+ the matching official docs.
+ - Read [tailwind-variants](references/tailwind-variants.md), [tw-animate-css](references/tw-animate-css.md), or
+ [ESLint](references/eslint.md) only when that integration exists locally or the request adds it.
- ## Workflow
+ Do not apply v4 syntax to an older installation. Preserve responsive, interaction, accessible, and dark-mode behavior;
+ do not redesign beyond the request.
- 1. Define the visual outcome and affected states from the request and product context.
- 2. Reuse local tokens, spacing, typography, breakpoints, components, and variant conventions. Make the smallest
- class/config change that achieves the outcome.
- 3. Keep class names statically detectable. When values select styles, map them to complete class strings and verify that
- Tailwind scans every relevant source location.
- 4. Run the repository's relevant lint/type/build checks.
- 5. Render the affected screen or component at representative viewport sizes and inspect it visually, including changed
- interaction and theme states. When JavaScript or a component library transforms markup, inspect the final DOM and
- verify that selectors and state behavior still match. Fix visible regressions before completion.
+ ## Completion
- Completion requires code checks plus rendered inspection; textual class review alone is insufficient. When source
- detection or generated class names changed, run the real Tailwind build and verify that the expected utilities are
- present.
+ Define the intended visual and state change, reuse local conventions, and keep classes statically discoverable. If
+ source registration or generated mappings change, run the real Tailwind build and confirm the expected utilities. Run
+ relevant repository checks, then inspect the changed UI at representative viewports, themes, and interaction states.
+ When markup is transformed by JavaScript or a component library, inspect the final DOM too. Textual class review alone
+ is insufficient.
- Finish with `### ๐ŸŽจ Tailwind โ€” โœ… styling updated` after edits or `### ๐ŸŽจ Tailwind โ€” ๐Ÿ”Ž inspected, no files written` for
- read-only work, a compact viewport/theme/changed-states/result table, and separate `### ๐Ÿงช Code checks` and
- `### ๐Ÿ”Ž Rendered inspection` evidence. Add `### โš ๏ธ Remaining` only when non-empty. Do not inject decorative emoji into
- source classes, product copy, or snapshots unless the request calls for it; keep commands and diagnostics exact.
+ Finish with `### ๐ŸŽจ Tailwind โ€” โœ… styling updated` (or `### ๐ŸŽจ Tailwind โ€” ๐Ÿ”Ž inspected, no files written`), a compact
+ viewport/theme/state/result table, and separate code-check and rendered-inspection evidence. Add `### โš ๏ธ Remaining` only
+ when needed; keep source UI copy and diagnostics undecorated.