Ben Lin
2024-08-21 947cafbb9c59261d0d7252a70bbbca8690c5cbc4
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');