Files
mermaid-live-editor/_app/immutable/chunks/theme-25d0d25d.js
T
2022-08-17 18:39:15 +00:00

2 lines
413 B
JavaScript

import{w as o}from"./preload-helper-23bf4dac.js";import{p as t,a as e,b as r}from"./state-0428e257.js";const l=t(o({isDark:!1}),e(),"themeStore"),i=["dark","synthwave","halloween","aqua","forest","luxury","black","dracula"],d=s=>{s.includes(" ")&&(s=s.split(" ")[1].trim());const a=i.includes(s);console.log("Setting theme",s),l.set({theme:s,isDark:a}),r("themeChange",{theme:s,isDark:a})};export{d as s,l as t};