UNPKG

@lobehub/ui

Version:

Lobe UI is an open-source UI component library for building AIGC web apps

15 lines (14 loc) 456 B
import { THEMES } from "beautiful-mermaid"; //#region src/Mermaid/const.ts const toDisplayName = (id) => id.split("-").map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join(" "); const mermaidThemes = [{ displayName: "Lobe Theme", id: "lobe-theme" }, ...Object.entries(THEMES).map(([id, colors]) => ({ background: colors.bg, displayName: toDisplayName(id), id }))]; //#endregion export { mermaidThemes }; //# sourceMappingURL=const.mjs.map