/ma:tailwind-v4-shadcnfrom ma
Tailwind v4 + shadcn/ui setup (@theme inline + CSS variables). Fixes tw-animate-css, @apply, dark mode.
Ships in ma. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Apply this guidance only to an adopted Vite + React + Tailwind v4 stack. Use the scope already supplied, then inspect the package manifest, lockfile, package manager, existing Tailwind/shadcn configuration, CSS entry point, aliases, and working-tree state before proposing changes.
Use installed and locked dependency evidence first. When a dependency is missing, resolve project-compatible exact versions and state the purpose of each package. Do not use floating ranges, implicit tags, or an unpinned generator. A new dependency still needs the project's normal dependency decision unless the exact package and purpose were already approved.
Clean, additive file changes already inside a supplied implementation scope need no second approval; share their preview as progress and proceed. Ask only for an unresolved dependency, destructive removal or migration, dirty/special target, or other material effect.
Prepare one effect preview covering the exact dependency commands and file diffs, generator output, and any removal or migration. Preserve compatible existing config and user changes; migrate or remove it only after an exact usage check, verified replacement or proof that it is unused, and approved preview. If a generator has no trustworthy preview, run the exact resolved CLI against a disposable copy and present its diff; do not experiment on the project. Execute only the approved unchanged batch after revalidating its files and dependency facts; the supplied implementation request approves ordinary in-scope edits.
For a CSS-first setup, the planned result normally includes
vite.config.ts with plugins: [react(), tailwindcss()] and
components.json with
"tailwind": { "config": "", "css": "src/index.css", "baseColor": "slate", "cssVariables": true }.
src/index.css:
@import "tailwindcss";
:root { --background: hsl(0 0% 100%); /* ... */ }
.dark { --background: hsl(222.2 84% 4.9%); /* ... */ }
@theme inline { --color-background: var(--background); /* map all */ }
@layer base { body { background-color: var(--background); color: var(--foreground); } } /* NO hsl() wrapper here! */
Add the import and an exact compatible package only when selected output
requires it. If selected output does not import tw-animate-css, do not add its
import or package.
Dark mode requires ThemeProvider wrapped around App and toggles .dark on <html>.
:root colors in hsl(). Map semantic tokens via @theme inline. Use @tailwindcss/vite for this Vite integration. Preserve compatible JavaScript configuration explicitly loaded with @config. Use ordinary custom CSS or supported @apply where either is clearer than markup utilities.tailwind.config.*. Double-wrap hsl(var(--bg)). Add both Vite and PostCSS processing paths without a project-specific reason. Use dark: variants for semantic colors already driven by variables.| Error | Fix |
|---|---|
tw-animate-css missing | Confirm the import is required, then add a project-compatible exact version to the dependency preview. Do not substitute tailwindcss-animate. |
| Colors not applying | Map variable in @theme inline { --color-primary: var(--primary); } |
| Dark mode static | Add <ThemeProvider> to main.tsx. |
| Conflicting base rules | Multiple @layer base blocks are valid; reconcile duplicate selectors or contradictory declarations while preserving cascade order. |
| Build fails on config | Inspect how the config is consumed; migrate or remove it only in the approved file preview. |
| Multi-theme dark mode fails | Don't use @theme inline for multi-theme (data-theme="blue"). Use @theme + @layer theme. |
@apply reports an unknown utility | Verify the utility exists and its theme is in scope; use @reference in separately processed CSS modules or component styles. |
| Theme variables have unexpected precedence | Inspect the project's cascade and layer order; keep this baseline's :root tokens at document root. |
oklch(0.7 0.15 250) for modern colors. Fallbacks automatically generated.@container, @md:), Line Clamp (line-clamp-3).@plugin "@tailwindcss/typography"; (not @import). If prose support is required, plan an exact compatible @tailwindcss/typography version and purpose.ring is 1px now (was 3px).@tailwindcss/upgrade output before applying it. Default element styles (h1, ul) are not supplied by Preflight—use the Typography plugin or ordinary custom base styles when required. For this Vite workflow, prefer the Vite plugin; PostCSS remains a supported integration for projects that adopt it.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
43 skills in this plugin
/adversarial-reviewIndependently challenge elevated or significant architecture, security, data, migration, permission, deployment, or production changes. Use after a primary or deep review, or when explicitly requested; routine changes do not require it./architecture-reviewReview code or plans when a change affects component boundaries, dependencies, contracts, data ownership, layering, or adopted project architecture decisions./build-start-scriptsStandards and patterns for building reliable local dev startup scripts (serve.sh, start.sh). Use this skill when creating, modifying, or reviewing any shell script that boots Docker containers, Laravel Sail, Nuxt dev servers, or background services. Also use when the user mentions "serve script", "startup script", "docker compose up", "sail up", or asks to fix orphaned containers, port conflicts, or flaky local environments. Proactively suggest when you see startup-related issues in scripts being edited./code-review-excellenceGuide specific, actionable, evidence-backed code review feedback without style noise. Use as the method layer inside a multi-angle review or when improving review quality./compoundAssess solved problems for reusable project knowledge and, when authorized, capture only high-relevance learnings. Use after substantial troubleshooting or tricky implementation, when the user asks to document a solution or accepts a proposed durable handoff, or during an explicit wrap./contribute-backCompare local agent-distribution improvements with a named upstream repository and prepare a safe contribution proposal. Use only when the user asks to contribute, upstream, or open a pull request; publication requires a separate exact batch approval.npx claudepluginhub marcus-friction/agents --plugin ma