Tailwind design system v4

From bidewio/better-openclaw · View interactive version

Tailwind design system v4 is an AI agent skill from the GitHub repository bidewio/better-openclaw. Build scalable, responsive, and accessible design systems with Tailwind CSS v4 — design tokens, theme configuration, reusable React UI components, and migration from v3.

How to use this skill

Skill file

Tailwind Design System v4 Skill

When to use

What's new in v4

Theme configuration (v4)

@import "tailwindcss";

@theme {
  --color-primary-50: #eff6ff;
  --color-primary-500: #3b82f6;
  --color-primary-900: #1e3a5f;
  --font-sans: "Inter", system-ui, sans-serif;
  --spacing-gutter: 1.5rem;
  --radius-card: 0.75rem;
}

Component pattern (React + v4)

function Button({ variant = "primary", size = "md", children, ...props }) {
  const base = "inline-flex items-center justify-center font-medium rounded-card transition-colors";
  const variants = {
    primary: "bg-primary-500 text-white hover:bg-primary-600",
    secondary: "bg-gray-100 text-gray-900 hover:bg-gray-200",
    ghost: "text-gray-600 hover:bg-gray-100",
  };
  const sizes = { sm: "px-3 py-1.5 text-sm", md: "px-4 py-2 text-base", lg: "px-6 py-3 text-lg" };
  return <button className={`${base} ${variants[variant]} ${sizes[size]}`} {...props}>{children}</button>;
}

Migration from v3

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.