OG Image v6 is in beta! Try the v6 docs .

Nuxt OG Image integrates with Nuxt Color Mode out of the box.

It will render the default NuxtSeo component in the configured color mode. It will also take browser screenshots in the configured color mode.

By default, it will use light mode when the module isn't configured.

Usage

To use Nuxt OG Image with Nuxt Color Mode, you need to provide a preference or a fallback color mode that isn't system.

export default defineNuxtConfig({
  colorMode: {
    preference: 'system',
    fallback: 'light', // will render in light mode
  },
})
Did this page help you?