Files
mermaid-live-editor/_app/chunks/theme-749dc8df.js
T
2022-04-01 09:06:28 +00:00

2 lines
370 B
JavaScript

import{w as t}from"./preload-helper-e8f5b6ac.js";import{p as o,a as r}from"./state-f215c7fd.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};