Skip to content

Commit 1186ebb

Browse files
committed
Added global definition for font
1 parent 659d9d5 commit 1186ebb

File tree

1 file changed

+47
-71
lines changed

1 file changed

+47
-71
lines changed

doubleslash/doubleslash-gen2.puml

Lines changed: 47 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ inspiration: doubleSlash CI colors
4343
''
4444
skinparam BackgroundColor $PUML_BGCOLOR
4545
skinparam useBetaStyle false
46+
47+
!$FONTNAME = "Helvetica"
4648
''
4749
'' DoubleSlash Corporate Colors
4850
''
@@ -68,6 +70,7 @@ skinparam useBetaStyle false
6870
!$WARNING = $DS_ORANGE
6971
!$LIGHT = $DS_LIGHTGREY
7072
!$DARK = $DS_DARKGREY
73+
!$BLACK = "#000"
7174
''
7275
'' define colors based on PUML_MODE
7376
''
@@ -178,7 +181,7 @@ skinparam useBetaStyle false
178181
''
179182
'' Global Default Values (DoubleSlash Style)
180183
''
181-
skinparam defaultFontName "Helvetica"
184+
skinparam defaultFontName $FONTNAME
182185
skinparam defaultFontSize 12
183186
skinparam dpi 100
184187
skinparam shadowing false
@@ -205,7 +208,7 @@ skinparam title {
205208
FontSize 28
206209
BorderRoundCorner 16
207210
FontColor $DS_DARKGREY
208-
FontName "Helvetica"
211+
FontName $FONTNAME
209212
FontStyle normal
210213
}
211214

@@ -217,7 +220,7 @@ skinparam legend {
217220

218221
!startsub swimlane
219222
skinparam swimlane {
220-
TitleFontColor black
223+
TitleFontColor $BLACK
221224
TitleFontSize 16
222225
TitleBackgroundColor $SUPERLIGHTGREY
223226
BorderColor $DS_LIGHTGREY
@@ -230,14 +233,14 @@ skinparam conditionStyle diamond
230233
skinparam activity {
231234
StartColor $DS_DARKGREY
232235
EndColor $DS_DARKGREY
233-
FontColor black
236+
FontColor $BLACK
234237
BackgroundColor $DS_LIGHTBLUE
235238
BorderColor $DS_BLUE
236239
BorderThickness 0.0
237240
DiamondBorderColor $DS_BLUE
238241
DiamondBackgroundColor $DS_BLUE
239-
DiamondFontColor black
240-
DiamondFontName "Helvetica"
242+
DiamondFontColor $BLACK
243+
DiamondFontName $FONTNAME
241244
DiamondFontSize 11
242245
ArrowThickness 1.2
243246
ArrowColor $DS_GREY
@@ -250,7 +253,7 @@ skinparam participant {
250253

251254
BackgroundColor $DS_LIGHTBLUE
252255
BorderColor $DS_BLUE
253-
FontColor black
256+
FontColor $BLACK
254257
ParticipantBorderThickness 0.0
255258
}
256259
!endsub
@@ -262,7 +265,7 @@ skinparam actor {
262265
BorderColor $DS_LIGHTGREY
263266
BorderThickness 3
264267
FontColor $DS_DARKGREY
265-
FontName "Helvetica"
268+
FontName $FONTNAME
266269
}
267270
!endsub
268271

@@ -304,12 +307,12 @@ skinparam sequence {
304307
''
305308
ParticipantBackgroundColor $DS_LIGHTBLUE
306309
ParticipantBorderThickness 0.0
307-
ParticipantFontColor black
310+
ParticipantFontColor $BLACK
308311
ParticipantFontSize 12
309312
''
310313
ParticipantBackgroundColor<<External>> $SUPERLIGHTGREY
311314
ParticipantBorderThickness<<External>> 0.0
312-
ParticipantFontColor<<External>> black
315+
ParticipantFontColor<<External>> $BLACK
313316
ParticipantFontSize<<External>> 12
314317
''
315318
ReferenceBackgroundColor $DS_LIGHTGREY
@@ -335,38 +338,38 @@ skinparam partition {
335338
skinparam collections {
336339
BackgroundColor $DS_LIGHTBLUE
337340
BorderColor $DS_BLUE
338-
FontColor black
341+
FontColor $BLACK
339342
}
340343
!endsub
341344

342345
!startsub control
343346
skinparam control {
344347
BackgroundColor $DS_LIGHTBLUE
345348
BorderColor $DS_BLUE
346-
FontColor black
349+
FontColor $BLACK
347350
}
348351
!endsub
349352

350353
!startsub entity
351354
skinparam entity {
352355
BackgroundColor $DS_LIGHTBLUE
353356
BorderColor $DS_BLUE
354-
FontColor black
357+
FontColor $BLACK
355358
}
356359
!endsub
357360

358361
!startsub boundary
359362
skinparam boundary {
360363
BackgroundColor $DS_LIGHTBLUE
361364
BorderColor $DS_BLUE
362-
FontColor black
365+
FontColor $BLACK
363366
}
364367
!endsub
365368

366369
!startsub agent
367370
skinparam agent {
368371
BackgroundColor $DS_LIGHTBLUE
369-
FontColor black
372+
FontColor $BLACK
370373
BorderThickness 0
371374
BackgroundColor<<external>> $SUPERLIGHTGREY
372375
FontColor<<external>> black
@@ -398,7 +401,7 @@ skinparam component {
398401
BackgroundColor $DS_LIGHTBLUE
399402
BorderColor $DS_BLUE
400403
BorderThickness 0
401-
FontColor black
404+
FontColor $BLACK
402405
}
403406
!endsub
404407

@@ -407,7 +410,7 @@ skinparam interface {
407410
BackgroundColor $DS_BLUE
408411
BorderColor $DS_BLUE
409412
BorderThickness 2
410-
FontColor black
413+
FontColor $BLACK
411414
BorderColor<<external>> $DS_GREY
412415
BackgroundColor<<external>> $DS_GREY
413416
}
@@ -441,10 +444,11 @@ skinparam cloud {
441444
skinparam database {
442445
BackgroundColor $DS_LIGHTBLUE
443446
BorderThickness 0.0
444-
FontColor black
445-
StereotypeFontColor black
447+
FontColor $BLACK
448+
StereotypeFontColor $BLACK
446449
BackgroundColor<<external>> $SUPERLIGHTGREY
447450
BorderThickness<<external>> 0
451+
FontColor<<external>> $BLACK
448452
}
449453
!endsub
450454

@@ -453,14 +457,14 @@ skinparam class {
453457
BackgroundColor $DS_LIGHTBLUE
454458
BorderColor $DS_BLUE
455459
BorderThickness 0
456-
FontColor black
457-
FontName "Helvetica"
460+
FontColor $BLACK
461+
FontName $FONTNAME
458462
FontSize 15
459463
Fontstyle bold
460464
HeaderBackgroundColor $DS_LIGHTBLUE
461465
StereotypeFontColor $DS_DARKGREY
462-
AttributeFontColor black
463-
AttributeFontName "Helvetica"
466+
AttributeFontColor $BLACK
467+
AttributeFontName $FONTNAME
464468
AttributeFontSize 12
465469
BackgroundColor<<external>> $SUPERLIGHTGREY
466470
BorderColor<<external>> $DS_GREY
@@ -473,9 +477,9 @@ skinparam object {
473477
BackgroundColor $DS_LIGHTBLUE
474478
BorderColor $DS_BLUE
475479
BorderThickness 0
476-
FontColor black
480+
FontColor $BLACK
477481
StereotypeFontColor $DS_DARKGREY
478-
AttributeFontColor black
482+
AttributeFontColor $BLACK
479483
AttributeFontSize 11
480484
}
481485
!endsub
@@ -484,7 +488,7 @@ skinparam object {
484488
skinparam usecase {
485489
BackgroundColor $DS_LIGHTBLUE
486490
BorderThickness 0.0
487-
FontName "Helvetica"
491+
FontName $FONTNAME
488492
FontColor $DS_DARKGREY
489493
StereotypeFontColor $DS_BLUE
490494
BackgroundColor<<External>> $SUPERLIGHTGREY
@@ -493,18 +497,18 @@ skinparam usecase {
493497

494498
!startsub rectangle
495499
' Rectangle styling for use case system boundaries (no border)
496-
skinparam RectangleBackgroundcolor $ALICEBLUE
500+
skinparam RectangleBackgroundColor $ALICEBLUE
497501
skinparam RectangleBorderThickness 0.0
498502
skinparam RectangleBorderStyle solid
499-
skinparam RectangleFontColor black
503+
skinparam RectangleFontColor $BLACK
500504
skinparam RectangleFontSize 14
501505
!endsub
502506

503507
!startsub package
504508
skinparam PackageBackgroundColor $ALICEBLUE
505509
skinparam PackageBorderColor $DS_BLUE
506510
skinparam PackageBorderThickness 0
507-
skinparam PackageFontColor black
511+
skinparam PackageFontColor $BLACK
508512
skinparam PackageFontsize 14
509513
!endsub
510514

@@ -530,10 +534,10 @@ skinparam frame {
530534
skinparam state {
531535
BackgroundColor $DS_LIGHTBLUE
532536
BorderColor $DS_BLUE
533-
FontColor black
537+
FontColor $BLACK
534538
StartColor $DS_BLUE
535539
EndColor $DS_BLUE
536-
AttributeFontColor black
540+
AttributeFontColor $BLACK
537541
AttributeFontSize 11
538542
}
539543
!endsub
@@ -542,7 +546,7 @@ skinparam state {
542546
skinparam queue {
543547
BackgroundColor $DS_LIGHTBLUE
544548
BorderColor $DS_BLUE
545-
FontColor black
549+
FontColor $BLACK
546550
}
547551
!endsub
548552

@@ -569,7 +573,7 @@ skinparam file {
569573
skinparam stack {
570574
BackgroundColor $DS_LIGHTBLUE
571575
BorderColor $DS_BLUE
572-
FontColor black
576+
FontColor $BLACK
573577
}
574578
!endsub
575579

@@ -578,38 +582,10 @@ skinparam stack {
578582
skinparam map {
579583
BackgroundColor $DS_LIGHTBLUE
580584
BorderColor $DS_BLUE
581-
FontColor black
585+
FontColor $BLACK
582586
}
583587
!endsub
584588

585-
586-
587-
''
588-
'' Additional DoubleSlash-specific styling
589-
''
590-
' Agent shapes
591-
skinparam AgentBackgroundcolor $DS_LIGHTBLUE
592-
skinparam AgentFontColor black
593-
skinparam AgentBorderThickness 0
594-
skinparam AgentBackgroundcolor<<external>> $SUPERLIGHTGREY
595-
skinparam AgentFontColor<<external>> black
596-
skinparam AgentBorderThickness<<external>> 0
597-
598-
' Database shapes
599-
skinparam DatabaseBackgroundcolor $DS_LIGHTBLUE
600-
skinparam DatabaseBorderThickness 0.0
601-
skinparam DatabaseBackgroundcolor<<external>> $SUPERLIGHTGREY
602-
skinparam DatabaseFontColor<<external>> black
603-
skinparam DatabaseBorderThickness<<external>> 0
604-
605-
' Interface shapes
606-
skinparam interfaceBackgroundColor $DS_BLUE
607-
skinparam interfaceBorderColor $DS_BLUE
608-
skinparam interfaceBorderThickness 2
609-
skinparam interfaceFontColor black
610-
skinparam interfaceBorderColor<<external>> $DS_GREY
611-
skinparam interfaceBackgroundColor<<external>> $DS_GREY
612-
613589
''
614590
'' C4+M Level Styling (System Architecture)
615591
''
@@ -622,27 +598,27 @@ skinparam interfaceBackgroundColor<<external>> $DS_GREY
622598
' Context Level
623599
skinparam RectangleBackgroundColor<<context>> CONTEXT_BG
624600
skinparam RectangleBorderColor<<context>> $DS_BLUE
625-
skinparam RectangleFontColor<<context>> black
601+
skinparam RectangleFontColor<<context>> $BLACK
626602

627603
' Container Level
628604
skinparam RectangleBackgroundColor<<container>> CONTAINER_BG
629605
skinparam RectangleBorderThickness<<container>> 0
630-
skinparam RectangleFontColor<<container>> black
606+
skinparam RectangleFontColor<<container>> $BLACK
631607

632608
' Component Level
633609
skinparam RectangleBackgroundColor<<component>> COMPONENT_BG
634610
skinparam RectangleBorderThickness<<component>> 0
635-
skinparam RectangleFontColor<<component>> black
611+
skinparam RectangleFontColor<<component>> $BLACK
636612

637613
' Module Level
638614
skinparam RectangleBackgroundColor<<module>> MODULE_BG
639615
skinparam RectangleBorderThickness<<module>> 0
640-
skinparam RectangleFontColor<<module>> black
616+
skinparam RectangleFontColor<<module>> $BLACK
641617

642618
' Code Level
643619
skinparam RectangleBackgroundColor<<code>> CODE_BG
644620
skinparam RectangleBorderThickness<<code>> 0
645-
skinparam RectangleFontColor<<code>> white
621+
skinparam RectangleFontColor<<code>> $WHITE
646622

647623
''
648624
'' System diagram specific settings (applied globally, may affect system boundaries in use case diagrams)
@@ -658,7 +634,7 @@ skinparam ComponentStyle rectangle
658634
''
659635
'' When mixing skinparam and <style>, it is very important to put <style> after skinparam
660636
''
661-
'' Style settings
637+
'' Style settings.
662638
''
663639
<style>
664640
mindmapDiagram {
@@ -762,7 +738,7 @@ nwdiagDiagram {
762738
}
763739
ganttDiagram {
764740
task {
765-
FontName Helvetica
741+
FontName $FONTNAME
766742
FontSize 12
767743
FontColor black
768744
FontStyle normal
@@ -772,7 +748,7 @@ ganttDiagram {
772748
}
773749

774750
timeline {
775-
FontName Helvetica
751+
FontName $FONTNAME
776752
FontSize 12
777753
BackgroundColor $SUPERLIGHTGREY
778754
}
@@ -802,7 +778,7 @@ ganttDiagram {
802778
LineColor $DS_GREY
803779
LineStyle solid
804780
LineThickness 1.5
805-
FontName Helvetica
781+
FontName $FONTNAME
806782
FontColor black
807783
FontSize 12
808784
}

0 commit comments

Comments
 (0)