style-tailwind

📁 iurygdeoliveira/labsis-kit 📅 Jan 24, 2026
3
总安装量
3
周安装量
#58782
全站排名
安装命令
npx skills add https://github.com/iurygdeoliveira/labsis-kit --skill style-tailwind

Agent 安装分布

claude-code 2
windsurf 1
trae 1
opencode 1
codex 1
antigravity 1

Skill 文档

Tailwind v4 Styling Skill

Use this skill whenever writing CSS or applying classes. Tailwind v4 behaves differently from v3 (No config js, dynamic values).

When to use this skill

  • When applying styles to Blade/Flux components.
  • When creating custom CSS files.
  • When configuring theme colors/fonts.

Workflow

1. Configuration (CSS-First)

Do NOT look for tailwind.config.js. Theme extensions happen in CSS:

@theme {
    --color-brand: oklch(0.72 0.11 178);
    --font-sans: "Inter", sans-serif;
}

2. Deprecated Utilities (DO NOT USE)

Deprecated Replacement
bg-opacity-50 bg-black/50
text-opacity-25 text-black/25
flex-grow grow
flex-shrink shrink

3. Dynamic Values

Tailwind v4 allows dynamic values without configuration:

  • Use w-[153px] freely.
  • Use bg-[#123456] freely.

4. Dark Mode

  • Unless specified otherwise, always include Dark Mode support.
  • Use dark: modifier: <div class="bg-white dark:bg-zinc-800">.
  • Colors: Prefer semantic names (bg-zinc-100) over absolute ones (bg-gray-100) for better dark mode adaptation.