Files
mermaid-live-editor/_app/chunks/theme-ed8e2b8a.js
T
2022-05-09 07:06:16 +00:00

2 lines
370 B
JavaScript

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