Token导航 LogoToken导航TokenDH.com
前端设计只读github未标认证来源可访问clear审计通过

tailwind-cssTailwind CSS 样式

Agent Skill

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

总安装

13,164

周安装

670

GitHub Stars

2

下载量

8,952
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tailwind-css(Tailwind CSS 样式)
来源仓库:https://github.com/slanycukr/riot-api-project
仓库路径:skills/tailwind-css
安装命令:
npx skills add https://github.com/slanycukr/riot-api-project --skill 'Tailwind CSS'
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/slanycukr/riot-api-project --skill 'Tailwind CSS'

简介

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。

  • 适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名或辅助前后端联调。
  • 使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则。
  • 涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。
  • 安装前建议确认权限范围和维护状态,以及是否会触发联网或文件读写操作。

SKILL.md

Tailwind CSS

Quick Start

<!-- Basic card component -->
<div class="max-w-sm mx-auto bg-white rounded-xl shadow-md p-6">
  <h2 class="text-xl font-bold text-gray-800 mb-2">Card Title</h2>
  <p class="text-gray-600">Card content goes here</p>
  <button
    class="mt-4 bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"
  >
    Action
  </button>
</div>
// React component example
function Button({ variant = "primary", children, ...props }) {
  const baseClasses = "font-semibold py-2 px-4 rounded transition-colors";
  const variantClasses = {
    primary: "bg-blue-500 hover:bg-blue-700 text-white",
    secondary: "bg-gray-200 hover:bg-gray-300 text-gray-800",
  };

  return (
    <button className={`${baseClasses} ${variantClasses[variant]}`} {...props}>
      {children}
    </button>
  );
}

Common Patterns

Layout Systems

<!-- Flexbox centering -->
<div class="flex items-center justify-center min-h-screen">
  <div class="text-center">Centered content</div>
</div>

<!-- Grid layout -->
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
  <div class="bg-white p-6 rounded-lg shadow">Item 1</div>
  <div class="bg-white p-6 rounded-lg shadow">Item 2</div>
  <div class="bg-white p-6 rounded-lg shadow">Item 3</div>
</div>

<!-- Responsive container -->
<div class="container mx-auto px-4 sm:px-6 lg:px-8">
  <!-- Content -->
</div>

Responsive Design

<!-- Responsive text sizing -->
<h1 class="text-2xl md:text-3xl lg:text-4xl font-bold">Responsive Heading</h1>

<!-- Responsive spacing -->
<div class="py-4 sm:py-6 lg:py-8">
  <!-- Content with responsive padding -->
</div>

<!-- Mobile-first approach -->
<div class="w-full md:w-1/2 lg:w-1/3">
  <!-- Full width on mobile, half on tablet, third on desktop -->
</div>

Component Patterns

<!-- Navigation bar -->
<nav class="bg-white shadow-lg">
  <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
    <div class="flex justify-between h-16">
      <div class="flex items-center">
        <div class="text-xl font-bold text-gray-800">Logo</div>
      </div>
      <div class="hidden md:flex items-center space-x-8">
        <a href="#" class="text-gray-600 hover:text-gray-800">Home</a>
        <a href="#" class="text-gray-600 hover:text-gray-800">About</a>
        <a href="#" class="text-gray-600 hover:text-gray-800">Contact</a>
      </div>
    </div>
  </div>
</nav>

<!-- Form inputs -->
<div class="space-y-4">
  <div>
    <label class="block text-sm font-medium text-gray-700 mb-2">Email</label>
    <input
      type="email"
      class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"
    />
  </div>
  <div>
    <label class="block text-sm font-medium text-gray-700 mb-2">Message</label>
    <textarea
      class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"
      rows="4"
    ></textarea>
  </div>
</div>

<!-- Card with hover effects -->
<div
  class="transform transition-all duration-200 hover:scale-105 hover:shadow-xl"
>
  <div class="bg-white rounded-lg overflow-hidden shadow-lg">
    <img src="image.jpg" alt="Card image" class="w-full h-48 object-cover" />
    <div class="p-6">
      <h3 class="text-lg font-semibold mb-2">Card Title</h3>
      <p class="text-gray-600">Card description with hover effects</p>
    </div>
  </div>
</div>

Utility Combinations

<!-- Text with gradient -->
<div
  class="bg-gradient-to-r from-purple-400 to-pink-600 bg-clip-text text-transparent"
>
  Gradient Text
</div>

<!-- Glass morphism effect -->
<div class="backdrop-blur-md bg-white/20 border border-white/30 rounded-lg p-6">
  Glass effect card
</div>

<!-- Custom spacing with arbitrary values -->
<div class="p-[2.5rem] m-[1.75rem]">Custom padding and margin</div>

<!-- Aspect ratio containers -->
<div class="aspect-w-16 aspect-h-9">
  <iframe src="video-url" class="w-full h-full"></iframe>
</div>

Dark Mode

<!-- Dark mode aware component -->
<div
  class="bg-white dark:bg-gray-800 text-gray-900 dark:text-white rounded-lg p-6"
>
  <h2 class="text-xl font-bold mb-4">Dark Mode Compatible</h2>
  <p class="text-gray-600 dark:text-gray-300">
    This content adapts to dark/light theme
  </p>
</div>

<!-- Toggle button -->
<button
  class="bg-gray-200 dark:bg-gray-700 text-gray-800 dark:text-white px-4 py-2 rounded"
>
  Toggle Theme
</button>

Interactive Elements

<!-- Buttons with states -->
<button
  class="bg-blue-500 hover:bg-blue-700 active:bg-blue-800 text-white font-bold py-2 px-4 rounded transition-colors"
>
  Interactive Button
</button>

<!-- Dropdown menu -->
<div class="relative">
  <button
    class="bg-white border border-gray-300 rounded-md px-4 py-2 text-left"
  >
    Select Option
  </button>
  <div
    class="absolute z-10 mt-1 w-full bg-white border border-gray-300 rounded-md shadow-lg"
  >
    <a href="#" class="block px-4 py-2 hover:bg-gray-100">Option 1</a>
    <a href="#" class="block px-4 py-2 hover:bg-gray-100">Option 2</a>
  </div>
</div>

Animation & Transitions

<!-- Fade in animation -->
<div class="animate-fade-in opacity-0 animation-fill-forwards">
  Fade in content
</div>

<!-- Smooth transitions -->
<div class="transform transition-transform duration-300 hover:translate-x-2">
  Slide on hover
</div>

<!-- Loading spinner -->
<div class="animate-spin rounded-full h-8 w-8 border-b-2 border-blue-500"></div>

Custom CSS Integration

/* tailwind.config.js */
module.exports = {
  theme: {
    extend: {
      colors: {
        brand: '#3B82F6',
        'brand-dark': '#1E40AF',
      },
      spacing: {
        '72': '18rem',
        '84': '21rem',
      },
    },
  },
  plugins: [],
}
<!-- Using custom theme values -->
<div class="bg-brand text-white p-4">Custom brand color</div>
<div class="p-72">Custom spacing</div>

Best Practices

  1. Component-based approach: Extract repeated class combinations into components
  2. Mobile-first: Use responsive prefixes (md:, lg:) to enhance mobile designs
  3. Consistent spacing: Use the spacing scale (p-4, m-6, gap-8) consistently
  4. Semantic naming: Use utility classes that describe their function
  5. Responsive images: Always include object-cover or object-contain for images

Performance Tips

  • Use PurgeCSS/JIT mode to remove unused utilities
  • Group related classes together
  • Use CSS variables for dynamic values
  • Leverage container queries for component-based responsive design
  • Consider using @apply sparingly for truly reusable patterns

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

29.05%
按下载量换算2,601

windsurf

26.47%
按下载量换算2,370

trae

16.7%
按下载量换算1,495

OpenCode

12.06%
按下载量换算1,080

Codex

8.48%
按下载量换算759

Antigravity

3.2%
按下载量换算286

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源字段存在多来源差异,先按来源优先级自动处理,无法消解时进入异常复核队列。

来源信息

继续浏览同类 Skills