2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

VSCode/Cursor の Dark Modern テーマをちょっと調整してみました

Posted at

はじめに

とにかくダークテーマが好きで、VSCode/Cursorでは「Dark Modern」というテーマを使用しています。しかし、このテーマのエディタの背景色が濃いめに感じ、テキストとのコントラストが目に優しくない気がしてきました。👀

そこで、背景色も含めちょっとだけ調整してみましたので、こちらに書き留めておきます。

調整前

スクショしてみるとあんまりわからないかも🤔ですが、この画面を見ながらボーっとし始めるとだんだん目がチカチカしてくるんですよね。カラフルなシンタックスハイライトも要因だと思いますが(笑)

調整後

これまた、スクショすると実際より明るく見える気がしますが、背景を変えるだけで全体的にパステルカラーっぽい印象になったと感じます。

settings.json を編集

settings.json の開き方

  1. VSCode/Cursor内で cmd (ctrl) + shift + P を入力
  2. User Settings と入力
  3. Preferences: Open User Settings (JSON) を選択
  4. settings.json が開く

以下の内容を追加

注意

こちらの設定は、配色テーマが「Dark Modern」の状態で使用される想定です。

settings.json
{
    "workbench.colorCustomizations": {
        "editor.background": "#303030",
        "editor.lineHighlightBorder":"#00000000",
        "focusBorder": "#00000000",
        "list.activeSelectionBackground": "#3e3e3e",
        "list.activeSelectionForeground": "#ffffff",
        "list.hoverBackground": "#2e2e2e",
        "list.hoverForeground": "#ffffff",
        "panel.background": "#000000",
        "sideBar.background": "#252525",
        "sideBarSectionHeader.background": "#252525",
        "statusBar.background": "#252525",
        "tab.activeBackground": "#303030",
        "tab.activeBorderTop": "#7e7e7e",
        "tab.hoverBackground":"#303030",
        "tab.hoverForeground": "#ffffff",
        "tab.inactiveBackground": "#252525",
    }
}

さらにカスタマイズする場合の参照を貼っておきます。

👉 配色テーマの変更

👉 colorCustomizations の詳細

Features

主な変更点を列挙します。

  • エディタの背景を #303030 に変更
  • サイドバーやパネルの背景を変更
  • サイドバーのエクスプローラのアイテムをホバーした際に、ファイル名がハイライトされるように変更(白文字のみ。Git関連やエラー・警告などでファイル名に色がついている場合はハイライトされない。)
  • フォーカスした際の青枠を削除(例:サイドバーのエクスプローラーで、ファイルなどが表示されていない領域をクリックするとフォーカスできる。)
  • 編集中のファイルのタブのアクセントを #7e7e7e に変更

さいごに

読んでいただきありがとうございました!

実は、これが初めての投稿です ( ^ω^ )
これから、積極的に発信できたらいいなと思ってます(かっこいい記事は書けませんが)!

こうしたら読みやすいぞ、とかあればぜひご教授ください!☺️

2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?