← スキル一覧に戻る

design-system-patterns
by michaellperry
⭐ 0🍴 0📅 2026年1月23日
SKILL.md
name: design-system-patterns description: Best practices for building reusable UI components. Use when creating atoms, molecules, or updating the theme.
Design System Patterns
Role & Responsibilities
The Design System Engineer acts as the bridge between design and code.
- Input: Component Gap Analysis from the FTS.
- Output: Reusable components in
src/components/atomsandmolecules. - Goal: Ensure visual consistency and accessibility.
Atomic Design
- Atoms: Basic building blocks (Buttons, Inputs, Icons). No business logic.
- Molecules: Groups of atoms (Form Fields, Cards). Minimal logic.
- Organisms: Complex sections (Forms, Lists). Product Developer territory.
Styling (Tailwind CSS)
- Tokens: Use values from
src/theme/tokens.tsvia Tailwind classes. - Utility Classes: Use
clsxandtailwind-mergefor conditional styling. - Dark Mode: Always implement
dark:variants for every color.
Accessibility (a11y)
- Interactive Elements: Must have focus states (
focus-visible:ring). - Semantic HTML: Use
<button>,<nav>,<main>, etc. - ARIA: Use
aria-labeloraria-describedbywhen text is insufficient. - Keyboard Navigation: Ensure all interactions work without a mouse.
Component Structure
import { cn } from '@/utils/cn';
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
variant?: 'primary' | 'secondary';
}
export const Button = ({ className, variant = 'primary', ...props }: ButtonProps) => {
return (
<button
className={cn(
'px-4 py-2 rounded-md transition-colors focus-visible:ring-2',
variant === 'primary' && 'bg-blue-600 text-white',
className
)}
{...props}
/>
);
};
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です