Skip to content
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,6 @@ pnpm-debug.log*

# jetbrains setting folder
.idea/

# Vivliostyle temporary files
.vivliostyle/
179 changes: 179 additions & 0 deletions _investigation/COLOR_PROPOSAL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
# アクセントカラー改善提案

## 現状の課題

**現在のアクセントカラー:** ![#6b4fa2](https://img.shields.io/badge/%236b4fa2-%236b4fa2?style=for-the-badge) `#6b4fa2`(紫系)

**問題点:**
- ダークモードでの視認性が低い
- 暗い背景(`#1a1a1a`)に対してコントラストが不足
- リンクやインタラクティブ要素が見づらい

## 改善案: ダークモードで見やすいアクセントカラー候補

### 候補1: ブライトブルー系(推奨)

| メイン | ライト | ダーク |
|:------:|:------:|:------:|
| ![#3b9eff](https://img.shields.io/badge/%233b9eff-%233b9eff?style=for-the-badge) | ![#5eb0ff](https://img.shields.io/badge/%235eb0ff-%235eb0ff?style=for-the-badge) | ![#2080e0](https://img.shields.io/badge/%232080e0-%232080e0?style=for-the-badge) |
| `#3b9eff` | `#5eb0ff` | `#2080e0` |

```css
--color-primary: #3b9eff; /* メインカラー */
--color-primary-light: #5eb0ff; /* ホバー時など */
--color-primary-dark: #2080e0; /* アクティブ時など */
```

**特徴:**
- ✅ ダークモードで非常に視認性が高い
- ✅ 技術系ドキュメントで広く採用(VS Code、GitHub、Azure Docs等)
- ✅ アクセシビリティ(WCAG AAレベル)良好
- ダークモード背景(`#1a1a1a`)とのコントラスト比: 約8.5:1
- ✅ Vivliostyleのブランドイメージ(青系)に近い
- ✅ 長時間の閲覧でも目が疲れにくい

**採用例:**
- Visual Studio Code: `#0078d4`
- GitHub: `#58a6ff`(ダークモード)
- Azure Docs: `#0078d4`

**推奨理由:**
技術ドキュメントの標準的な色であり、開発者にとって親しみやすく、かつVivliostyleの既存ブランドカラー(青系)との整合性が高い。

---

### 候補2: サイアン・ティール系

| メイン | ライト | ダーク |
|:------:|:------:|:------:|
| ![#22d3ee](https://img.shields.io/badge/%2322d3ee-%2322d3ee?style=for-the-badge) | ![#5eead4](https://img.shields.io/badge/%235eead4-%235eead4?style=for-the-badge) | ![#14b8a6](https://img.shields.io/badge/%2314b8a6-%2314b8a6?style=for-the-badge) |
| `#22d3ee` | `#5eead4` | `#14b8a6` |

```css
--color-primary: #22d3ee; /* メインカラー */
--color-primary-light: #5eead4; /* ホバー時など */
--color-primary-dark: #14b8a6; /* アクティブ時など */
```

**特徴:**
- ✅ ダークモードで鮮やかに目立つ
- ✅ モダンで先進的な印象
- ✅ 目に優しく長時間の閲覧に適している
- ✅ アクセシビリティ良好
- ダークモード背景(`#1a1a1a`)とのコントラスト比: 約10:1
- ⚠️ Vivliostyle既存ブランドからはやや距離がある

**採用例:**
- Tailwind CSS: `#06b6d4`(cyan-500)
- Next.js: `#0070f3`(青系だがティール寄り)
- Vercel: `#0070f3`

**推奨ケース:**
新鮮なイメージを打ち出したい場合や、他の技術系サイトと差別化したい場合に適している。

---

### 候補3: コーラル・オレンジ系

| メイン | ライト | ダーク |
|:------:|:------:|:------:|
| ![#ff7849](https://img.shields.io/badge/%23ff7849-%23ff7849?style=for-the-badge) | ![#ff9770](https://img.shields.io/badge/%23ff9770-%23ff9770?style=for-the-badge) | ![#f05a2c](https://img.shields.io/badge/%23f05a2c-%23f05a2c?style=for-the-badge) |
| `#ff7849` | `#ff9770` | `#f05a2c` |

```css
--color-primary: #ff7849; /* メインカラー */
--color-primary-light: #ff9770; /* ホバー時など */
--color-primary-dark: #f05a2c; /* アクティブ時など */
```

**特徴:**
- ✅ ダークモードで最も目立つ暖色系
- ✅ リンクやCTA(Call To Action)が非常に明確
- ✅ アクセシビリティ良好
- ダークモード背景(`#1a1a1a`)とのコントラスト比: 約7:1
- ⚠️ やや主張が強い(長時間閲覧で疲れる可能性)
- ⚠️ 技術系ドキュメントでは珍しい配色

**採用例:**
- Rust: `#f74c00`
- GitLab: `#fc6d26`
- Product Hunt: `#da552f`

**推奨ケース:**
アクションボタンやハイライト要素に使用し、本文リンクは別の控えめな色にする場合に適している。

---

## 比較表

| 項目 | 候補1: ブルー | 候補2: サイアン | 候補3: コーラル |
|------|--------------|----------------|----------------|
| **視認性(ダーク)** | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐ |
| **視認性(ライト)** | ⭐⭐⭐⭐ | ⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ |
| **ブランド整合性** | ⭐⭐⭐⭐⭐ | ⭐⭐⭐ | ⭐⭐ |
| **技術系親和性** | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐ | ⭐⭐ |
| **長時間閲覧** | ⭐⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ | ⭐⭐⭐ |
| **差別化** | ⭐⭐ | ⭐⭐⭐⭐ | ⭐⭐⭐⭐⭐ |
| **コントラスト比** | 8.5:1 | 10:1 | 7:1 |

## 推奨: 候補1(ブライトブルー)

**理由:**
1. Vivliostyleの既存ブランドイメージとの整合性が高い
2. 技術ドキュメントの標準的な配色で親しみやすい
3. アクセシビリティとユーザビリティのバランスが最良
4. ライトモード・ダークモード両方で十分な視認性

## 実装方法

### global.cssの変更箇所

| 項目 | 現在 | 変更後(候補1) |
|:-----|:----:|:---------------:|
| **primary** | ![#6b4fa2](https://img.shields.io/badge/%236b4fa2-%236b4fa2?style=for-the-badge) | ![#3b9eff](https://img.shields.io/badge/%233b9eff-%233b9eff?style=for-the-badge) |
| **primary-light** | ![#8b6fc2](https://img.shields.io/badge/%238b6fc2-%238b6fc2?style=for-the-badge) | ![#5eb0ff](https://img.shields.io/badge/%235eb0ff-%235eb0ff?style=for-the-badge) |
| **primary-dark** | ![#4b2f82](https://img.shields.io/badge/%234b2f82-%234b2f82?style=for-the-badge) | ![#2080e0](https://img.shields.io/badge/%232080e0-%232080e0?style=for-the-badge) |

```css
/* 現在 */
--color-primary: #6b4fa2;
--color-primary-light: #8b6fc2;
--color-primary-dark: #4b2f82;

/* 変更後(候補1の場合) */
--color-primary: #3b9eff;
--color-primary-light: #5eb0ff;
--color-primary-dark: #2080e0;
```

**ファイルパス:** `/public/styles/global.css`(33-35行目)

### 影響範囲

- リンクテキスト(本文内)
- ナビゲーション要素のアクティブ状態
- ボタンの背景色
- アクセント装飾(下線、ボーダーなど)

### テスト項目

- [ ] ライトモードでのリンク視認性
- [ ] ダークモードでのリンク視認性
- [ ] ホバー時の色変化が自然か
- [ ] アクティブ状態の明瞭さ
- [ ] ブレッドクラムのアクティブページ表示
- [ ] サイドバーのアクティブメニュー表示

## 次のステップ

1. カラー候補の選定
2. `public/styles/global.css` の更新
3. ローカル環境でのビジュアル確認(`npm run dev`)
4. ライトモード・ダークモード両方での動作確認
5. コミット・デプロイ

## 参考資料

- WCAG 2.1 Contrast Guidelines: https://www.w3.org/WAI/WCAG21/Understanding/contrast-minimum.html
- Material Design Color System: https://material.io/design/color/the-color-system.html
- VS Code Themes: https://code.visualstudio.com/docs/getstarted/themes
Loading
Loading