mcpField
R
rico-ui-ux-themes

rico-ui-ux-themes

github.com/ricoccデザイン・UI274122 回インストール24 週間前に更新
リポジトリ

rico-ui-ux-themes について

rico-ui-ux-themesは、20種類の組み込みテーマとカスタムテーマ生成に対応するUI/UXデザイン最適化スキルです。プロジェクトのコード分析からテーマ選択までを案内し、変更前に確認を求めます。

主な機能

  1. 0120種類の組み込みテーマ
  2. 026項目のデザイン分析
  3. 03URLやプロジェクトからテーマを生成
  4. 04適用前のテーマプレビュー
  5. 05コード変更前の確認

活用シーン

  1. 01プロジェクトのビジュアルデザインを確認
  2. 02組み込みテーマをプロジェクトに適用
  3. 03参照サイトからテーマを作成
  4. 04既存コードからテーマを抽出

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/ricocc/rico-skills --skill rico-ui-ux-themes

インストール後、Claude Code で/rico-ui-ux-themesを入力して読み込まれたか確認します。

同梱ファイル

SKILL.md と一緒にインストールされる参考資料やスクリプト。

references/docs/
color.md
component.md
layout.md
motion.md
polish.md
themes-guide.md
typography.md
references/styles/
agent-dark.md
airbnb.md
claude.md
creative-gallery.md
creative-vitality.md
dashboard-clean.md
duolingo.md
linear.md
marketplace-dark.md
minimal-blue.md
neo-brutalist.md
notion.md
professional-blue.md
radio-static.md
record-club.md
retro-vibrant.md
saas-dark.md
spotify.md
trust-finance.md
vibrant-commerce.md

詳細

rico-ui-ux-themes

20 種の組み込みテーマとカスタムテーマ生成機能を備えた UI/UX デザイン最適化ツールキットです。

ワークフロー

[User Input] → [Read Current Project Code] → [Analyze 6 Issues] → [Select Mode] → [Confirm] → [Output]

重要な実行ルール:

  1. 絶対にウェルカムメッセージや挨拶を表示しないでください
  2. 実行前に必ず選択メニュー A/B/C/D を表示してください
  3. メニューを表示した後は必ずユーザーの入力を待ってください
  4. 変更を加える前に必ず確認してください
  5. 手順を省略したり、ユーザーの確認なしに自動実行したりしないでください

主な注意事項:

  • トリガーされたとき(例:「このプロジェクト/ページ/デザインを最適化して」)、現在の作業ディレクトリからコードを自動的に読み取ります。「どのプロジェクトですか」と尋ねる必要はありません。
  • 言語ルール:最初のトリガーから言語を判定し(例:「rico 最適化」は中国語、「rico optimize」は英語)、その後も一貫して同じ言語を使用します。
  • プロジェクトモードの検出:明示的に要求された場合にのみ、不足しているライト/ダークモードを生成します。モードの切り替えを強制しないでください。
  • 連携:webReader(URL の取得)、Read/Write ツール(コード操作)を使用します。いずれも確認が必要です。
4 つのインタラクションパターン
パターントリガーの例
フルフローrico optimize、rico Web デザインを最適化
直接適用rico Claude スタイルを使う、rico Claude スタイルを適用
テーマを生成rico テーマを作成:stripe.com
自然言語rico もっと鮮やかにして

トリガーとインタラクションパターン

すべてのコマンドは rico をプレフィックスとして使用します。4 つのパターンに対応しています。

パターントリガーの例概要フロー
フルフローrico optimize、rico 最適化、rico Web デザインを最適化、rico このページのデザインを改善して、rico ページをもっと見栄えよくして[コードを読み取る] → [分析] → [メニュー A/B/C/D] → [選択] → [確認] → [出力]
直接適用rico [theme-name] スタイルを使う、rico [テーマ名] スタイルを適用、rico Claude スタイルで最適化、rico Minimal Blue の色 + Neo-Brutalist の枠線を使う[テーマを読み込む] → [プレビュー] → [確認] → [適用]
テーマを生成rico テーマを作成:[URL]、rico テーマを作成:[URL]、rico [URL] を参考にテーマを作成[URL を取得] → [抽出] → [ドキュメントを生成] → [保存] → [適用を確認?]
テーマ管理rico テーマ一覧、rico テーマは何がありますか、rico [theme-name] を表示、rico [テーマ名] を見せて[一覧/表示] → 適用しない限り、以降の手順はありません

自然言語への対応: 例:「rico もっと鮮やかにして」→ 意図に応じてフルフローまたは直接適用に振り分けます。

選択メニュー(フルフロー)

ユーザーが「rico optimize」をトリガーした場合のワークフロー:

[Read Current Project] → [Analyze 6 Dimensions] → [Show Menu A/B/C/D] → [User Selects] → [Confirm] → [Output]

重要: コードを読み取った直後にメニューを表示してください。「何をしたいですか」と尋ねたり、ウェルカムメッセージを表示したりしないでください。

選択メニューを表示
  • A. デザイン原則に基づいて最適化する(特定のスタイルなし)
  • B. 組み込みテーマから選択する(20 種類)
  • C. 業界のリファレンスからテーマを生成する
  • D. カスタムテーマ(URL またはプロジェクトから作成)

オプションを入力してください(A/B/C/D):


オプション A:デザイン原則

ユーザーの入力:A

📋 6-Dimension Analysis Results

1. [⚠️] Color    - Contrast 3.2:1, below WCAG AA
2. [⚠️] Typography - Inter font, unclear hierarchy
3. [⚠️] Spacing  - Inconsistent, no grid system
4. [✓]  Border-radius - Unified style
5. [⚠️] Shadow   - Too heavy
6. [⚠️] Interaction - Missing hover/focus states

Select optimization mode:
- a: All (recommended)
- b: Issues only (1,2,3,5,6)
- Or directly input numbers: 1,3 (custom), 3 (single)

Enter (a/b or numbers):

確認ダイアログ:

📋 Ready to Optimize: Spacing

Actions:
• Establish unified 4pt grid
• Adjust gaps and margins
• Optimize whitespace rhythm

Confirm? (y/n)

オプション B:組み込みテーマ

ユーザーの入力:B

📊 Project Analysis
Detected: SaaS / Enterprise App
Style: Professional, clean, data-driven

🎯 Recommended Themes:
   • 6. Professional Blue ⭐
         → Style: Stable blue + clear hierarchy
         → Match: 95%

   • 1. Claude
         → Style: Warm white + ocher orange
         → Match: 88%

   • 8. Dashboard Clean
         → Style: Clean admin, data-focused
         → Match: 85%

   • 7. Trust Finance
         → Style: Deep blue + gold
         → Match: 82%

   • 2. Minimal Blue
         → Style: Dark BG + blue accent
         → Match: 78%

• Enter number to select
• Enter L to view all themes (built-in + user-created)

Enter:

テーマ選択後:

Selected: 5. Agent Dark (Dark theme)

📋 Style Features:
   • Deep black background + vibrant purple accent
   • Modern & creative
   • Best for: AI agents, creative tools
   • Mode: Dark (single mode)

🔧 Actions:
   • Apply dark background (#0A0A0B)
   • Add purple accent (#A855F7)
   • Optimize border-radius to 8px

Confirm? (y/n)
オプション C:業界のリファレンス

ユーザーの入力:C

📊 Project Type Detection

Detected: SaaS / Enterprise
(If incorrect, enter correct type)

🌐 Industry Reference Websites:
   1. stripe.com
      → Style: Deep blue + gold accents, professional
      → Features: Minimal, whitespace, clear hierarchy

   2. linear.app
      → Style: Dark BG + purple gradient, modern tech
      → Features: Refined interaction, subtle animation

   3. notion.so
      → Style: White BG + minimal, content-first
      → Features: Clean, efficient, distraction-free

   4. figma.com
      → Style: Colorful gradient + vibrant purple
      → Features: Creative, professional, collaborative

   5. vercel.com
      → Style: B&W minimal + neon gradient
      → Features: Cool, modern, developer-friendly

   • Enter number to select
   • Enter URL to use custom website
   • Enter n to skip

Enter:

ユーザーの入力:1

📋 アクション: • stripe.com のデザインの特徴を取得 • 色、タイポグラフィ、間隔のシステムを分析 • テーマファイルを生成 • 現在のプロジェクトに適用

確認しますか?(y/n)


オプション D:カスタムテーマ

ユーザー入力:D

🎨 Custom Theme

1. Input URL
   → Example: apple.com

2. Generate from current project
   → Extract existing design

Enter option (1/2) or URL:

オプション 2(プロジェクトから生成)を選択した場合:

AI の応答:

📋 Actions:
• Analyze current project design features
• Extract color, typography, spacing system
• Generate theme file

Enter theme name: [my-brand]

Save location:
   1. Current project
      → references/styles/my-brand.md
      → Project-only access

   2. User global directory
      → ~/.rico/themes/my-brand.md
      → Available for all projects

Enter (1/2):

ユーザー入力:1

AI の応答: プロジェクトのデザイン特性を分析しています... テーマファイルを生成しています...

✅ テーマを保存しました:references/styles/my-brand.md

最適化に適用しますか?(y/n)


**Option D Notes:**
- Supports URL input or generate from current project
- When generating from project, ask for theme name and save location
- Save location options: project or global

---

## 6-Dimension Analysis Framework

For detailed guidelines, see `references/docs/`.

| Dimension | Check Points | Reference |
|-----------|--------------|-----------|
| **1. Color** | Contrast (WCAG AA 4.5:1), brand usage ≤10%, saturation, light/dark mode | color.md |
| **2. Typography** | Hierarchy, line-height, font weight, alignment | typography.md |
| **3. Spacing** | Grid system (4pt), whitespace, alignment | layout.md |
| **4. Border-radius** | Consistency, unified style | component.md |
| **5. Shadow** | Hierarchy, meaning, avoid generic | component.md |
| **6. Interaction** | 8 states (default/hover/focus/active/disabled/loading/error/success), feedback | motion.md |

### Quick Analysis Checklist

| Issue Type | Common Problems |
|------------|-----------------|
| Color | Low contrast, color abuse, washout on colored bg |
| Typography | Inconsistent sizes, line-height, mixed fonts |
| Spacing | No grid, cramped, misaligned |
| Border-radius | Inconsistent sizes, mixed styles |
| Shadow | Too heavy, meaningless, generic |
| Interaction | Missing states, weak feedback |

For complete audit methodology, see `references/docs/polish.md`.

## Design Anti-Patterns

Based on Impeccable design principles:

### Visual
- **DON'T** use gray text on colored backgrounds → use tinted shade
- **DON'T** use pure black (#000) or white (#fff) → always tint
- **DON'T** use "AI color palette" (cyan-on-dark, purple gradients)
- **DON'T** overuse brand colors → accent ≤10%

### Layout
- **DON'T** wrap everything in cards
- **DON'T** nest cards inside cards
- **DON'T** center everything → asymmetry feels more designed

### Typography
- **DON'T** use overused fonts (Inter, Roboto, Arial)
- **DON'T** use too many similar font sizes → muddy hierarchy

### Motion
- **DON'T** use bounce easing → feels dated
- **DON'T** animate layout properties → use transform only
- **DON'T** ignore prefers-reduced-motion

### The AI Slop Test

If someone says "AI made this" and it's immediately obvious → that's the problem.
Distinctive design makes people ask "how was this made?" not "which AI?"

---

## Built-in Themes

**Theme Sources:**
- Built-in: 20 themes stored in `references/styles/`
- User-created: Any `.md` file in `references/styles/` is automatically available

When user creates a new theme (Option D), it is automatically added to the theme list.

### Developer Tools
| Theme | Description | Best For |
|-------|------------|----------|
| Claude | Warm white + ocher orange, rational & warm | AI products, dev tools |
| Minimal Blue | Dark BG + blue accent, minimal | Code editors, assistants |
| Marketplace Dark | Dark + code aesthetics | Dev marketplaces |
| SaaS Dark | Monitoring dark, real-time | DevOps, monitoring |
| Agent Dark | Deep black + vibrant purple | AI agents, creative |

### Business & Enterprise
| Theme | Description | Best For |
|-------|------------|----------|
| Professional Blue | Stable blue + clear hierarchy | SaaS, B2B |
| Trust Finance | Deep blue + gold | Fintech, banking |
| Dashboard Clean | Clean admin, data-focused | Enterprise dashboards |

### Creative Design
| Theme | Description | Best For |
|-------|------------|----------|
| Retro Vibrant | High saturation + bold | Fashion, art |
| Creative Gallery | Image grid + visual first | Portfolios, galleries |
| Neo-Brutalist | Bold borders + solid shadows | Creative agencies |
| Creative Vitality | Vibrant orange + gradients | Creative studios |

### Media & Culture
| Theme | Description | Best For |
|-------|------------|----------|
| Radio Static | B&W + TV static | Podcasts, radio |
| Record Club | Vinyl aesthetic + warm | Music platforms |

### Commerce
| Theme | Description | Best For |
|-------|------------|----------|
| Vibrant Commerce | Orange-red + yellow | E-commerce, retail |

### Brand Styles
| Theme | Description | Best For |
|-------|------------|----------|
| Airbnb | Warm coral + whitespace | Travel, hospitality |
| Linear | Sleek dark + refined | Productivity tools |
| Notion | Clean minimal + content | Documentation |
| Duolingo | Playful bright + gamified | Education |
| Spotify | Dark + vibrant green | Music streaming |

---

## Theme Generation

### Workflow

[URL] → [webReader fetch] → [デザインを抽出] → [14 章のドキュメントを生成] → [保存]


### Reference Documents

Use these docs from `references/docs/` when generating themes:

- **themes-guide.md** - 14-chapter template for theme structure
- **color.md** - Color system guidelines
- **typography.md** - Typography rules
- **layout.md** - Spacing/grid system
- **component.md** - Component design standards
- **motion.md** - Animation principles
- **polish.md** - 6-dimension audit framework

### Generated Theme Structure (14 Chapters)

Every generated theme includes:

1. **Design Philosophy** (设计核心理念)
   - Brand concept / Design philosophy
   - Core keywords (3-5)
   - Why this design?

2. **Color System + Usage Guidelines** (颜色系统 + 使用原则)
   - Primary, background, text, accent colors
   - When to use each color
   - Usage proportion rules
   - Common mistakes

3. **Interaction Philosophy** (交互理念)
   - Animation principles
   - Feedback mechanisms
   - Transition timing

4. **Layout Principles** (布局原则)
   - Spacing strategy (grid system)
   - Whitespace principles
   - Content max-width

5. **Component Design Decisions** (组件设计决策)
   - Why this height/radius/color?
   - Design rationale

6. **Application Scenarios** (应用场景)
   - Suitable project types
   - Adjustments for different scenarios

7. **Common Mistakes** (避免的误区)
   - 5+ common errors
   - Negative checklist

Plus 7 more chapters covering typography, spacing, shadows, components, animations, and use cases.


### Save Location
- Project: `references/styles/[theme-name].md`
- Global: `~/.rico/themes/[theme-name].md`

---

## Theme Application Workflow

ユーザー入力:rico apply [theme-name] ↓ ┌──────────────────────────────────────────┐ │ 1. references/styles/ からテーマを読み込む │ │ 2. テーマモード(ライト/ダーク)を検出する │ │ 3. プロジェクトをテーマのモードに切り替える │ ← 重要:ダークを適用 → ダークに切り替える │ 4. コードを分析する:6 つの観点で確認する │ │ 5. テーマの色、余白などを適用する │ │ 6. 最適化されたコードを生成する │ │ 7. 主な決定事項を説明する │ └──────────────────────────────────────────┘


**Theme Mode Application Rule:**
| Project Mode | Theme Mode | Action |
|--------------|------------|--------|
| Single (light/dark) | Dual (both) | Use only project's existing mode colors |
| Single (light/dark) | Single | Apply theme's defined mode |
| Dual (both) | Any | Apply theme's defined mode |

**Never force switch mode.** Theme's dual-mode is "supported", not "required".

### Analysis Dimensions

AI checks these design dimensions:

1. **Color** - Contrast ratios, saturation, brand color usage, light/dark theme support, tinted neutrals
2. **Typography** - Font size, line-height, weight, font family
3. **Spacing** - Grid system, whitespace, compactness
4. **Border Radius** - Size consistency, style unity
5. **Shadow** - Weight, consistency, meaningful
6. **Interaction** - Button/link states, animations, feedback
7. **Icons** - All original icons preserved (SVG, icon fonts, images)
8. **Gradients** - All gradient backgrounds preserved

---

## Design Reference Files

Located in `references/docs/`:

- **color.md** - Color design reference
- **component.md** - Component design reference
- **layout.md** - Layout design reference
- **motion.md** - Animation design reference
- **polish.md** - Design audit reference
- **themes-guide.md** - Theme generation prompt template
- **typography.md** - Typography design reference

---


### Mode Detection

| Project Mode | Theme Support | Action |
|--------------|---------------|--------|
| Dual-mode | Both defined | Generate CSS variables for both |
| Light-only | Any | Apply light mode only (don't auto-add dark) |
| Dark-only | Any | Apply dark mode only (don't auto-add light) |

**Note:** Only generate missing mode if user explicitly requests it. Don't auto-generate dark/light mode unless asked.

### Key Decisions to Explain

- Theme mode strategy
- Icon handling (preserve vs adapt)
- Gradient handling (preserve vs adapt)
- Impeccable principles applied

---

## Technical Stack Support

Auto-adapt to: React, Vue, Angular, HTML, Sass/SCSS, Tailwind, Next.js, Mini Programs

| Stack | Support | Handling |
|-------|---------|----------|
| React | Full | JSX, styled-components, CSS Modules |
| Vue | Full | Vue SFC, scoped styles |
| Angular | Full | Component styles |
| HTML/CSS | Full | CSS variables |
| Sass/SCSS | Full | Variables, mixins |
| Tailwind | Full | Theme config |
| Mini Programs | Full | rpx, custom components |

---

## Best Practices

### Choosing Theme

| Project Type | Recommended Themes |
|--------------|-------------------|
| Developer Tools | Claude, Minimal Blue, Marketplace Dark |
| AI Agents | Agent Dark, Creative Vitality |
| Enterprise | Professional Blue, Trust Finance |
| Creative Brands | Retro Vibrant, Neo-Brutalist |
| Audio/Music | Radio Static, Record Club, Spotify |
| E-commerce | Vibrant Commerce |
| Brand Style | Airbnb, Linear, Notion |

### Combining Themes

rico use Minimal Blue colors + Neo-Brutalist borders


### Fine-tuning

rico create theme: example.com ユーザー:色が暗すぎます → AI:明るく調整しています... ユーザー:角丸を大きくしてください → AI:12px に増やしています...


---

## Output Format

Generated code includes:

1. **CSS Variables** - Complete system with OKLCH color space
2. **Component Styles** - Button, input, card, nav adapted to theme
3. **Responsive Design** - Mobile, tablet, desktop breakpoints
4. **Accessibility** - WCAG 2.1 AA compliant
5. **Code Comments** - Key design decisions explained
6. **Motion** - prefers-reduced-motion support

**Always include decision summary:**
- Theme mode strategy
- Icon/gradient handling rationale
- Impeccable principles applied

---

## Quick Examples

### User: rico optimize this website

[コードを読み込む] → [6 つの観点で分析する] → [メニュー A/B/C/D を表示する] → [ユーザーが選択する] → [確認する] → [生成する]


### User: rico use Claude style

[claude.md を読み込む] → [スタイルのプレビューを表示する] → [確認する] → [コードに適用する]


### User: rico create theme: stripe.com

[stripe.com を取得する] → [デザインを抽出する] → [ドキュメントを生成する] → [保存する] → [確認する] → [適用しますか?]


## Theme Naming Convention

All themes follow **"Style + Color/Feature"** naming.

This naming convention helps users quickly understand each theme's core characteristics and applicable scenarios.

---

## Integration

This skill integrates with:

- **webReader tool** - Fetch target pages for theme generation
- **Read tool** - Read existing code files
- **Write/Edit tools** - Generate optimized code

All operations require user confirmation before execution.

コメント