UNPKG

mcp-ai-agent-guidelines

Version:

A comprehensive Model Context Protocol server providing advanced tools, resources, and prompts for implementing AI agent best practices

33 lines 775 B
/** * Theme utilities for Mermaid diagrams. */ /** * Apply theme to diagram code. * @param diagram - Mermaid diagram code * @param theme - Optional theme name * @returns Diagram code with theme applied */ export function applyTheme(diagram, theme) { if (!theme) return diagram; return `%%{init: {'theme':'${theme}'}}%%\n${diagram}`; } /** * Common theme names supported by Mermaid. */ export const COMMON_THEMES = [ "default", "dark", "forest", "neutral", "base", ]; /** * Check if a theme name is in the common themes list. * @param theme - Theme name to check * @returns True if theme is recognized */ export function isCommonTheme(theme) { return COMMON_THEMES.includes(theme); } //# sourceMappingURL=theme.utils.js.map