cube-tui 0.1.8

Terminal UI timer and session manager for speedcubing, with optional web dashboard and BLE (GAN) timer support.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import {StrictMode} from "react";
import {createRoot} from "react-dom/client";
import "./style/index.css";
import App from "./components/App.tsx";

const root = document.documentElement;
const storedTheme = localStorage.getItem("theme");
const prefersDark = window.matchMedia("(prefers-color-scheme: dark)").matches;
const isDarkTheme = storedTheme ? storedTheme === "dark" : prefersDark;
root.classList.toggle("dark", isDarkTheme);

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