Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

895 B
Raw Blame
import { colors, type MobileColorScheme } from '../../theme/mobile-theme'

// Suppress mermaid error SVG: render failure uses source fallback, and default error rendering leaves orphan temporary SVG in page.
export function mermaidDiagramConfig(colorScheme: MobileColorScheme) {
  return {
    startOnLoad: false,
    theme: colorScheme === 'dark' ? 'dark' : 'default',
    securityLevel: 'strict',
    darkMode: colorScheme === 'dark',
    suppressErrorRendering: true,
    // The page's own text face; mermaid defaults to Trebuchet.
    fontFamily: 'system-ui, sans-serif',
    themeVariables: {
      background: colors.bgRaised,
      primaryColor: colors.bgPanel,
      primaryBorderColor: colors.borderSubtle,
      nodeBorder: colors.borderSubtle,
      primaryTextColor: colors.textPrimary,
      lineColor: colors.textSecondary,
      textColor: colors.textPrimary
    }
  } as const
}