Token导航 LogoToken导航

Agent Skill · 前端设计

react-tailwind(React Tailwind CSS 前端)

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

react-tailwind 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 8,200。

总安装 306周安装 13GitHub Stars 公开资料未说明下载 107核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/babandeepsingh/skills --skill react-tailwind

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

辅助 React 与 Tailwind CSS 集成开发与设计系统实现。适用于生成或审查基于 Tailwind 的原子化样式代码。可整理响应式布局、主题切换与组件样式结构。react-tailwind 属于前端设计类 Skill,可作为该场景下的辅助能力补充。需结合项目设计系统与构建配置使用,避免冗余类名。

涉及视觉样式改动时应配合跨设备预览与可访问性检查。

来源仓库内路径:skills/react-tailwind

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/babandeepsingh/skills --skill react-tailwind;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

react-tailwind 怎么安装?

在终端执行 npx skills add https://github.com/babandeepsingh/skills --skill react-tailwind。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

react-tailwind 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

react-tailwind 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/babandeepsingh/skills --skill react-tailwind 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

react-tailwind 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

react-tailwind 用的人多吗?

公开数据是累计安装 306 次,近一周安装 13 次,下载 107 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

react-tailwind 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
react-tailwind

React Tailwind CSS 前端 · 本页

306—执行命令未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Purpose

Use this skill to turn a React project into a well-structured Tailwind-driven UI, or to refactor an existing Tailwind setup into cleaner, token-based styling and reusable patterns.

You are helping with:

  • Installing and wiring Tailwind into React toolchains
  • Planning and managing dependencies (Tailwind + plugins + component libraries)
  • Designing a semantic token layer in tailwind.config (colors, spacing, typography, radii, shadows)
  • Refactoring components from ad-hoc CSS to Tailwind utility classes
  • Applying proven UI recipes (forms, data tables, navigation, modals, layout primitives)

Always assume the user wants practical, copy-pastable steps plus concrete component examples.

Detect the React + Build Setup

Before giving commands or code, detect how the app is built and tailor instructions:

  • If package.json has react-scripts: treat as Create React App.
  • If vite appears in devDependencies or scripts: treat as Vite React.
  • If next appears: treat as Next.js (App Router if app/ exists, Pages Router otherwise).
  • If react-scripts/vite/next are absent: treat as generic React SPA using webpack or similar; provide framework-agnostic guidance.

When uncertain, default to Vite-like Tailwind setup and clearly say how to adapt:

  • Explain which config file to update (tailwind.config.js, postcss.config.js, entry CSS).
  • Show the commands as npm and yarn variants when useful.

Installation & Configuration Workflow

Follow this sequence whenever setting up Tailwind in a React project:

  1. Add dependencies

- Core: tailwindcss postcss autoprefixer - For dark mode and theming, rely on Tailwind core; only add UI libraries (e.g. @headlessui/react, @heroicons/react, Radix, etc.) if the user wants prebuilt patterns. - Prefer devDependencies for build-time packages.

  1. Initialize Tailwind

- Run the recommended init command for the detected toolchain (e.g. npx tailwindcss init -p). - Ensure both tailwind.config.* and postcss.config.* are created or updated.

  1. Configure the content paths

- Include all React source roots, e.g.: - ./index.html (if Vite) - ./src/**/*.{js,ts,jsx,tsx} - ./app/**/*.{js,ts,jsx,tsx,mdx} and/or ./pages/**/*.{js,ts,jsx,tsx} for Next.js. - Avoid overly broad globs that include node_modules or build outputs.

  1. Wire Tailwind into CSS

- Create or update a global CSS file (e.g. src/index.css, src/globals.css, app/globals.css) containing: - @tailwind base; - @tailwind components; - @tailwind utilities; - Ensure this CSS is imported once at the app entry point (main.tsx, _app.tsx, layout.tsx, etc.).

  1. Verify integration

- Instruct the user to add a simple test utility (e.g. className="text-red-500") and confirm it renders correctly. - If it fails, inspect: - Missing content paths - CSS not imported - Conflicting CSS frameworks (e.g. Bootstrap) and advise migration or coexistence approach.

When installing additional UI libraries (e.g. Tailwind UI, Headless UI, Radix), always:

  • Add them after Tailwind core is working.
  • Check and mention peer dependencies (e.g. React version, @floating-ui).
  • Keep the installation commands and import locations explicit.

Tailwind Config & Semantic Tokens

Aim to design a semantic theme layer instead of scattering raw brand colors and spacing everywhere.

When editing tailwind.config.*:

  • Keep theme.colors and theme.extend.colors organized by semantic purpose, not literal brand hex names.
  • Use neutral + primary/secondary + feedback scales:
// Example shape – adapt values and names to user brand
theme: {
  extend: {
    colors: {
      bg: {
        canvas: '#020617',
        subtle: '#0b1120',
        elevated: '#020617'
      },
      border: {
        subtle: '#1e293b',
        strong: '#475569',
        focus: '#38bdf8'
      },
      text: {
        primary: '#e5e7eb',
        secondary: '#9ca3af',
        muted: '#6b7280',
        danger: '#fecaca'
      },
      primary: {
        DEFAULT: '#38bdf8',
        foreground: '#0f172a',
        soft: '#0ea5e9'
      },
      danger: {
        DEFAULT: '#ef4444',
        subtle: '#fee2e2'
      },
      success: {
        DEFAULT: '#22c55e',
        subtle: '#dcfce7'
      }
    },
    borderRadius: {
      sm: '0.375rem',
      md: '0.5rem',
      lg: '0.75rem',
      xl: '1rem'
    },
    boxShadow: {
      soft: '0 1px 2px 0 rgba(15,23,42,0.35)',
      raised: '0 10px 30px rgba(15,23,42,0.6)'
    }
  }
}

Guidelines:

  • Prefer purpose-based names (bg.canvas, text.secondary, border.focus) over raw brand names.
  • Map existing CSS variables (if present) into Tailwind theme keys to preserve behavior.
  • For dark/light modes:

- Prefer Tailwind dark class strategy (darkMode: 'class'). - Teach the user to toggle a dark class on html/body/root using React state or a small theme hook.

Whenever you introduce or change tokens, also show one or two component snippets that use them so the user sees concrete usage.

Component Revamp Workflow

When the user wants to "revamp" or "modernize" components with Tailwind:

  1. Audit the component

- Ask for or inspect the existing JSX + CSS. - Identify: - Layout primitives (stack, grid, sidebar, card) - Typography hierarchy (headings, labels, body text) - Interactive elements (buttons, links, inputs)

  1. Design the Tailwind structure

- Replace layout CSS with Tailwind primitives (flex, grid, gap, space-y-*, max-w-*, overflow-*). - Map CSS variables or design tokens to Tailwind theme keys. - Encapsulate repeated patterns in small reusable components (e.g. Button, Card, Input, Modal).

  1. Refactor incrementally

- Start with one component at a time (e.g. a single form, a card list). - Keep behavior and props stable; change only the JSX structure and classes.

  1. Extract shared building blocks

- Once you see repeated class combinations, suggest: - React components with className extension hooks. - Utility functions for composing class names (e.g. clsx, cva).

  1. Review accessibility

- Ensure roles, aria attributes, and focus rings are preserved or improved. - Demonstrate focus styles using semantic border/focus tokens.

Always provide before/after snippets when possible: old JSX/CSS vs. Tailwind-powered JSX.

Common UI Recipes

Use these patterns as starting points and adapt tokens to the user’s theme. Prefer semantic Tailwind tokens (e.g. bg-bg-elevated, text-text-secondary) if available; otherwise fall back to typical defaults.

Forms

Goals: consistent spacing, clear label/input alignment, accessible focus styles, helpful error text.

Form pattern:

  • Wrap each field in a vertical stack with small gap.
  • Use labels with htmlFor, consistent typography.
  • Use inputs with:

- Full-width w-full - Semantic background, border, and focus tokens - Rounded corners and subtle shadows where appropriate

When refactoring, ensure:

  • Error states use semantic danger tokens (e.g. border-danger, text-danger).
  • Disabled states lower opacity and remove hover styles.

Data Tables

Goals: readable rows, good density control, clear sorting/selection affordances.

Table pattern:

  • Use a wrapper for scroll: overflow-x-auto with responsive padding.
  • Table base: min-w-full divide-y divide-border-subtle.
  • Headers:

- Background with subtle contrast (e.g. bg-bg-subtle). - Uppercase or small-caps with tracking if desired. - Use text-text-secondary for less visual noise.

  • Rows:

- divide-y divide-border-subtle. - Hover: hover:bg-bg-subtle/60. - Selected: bg-primary/5 border-l-2 border-primary.

For actions within rows, recommend:

  • Inline icon buttons with accessible labels.
  • Clear spacing (space-x-2) and hit area (p-1.5–p-2).

Navigation (Top bar + Sidebar)

Navigation layout:

  • Use a shell layout with:

- Top bar: flex items-center justify-between h-14 px-4 border-b border-border-subtle bg-bg-elevated. - Sidebar (optional): hidden md:flex md:w-64 md:flex-col border-r border-border-subtle bg-bg-subtle. - Main: flex-1 overflow-y-auto p-4 md:p-6.

Nav items:

  • Base: flex items-center gap-2 rounded-md px-2.5 py-2 text-sm font-medium.
  • Default text: text-text-secondary.
  • Active: bg-bg-elevated text-text-primary.
  • Hover: hover:bg-bg-elevated/70 hover:text-text-primary.

Prefer grouping navigation into arrays of config objects (label, icon, href, active) and mapping to JSX; this makes it easier to restyle later.

Modals / Dialogs

For accessible modals:

  • Recommend a headless or primitive-based library (e.g. @headlessui/react or Radix Dialog) when possible.
  • If implemented manually, insist on:

- ARIA roles (role="dialog", aria-modal="true"). - Focus trapping and escape-key handling. - Background overlay with opacity.

Styling:

  • Overlay: fixed inset-0 bg-black/60 backdrop-blur-sm.
  • Container: fixed inset-0 flex items-center justify-center px-4.
  • Panel:

- w-full max-w-lg rounded-lg bg-bg-elevated shadow-raised p-6 - Use tokenized colors and spacing.

Buttons inside modals should reuse the app’s primary/secondary button components rather than ad-hoc classes.

Dependency Management & Installation Order

When the user asks to "set up Tailwind" or "add Tailwind components", explicitly lay out the order of operations:

  1. Ensure React + bundler dependencies are already installed (React, ReactDOM, framework-specific tooling).
  2. Install Tailwind + PostCSS + Autoprefixer as devDependencies.
  3. Initialize Tailwind config + PostCSS config.
  4. Wire Tailwind CSS into the app entry point and verify.
  5. Introduce a component library or headless primitives, if requested:

- Install library. - Import styles if needed (some libraries include base CSS). - Show how to integrate with Tailwind classes and the theme tokens.

  1. Refactor existing components incrementally, starting with:

- Buttons and typography. - Forms. - Layout shells (nav, sidebar, main content). - Data-heavy views (tables, lists, detail panels).

Always keep the package.json in sync with your recommendations (devDependencies vs dependencies) and highlight any required Node or React versions when relevant.

Common Pitfalls & How to Handle Them

When debugging Tailwind + React setups, check for these issues:

  • Classes not applying

- content globs not matching file paths or extensions. - CSS file with @tailwind directives not imported anywhere. - Build cache; suggest restarting dev server or clearing cache.

  • Production build is unstyled or partially styled

- Wrong content paths causing aggressive purging. - Classes constructed dynamically in ways Purge cannot detect; recommend: - Using canonical class names in code. - Extracting variant class maps instead of building full strings from arbitrary input.

  • Conflicts with other frameworks

- Legacy global CSS (e.g. Bootstrap) overriding Tailwind; suggest: - Removing conflicting imports over time. - Namespacing legacy CSS where possible.

  • Inconsistent design

- Repeated ad-hoc colors/spacings; suggest: - Consolidating into Tailwind semantic tokens. - Refactoring repeated class groups into shared components.

When you fix or diagnose an issue, give a short checklist the user can re-run next time (e.g. "verify config paths, CSS import, and dev server restart").

平台分布

Codex

37.89%
按下载量换算41

Claude

26.44%
按下载量换算28

Cursor

19.54%
按下载量换算21

Gemini CLI

9.22%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/babandeepsingh/skills --skill react-tailwind 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

继续浏览同类 Skills