| name | tailwind-pro |
| version | 1.0.0 |
| description | Tailwind CSS v4 utility and design-system guidance, theme variables, responsive layouts, class composition, accessibility, component variants, and migration-aware styling. |
| author | skillregistry |
| license | MIT |
| agents | ["cursor","windsurf"] |
| categories | ["frontend"] |
| tags | ["tailwind","css","design-system"] |
Tailwind Pro
Use Tailwind as a utility API over design tokens. Prefer theme variables and reusable component variants over scattered arbitrary values.
Workflow
- Inspect the existing Tailwind version and styling conventions.
- Reuse design tokens before adding new colors, spacing, or radius values.
- In Tailwind v4, define new tokens with CSS
@theme variables.
- Use class composition helpers such as
clsx plus tailwind-merge for variants.
- Keep accessibility states visible: focus, disabled, hover, active, reduced motion.
- Verify responsive layouts at realistic viewport widths.
Tailwind v4 Theme Pattern
@import "tailwindcss";
@theme {
--color-surface: oklch(0.98 0.01 250);
--color-accent: oklch(0.62 0.18 250);
--radius-control: 0.375rem;
}
import { clsx } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: Array<string | false | null | undefined>) {
return twMerge(clsx(inputs));
}
Rules
- Prefer semantic component props over exposing raw class strings everywhere.
- Avoid arbitrary values when a token should exist.
- Keep focus-visible styles explicit.
- Use container/responsive utilities based on layout needs, not device assumptions.
- Do not hide content from assistive tech with CSS unless intentionally decorative.
- Avoid large
@apply layers for component systems; components are usually clearer.
Verification
pnpm build
pnpm test
Inspect desktop/mobile screenshots and interactive states after styling changes.
Resources
Principles
- Tokens first, utilities second.
- Responsive design is content-driven.
- State styles are part of the component.
- Class composition should be deterministic.
- Styling changes need visual verification.