更新 useColorMode 钩子的类型参数,明确指定为 BasicColorSchema 类型, 并设置 initialValue 为 'auto',确保主题模式的类型安全和默认行为。 同时添加 attribute 配置项以支持 class 属性切换。
更新 useColorMode 钩子的类型参数,明确指定为 BasicColorSchema 类型, 并设置 initialValue 为 'auto',确保主题模式的类型安全和默认行为。 同时添加 attribute 配置项以支持 class 属性切换。