/harness-claude:css-tailwind-patternfrom harness-claude
Applies Tailwind CSS utility-first patterns for consistent, maintainable component styling. Covers utility grouping, component abstraction over @apply, design tokens vs arbitrary values, and Tailwind v3/v4 configuration.
Claude never picks this skill on its own
Its frontmatter has no description. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /harness-claude:css-tailwind-pattern still runs it.
What the skill costs in Claude's context, stage by stage
No description Claude Code can read, so Claude's list leaves it out: only you can start it.
SKILL.md joins the conversation and stays.
Apply Tailwind CSS utility-first patterns for consistent, maintainable component styling
@apply directives. Components are the abstraction layer.w-[calc(100%-2rem)], bg-[#1a1a2e].@apply only in base layer styles (global resets, typography defaults), not in component styles.// Good — utilities grouped by concern
function Card({ title, children }: { title: string; children: React.ReactNode }) {
return (
<div
className="
flex flex-col /* layout */
rounded-lg /* shape */
p-6 gap-4 /* spacing */
bg-white shadow-md /* visual */
border border-gray-200 /* border */
hover:shadow-lg /* interaction */
transition-shadow /* animation */
"
>
<h3 className="text-lg font-semibold text-gray-900">{title}</h3>
<div className="text-sm text-gray-600">{children}</div>
</div>
);
}
// Component is the abstraction — reuse Card, not @apply
function FeatureCard({ feature }: { feature: Feature }) {
return (
<Card title={feature.name}>
<p>{feature.description}</p>
<Badge variant={feature.status}>{feature.status}</Badge>
</Card>
);
}
// Using Tailwind's design tokens vs arbitrary values
// Prefer tokens
<div className="p-4 text-sm text-gray-700 rounded-md" />
// Use arbitrary only when tokens don't cover it
<div className="p-[18px] text-[13px] text-[#334155] rounded-[5px]" />
Why utility-first works: Every utility maps to one CSS property. You never need to name things. You never wonder where a style comes from — it is right on the element. Dead code elimination is automatic (unused utilities are purged).
Tailwind v4 changes: Tailwind v4 uses CSS-first configuration instead of tailwind.config.js. Theme values are defined in CSS with @theme:
@import 'tailwindcss';
@theme {
--color-primary: #3b82f6;
--font-sans: 'Inter', sans-serif;
--breakpoint-3xl: 1920px;
}
Tailwind v3 config:
// tailwind.config.ts
import type { Config } from 'tailwindcss';
const config: Config = {
content: ['./src/**/*.{ts,tsx}'],
theme: {
extend: {
colors: {
primary: { 50: '#eff6ff', 500: '#3b82f6', 900: '#1e3a8a' },
},
spacing: { '18': '4.5rem' },
},
},
plugins: [],
};
export default config;
When to use @apply: Almost never in components. Use it for:
body, h1-h6, a tags in a global stylesheetPerformance: Tailwind's output is a single CSS file with only the utilities you use. Typical production size: 10-30 KB gzipped. No runtime cost.
https://tailwindcss.com/docs/utility-first
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
tailwind-css, utility-first, component-styling, css-patterns
npx claudepluginhub intense-visions/harness-engineering --plugin harness-claudeRead when SKILL.md points to them.
793 skills in this plugin
/a11y-aria-patternsARIA Patterns> Apply ARIA roles, states, and properties correctly to enhance assistive technology support for custom widgets/a11y-color-contrastColor Contrast and Color Independence> Ensure sufficient color contrast ratios and never use color as the sole means of conveying information/a11y-form-patternsAccessible Form Patterns> Build accessible forms with proper labeling, grouped controls, inline validation, and clear error communicationOther plugins' skills for the same job