Files
mermaid-live-editor/_app/immutable/chunks/theme-e602ecc3.js
T
2022-08-12 09:56:41 +00:00

2 lines
370 B
JavaScript

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