0
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?

Yamada UIでダークモードを有効化する方法

Posted at

viteでReactのプロジェクトを作成後、ダークモードを有効化する方法がわからなかったので記事にします。

結論

<ColorModeScript />をコード内に追加すればうまくいきました。

公式ドキュメントの、カラーモードページに記述されていましたが、vite(もしくは自分の環境)の場合、「Create React Appの場合」のやり方ではなく、「Next.jsの場合」のやり方の方でないとうまくいきませんでした。

0
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
0
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?