import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import App from "./App";
import { applyInitialTheme } from "./theme";
import "./index.css";

applyInitialTheme(); // 渲染前设好 .dark，避免首屏闪烁

createRoot(document.getElementById("root")!).render(
  <StrictMode>
    <App />
  </StrictMode>,
);
