Skip to content

Commit cb63883

Browse files
committed
chore: styling memaid
1 parent 980ca9e commit cb63883

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

docs/.vitepress/config.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,22 @@ export default withMermaid(defineConfig({
101101
groupIconVitePlugin(),
102102
],
103103
},
104+
mermaid: {
105+
theme: 'base',
106+
flowchart: {
107+
curve: 'basis',
108+
padding: 20,
109+
nodeSpacing: 50,
110+
rankSpacing: 60,
111+
useMaxWidth: true,
112+
},
113+
sequence: {
114+
actorMargin: 80,
115+
boxMargin: 10,
116+
boxTextMargin: 5,
117+
noteMargin: 10,
118+
messageMargin: 40,
119+
useMaxWidth: true,
120+
},
121+
},
104122
}))

docs/.vitepress/theme/styles.css

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
11
.VPImage.logo {
22
height: 18px;
33
}
4+
5+
.mermaid .node rect,
6+
.mermaid .node circle,
7+
.mermaid .node polygon,
8+
.mermaid .node ellipse {
9+
rx: 8px;
10+
ry: 8px;
11+
stroke-width: 2px;
12+
}
13+
.mermaid .cluster rect {
14+
rx: 12px;
15+
ry: 12px;
16+
stroke-width: 2px;
17+
stroke-dasharray: 0;
18+
}
19+
.mermaid .edgePath path {
20+
stroke-width: 2px;
21+
}
22+
.mermaid .messageText {
23+
font-size: 14px;
24+
}
25+
.mermaid .actor {
26+
rx: 8px;
27+
ry: 8px;
28+
}

0 commit comments

Comments
 (0)