UNPKG

mermaid

Version:

Markdown-ish syntax for generating flowcharts, mindmaps, sequence diagrams, class diagrams, gantt charts, git graphs and more.

18 lines (17 loc) 892 B
import type { FlowChartStyleOptions } from '../flowchart/styles.js'; /** * Swimlanes reuses the flowchart styles and appends the lane-specific rule. * * As a "layout-variant diagram" (see `swimlanesDiagram.ts` and diagrams/CLAUDE.md), * swimlanes deliberately consumes flowchart's public `styles` export rather than * duplicating it — the one sanctioned exception to the cross-diagram isolation rule. * * The swimlane cluster shape draws its own lane border, so the generic * `.cluster rect` border is suppressed by matching its stroke to the cluster * background — theme-adaptive, rather than a hardcoded colour. * * The `!important` only outranks `[data-look="neo"].cluster rect`, which ties with it on * specificity. Palette lanes are exempt because it would beat them too. */ declare const getStyles: (options: FlowChartStyleOptions) => string; export default getStyles;