Spaces:
Running on Zero
Running on Zero
Download studio/theme-boot.js from Zyphra/ZONOS3-Mini: direct link, hf CLI and curl.
- Browser
- Download file 532 Bytes
-
https://huggingface.co/spaces/Zyphra/ZONOS3-Mini/resolve/main/studio/theme-boot.js
- Command line
-
hf download hf://spaces/Zyphra/ZONOS3-Mini/studio/theme-boot.js
-
curl -L -o theme-boot.js https://huggingface.co/spaces/Zyphra/ZONOS3-Mini/resolve/main/studio/theme-boot.js
532 Bytes
| // The saved theme before the first paint (no dark flash on the light theme). A classic script every page loads in | |
| // its <head>, before any stylesheet applies. | |
| try { | |
| var stored = localStorage.getItem('zvs.theme'); | |
| var light = stored ? JSON.parse(stored) === 'light' : matchMedia('(prefers-color-scheme: light)').matches; | |
| if (light) { | |
| document.documentElement.dataset.theme = 'light'; | |
| var meta = document.querySelector('meta[name="theme-color"]'); | |
| if (meta) meta.setAttribute('content', '#f5f3ee'); | |
| } | |
| } catch {} | |