import { StrictMode } from 'react'; import { createRoot } from 'react-dom/client'; import App from './App'; import './index.css'; // Respect the reader's saved choice, then the system, before first paint of the app. const saved = localStorage.getItem('rwn-theme'); const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches; if (saved === 'dark' || (!saved && prefersDark)) { document.documentElement.classList.add('dark'); } createRoot(document.getElementById('root')!).render( , );