← スキル一覧に戻る

styling-patterns
by spences10
⭐ 6🍴 0📅 2026年1月21日
SKILL.md
name: styling-patterns
prettier-ignore
description: DaisyUI v5 design system. Use for backgrounds, borders, text sizes, opacity, semantic colors, and spacing.
Styling Patterns
Quick Start
<!-- ✅ Correct: Proper background hierarchy -->
<div class="bg-base-200 p-6">
<div class="card bg-base-100 p-4 shadow-md">
<h2 class="mb-3 text-2xl font-bold">Section Title</h2>
<p class="text-base">Main content text</p>
<p class="text-sm opacity-60">Secondary metadata</p>
</div>
</div>
<!-- ❌ Wrong: Same background as parent -->
<div class="bg-base-100">
<div class="card bg-base-100">No visual separation</div>
</div>
Core Principles
- Background hierarchy: base-200 (page) → base-100 (card) → base-200 (nested) - never same as parent
- Borders: Use
border-base-300solid (no opacity) - Text sizes: 3xl (h1) → 2xl (h2) → xl (h3) → base (body) → sm (metadata) → xs (hints)
- Opacity: ONLY 60/70/80, ONLY on metadata/descriptions (never titles/buttons/primary actions)
- Shadows: md (default) → lg (hover) → xl (important)
- Semantic colors: error/success should NOT have opacity
- Test contrast: Always verify on both light and dark themes
Reference Files
- styling-guide.md - Complete design system with all rules and examples
スコア
総合スコア
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
レビュー
💬
レビュー機能は近日公開予定です