Files
mermaid-live-editor/_app/immutable/chunks/theme.80e27f3d.js
T
2023-06-03 10:31:21 +00:00

2 lines
408 B
JavaScript

import{w as t}from"./index.ed2598b6.js";import{A as e,B as o,b as r}from"./state.5eb739c0.js";const l=e(t({isDark:!1}),o(),"themeStore"),n=new Set(["dark","synthwave","halloween","aqua","forest","luxury","black","dracula"]),f=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{f as s,l as t};