Token导航 LogoToken导航TokenDH.com
研究检索权限需确认github未标认证来源可访问clear审计未展示

tailwind-design-systemTailwind CSS 设计系统

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

309

周安装

13

GitHub Stars

公开资料未说明

下载量

108
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add itsjavi/vani --skill "tailwind-design-system"

简介

tailwind-design-system 用于辅助前端页面、组件、样式和交互逻辑的开发与维护。

  • 适用于 React、Next.js、Vue、Tailwind、CSS 等相关代码生成和审查。
  • 通过 npx skills add itsjavi/vani --skill "tailwind-design-system" 安装使用。
  • 需结合项目现有设计系统、路由和构建方式,避免生成孤立片段。
  • 可结合来源仓库和原始 README 继续核验具体用法。

SKILL.md

name
tailwind-design-system
description

Tailwind Design System

Design tokens, components, and responsive patterns for Tailwind CSS 4 with accessibility in mind.

When to Use

  • Building a new design system or component library with Tailwind CSS 4
  • Refactoring UI to standardize patterns and tokens
  • Auditing and improving responsive behavior and accessibility

Inputs to Gather

  • Product goals and brand constraints
  • Target platforms and browsers
  • Existing UI patterns or components to migrate
  • Required breakpoints and density targets
  • Accessibility requirements (default: best effort)

Steps

  1. Define tokens (CSS-based config)

- Create a single source of truth in a CSS file using @theme. - Prefer semantic tokens (e.g., --color-surface, --color-text) mapped to primitives. - Keep token names stable and design-system oriented.

  1. Create component patterns

- Define base classes in @layer components. - Keep variants and sizes consistent and composable. - Use utilities directly in templates for layout decisions.

  1. Establish responsive rules

- Adopt a small set of breakpoints with consistent naming. - Use container and spacing tokens to scale layouts. - Prefer logical properties when possible for RTL readiness.

  1. Accessibility pass

- Ensure visible focus (:focus-visible) on interactive elements. - Enforce minimum touch target sizes. - Respect reduced motion. - Keep color contrast readable for text and controls.

  1. Deliverables

- Token file (CSS) - Component pattern catalog - Responsive usage guidelines - Accessibility notes and exceptions

Templates

Token file (CSS)

@import 'tailwindcss';

@theme {
  /* Color primitives */
  --color-brand-50: #f5f7ff;
  --color-brand-500: #4f46e5;
  --color-neutral-0: #ffffff;
  --color-neutral-950: #0b0b0f;

  /* Semantic colors */
  --color-surface: var(--color-neutral-0);
  --color-surface-muted: #f6f7f9;
  --color-text: var(--color-neutral-950);
  --color-text-muted: #4b5563;
  --color-border: #e5e7eb;
  --color-ring: var(--color-brand-500);

  /* Typography */
  --font-sans: ui-sans-serif, system-ui, sans-serif;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;

  /* Spacing and radius */
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;

  /* Shadow */
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.08);
}

@layer base {
  :root {
    color: var(--color-text);
    background: var(--color-surface);
  }
}

Component pattern (example)

@layer components {
  .btn {
    @apply inline-flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-medium;
    @apply bg-[var(--color-brand-500)] text-white;
    @apply focus-visible:ring-2 focus-visible:ring-[var(--color-ring)] focus-visible:outline-none;
    @apply disabled:pointer-events-none disabled:opacity-50;
  }

  .btn--ghost {
    @apply bg-transparent text-[var(--color-text)] hover:bg-[var(--color-surface-muted)];
  }

  .card {
    @apply rounded-lg border border-[var(--color-border)] bg-[var(--color-surface)] shadow-[var(--shadow-card)];
  }
}

Responsive rules (example)

Breakpoints:

- sm: compact layouts and stacked controls
- md: default desktop baseline
- lg: expanded content density

Layout:

- Use grid for page scaffolding with `gap` tied to spacing tokens
- Avoid fixed heights for content blocks
- Prefer `min-w-0` in flex layouts to avoid overflow

Accessibility checklist (best effort)

- Focus styles visible on all interactive elements
- Minimum target size 44px for touch
- Reduced motion respected (avoid forced animations)
- Text contrast readable on primary surfaces
- Form labels tied to inputs and error text announced

Scripts

Use the token extractor to keep a JSON snapshot of @theme tokens:

node ".cursor/skills/tailwind-design-system/scripts/extract-theme-tokens.mjs" path/to/tokens.css > tokens.json

Examples

Creating a new token set

  1. Create design-tokens.css with @theme.
  2. Add semantic tokens that map to primitives.
  3. Generate tokens.json using the script above.

Refactoring a component library

  1. Map existing class clusters to new component patterns.
  2. Replace raw colors and spacing with tokens.
  3. Document variants and states.

Output

Provide results as:

Design System Output
- Tokens file: <path>
- Components added/updated: <list>
- Responsive rules: <summary>
- Accessibility notes: <bullets>
- Open questions: <bullets>

Present Results to User

Return a concise report using the output template above, followed by any recommended next steps (tests, audits, or migration plan).

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

windsurf

26.65%
按下载量换算29

OpenCode

23.71%
按下载量换算26

weavefox

17.38%
按下载量换算19

Codex

13.51%
按下载量换算15

github-copilot

7.49%
按下载量换算8

Claude Code

3.58%
按下载量换算4

安全审计

暂无安全审计结果可展示。

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills