vuetify-module icon indicating copy to clipboard operation
vuetify-module copied to clipboard

customProperties do not work in nuxtjs

Open Valar103769 opened this issue 5 years ago • 7 comments

Module version 1.11.0

Describe the bug A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior: // nuxt.config.js

  vuetify: {
    customVariables: ['~/assets/index.scss'],
    customProperties: true,
    theme: {
      themes: { light }
    }
  },

// xx.vue

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Valar103769 avatar Mar 06 '20 06:03 Valar103769

Same problem for me. Very useful feature that I would love to have with nuxt

laurensV avatar Apr 15 '20 14:04 laurensV

Correct usage

vuetify: {
  customVariables: ['~/assets/index.scss'],
  theme: {
    options: {
      customProperties: true,
    },
    themes: { light }
  }
}

emilsgulbis avatar Apr 16 '20 17:04 emilsgulbis

@emilsgulbis Nope not working. I tried the following things:

vuetify: {
  theme: {
    customProperties: true,
  }
}
vuetify: {
  customProperties: true,
}
vuetify: {
  options: {
    customProperties: true,
  }
}

None of these make the css color variables available in nuxtjs

laurensV avatar Apr 16 '20 17:04 laurensV

@laurensV sorry, check again. So vuetify.theme.options.customProperties

emilsgulbis avatar Apr 16 '20 18:04 emilsgulbis

@emilsgulbis Haha the only option I didn't try yet. It's working, perfect!

laurensV avatar Apr 17 '20 09:04 laurensV

Probably can close this issue but I'm glad I'm not the only one who ran into this confusion.

stuft2 avatar Sep 17 '20 18:09 stuft2

I can confirm the confusion and that it works now, thanks to this issue ticket.

MartinX3 avatar Jan 08 '22 21:01 MartinX3