Ben Lin
2024-06-18 ebbd788fbb2c0b45d4473798efc57eec8ba74a25
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');