·tailwind-v4-shadcn
</>

tailwind-v4-shadcn

jezweb/claude-skills

使用 @theme 内联模式和 CSS 变量架构通过 shadcn/ui 设置 Tailwind v4。四步模式:CSS 变量、Tailwind 映射、基本样式、自动深色模式。防止 8 个记录错误。 使用 Tailwind v4 初始化 React 项目,或修复不起作用的颜色、tw-animate-css 错误、@theme 内联暗模式冲突、@apply 中断、v3 迁移问题时使用。

2.6K安装·129热度·@jezweb

安装

$npx skills add https://github.com/jezweb/claude-skills --skill tailwind-v4-shadcn

SKILL.md

Production-tested: WordPress Auditor (https://wordpress-auditor.webfonts.workers.dev) Last Updated: 2026-01-20 Versions: tailwindcss@4.1.18, @tailwindcss/vite@4.1.18 Status: Production Ready ✅

Critical: Define at root level (NOT inside @layer base). Use hsl() wrapper.

Why: Generates utility classes (bg-background, text-primary). Without this, utilities won't exist.

使用 @theme 内联模式和 CSS 变量架构通过 shadcn/ui 设置 Tailwind v4。四步模式:CSS 变量、Tailwind 映射、基本样式、自动深色模式。防止 8 个记录错误。 使用 Tailwind v4 初始化 React 项目,或修复不起作用的颜色、tw-animate-css 错误、@theme 内联暗模式冲突、@apply 中断、v3 迁移问题时使用。 来源:jezweb/claude-skills。

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/jezweb/claude-skills --skill tailwind-v4-shadcn
分类
</>开发工具
认证
收录时间
2026-02-01
更新时间
2026-02-18

快速解答

什么是 tailwind-v4-shadcn?

使用 @theme 内联模式和 CSS 变量架构通过 shadcn/ui 设置 Tailwind v4。四步模式:CSS 变量、Tailwind 映射、基本样式、自动深色模式。防止 8 个记录错误。 使用 Tailwind v4 初始化 React 项目,或修复不起作用的颜色、tw-animate-css 错误、@theme 内联暗模式冲突、@apply 中断、v3 迁移问题时使用。 来源:jezweb/claude-skills。

如何安装 tailwind-v4-shadcn?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/jezweb/claude-skills --skill tailwind-v4-shadcn 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/jezweb/claude-skills