ZONOS3-Mini-Turbo / studio /theme-boot.js
Frosty40's picture
Ready to run: Zyphra model files and voices, ready-built Turbo servers (Linux x86-64 Vulkan, DGX Spark Vulkan, Mac Metal), run.sh, licences
4f5288c verified
Raw History Blame Contribute Delete
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 {}