Apply Tailwind CSS utility-first styling, responsive design, and theming. Use when styling with Tailwind, building UI with utility classes, configuring tailwind.config, or when the user mentions Tailwind.
Overall
score
96%
Does it follow best practices?
Validation for skill structure
Apply this skill when writing or refactoring styles with Tailwind CSS: components, pages, layout, responsive behavior, dark mode, or Tailwind config.
bg-primary, text-sm, rounded-lg) instead of arbitrary values unless the design explicitly requires a one-off value.sm:, md:, lg:, xl:, 2xl:) for breakpoint-specific styles. Mobile-first: base classes for smallest viewport, then override up.@apply only for repeated patterns (e.g. a shared button variant) and keep @apply lists short.flex, flex-col / flex-row, items-center, justify-between, gap-4, flex-1, flex-wrap.grid, grid-cols-2, grid-cols-3, gap-4, col-span-2, place-items-center.p-4, px-6, py-2, m-auto, space-x-4 / space-y-2 (for gaps between siblings).text-xs through text-5xl, text-base (default).font-normal, font-medium, font-semibold, font-bold.text-gray-900, text-white, text-inherit. Prefer semantic tokens if defined in theme.leading-tight, leading-normal, leading-relaxed.bg-white, bg-gray-100, bg-transparent.border, border-gray-200, rounded-md, rounded-full.opacity-50, bg-black/10 (arbitrary opacity).hover:bg-gray-100, focus:ring-2, focus:outline-none, focus-visible:ring-2.disabled:opacity-50, disabled:pointer-events-none.transition, transition-colors, duration-200.dark: prefix when dark mode is enabled (e.g. dark:bg-gray-800, dark:text-gray-200).w-[137px], top-[calc(100%-2rem)], bg-[#1a1a2e].tailwind.config with named tokens for repeated values.theme.extend (e.g. colors, spacing, fontFamily, borderRadius) so they’re available as utilities.content in tailwind.config includes all template/component paths so classes are generated.@tailwindcss/forms, @tailwindcss/typography) when needed; document any custom plugins.@apply chains; prefer utilities in markup or small, focused components.w-4 h-4 instead of style={{ width: 16, height: 16 }} when possible).// Card with responsive layout and hover
<div className="flex flex-col rounded-lg border border-gray-200 bg-white p-4 shadow-sm transition-shadow hover:shadow-md dark:border-gray-700 dark:bg-gray-800">
<h2 className="text-lg font-semibold text-gray-900 dark:text-white">Title</h2>
<p className="mt-2 text-sm text-gray-600 dark:text-gray-300">Description.</p>
<div className="mt-4 flex gap-2">
<button className="rounded-md bg-indigo-600 px-3 py-1.5 text-sm font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2">
Primary
</button>
<button className="rounded-md border border-gray-300 bg-white px-3 py-1.5 text-sm font-medium text-gray-700 hover:bg-gray-50 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-200 dark:hover:bg-gray-700">
Secondary
</button>
</div>
</div>If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.