next-theme中的theme和resolvedTheme hhdy 2025-02-14 12 阅读1分钟 theme:用户当前选择的主题,可以是 "light"、"dark" 或 "system"。 resolvedTheme:如果 theme 是 "system",resolvedTheme 会解析当前操作系统的主题(light 或 dark);否则,它与 theme 相同。 如果使用theme,则有可能会出现不一致的情况