tailwindcss-development by coollabsio/coolify
npx skills add https://github.com/coollabsio/coolify --skill tailwindcss-development在以下情况激活此技能:
使用 search-docs 获取详细的 Tailwind CSS v4 模式和文档。
corePlugins。在 Tailwind v4 中,配置采用 CSS 优先的方式,使用 @theme 指令——无需单独的 tailwind.config.js 文件:
在 Tailwind v4 中,使用常规的 CSS @import 语句导入 Tailwind,而不是 v3 中使用的 指令:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
@tailwindTailwind v4 移除了已弃用的工具类。请使用下面显示的替换项。不透明度值保持为数字。
| 已弃用 | 替换项 |
|---|---|
| bg-opacity-* | bg-black/* |
| text-opacity-* | text-black/* |
| border-opacity-* | border-black/* |
| divide-opacity-* | divide-black/* |
| ring-opacity-* | ring-black/* |
| placeholder-opacity-* | placeholder-black/* |
| flex-shrink-* | shrink-* |
| flex-grow-* | grow-* |
| overflow-ellipsis | text-ellipsis |
| decoration-slice | box-decoration-slice |
| decoration-clone | box-decoration-clone |
对于兄弟元素之间的间距,使用 gap 工具类代替边距:
如果现有的页面和组件支持深色模式,则新的页面和组件必须以相同的方式支持它,通常使用 dark: 变体:
@tailwind 指令而不是 @import "tailwindcss"tailwind.config.js 而不是 CSS @theme 指令每周安装量
161
代码仓库
GitHub 星标数
51.5K
首次出现
2026年2月12日
安全审计
安装于
opencode158
gemini-cli158
codex158
kimi-cli158
amp158
github-copilot158
Activate this skill when:
Use search-docs for detailed Tailwind CSS v4 patterns and documentation.
corePlugins is not supported in Tailwind v4.In Tailwind v4, configuration is CSS-first using the @theme directive — no separate tailwind.config.js file is needed:
In Tailwind v4, import Tailwind with a regular CSS @import statement instead of the @tailwind directives used in v3:
Tailwind v4 removed deprecated utilities. Use the replacements shown below. Opacity values remain numeric.
| Deprecated | Replacement |
|---|---|
| bg-opacity-* | bg-black/* |
| text-opacity-* | text-black/* |
| border-opacity-* | border-black/* |
| divide-opacity-* | divide-black/* |
| ring-opacity-* | ring-black/* |
| placeholder-opacity-* | placeholder-black/* |
| flex-shrink-* | shrink-* |
| flex-grow-* | grow-* |
| overflow-ellipsis | text-ellipsis |
| decoration-slice | box-decoration-slice |
| decoration-clone | box-decoration-clone |
Use gap utilities instead of margins for spacing between siblings:
If existing pages and components support dark mode, new pages and components must support it the same way, typically using the dark: variant:
@tailwind directives instead of @import "tailwindcss"tailwind.config.js instead of CSS @theme directiveWeekly Installs
161
Repository
GitHub Stars
51.5K
First Seen
Feb 12, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode158
gemini-cli158
codex158
kimi-cli158
amp158
github-copilot158
Android 整洁架构指南:模块化设计、依赖注入与数据层实现
1,200 周安装