Write Tailwind utility classes with proper responsive design, dark mode, and configuration.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install tailwindcss或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install tailwindcss⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/tailwindcss/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: Tailwind CSS description: Write Tailwind utility classes with proper responsive design, dark mode, and configuration. metadata: {"clawdbot":{"emoji":"🌊","requires":{"bins":["npx"]},"os":["linux","darwin","win32"]}} ---
content array in tailwind.config.js must include ALL files with classes—missing paths = missing styles in production"./src/*/.{js,jsx,ts,tsx,html}" covers nested directoriesbg-${color}-500 won't be detected—use complete class names or safelistmd: applies at medium AND abovesm:hidden md:block means hidden on small, visible on medium+—not "only on medium"extend.screens to add without replacingdark: prefix requires darkMode: 'class' in config—won't work with default media strategy if you need manual toggle or , not on individual componentsdark:bg-gray-900 only applies when ancestor has class="dark"darkMode: 'media' uses prefers-color-schemehover:, focus:, active: work as expectedgroup-hover: requires group class on parent—child reacts to parent hoverpeer-focus: requires peer class on sibling AND sibling must come first in DOMdark:hover:bg-gray-700 applies on hover in dark modebg-[#1da1f2] for one-off colors—brackets for any arbitrary valuew-[calc(100%-2rem)] for calc expressionsgrid-cols-[1fr_2fr_1fr] underscores for spaces in values[mask-type:alpha] for unsupported CSS properties@apply in component CSS loses responsive/state variants—@apply hover:bg-blue-500 doesn't work as expected@apply matters unlike HTML classes—later utilities override earlier@apply—easier to maintain, better tree-shaking@apply, keep it simple: base styles onlyextend adds to defaults: extend: { colors: { brand: '#xxx' } } keeps all existing colorscolors: { brand: '#xxx' } removes all default colorstheme() function in CSS: border-color: theme('colors.gray.200')! prefix forces important: !mt-4 generates margin-top: 1rem !importantimportant: true in config makes ALL utilities important—avoid, breaks third-party CSSimportant: '#app' scopes specificity to selector—better than global importantclass="px-4 px-6" last one wins in stylesheet, not in HTML—both get applied, cascade decidesoverflow-hidden with rounded-* on parent with absolute childrenh-screen doesn't account for mobile browser chrome—use h-dvh (dynamic viewport height)truncate needs width constraint or max-w-* to actually truncatesafelist with patterns like bg-*—defeats tree-shaking@layer components for reusable component styles—proper cascade order安装 Tailwind CSS 后,可以对 AI 说这些话来触发它
Help me get started with Tailwind CSS
Explains what Tailwind CSS does, walks through the setup, and runs a quick demo based on your current project
Use Tailwind CSS to write Tailwind utility classes with proper responsive design, dark ...
Invokes Tailwind CSS with the right parameters and returns the result directly in the conversation
What can I do with Tailwind CSS in my design & creative workflow?
Lists the top use cases for Tailwind CSS, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/tailwindcss/ 目录(个人级,所有项目可用),或 .claude/skills/tailwindcss/(项目级)。重启 AI 客户端后,用 /tailwindcss 主动调用,或让 AI 根据上下文自动发现并使用。
Tailwind CSS 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Tailwind CSS 可免费安装使用。请查阅仓库了解许可证信息。
Write Tailwind utility classes with proper responsive design, dark mode, and configuration.
Tailwind CSS 属于「Design & Creative」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my design & creative tasks using Tailwind CSS
Identifies repetitive steps in your workflow and sets up Tailwind CSS to handle them automatically