Files
mermaid-live-editor/_app/chunks/theme-cdf18b87.js
T
2022-02-11 17:11:54 +00:00

2 lines
329 B
JavaScript

import{R as e,T as t,D as o}from"./vendor-4f17f806.js";const r=e(o({isDark:!1}),t(),"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),r.set({theme:s,isDark:a})};export{n as s,r as t};