Skip to content

Commit 3e1b0f8

Browse files
Mermaid 다이어그램 텍스트 스타일 및 색상 조정
- 시퀀스 다이어그램과 간트 차트의 Actor 및 텍스트 색상을 라이트모드와 다크모드에 맞게 조정 - 다크모드에서 Actor 텍스트 색상을 흰색으로 강제 적용 - 전반적인 텍스트 가독성 향상 및 스타일 일관성 개선
1 parent e448254 commit 3e1b0f8

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

_includes/mermaid.html

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -436,9 +436,10 @@
436436
font-weight: 600 !important;
437437
}
438438

439-
/* 시퀀스 다이어그램 텍스트 강화 */
439+
/* 라이트모드 기본 - 시퀀스 다이어그램 Actor 텍스트 */
440440
.mermaid .actor {
441441
font-weight: 600 !important;
442+
fill: #2d3748 !important;
442443
}
443444

444445
.mermaid .actor-box {
@@ -447,14 +448,15 @@
447448
stroke-width: 2px !important;
448449
}
449450

451+
/* 라이트모드 기본 - 시퀀스 다이어그램 텍스트 */
450452
.mermaid .messageText {
451453
font-weight: 500 !important;
452-
fill: var(--text-primary, #2d3748) !important;
454+
fill: #2d3748 !important;
453455
}
454456

455457
.mermaid .labelText {
456458
font-weight: 600 !important;
457-
fill: var(--text-primary, #2d3748) !important;
459+
fill: #2d3748 !important;
458460
}
459461

460462
/* 간트 차트 텍스트 강화 */
@@ -467,9 +469,10 @@
467469
fill: #ffffff !important;
468470
}
469471

472+
/* 라이트모드 기본 - 간트 차트 그리드 라벨 */
470473
.mermaid .gridLabel {
471474
font-weight: 500 !important;
472-
fill: var(--text-primary, #2d3748) !important;
475+
fill: #2d3748 !important;
473476
}
474477

475478
/* 모든 텍스트 요소 기본 강화 */
@@ -562,13 +565,20 @@
562565
stroke: #a78bfa !important;
563566
}
564567

568+
/* 다크모드 - 시퀀스 다이어그램 텍스트 흰색 강제 적용 */
565569
[data-theme="dark"] .mermaid .messageText,
566570
[data-theme="dark"] .mermaid .labelText,
567571
.dark .mermaid .messageText,
568572
.dark .mermaid .labelText {
569573
fill: #ffffff !important;
570574
}
571575

576+
/* 다크모드 - Actor 텍스트도 흰색 */
577+
[data-theme="dark"] .mermaid .actor,
578+
.dark .mermaid .actor {
579+
fill: #ffffff !important;
580+
}
581+
572582
/* 다크모드 간트 차트 최적화 */
573583
[data-theme="dark"] .mermaid .gridLabel,
574584
.dark .mermaid .gridLabel {
@@ -607,7 +617,8 @@
607617
}
608618

609619
.mermaid .messageText,
610-
.mermaid .labelText {
620+
.mermaid .labelText,
621+
.mermaid .actor {
611622
fill: #ffffff !important;
612623
}
613624

0 commit comments

Comments
 (0)