Ben Lin
2024-10-22 e4f79a7e36214e5836cb0e667b3ffbd3db45456d
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');