0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Spyderに人気カラーテーマを追加する (10種類+好きなだけ)

0
Last updated at Posted at 2026-09-03

はじめに

Spyderに人気のカラーテーマを追加します。Spyderは色を設定できる構文の種類が少ないため、完全な再現ではなく、○○風になることをご了承ください。

「一括で取り込む方法」のセクションで、設定ファイルを編集して一括でテーマを取り込む方法を紹介しています。

この記事で用いたSpyderは、スタンドアローンのバージョン6.1.6です。

わざわざSpyderを使う理由については、こちらのnote記事で語っています。

ダークテーマ

1. Dracula

image.png

image.png

2. One Dark Pro

image.png

image.png

3. GitHub Dark

image.png

image.png

4. Tokyo Night

image.png

image.png

5. Night Owl

image.png

image.png

ライトテーマ

6. GitHub Light

image.png

image.png

7. ayu Light

image.png

image.png

8. Catppuccin Latte

image.png

image.png

9. Light Owl

image.png

image.png

10. Rosé Pine Dawn

image.png

image.png

一括で取り込む方法

上記のカラーテーマを一つずつカスタムカラーテーマから作成するのは骨が折れるので、設定ファイルに追記して一括で取り込みます。Spyderのスタンドアローンアプリを想定しています。

まず、Spyderを終了します。これは、Spyderが開いていると、これから編集するspyder.iniファイルが自動的に書き換えられてしまうからです。Spyderを終了した後、spyder.iniファイルを開きます。このファイルは、初期設定でSpyderをインストールした場合は以下のような場所にあります。

Windows

C:\Users\<ユーザー名>\.spyder-py3\config\spyder.ini

Mac (ファインダーで<ユーザー名>を開いても.spyder-py3フォルダが見つからない場合は、「commnad + shift + .」で隠しフォルダを表示してください)

/Users/<ユーザー名>/.spyder-py3/config/spyder.ini

このファイルをテキストエディタで開いてappearanceを検索すると、536行目辺りに[appearance]と記述されていて、ここのブロックがカラーテーマ関連の設定であることが分かります。(行数はSpyderの設定を変更していると上下します)

image.png

ファイル内検索でvibrant-ink/instanceを検索すると、Spyderに備え付けのカラーテーマ設定の最終行に飛ぶので、この次の行に、下の画像のようにカラーテーマを定義したコードを貼り付けます。コードは「spyder.iniファイルに貼り付けるコード」セクションに載せています。

image.png

コードを貼り付けた後はspyder.iniファイルを保存してSpyderを立ち上げると、カラーテーマ選択画面に、追加したカラーテーマが現れます。
再度の注意ですが、spyder.iniを編集する前に必ずSpyderを終了してください。

image.png

以上です。

実のところ、今回紹介したテーマのカラーコードは全てGemini 3.6 Flashに教えてもらいました。
ですので、何かお気に入りのテーマがある場合は、形式に沿ってカラーコードを出力してもらうことで、おおよそどのテーマでもSpyderで使うことができます。
「カラーテーマ作成のプロンプト例」を参考にしてください。
注意点として、テーマを追加した際は、必ずコード一行目のcustom_namesに'custom-N'を追記してください。
そうしないと、追加したカラーテーマがドロップダウンリストに出現しません。

それでは、Spyderで良きデータサイエンスライフを!

spyder.iniファイルに貼り付けるコード

custom_names = ['custom-0', 'custom-1', 'custom-2', 'custom-3', 'custom-4', 'custom-5', 'custom-6', 'custom-7', 'custom-8', 'custom-9']
custom-0/background = #282a36
custom-0/currentline = #343746
custom-0/currentcell = #282a36
custom-0/occurrence = #44475a
custom-0/ctrlclick = #8be9fd
custom-0/sideareas = #21222c
custom-0/matched_p = #50fa7b
custom-0/unmatched_p = #ff5555
custom-0/normal = ('#f8f8f2', False, False)
custom-0/keyword = ('#ff79c6', False, False)
custom-0/builtin = ('#8be9fd', False, False)
custom-0/definition = ('#50fa7b', True, False)
custom-0/comment = ('#6272a4', False, True)
custom-0/string = ('#f1fa8c', False, False)
custom-0/number = ('#bd93f9', False, False)
custom-0/instance = ('#ffb86c', False, False)
custom-0/magic = ('#ff79c6', False, False)
custom-0/name = Dracula
custom-1/background = #282c34
custom-1/currentline = #2c313a
custom-1/currentcell = #282c34
custom-1/occurrence = #3e4451
custom-1/ctrlclick = #61afef
custom-1/sideareas = #21252b
custom-1/matched_p = #3e4451
custom-1/unmatched_p = #e06c75
custom-1/normal = ('#abb2bf', False, False)
custom-1/keyword = ('#c678dd', False, False)
custom-1/builtin = ('#e5c07b', False, False)
custom-1/definition = ('#61afef', True, False)
custom-1/comment = ('#5c6370', False, True)
custom-1/string = ('#98c379', False, False)
custom-1/number = ('#d19a66', False, False)
custom-1/instance = ('#e06c75', False, False)
custom-1/magic = ('#c678dd', False, False)
custom-1/name = One Dark Pro
custom-2/background = #0d1117
custom-2/currentline = #161b22
custom-2/currentcell = #0d1117
custom-2/occurrence = #2d3748
custom-2/ctrlclick = #58a6ff
custom-2/sideareas = #010409
custom-2/matched_p = #388bfd
custom-2/unmatched_p = #f85149
custom-2/normal = ('#c9d1d9', False, False)
custom-2/keyword = ('#ff7b72', False, False)
custom-2/builtin = ('#ffa657', False, False)
custom-2/definition = ('#d2a8ff', True, False)
custom-2/comment = ('#8b949e', False, True)
custom-2/string = ('#a5d6ff', False, False)
custom-2/number = ('#79c0ff', False, False)
custom-2/instance = ('#7ee787', False, False)
custom-2/magic = ('#d2a8ff', False, False)
custom-2/name = GitHub Dark
custom-3/background = #1a1b26
custom-3/currentline = #24283b
custom-3/currentcell = #1a1b26
custom-3/occurrence = #3b4261
custom-3/ctrlclick = #7aa2f7
custom-3/sideareas = #16161e
custom-3/matched_p = #3b4261
custom-3/unmatched_p = #f7768e
custom-3/normal = ('#a9b1d6', False, False)
custom-3/keyword = ('#bb9af7', False, False)
custom-3/builtin = ('#0db9d7', False, False)
custom-3/definition = ('#7aa2f7', True, False)
custom-3/comment = ('#565f89', False, True)
custom-3/string = ('#9ece6a', False, False)
custom-3/number = ('#ff9e64', False, False)
custom-3/instance = ('#7dcfff', False, False)
custom-3/magic = ('#bb9af7', False, False)
custom-3/name = Tokyo Night
custom-4/background = #011627
custom-4/currentline = #022a4b
custom-4/currentcell = #011627
custom-4/occurrence = #5f7e97
custom-4/ctrlclick = #80dbc5
custom-4/sideareas = #01111d
custom-4/matched_p = #5f7e97
custom-4/unmatched_p = #ef5350
custom-4/normal = ('#d6deeb', False, False)
custom-4/keyword = ('#c792ea', False, False)
custom-4/builtin = ('#addb67', False, False)
custom-4/definition = ('#82aaff', True, False)
custom-4/comment = ('#637777', False, True)
custom-4/string = ('#ecc48d', False, False)
custom-4/number = ('#f78c6c', False, False)
custom-4/instance = ('#7fdbca', False, False)
custom-4/magic = ('#c792ea', False, False)
custom-4/name = Night Owl
custom-5/background = #ffffff
custom-5/currentline = #f6f8fa
custom-5/currentcell = #ffffff
custom-5/occurrence = #ddf4ff
custom-5/ctrlclick = #0969da
custom-5/sideareas = #f6f8fa
custom-5/matched_p = #b6e3ff
custom-5/unmatched_p = #cf222e
custom-5/normal = ('#24292f', False, False)
custom-5/keyword = ('#cf222e', False, False)
custom-5/builtin = ('#953800', False, False)
custom-5/definition = ('#8250df', True, False)
custom-5/comment = ('#6e7781', False, True)
custom-5/string = ('#0a3069', False, False)
custom-5/number = ('#0550ae', False, False)
custom-5/instance = ('#1a7f37', False, False)
custom-5/magic = ('#8250df', False, False)
custom-5/name = GitHub Light
custom-6/background = #fafafa
custom-6/currentline = #f3f3f3
custom-6/currentcell = #fafafa
custom-6/occurrence = #e0e0e0
custom-6/ctrlclick = #55b4d4
custom-6/sideareas = #f3f3f3
custom-6/matched_p = #d9d9d9
custom-6/unmatched_p = #f07178
custom-6/normal = ('#5c6166', False, False)
custom-6/keyword = ('#fa8d3e', False, False)
custom-6/builtin = ('#39bae6', False, False)
custom-6/definition = ('#f2ae49', True, False)
custom-6/comment = ('#abb0b6', False, True)
custom-6/string = ('#86b300', False, False)
custom-6/number = ('#a37acc', False, False)
custom-6/instance = ('#f07178', False, False)
custom-6/magic = ('#fa8d3e', False, False)
custom-6/name = ayu Light
custom-7/background = #eff1f5
custom-7/currentline = #e6e9ef
custom-7/currentcell = #eff1f5
custom-7/occurrence = #ccd0da
custom-7/ctrlclick = #1e66f5
custom-7/sideareas = #e6e9ef
custom-7/matched_p = #bcc0cc
custom-7/unmatched_p = #d20f39
custom-7/normal = ('#4c4f69', False, False)
custom-7/keyword = ('#8839ef', False, False)
custom-7/builtin = ('#df8e1d', False, False)
custom-7/definition = ('#1e66f5', True, False)
custom-7/comment = ('#9ca0b0', False, True)
custom-7/string = ('#40a02b', False, False)
custom-7/number = ('#fe640b', False, False)
custom-7/instance = ('#e64553', False, False)
custom-7/magic = ('#8839ef', False, False)
custom-7/name = Catppuccin Latte
custom-8/background = #f0f2f5
custom-8/currentline = #e0e5eb
custom-8/currentcell = #f0f2f5
custom-8/occurrence = #c5d2e0
custom-8/ctrlclick = #0c969b
custom-8/sideareas = #e4e9f0
custom-8/matched_p = #b3c5d7
custom-8/unmatched_p = #de3d35
custom-8/normal = ('#403f53', False, False)
custom-8/keyword = ('#994cc3', False, False)
custom-8/builtin = ('#4876d6', False, False)
custom-8/definition = ('#0c969b', True, False)
custom-8/command = ('#994cc3', False, False)
custom-8/comment = ('#9099a7', False, True)
custom-8/string = ('#c96b18', False, False)
custom-8/number = ('#aa0982', False, False)
custom-8/instance = ('#e25d5d', False, False)
custom-8/magic = ('#994cc3', False, False)
custom-8/name = Light Owl
custom-9/background = #faf4ed
custom-9/currentline = #f2e9e1
custom-9/currentcell = #faf4ed
custom-9/occurrence = #e4dfd7
custom-9/ctrlclick = #286983
custom-9/sideareas = #f2e9e1
custom-9/matched_p = #d7d0c8
custom-9/unmatched_p = #b4637a
custom-9/normal = ('#575279', False, False)
custom-9/keyword = ('#286983', False, False)
custom-9/builtin = ('#d7827e', False, False)
custom-9/definition = ('#907aa9', True, False)
custom-9/comment = ('#9893a5', False, True)
custom-9/string = ('#ea9d34', False, False)
custom-9/number = ('#d7827e', False, False)
custom-9/instance = ('#b4637a', False, False)
custom-9/magic = ('#286983', False, False)
custom-9/name = Rosé Pine Dawn

カラーテーマ作成のプロンプト例

プロンプト内の「テーマ名」と「custom-N」は適宜変更してください。

「テーマ名」というカラーテーマのカラーコードを、次の形式で出力してください。custom-0の部分は、「custom-N」にしてください。

custom-0/background = #282a36
custom-0/currentline = #343746
custom-0/currentcell = #282a36
custom-0/occurrence = #44475a
custom-0/ctrlclick = #8be9fd
custom-0/sideareas = #21222c
custom-0/matched_p = #50fa7b
custom-0/unmatched_p = #ff5555
custom-0/normal = ('#f8f8f2', False, False)
custom-0/keyword = ('#ff79c6', False, False)
custom-0/builtin = ('#8be9fd', False, False)
custom-0/definition = ('#50fa7b', True, False)
custom-0/comment = ('#6272a4', False, True)
custom-0/string = ('#f1fa8c', False, False)
custom-0/number = ('#bd93f9', False, False)
custom-0/instance = ('#ffb86c', False, False)
custom-0/magic = ('#ff79c6', False, False)
custom-0/name = Dracula
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?