Tailwind CSS framework patterns including utility-first styling, configuration, and version 4.x+ usage. Use when working with Tailwind CSS v4+ for styling React applications.
This skill provides guidance for working with Tailwind CSS v4.x+ in React applications. It ensures consistent usage of the latest Tailwind CSS features and best practices.
This skill is designed to help with Tailwind CSS development following the project's established conventions. It enforces the use of Tailwind CSS v4.x+ and ensures consistent styling practices across all React projects.
tailwind.config.js or tailwind.config.ts for configurationcontent paths to include all relevant filesUtility-First Approach: Use Tailwind's utility classes directly in your JSX rather than creating custom CSS classes.
Configuration Consistency:
content paths that include all relevant source filestheme extensions consistently across projectsDark Mode Support:
dark: prefix for dark mode variantsdarkMode strategy in tailwind.config.jsPerformance Optimization:
purge or content configuration to remove unused stylesVersion Compatibility:
// tailwind.config.js
module.exports = {
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {},
},
plugins: [],
darkMode: "class", // or 'media'
};
@import "tailwindcss";
@import "./colors.css";
@variant dark (&:where(.dark, .dark *));
@theme {
--font-family-sans: "Inter";
}
@theme {
/* Primary colors */
--color-primary: #ffffff;
--color-primary-foreground: #111827;
/* Secondary colors */
--color-secondary: #f3f4f6;
--color-secondary-foreground: #4b5563;
/* Button colors */
--color-button-primary: #3b82f6;
--color-button-primary-hover: #2563eb;
--color-button-primary-active: #1d4ed8;
--color-button-secondary: #e5e7eb;
--color-button-secondary-hover: #d1d5db;
--color-button-secondary-active: #9ca3af;
}
.dark {
/* Primary colors */
--color-primary: #111827;
--color-primary-foreground: #ffffff;
/* Secondary colors */
--color-secondary: #1f2937;
--color-secondary-foreground: #d1d5db;
/* Button colors for dark mode */
--color-button-secondary: #374151;
--color-button-secondary-hover: #4b5563;
--color-button-secondary-active: #6b7280;
}
If you encounter issues with Tailwind CSS v4.x+:
yarntailwind.config.js is correctly configuredcontent paths include all relevant source filesSearch for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer