カスタムテーマ
Mutsumi の内蔵テーマ以外に、TOML ファイルでカスタムテーマを作成できます。
テーマファイルの作成
Section titled “テーマファイルの作成”-
テーマディレクトリを作成
Terminal window mkdir -p ~/.config/mutsumi/themes/ -
テーマファイルを作成
Terminal window touch ~/.config/mutsumi/themes/my-theme.toml -
テーマを定義
以下の形式でカラーを定義します:
[meta]name = "My Custom Theme"author = "your-name"[colors]background = "#1e1e2e"foreground = "#cdd6f4"accent = "#94e2d5"muted = "#6c7086"error = "#f38ba8"warning = "#fab387"success = "#a6e3a1"[priority_colors]high = "#f38ba8"normal = "#cdd6f4"low = "#6c7086"[tag_colors]dev = "#89b4fa"bugfix = "#f38ba8"life = "#a6e3a1"docs = "#fab387"# マッチしないタグは accent カラーを使用 -
config.toml で有効化
theme = "my-theme"
テーマファイルの構造
Section titled “テーマファイルの構造”[meta] セクション
Section titled “[meta] セクション”| フィールド | 型 | 説明 |
|---|---|---|
name | string | テーマの表示名 |
author | string | 作者名 |
[colors] セクション
Section titled “[colors] セクション”| フィールド | 型 | 説明 |
|---|---|---|
background | string | アプリ全体の背景色 |
foreground | string | メインテキストカラー |
accent | string | アクセントカラー(ハイライト、フォーカス) |
muted | string | 控えめなテキストカラー |
error | string | エラー表示カラー |
warning | string | 警告表示カラー |
success | string | 成功表示カラー |
[priority_colors] セクション
Section titled “[priority_colors] セクション”| フィールド | 型 | 説明 |
|---|---|---|
high | string | 高優先度タスクのカラー |
normal | string | 通常優先度タスクのカラー |
low | string | 低優先度タスクのカラー |
[tag_colors] セクション
Section titled “[tag_colors] セクション”タグ名をキー、カラーコードを値とする辞書です。定義されていないタグには accent カラーが使用されます。
内蔵テーマのカラー値
Section titled “内蔵テーマのカラー値”カスタムテーマの参考として、内蔵テーマのカラー値を示します。
monochrome-zen
Section titled “monochrome-zen”[colors]background = "#0f0f0f"foreground = "#e0e0e0"accent = "#5de4c7"muted = "#666666"error = "#e06c75"
[priority_colors]high = "#e06c75"normal = "#e5c07b"low = "#666666"Catppuccin 風カスタムテーマの例
Section titled “Catppuccin 風カスタムテーマの例”[meta]name = "Catppuccin Mocha"author = "community"
[colors]background = "#1e1e2e"foreground = "#cdd6f4"accent = "#cba6f7"muted = "#6c7086"error = "#f38ba8"warning = "#fab387"success = "#a6e3a1"
[priority_colors]high = "#f38ba8"normal = "#89b4fa"low = "#6c7086"
[tag_colors]dev = "#89b4fa"bugfix = "#f38ba8"life = "#a6e3a1"docs = "#fab387"ml = "#cba6f7"アクセントカラーのみオーバーライド
Section titled “アクセントカラーのみオーバーライド”テーマ全体を変更せず、アクセントカラーだけをオーバーライドすることもできます:
theme = "monochrome-zen"# 以下は将来対応予定# accent_color = "#94e2d5"