geKey = "theme-preference";
  const getColorPreference = () => {
    if (localStorage.getItem(storageKey))
      return localStorage.getItem(storageKey);
    else
      return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
  };
  const theme = { value: getColorPreference() };
  const applyPreference = () => {
    document.firstElementChild.setAttribute("data-theme", theme.value);
    document.querySelector("#theme-toggle")?.setAttribute("aria-label", theme.value);
  };
  const