File size: 270 Bytes
fab7cea
 
 
 
 
1
2
3
4
5
6
// Apply ?__theme=light|dark (set by Hugging Face) before the stylesheet paints, so the page does not flash.
(() => {
  const t = new URLSearchParams(location.search).get("__theme");
  if (t === "dark" || t === "light") document.documentElement.dataset.theme = t;
})();