Open anonimusprogramus opened 1 year ago
Nuxt with color-mode and shadcn-vue works nicely, but once we add class "theme-red" to , it'll break. The color-mode doesn't start in expected way.
color-mode
nuxtjs/color-mode: ^3.3.2 nuxt: ^3.8.0
https://nuxt.com/docs/getting-started/seo-meta#components
nuxt.config.js
dark
<template> <div> <Html class="theme-red"></Html> <h1>Should be red and dark</h1> </div> </template>
The page loads and completed in dark with theme-red
theme-red
Upon reload (F5), the page loads in light and completed in dark with theme-red
light
Nuxt with color-mode and shadcn-vue works nicely, but once we add class "theme-red" to , it'll break. The
color-mode
doesn't start in expected way.Version
nuxtjs/color-mode: ^3.3.2 nuxt: ^3.8.0
Reproduction Link
https://nuxt.com/docs/getting-started/seo-meta#components
Steps to reproduce
nuxt.config.js
, set color-mode preference todark
What is Expected?
The page loads and completed in
dark
withtheme-red
What is actually happening?
Upon reload (F5), the page loads in
light
and completed indark
withtheme-red