Tailwind CSS Component Builder skill for Claude and Codex
Delivers a production-ready Tailwind component for the framework you use: mobile-first classes, real hover and focus states, a dark variant, and markup that…
Install it once and Claude or Codex runs it for you. When your request matches, your AI loads the skill, asks for anything it is missing, and works through the template itself. Prefer to fill it in by hand? See the full prompt template.
Download the skill (.zip) · View SKILL.md
When it is used
Use when you need a responsive Tailwind component such as a navbar, hero, card, or modal written in your framework's syntax and ready to paste. Do not use for styling an existing component you already wrote, or setting up Tailwind and its config in a project. Related topics: coding, frontend, tailwind.
What it will ask you for
- Component type (choose one: Navigation bar, Hero section, Card, Modal, Form, Table, Sidebar, Footer, Pricing table, Testimonial, Other)
- What it should look like and contain (longer free text)
- Color scheme (choose one: Default Tailwind palette, Custom brand colors, Dark mode only, Light mode only, Follows system preference)
- Brand colors if custom (free text, e.g. "primary #1E40AF and accent #F59E0B")
- Mobile-first (choose one: Yes, No)
- Breakpoints to support (choose any: sm (640px), md (768px), lg (1024px), xl (1280px), 2xl (1536px))
- Add hover and focus states (choose one: Yes, No)
- Include dark mode variant (choose one: Yes, No)
- Add animation classes (choose one: Yes, No)
- Framework (choose one: Plain HTML, React JSX, Vue template, Svelte)
- Tailwind version (choose one: v4, v3, Not sure)
How it works
- Lay out the mobile base markup with flex or grid utilities and semantic tags; it renders correctly with no breakpoint prefixes.
- Add responsive classes only at the requested breakpoints, each one changing the layout for a stated reason.
- Attach hover and focus-visible states to every interactive element and a dark: variant to every color class when requested.
- Translate the markup into the chosen framework syntax and wire the minimal state so modals and menus work as pasted.
- List the notes: breakpoint changes, state included, and any class that differs between Tailwind versions.
What you get
One code block with the complete component in the chosen framework syntax, followed by a short notes list covering breakpoints, state, and version-specific classes.
What it watches out for
- Writing desktop classes as the base and overriding them downward, which fights Tailwind's mobile-first breakpoints.
- Using div with onClick for buttons and links, which loses keyboard access and focus styles.
- Shipping a modal or mobile menu with no state, so the pasted component cannot open or close.
- Using v3-only utilities such as bg-opacity-50 in a v4 project where they no longer compile.
How to install
Claude.ai and the Claude desktop app
- Download the skill .zip.
- Open Settings, then Capabilities, and find Skills.
- Choose Upload skill and select the .zip.
- Ask Claude for help with the task. It loads the skill when your request matches.
Claude Code
- Download the skill .zip.
- Unzip it into ~/.claude/skills/ (or .claude/skills/ inside a project).
- Start a new session. Claude Code loads the skill when your request matches.
Codex
- Download the skill .zip.
- Unzip it into ~/.agents/skills/ (or .agents/skills/ inside a project).
- Codex picks it up on its own. Type $ and the skill name to use it, or just ask for the task.
Cursor
- Download the Cursor rule (.mdc).
- Save it in .cursor/rules/ inside your project.
- Cursor's agent applies the rule when your request matches its description.
AGENTS.md (Codex, Cursor, and other coding agents)
- Copy the AGENTS.md section.
- Paste it into AGENTS.md at the root of your repository, creating the file if needed.
- Coding agents that read AGENTS.md follow it when your request fits.