Tailwindcss style

From bidewio/better-openclaw · View interactive version

Tailwindcss style is an AI agent skill from the GitHub repository bidewio/better-openclaw. Ship beautiful sites fast with Tailwind CSS — responsive/state variants, safe dynamic class patterns, component extraction, and conventions for maintainable utility-first styling.

How to use this skill

Skill file

Tailwind CSS — Utility-First Styling Skill

When to use

Key concepts

Best practices

  1. Don't fight Tailwind: Use utilities, not @apply everywhere
  2. Extract components, not classes: Create React/Vue components, not @apply blocks
  3. Safe dynamic classes: Never concatenate class names dynamically — use full class strings
  4. Consistent spacing: Use the default scale (4, 8, 12, 16...) for rhythm
  5. Responsive mobile-first: Start with base, add md: and lg: overrides

Common patterns

<!-- Responsive card -->
<div class="rounded-xl bg-white p-6 shadow-lg dark:bg-gray-800
            sm:flex sm:items-center sm:gap-6">
  <img class="h-24 w-24 rounded-full object-cover" src="..." alt="..." />
  <div class="mt-4 sm:mt-0">
    <h3 class="text-lg font-semibold text-gray-900 dark:text-white">Title</h3>
    <p class="text-sm text-gray-500 dark:text-gray-400">Description</p>
  </div>
</div>

Pitfalls

Tips for AI Agents

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.