Frontend Designのロゴ

Frontend Design

コミュニティ
roerohan
frontend-design

React-oriented UI/UX design principles for frontend development. Covers React patterns, component architecture, hooks, layout, typography, color, accessibility, and responsive design. Use when building React UI, reviewing frontend code, designing components, or making visual/interaction decisions. Assumes React with a meta-framework (TanStack Start, Next.js, Remix, etc.).

概要

公開者roerohan
リポジトリskills
スキル名frontend-design
スター
29
フォーク
1
同梱ファイル
7
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 7個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    roerohanがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルFrontend DesignをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/roerohan/skills/tree/main/frontend-design
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/roerohan/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/frontend-design .claude/skills/frontend-design
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでFrontend Designを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にFrontend Designを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Frontend Designは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Frontend Design

UI/UX principles for building well-designed, accessible, maintainable React interfaces.

Context: This skill assumes React as the UI layer, typically with a meta-framework (TanStack Start, Next.js, Remix, etc.) and a styling approach (Tailwind, CSS Modules, etc.). Raw HTML/CSS guidance is provided only where it underpins React patterns.

Core Principles

  1. Clarity over cleverness — Users should understand the interface immediately
  2. Consistency over novelty — Reuse established patterns; deviate only with reason
  3. Accessibility is not optional — Design for all users from the start
  4. Content drives layout — Structure follows information hierarchy, not decoration
  5. Composition over configuration — Prefer children and compound components over prop sprawl
  6. Server-first data, client-first interaction — Load data on the server; keep interactivity on the client

Decision Tree

What are you working on?
├─ React component design / hooks / state  → See react.md
├─ Reusable UI component patterns          → See components.md
├─ Page layout / spacing                   → See layout.md
├─ Text styling / hierarchy                → See typography.md
├─ Colors / theming / contrast             → See color.md
├─ Keyboard / screen reader / a11y         → See accessibility.md
├─ Multi-device / breakpoints              → See responsive.md
└─ Multiple concerns                       → Start with react.md, layer in others

Quick Reference

Visual Hierarchy Checklist

LevelPurposeTechniques
PrimarySingle main action/contentSize, weight, color, position
SecondarySupporting actions/contentReduced size/weight, muted color
TertiaryContextual/metadataSmallest size, lightest weight

Spacing System

Use a consistent base unit (4px or 8px). Apply multiples:

TokenValue (8px base)Use
xs4pxInline elements, icon gaps
sm8pxTight grouping
md16pxDefault element spacing
lg24pxSection padding
xl32pxMajor section separation
2xl48pxPage-level separation

The 60-30-10 Rule

ProportionRoleExample
60%Dominant / backgroundPage background, card surfaces
30%Secondary / supportingSection backgrounds, borders
10%Accent / emphasisCTAs, active states, highlights

Design Review Checklist

When reviewing frontend code or designs:

  • Hierarchy: Is the most important content/action visually dominant?
  • Consistency: Do similar elements look and behave the same?
  • Spacing: Is spacing systematic (not arbitrary pixel values)?
  • Color contrast: Do text/background combos meet WCAG AA (4.5:1)?
  • Interactive states: Do clickable elements have hover, focus, active, disabled states?
  • Responsive: Does the layout work at mobile, tablet, and desktop widths?
  • Keyboard: Can all interactive elements be reached and operated via keyboard?
  • Loading states: Are empty/loading/error states designed, not just happy path?
  • Touch targets: Are tap targets at least 44x44px on mobile?
  • Content overflow: Does the layout handle long text, missing images, edge cases?

Common Anti-Patterns

Anti-PatternProblemFix
Magic numbersmargin: 13px breaks systemUse spacing tokens
Color hardcoding#3b82f6 everywhereUse semantic color tokens
Hover-only affordanceHidden from keyboard/touch usersAlways show affordance; enhance on hover
Fixed dimensionsBreaks on different content/screensUse min/max + fluid sizing
Z-index warsEscalating z-index: 9999Use a layering system (base, dropdown, modal, toast)
Truncation without accesstext-overflow: ellipsis hides contentAdd tooltip or expand mechanism

Interaction Principles

  1. Feedback is immediate — Every user action gets a visible response within 100ms
  2. State is visible — Users can always tell what state the system is in
  3. Actions are reversible — Destructive actions require confirmation; prefer undo over "are you sure?"
  4. Errors are recoverable — Show what went wrong and how to fix it
  5. Transitions are meaningful — Animation communicates change, not decoration

React Review Checklist (Addendum)

On top of the design review checklist above, verify for React code:

  • Component boundaries: Is each component focused on one concern?
  • Props: Are props minimal and well-typed? No boolean prop sprawl?
  • Composition: Using children/render props instead of mega-config objects?
  • Effects: Are effects necessary, or can derived state / event handlers replace them?
  • Keys: Are list keys stable and meaningful (not array index)?
  • Memoization: Is useMemo/useCallback used only where measured necessary?
  • Server vs client: Is data fetching on the server? Is client JS minimal?
  • Error boundaries: Do async/fallible sections have error boundaries?
  • Suspense: Are loading states handled with Suspense where appropriate?

Reading Order

TaskFiles to Read
React component architecturereact.md
Building a page layoutlayout.md
Designing a reusable UI componentreact.md + components.md
Styling text contenttypography.md
Choosing / applying colorscolor.md
Making UI accessibleaccessibility.md
Supporting multiple screen sizesresponsive.md
Full design reviewThis file + all references

In This Reference

FilePurpose
react.mdReact patterns, hooks, composition, state, meta-frameworks
components.mdCommon UI component design patterns
layout.mdSpatial organization, grid, flexbox, spacing
typography.mdType scale, font selection, readability
color.mdColor systems, contrast, theming, dark mode
accessibility.mdWCAG compliance, keyboard, screen readers
responsive.mdBreakpoints, mobile-first, fluid design

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Frontend Design」では何ができますか?

React-oriented UI/UX design principles for frontend development. Covers React patterns, component architecture, hooks, layout, typography, color, accessibility, and responsive design. Use when building React UI, reviewing frontend code, designing components, or making visual/interaction decisions. Assumes React with a meta-framework (TanStack Start, Next.js, Remix, etc.).

TypingMindでFrontend Designを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Frontend Designはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにFrontend Designをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/roerohan/skills/tree/main/frontend-designを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Frontend Designを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Frontend Designは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもFrontend Designを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Frontend Design」は無料ですか?

はい。roerohanがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇