13
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Nuxt+Vuetifyのサイトでダークテーマを外す

Posted at

本当にちょっとしたことですが、調べるのに15分くらいかかってしまったので記事化。

Nuxt.jsでVuetifyを適用したサイトを作成すると、デフォルトではダークテーマが適用されます。
こんな感じで。
スクリーンショット 2019-10-27 19.56.32.png

nuxt.config.jsでvuetify.theme.darkの設定をfalseに変更すれば、ダークテーマを解除できます。

  • 変更前
nuxt.config.js
  vuetify: {
    customVariables: ['~/assets/variables.scss'],
    theme: {
      dark: true,
(略)
  • 変更後
nuxt.config.js
  vuetify: {
    customVariables: ['~/assets/variables.scss'],
    theme: {
      dark: false,
(略)

このようになりました。
スクリーンショット 2019-10-27 19.57.42.png

以上です。

13
10
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
13
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?