Skip to main content
ZICQ

Skills ZICQ category:Design tailwind-css-patterns

Tailwind Css Patterns

Provides comprehensive Tailwind CSS utility-first styling patterns including responsive design, layout utilities, flexbox, grid, spacing, typography, colors, and modern CSS best practices. Use when styling React/Vue/Svelte components, building responsive layouts, implementing design systems, or optimizing CSS workflow.

18023 installs

Official URL:skills.sh

What this skill does

Intro in this page language first. The official description stays in its original wording; we do not rewrite SKILL.md.

What it does

Provides comprehensive Tailwind CSS utility-first styling patterns including responsive design, layout utilities, flexbox, grid, spacing, typography, colors, and modern CSS best practices

When to use it

- Styling React/Vue/Svelte components

How agents load it

Per Agent Skills progressive disclosure: name and description load at startup (~100 tokens); the full SKILL.md body loads when the skill activates; scripts/, references/, and assets/ load only as needed. This file's sections: Tailwind CSS Development Patterns; Overview; When to Use; Quick Reference; Responsive Breakpoints; Common Patterns. It includes spec-recommended sections: input/output examples.

File analysis

File analysis: besides SKILL.md, the body references references/layout-patterns.md, references/component-patterns.md, references/responsive-design.md, references/animations.md, references/performance.md, references/accessibility.md. Those resources load on demand.

Tailwind CSS Development PatternsOverviewWhen to UseQuick ReferenceResponsive BreakpointsCommon PatternsInstructionsExamplesResponsive Card ComponentDark Mode ToggleForm InputBest Practices

· allowed-tools:Read, Write, Edit, Glob, Grep, Bash

Source category:skills.sh agent-skill

SKILL.md & Agent activation

Official spec ↗
name
tailwind-css-patterns
description
Provides comprehensive Tailwind CSS utility-first styling patterns including responsive design, layout utilities, flexbox, grid, spacing, typography, colors, and modern CSS best practices. Use when styling React/Vue/Svelte components, building responsive layouts, implementing design systems, or optimizing CSS workflow.
allowed-tools
Read, Write, Edit, Glob, Grep, BashExperimental field; support depends on the client and does not grant permissions by itself.
  1. DiscoverThe client exposes names and descriptions to the agent.
  2. ActivateYour request or the task context selects the skill and loads its instructions.
  3. Load resourcesReferenced scripts, documentation and assets are used when needed.
Files referenced by the instructions · 6
  • references/layout-patterns.md
  • references/component-patterns.md
  • references/responsive-design.md
  • references/animations.md
  • references/performance.md
  • references/accessibility.md

These paths are extracted from the text. Check the upstream package to verify the files exist.

Invocation syntax and available tools depend on your Agent client. Client integration guide ↗

Install this skill

Skills CLI ↗

Choose the target agent and installation scope, keep referenced package files, then verify the skill appears in the client's catalog.

This skill references supporting files. Retrieve the complete directory from the source; copying SKILL.md alone may leave missing dependencies.

Ask your Agent to install

Copy these instructions to a compatible agent and confirm the target directory matches your client.

Install the agent skill "tailwind-css-patterns" into my project. The full SKILL.md and official description are at https://zicq.com/en/skills/skl-c4e8ad2e5bbc5a54-Tailwind-Css-Patterns.html
Save it as .cursor/skills/tailwind-css-patterns/SKILL.md or .claude/skills/tailwind-css-patterns/SKILL.md and keep the frontmatter name and description exactly as-is.
This skill also ships scripts/, references/, or assets/ — fetch the whole folder from https://github.com/giuseppe-trisciuoglio/developer-kit instead of creating only a SKILL.md.

Full package on GitHub ↗

Install from the terminal · Skills CLI

Requires Node.js and npx. First inspect the repository's skill list to confirm the name.

npx skills add 'https://github.com/giuseppe-trisciuoglio/developer-kit' --list

npx skills add 'https://github.com/giuseppe-trisciuoglio/developer-kit' --skill 'tailwind-css-patterns'

The CLI lets you choose the agent interactively. The default scope is the project; use -g for user scope. Confirm package availability with the discovery command, then use npx skills list to inspect installed skills.

Readable layout
--- name: tailwind-css-patterns description: Provides comprehensive Tailwind CSS utility-first styling patterns including responsive design, layout utilities, flexbox, grid, spacing, typography, colors, and modern CSS best practices. Use when styling React/Vue/Svelte components, building responsive layouts, implementing design systems, or optimizing CSS workflow. allowed-tools: Read, Write, Edit, Glob, Grep, Bash --- # Tailwind CSS Development Patterns Expert guide for building modern, responsive user interfaces with Tailwind CSS utility-first framework. Covers v4.1+ features including CSS-first configuration, custom utilities, and enhanced developer experience. ## Overview Provides actionable patterns for responsive, accessible UIs with Tailwind CSS v4.1+. Covers utility composition, dark mode, component patterns, and performance optimization. ## When to Use - Styling React/Vue/Svelte components - Building responsive layouts and grids - Implementing design systems - Adding dark mode support - Optimizing CSS workflow ## Quick Reference ### Responsive Breakpoints | Prefix | Min Width | Description | |--------|-----------|-------------| | `sm:` | 640px | Small screens | | `md:` | 768px | Tablets | | `lg:` | 1024px | Desktops | | `xl:` | 1280px | Large screens | | `2xl:` | 1536px | Extra large | ### Common Patterns ```html
Content

Title

Description

``` ## Instructions 1. **Start Mobile-First**: Write base styles for mobile, add responsive prefixes (`sm:`, `md:`, `lg:`) for larger screens 2. **Use Design Tokens**: Leverage Tailwind's spacing, color, and typography scales 3. **Compose Utilities**: Combine multiple utilities for complex styles 4. **Extract Components**: Create reusable component classes for repeated patterns 5. **Configure Theme**: Customize design tokens in `tailwind.config.js` or using `@theme` 6. **Verify Changes**: Test at each breakpoint using DevTools responsive mode. Check for visual regressions and accessibility issues before committing. ## Examples ### Responsive Card Component ```tsx function ProductCard({ product }: { product: Product }) { return (

{product.name}

Add to Cart
); } ``` ### Dark Mode Toggle ```html

Title

``` ### Form Input ```html ``` ## Best Practices 1. **Consistent Spacing**: Use Tailwind's spacing scale (4, 8, 12, 16, etc.) 2. **Color Palette**: Stick to Tailwind's color system for consistency 3. **Component Extraction**: Extract repeated patterns into reusable components 4. **Utility Composition**: Prefer utility classes over `@apply` for maintainability 5. **Semantic HTML**: Use proper HTML elements with Tailwind classes 6. **Performance**: Ensure content paths include all template files for optimal purging 7. **Accessibility**: Include focus styles, ARIA labels, and respect user preferences (reduced-motion) ## Troubleshooting ### Classes Not Applying - **Check content paths**: Ensure all template files are included in `content: []` in config - **Verify build**: Run `npm run build` to regenerate purged CSS - **Dev mode**: Use `npx tailwindcss -o` with `--watch` flag for live updates ### Responsive Styles Not Working - **Order matters**: Responsive prefixes must come before non-responsive (e.g., `md:flex` not `flex md:flex`) - **Check breakpoint values**: Verify breakpoints match your design requirements - **DevTools**: Use browser DevTools responsive mode to test at each breakpoint ### Dark Mode Issues - **Verify config**: Ensure `darkMode: 'class'` or `'media'` is set correctly - **Toggle implementation**: Use `document.documentElement.classList.toggle('dark')` for class strategy - **Initial flash**: Add `dark` class to `` before body renders ## Constraints and Warnings - **Class Proliferation**: Long class strings reduce readability; extract into components - **Content Paths**: Misconfigured paths cause classes to be purged in production - **Arbitrary Values**: Use sparingly; prefer design tokens for consistency - **Specificity Issues**: Avoid `@apply` with complex selectors - **Dark Mode**: Requires correct configuration (`class` or `media` strategy) - **Browser Support**: Check Tailwind docs for compatibility notes ## References - **[references/layout-patterns.md](references/layout-patterns.md)** — Flexbox, grid, spacing, typography, colors - **[references/component-patterns.md](references/component-patterns.md)** — Cards, navigation, forms, modals, React patterns - **[references/responsive-design.md](references/responsive-design.md)** — Responsive patterns, dark mode, container queries - **[references/animations.md](references/animations.md)** — Transitions, transforms, built-in animations, motion preferences - **[references/performance.md](references/performance.md)** — Bundle optimization, CSS optimization, production builds - **[references/accessibility.md](references/accessibility.md)** — Focus management, screen readers, color contrast, ARIA - **[references/configuration.md](references/configuration.md)** — CSS-first config, JavaScript config, plugins, presets - **[references/reference.md](references/reference.md)** — Additional reference materials ## External Resources - [Tailwind CSS Docs](https://tailwindcss.com/docs) - [Tailwind UI](https://tailwindui.com) - [Tailwind Play](https://play.tailwindcss.com)

Related skills

Design

Automation Workflows

Design and implement automation workflows to save time and scale operations as a solopreneur. Use when identifying repetitive tasks to autom…

Design

Ui Ux Pro Max

UI/UX design intelligence and implementation guidance for building polished interfaces. Use when the user asks for UI design, UX flows, info…

Design

Frontend Design

Expert frontend design guidelines for creating beautiful, modern UIs. Use when building landing pages, dashboards, or any user interface.

Design

N8n Workflow Automation

Designs and outputs n8n workflow JSON with robust triggers, idempotency, error handling, logging, retries, and human-in-the-loop review queu…