Ben Lin
2024-07-30 cc88111d61a350a4d24cf339b526d4357f934ddf
src/logics/theme/dark.ts
@@ -1,4 +1,10 @@
import { addClass, hasClass, removeClass } from '/@/utils/domUtils';
import { addClass, hasClass, removeClass } from '@/utils/domUtils';
export type CustomColorType = {
  name: string;
  light: string;
  dark: string;
};
export async function updateDarkTheme(mode: string | null = 'light') {
  const htmlRoot = document.getElementById('htmlRoot');