Files
mermaid-live-editor/_app/immutable/chunks/theme.VcqgRrio.js
T
2024-01-11 17:16:17 +00:00

2 lines
408 B
JavaScript

import{w as t}from"./index.6Xnhqn1T.js";import{p as e,l as o,a as r}from"./state.BcWOZE25.js";const l=e(t({isDark:!1}),o(),"themeStore"),n=new Set(["dark","synthwave","halloween","aqua","forest","luxury","black","dracula"]),p=s=>{s.includes(" ")&&(s=s.split(" ")[1].trim());const a=n.has(s);console.log("Setting theme",s),l.set({theme:s,isDark:a}),r("themeChange",{theme:s,isDark:a})};export{p as s,l as t};