Get the FREE Ultimate OpenClaw Setup Guide →

frontend-design

Scanned
npx machina-cli add skill AI-Driven-School/aiki/frontend-design --openclaw
Files (1)
SKILL.md
6.1 KB

/frontend-design スキル

独自性のある、AI臭くないフロントエンドUIを生成します。

使用方法

/frontend-design ログインフォーム
/frontend-design ダッシュボード --style minimal
/frontend-design 商品カード --style bold

AI臭いデザインを避ける原則

❌ 避けるべきパターン

  1. グラデーション乱用

    • 紫→青→ピンクの派手なグラデーション
    • 背景全体にグラデーション
  2. 過剰な装飾

    • 無意味なアイコン配置
    • 過剰なシャドウとボーダー
    • ネオン風のグロー効果
  3. テンプレート感

    • Hero + 3カラム + CTA の定型レイアウト
    • 「Welcome to...」「Get Started」などの定型文
    • ストックフォト風のイラスト配置
  4. 一貫性のなさ

    • 余白のバラつき
    • フォントサイズの乱用
    • カラーの統一感なし

✅ 採用すべきアプローチ

  1. 制約のあるカラーパレット

    • 最大3色(プライマリ、アクセント、グレースケール)
    • 彩度を抑えた落ち着いた色使い
  2. 意図的な余白

    • 8px グリッドシステム
    • コンテンツに呼吸を持たせる
  3. タイポグラフィの階層

    • 明確なサイズ階層(3-4段階)
    • ウェイトのコントラスト
  4. 機能的な装飾のみ

    • 意味のあるアイコン
    • 状態を示すシャドウ

デザインスタイル

Minimal(ミニマル)

特徴: 余白重視、モノトーン基調、細いボーダー
用途: SaaS、ダッシュボード、管理画面

Bold(ボールド)

特徴: 大きなタイポグラフィ、コントラスト強め、ダークモード
用途: LP、ポートフォリオ、メディアサイト

Soft(ソフト)

特徴: 丸み、パステル調、アニメーション控えめ
用途: ヘルスケア、教育、子供向け

Corporate(コーポレート)

特徴: 信頼感、整列、控えめなアクセント
用途: 企業サイト、B2B、金融

カラーシステム

Minimal パレット

--bg: #fafafa;
--surface: #ffffff;
--text-primary: #18181b;
--text-secondary: #71717a;
--border: #e4e4e7;
--accent: #18181b;

Bold パレット

--bg: #09090b;
--surface: #18181b;
--text-primary: #fafafa;
--text-secondary: #a1a1aa;
--border: #27272a;
--accent: #fafafa;

Soft パレット

--bg: #fef7f0;
--surface: #ffffff;
--text-primary: #44403c;
--text-secondary: #78716c;
--border: #f5f5f4;
--accent: #ea580c;

コンポーネントライブラリ

ボタン

<!-- Primary -->
<button class="px-4 py-2.5 bg-zinc-900 text-white text-sm font-medium rounded-lg hover:bg-zinc-800 transition-colors">
    続ける
</button>

<!-- Secondary -->
<button class="px-4 py-2.5 bg-white text-zinc-900 text-sm font-medium rounded-lg border border-zinc-200 hover:bg-zinc-50 transition-colors">
    キャンセル
</button>

<!-- Ghost -->
<button class="px-4 py-2.5 text-zinc-600 text-sm font-medium rounded-lg hover:bg-zinc-100 transition-colors">
    詳細を見る
</button>

入力フィールド

<div class="space-y-1.5">
    <label class="block text-sm font-medium text-zinc-700">メールアドレス</label>
    <input type="email"
        class="w-full px-3.5 py-2.5 text-sm bg-white border border-zinc-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-zinc-900 focus:ring-offset-1 placeholder:text-zinc-400"
        placeholder="you@example.com">
</div>

カード

<div class="bg-white rounded-xl border border-zinc-200 p-5">
    <div class="flex items-start justify-between">
        <div>
            <h3 class="text-sm font-semibold text-zinc-900">プロジェクト名</h3>
            <p class="text-sm text-zinc-500 mt-0.5">最終更新: 2時間前</p>
        </div>
        <span class="px-2 py-1 text-xs font-medium text-emerald-700 bg-emerald-50 rounded-md">
            アクティブ
        </span>
    </div>
</div>

ナビゲーション

<nav class="flex items-center justify-between px-6 py-4 border-b border-zinc-100">
    <div class="flex items-center gap-8">
        <span class="text-lg font-semibold text-zinc-900">ロゴ</span>
        <div class="flex items-center gap-6">
            <a href="#" class="text-sm font-medium text-zinc-900">ホーム</a>
            <a href="#" class="text-sm text-zinc-500 hover:text-zinc-900">機能</a>
            <a href="#" class="text-sm text-zinc-500 hover:text-zinc-900">料金</a>
        </div>
    </div>
    <button class="px-4 py-2 text-sm font-medium text-white bg-zinc-900 rounded-lg">
        始める
    </button>
</nav>

モックアップ連携

/frontend-design で生成したコードは /mockup でPNG化できます。

> /frontend-design ログイン画面 --style minimal

[HTMLコード生成]

> /mockup ログイン画面

✅ mockups/login.png を作成しました

実装ガイドライン

1. 構造から始める

まずレイアウトとスペーシングを決定。装飾は最後。

2. 本物のコンテンツを使う

「Lorem ipsum」ではなく、実際のコピーライティングを意識。

3. 状態を考慮する

  • Empty state
  • Loading state
  • Error state
  • Success state

4. アクセシビリティ

  • 十分なコントラスト比
  • フォーカス状態の可視化
  • セマンティックHTML

出力例

> /frontend-design ユーザープロフィールカード --style minimal

生成中...

✅ コンポーネント生成完了

📁 出力ファイル:
  - components/ProfileCard.tsx
  - components/ProfileCard.stories.tsx (Storybook)

🎨 スタイル: Minimal
📐 レスポンシブ: sm, md, lg
♿ アクセシビリティ: WCAG 2.1 AA

Source

git clone https://github.com/AI-Driven-School/aiki/blob/main/.claude/skills/frontend-design/SKILL.mdView on GitHub

Overview

frontend-design generates distinctive, production-grade frontend UI code that avoids AI aesthetics. It enforces opinionated design principles like constrained color palettes, deliberate spacing, and clear typography, across four styles (Minimal, Bold, Soft, Corporate) to build web UIs and reusable components. Use it when building web UIs, components, or refining /frontend-design workflows.

How This Skill Works

You provide a target UI element and an optional style (e.g., /frontend-design ログインフォーム or /frontend-design ダッシュボード --style minimal). The tool outputs production-ready HTML/CSS/JS scaffolding aligned to a restrained color system, 8px grid-based spacing, and a 3-4 level typography hierarchy, plus a small component library (Button, Input, Card, Navigation). It can also feed into /mockup to export PNGs of the mockups.

When to Use It

  • Creating a login form with a distinct, non-generic look.
  • Building a dashboard or admin panel using Minimal or Corporate style.
  • Designing product cards or a catalog with Bold styling.
  • Prototyping a corporate or SaaS landing page.
  • Iterating UI with consistent spacing (8px grid) and restrained color palettes.

Quick Start

  1. Step 1: Run /frontend-design <component> [--style <Minimal|Bold|Soft|Corporate>].
  2. Step 2: Review the generated HTML/CSS/JS scaffolding and component library.
  3. Step 3: If needed, export visuals with /mockup <component> to produce PNGs.

Best Practices

  • Adopt a constrained color palette with up to 3 colors (primary, accent, greyscale).
  • Apply an 8px grid to create deliberate whitespace and readability.
  • Establish a 3-4 level typographic scale with clear weight contrast.
  • Use meaningful icons and state-revealing shadows rather than decorative flourishes.
  • Follow the selected style (Minimal, Bold, Soft, Corporate) to avoid AI-like aesthetics.

Example Use Cases

  • Login screen designed with Minimal style emphasizing whitespace and mono tones.
  • Admin dashboard using Corporate style for trusted, aligned UI.
  • Product card grid with Bold styling and strong typographic contrast.
  • Navigation bar for a SaaS app with restrained accents and clean hierarchy.
  • Dashboard widget card showing status (e.g., Active) with functional decoration.

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers