github-markdown-cssでライトテーマのみを使用する

更新

結論

ライトテーマのみを使用したい場合は、github-markdown-light.cssをimportする。

import "github-markdown-css/github-markdown-light.css";

動作確認環境

"devDependencies": {
  "github-markdown-css": "^5.1.0"
}

経緯

v5.0.0より、ブラウザの設定に合わせてダーク・ライトテーマを切り替えてくれるようになりました。

リファレンスによると、ライトテーマのみを使用したい場合はgithub-markdown-light.cssを使ってね、とのこと。当ライトテーマのみを使用したい場合は、github-markdown-light.cssをimportします。

// import "github-markdown-css";
import "github-markdown-css/github-markdown-light.css";

これでライトテーマのみを使用する設定にできました。