Skip to content

Commit 560ed29

Browse files
Mermaid 다이어그램 텍스트 가시성 개선 및 스타일 조정
- 시퀀스 다이어그램 및 간트 차트의 텍스트 가시성을 높이기 위한 색상 및 배경 조정 - 다크모드와 라이트모드에 따른 텍스트 스타일 강화 - 새로운 CSS 클래스 추가로 텍스트 요소의 가독성 향상 - 전반적인 Mermaid 다이어그램의 시각적 일관성 개선
1 parent 003c191 commit 560ed29

1 file changed

Lines changed: 124 additions & 12 deletions

File tree

_includes/mermaid.html

Lines changed: 124 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -108,39 +108,55 @@
108108
secondaryBorderColor: '#a78bfa',
109109

110110
tertiaryColor: '#fbbf24',
111-
tertiaryTextColor: '#ffffff',
111+
tertiaryTextColor: '#1a202c',
112112
tertiaryBorderColor: '#f59e0b',
113113

114114
// 텍스트 색상 (다크모드 - 더 밝게)
115115
textColor: '#ffffff',
116116
lineColor: '#8b7cf8',
117117

118118
// 노트 색상
119-
noteBkgColor: 'transparent',
119+
noteBkgColor: 'rgba(167, 139, 250, 0.1)',
120120
noteTextColor: '#ffffff',
121121
noteBorderColor: '#a78bfa',
122122

123123
// 플로우차트
124124
nodeBorder: '#a78bfa',
125-
clusterBkg: 'transparent',
125+
clusterBkg: 'rgba(167, 139, 250, 0.05)',
126126
clusterBorder: '#c084fc',
127127
defaultLinkColor: '#a78bfa',
128128
titleColor: '#ffffff',
129129
nodeTextColor: '#ffffff',
130130

131-
// 시퀀스 다이어그램
132-
actorBkg: 'transparent',
131+
// 시퀀스 다이어그램 (개선된 가시성)
132+
actorBkg: 'rgba(31, 41, 55, 0.8)',
133133
actorBorder: '#a78bfa',
134134
actorTextColor: '#ffffff',
135135
signalColor: '#a78bfa',
136136
signalTextColor: '#ffffff',
137+
labelBoxBkgColor: 'rgba(55, 65, 81, 0.8)',
138+
labelTextColor: '#ffffff',
139+
activationBkgColor: 'rgba(167, 139, 250, 0.2)',
140+
activationBorderColor: '#a78bfa',
137141

138-
// 간트 차트
142+
// 간트 차트 (개선된 텍스트 가시성)
139143
gridColor: '#6b7280',
140144
section0: '#a78bfa',
141145
section1: '#c084fc',
142146
section2: '#fbbf24',
143147
section3: '#34d399',
148+
cScale0: '#a78bfa',
149+
cScale1: '#c084fc',
150+
cScale2: '#fbbf24',
151+
taskBkgColor: 'rgba(167, 139, 250, 0.8)',
152+
taskTextColor: '#ffffff',
153+
taskTextOutsideColor: '#ffffff',
154+
taskTextLightColor: '#ffffff',
155+
taskTextDarkColor: '#1a202c',
156+
activeTaskBkgColor: '#c084fc',
157+
activeTaskBorderColor: '#a78bfa',
158+
gridColor: '#4b5563',
159+
todayLineColor: '#fbbf24',
144160

145161
// 파이 차트
146162
pie1: '#a78bfa',
@@ -177,27 +193,42 @@
177193
lineColor: '#667eea',
178194

179195
// 노트 색상
180-
noteBkgColor: 'transparent',
196+
noteBkgColor: 'rgba(102, 126, 234, 0.1)',
181197
noteTextColor: '#2d3748',
182198
noteBorderColor: '#667eea',
183199

184200
// 플로우차트
185201
nodeBorder: '#5a67d8',
186-
clusterBkg: 'transparent',
202+
clusterBkg: 'rgba(102, 126, 234, 0.05)',
187203
clusterBorder: '#e879f9',
188204
defaultLinkColor: '#667eea',
189205
titleColor: '#2d3748',
190206
nodeTextColor: '#ffffff',
191207

192-
// 시퀀스 다이어그램
193-
actorBkg: 'transparent',
208+
// 시퀀스 다이어그램 (개선된 가시성)
209+
actorBkg: 'rgba(247, 250, 252, 0.9)',
194210
actorBorder: '#5a67d8',
195-
actorTextColor: '#ffffff',
211+
actorTextColor: '#2d3748',
196212
signalColor: '#667eea',
197213
signalTextColor: '#2d3748',
214+
labelBoxBkgColor: 'rgba(229, 231, 235, 0.9)',
215+
labelTextColor: '#2d3748',
216+
activationBkgColor: 'rgba(102, 126, 234, 0.15)',
217+
activationBorderColor: '#667eea',
198218

199-
// 간트 차트
219+
// 간트 차트 (개선된 텍스트 가시성)
200220
gridColor: '#e2e8f0',
221+
cScale0: '#667eea',
222+
cScale1: '#764ba2',
223+
cScale2: '#f093fb',
224+
taskBkgColor: 'rgba(102, 126, 234, 0.8)',
225+
taskTextColor: '#ffffff',
226+
taskTextOutsideColor: '#2d3748',
227+
taskTextLightColor: '#2d3748',
228+
taskTextDarkColor: '#ffffff',
229+
activeTaskBkgColor: '#764ba2',
230+
activeTaskBorderColor: '#667eea',
231+
todayLineColor: '#f59e0b',
201232
section0: '#667eea',
202233
section1: '#764ba2',
203234
section2: '#f093fb',
@@ -407,6 +438,53 @@
407438
text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
408439
}
409440

441+
/* 시퀀스 다이어그램 텍스트 강화 */
442+
.mermaid .actor {
443+
font-weight: 600 !important;
444+
}
445+
446+
.mermaid .actor-box {
447+
fill: var(--surface, rgba(247, 250, 252, 0.9)) !important;
448+
stroke: var(--primary-color, #667eea) !important;
449+
stroke-width: 2px !important;
450+
}
451+
452+
.mermaid .messageText {
453+
font-weight: 500 !important;
454+
fill: var(--text-primary, #2d3748) !important;
455+
}
456+
457+
.mermaid .labelText {
458+
font-weight: 600 !important;
459+
fill: var(--text-primary, #2d3748) !important;
460+
}
461+
462+
/* 간트 차트 텍스트 강화 */
463+
.mermaid .taskText,
464+
.mermaid .taskText0,
465+
.mermaid .taskText1,
466+
.mermaid .taskText2,
467+
.mermaid .taskText3 {
468+
font-weight: 600 !important;
469+
fill: #ffffff !important;
470+
text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
471+
}
472+
473+
.mermaid .gridLabel {
474+
font-weight: 500 !important;
475+
fill: var(--text-primary, #2d3748) !important;
476+
}
477+
478+
/* 모든 텍스트 요소 기본 강화 */
479+
.mermaid text {
480+
font-family: var(--font-family, 'Inter', sans-serif) !important;
481+
font-weight: 500;
482+
}
483+
484+
.mermaid .label {
485+
font-weight: 600 !important;
486+
}
487+
410488
/* 그라데이션 정의 */
411489
.mermaid svg defs {
412490
background: transparent;
@@ -465,6 +543,26 @@
465543
color: #f7fafc !important;
466544
}
467545

546+
/* 다크모드 시퀀스 다이어그램 최적화 */
547+
[data-theme="dark"] .mermaid .actor-box,
548+
.dark .mermaid .actor-box {
549+
fill: rgba(31, 41, 55, 0.8) !important;
550+
stroke: #a78bfa !important;
551+
}
552+
553+
[data-theme="dark"] .mermaid .messageText,
554+
[data-theme="dark"] .mermaid .labelText,
555+
.dark .mermaid .messageText,
556+
.dark .mermaid .labelText {
557+
fill: #ffffff !important;
558+
}
559+
560+
/* 다크모드 간트 차트 최적화 */
561+
[data-theme="dark"] .mermaid .gridLabel,
562+
.dark .mermaid .gridLabel {
563+
fill: #f7fafc !important;
564+
}
565+
468566
@media (prefers-color-scheme: dark) {
469567
.mermaid {
470568
border: 1px solid rgba(139, 124, 248, 0.3);
@@ -483,6 +581,20 @@
483581
.mermaid .edgeLabel .label {
484582
color: #f7fafc !important;
485583
}
584+
585+
.mermaid .actor-box {
586+
fill: rgba(31, 41, 55, 0.8) !important;
587+
stroke: #a78bfa !important;
588+
}
589+
590+
.mermaid .messageText,
591+
.mermaid .labelText {
592+
fill: #ffffff !important;
593+
}
594+
595+
.mermaid .gridLabel {
596+
fill: #f7fafc !important;
597+
}
486598
}
487599

488600
/* 반응형 대응 */

0 commit comments

Comments
 (0)