Files
mermaid-live-editor/_app/immutable/chunks/theme-aa0835b3.js
T
2022-07-06 05:39:24 +00:00

2 lines
370 B
JavaScript

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