Agent skill Frontend
Tailwind CSS
Build or refine reusable components for a web interface.
Install the skill
Run the command from your project root with Node.js and npm.
npx skills@latest add https://github.com/mindrally/skills/tree/main/tailwindcss --skill tailwindcss --agent claude-code --yesCheck this file in your project.claude/skills/tailwindcss/SKILL.md
Other ways to install
Choose an assistant interactively
npx skills@latest add https://github.com/mindrally/skills/tree/main/tailwindcss --skill tailwindcssSelect your assistant and choose the project installation scope.
Official instructions
The tested Skills CLI 1.10.0 requires Node.js 22.20 or later. Use the project's existing Tailwind major, CSS entry and theme mechanism. The same toolbar pattern passed on 3.4.19 and 4.3.5 with their own configuration styles. Check the publisher of the loaded Skill when more than one uses the `tailwindcss` name.
View operation manualWhat this skill helps with
- Build or refine reusable components for a web interface.
Good for
- Component implementation
- Skill name
- tailwindcss
- Scenario
- Build a utility-first filter bar
- Deliverable
- A filter component with literal classes and a checked responsive, theme-aware preview.
- Skill name
tailwindcss- Repository
mindrally/skills
Define a styling task with a visible result
A request with an unclear outcome
Put the filter bar in @apply and upgrade Tailwind if a class is missing.
The existing build, source detection or dark selector may explain the symptom.
A workflow with observable results
- Locate the active Tailwind integration
- Compose styles directly in the component
- Check themes and breakpoint states in the browser
Tailwind CSS operation manual
Compose the toolbar in the existing component while keeping state and theme classes readable.
Replace the bracketed details with your own project and target.
Locate the active Tailwind integration
Read the actual major, stylesheet and dark-mode strategy.
Prompt · Step 1Use Mindrally's tailwindcss skill for [project filter bar]. Read the lockfile, stylesheet entry, build scripts and theme switcher. Identify the compiler major, scanned paths and how dark: is activated. Preserve this setup and define which controls stack on mobile and where the toolbar should become a row.Compose styles directly in the component
Use the project utilities for layout, state and focus.
Prompt · Step 2Use Mindrally's tailwindcss skill to implement [approved filter bar]. Use unprefixed stacked controls, a row at [content breakpoint], the project's spacing scale and complete literal classes for selection. Use native controls and focus-visible styling. Extract shared markup only for real repetition and keep this component's styles in utility classes without adding @apply.Check themes and breakpoint states in the browser
Compile the app and walk the same task at two widths.
- The existing build emits each filter state utility.
- Controls still work at both widths and themes.
Prompt · Step 3Use Mindrally's tailwindcss skill to verify [local filter route]. Run the existing CSS build and confirm it emitted the responsive and state classes. Try [narrow width] and [wide width] with the longest label, switch theme with the existing control, and use the keyboard to reach and activate a filter. Report the actual layout and focus behavior.
Find the relevant rule
Point the assistant to the installed Skill and a specific issue.
A conditional class is missingReference
- Command or reference
SKILL.md · Integration Patterns- Examples
- Map each state to complete class strings in a scanned source.
The dark variant never activatesReference
- Command or reference
SKILL.md · Usage Guidelines- Examples
- Inspect the project's existing dark trigger first.
Tailwind CSS troubleshooting
Do I switch to v4 for this component?
Use the active major. The fixture used the v3 darkMode setting and v4 @custom-variant for the same class-driven toggle.