Skip to content

Nuxt 3.16.0 causes theme issues with future compatibilityVersion 4 #298

@mcfarljw

Description

@mcfarljw

Not sure if it's a bug with the recent Nuxt 3.16.0 release or not but when using the following nuxt.config.ts it doesn't seem to load the theme properly. When reverting to Nuxt 3.15.4 it works as expected.

  • Button should probably be a different color
  • Background should definitely not be that color

https://stackblitz.com/edit/nuxt-starter-g1g4t2mx?file=package.json,nuxt.config.ts

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  compatibilityDate: '2024-11-01',
  devtools: { enabled: false },
  future: {
    compatibilityVersion: 4,
  },
  modules: ['vuetify-nuxt-module'],
  ssr: false,
  vuetify: {
    vuetifyOptions: {
      theme: {
        defaultTheme: 'light',
        themes: {
          light: {
            dark: false,
            colors: {
              background: '#800080',
            },
          },
        },
      },
    },
  },
});

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions