Ben Lin
2025-03-11 2beada4c5b6d529b985c680a4672fa7e9a0587df
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');