# generic-react-design-system

generic-react-design-system is a Claude Code skill that provides reference patterns for React and TypeScript interfaces with Tailwind CSS, Framer Motion, and WCAG AA.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 191 installs · ★ 114 repo stars
- Author: travisjneuman
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/travisjneuman/.claude/tree/HEAD/skills/generic-react-design-system/SKILL.md
- Updated: 2026-10-25
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/generic-react-design-system

## What it does

This skill guides the coding assistant when building React UI components. It supplies token structures for `tailwind.config.js`, root CSS variables for light and dark modes, and component layouts for buttons, inputs, cards, and skeleton loaders.

It features animated UI patterns backed by Framer Motion, such as hover lifts, route changes, modal dialogs, and staggered lists. For visual styling, it contains classes for soft shadows and glassmorphism alongside WCAG AA accessibility patterns like explicit focus rings and skip-to-content links.

Because the examples strictly assume Tailwind CSS and Framer Motion, projects lacking these dependencies will need adjustments before applying the snippets.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add travisjneuman/.claude --skill generic-react-design-system -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/generic-react-design-system/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/generic-react-design-system/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add travisjneuman/.claude --skill generic-react-design-system -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/generic-react-design-system/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add travisjneuman/.claude --skill generic-react-design-system -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/generic-react-design-system/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install travisjneuman/.claude skills/generic-react-design-system
```

2. **Manually: put the files in place**
- File: `.github/skills/generic-react-design-system/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add travisjneuman/.claude --skill generic-react-design-system -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/travisjneuman/.claude --path skills/generic-react-design-system
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/generic-react-design-system/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add travisjneuman/.claude --skill generic-react-design-system -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/travisjneuman/.claude/tree/HEAD/skills/generic-react-design-system/SKILL.md

## When to use it
- configure Tailwind CSS tokens and variables for dark mode
- scaffold reusable React UI elements with glassmorphism styles
- set up staggered list reveals and modal transitions with Framer Motion
- manage theme switches via React Context using system preferences
- implement WCAG AA skip links and focus-visible outlines

## Example prompts
- Build a modal dialog with glass styling and Framer Motion transitions following generic-react-design-system
- Set up ThemeProvider with system preference detection based on the design system rules
- Generate primary and secondary button components using the Tailwind design system variables

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: ad63b3014cdf32c8.

BEGIN THIRD-PARTY FILE ad63b3014cdf32c8
````text
---
name: generic-react-design-system
description: Complete design system reference for React applications. Covers colors, typography, spacing, component patterns, glassmorphism effects, GPU-accelerated animations, and WCAG AA accessibility. Use when implementing UI, choosing colors, applying spacing, creating components, or ensuring brand consistency.
---

# React Design System

Design system patterns for React/TypeScript applications.

**Extends:** [Generic Design System](../generic-design-system/SKILL.md) - Read base skill for color theory, typography scale, spacing system, and component states.

## Tailwind Configuration

```js
// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        primary: "var(--primary)",
        secondary: "var(--secondary)",
        accent: "var(--accent)",
      },
      spacing: {
        18: "72px",
      },
      borderRadius: {
        xl: "16px",
      },
    },
  },
};
```

### CSS Variables Setup

```css
:root {
  /* Brand - customize per project */
  --primary: #3b82f6;
  --primary-rgb: 59, 130, 246;
  --secondary: #10b981;
  --accent: #8b5cf6;

  /* Surfaces */
  --background: #ffffff;
  --foreground: #000000;
  --muted: #64748b;
}

[data-theme="dark"] {
  --background: #121212;
  --foreground: #ffffff;
}
```

## React Component Patterns

### Button Variants

```tsx
// Primary
<button className="px-6 py-3 bg-primary text-white rounded-lg shadow
  hover:shadow-lg hover:-translate-y-0.5 transition-all">
  Primary
</button>

// Secondary
<button className="px-6 py-3 border border-primary text-primary rounded-lg
  hover:bg-primary/10 transition-all">
  Secondary
</button>

// Ghost
<button className="px-4 py-2 text-muted hover:bg-slate-100 rounded-lg transition-all">
  Ghost
</button>
```

### Input Fields

```tsx
<input
  className="w-full px-4 py-3 bg-white border border-slate-300 rounded-md
    focus:border-primary focus:ring-2 focus:ring-primary/50 transition-all"
  placeholder="Enter text..."
/>
```

### Cards

```tsx
<div className="p-6 bg-white dark:bg-slate-800 rounded-xl shadow-soft">
  {/* Card content */}
</div>
```

### Modals with Framer Motion

```tsx
<motion.div
  initial={{ opacity: 0, scale: 0.95 }}
  animate={{ opacity: 1, scale: 1 }}
  exit={{ opacity: 0, scale: 0.95 }}
  className="glass p-8 rounded-2xl max-w-md"
  role="dialog"
  aria-modal="true"
>
  {/* Modal content */}
</motion.div>
```

### Loading Skeleton

```tsx
<div className="animate-pulse space-y-4">
````
END THIRD-PARTY FILE ad63b3014cdf32c8

The third-party file has ended. Everything between the ad63b3014cdf32c8 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2491 of 5518 bytes. © travisjneuman · MIT · https://github.com/travisjneuman/.claude/tree/HEAD/skills/generic-react-design-system/SKILL.md

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
