github.com/google/trillian-examples@v0.0.0-20240520080811-0d40d35cef0e/binary_transparency/firmware/docs/design/diagrams/puml/style.puml (about)

     1  ' This is a common file with style related includes and defines in it.
     2  ' It's intended to be !included by PlantUML diagrams elsewhere, whose
     3  ' code resides in the docs which reference the diagrams.
     4  
     5  !include <tupadr3/common>
     6  !include <tupadr3/font-awesome-5/cogs>
     7  !include <tupadr3/font-awesome-5/eye>
     8  !include <tupadr3/font-awesome-5/file>
     9  !include <tupadr3/font-awesome-5/gavel>
    10  !include <tupadr3/font-awesome-5/mobile_alt>
    11  !include <tupadr3/font-awesome-5/server>
    12  !include <tupadr3/font-awesome-5/sitemap>
    13  !include <tupadr3/font-awesome-5/user_tie>
    14  
    15  !includeurl https://raw.githubusercontent.com/ebbypeter/Archimate-PlantUML/master/Archimate.puml
    16  
    17  !define LOG_COLOUR_0 E0E3FF
    18  !define LOG_COLOUR_1 627AD0
    19  !define LOG_COLOUR_2 899BDC
    20  !define LOG_COLOUR_3 D8DEF3
    21  !define LOG_COLOUR_4 EBEEF9
    22  
    23  !define DEVICE_COLOUR_0 684488
    24  !define DEVICE_COLOUR_1 CDBADE
    25  !define DEVICE_COLOUR_2 E6DDEE
    26  
    27  !define VENDOR_COLOUR_0 5B254A
    28  !define VENDOR_COLOUR_1 D392BF
    29  !define VENDOR_COLOUR_2 E9C9DF
    30  
    31  !define OBS_COLOUR_0 892953
    32  !define OBS_COLOUR_1 E29DBB
    33  !define OBS_COLOUR_2 F3D8E4
    34  
    35  !define ARBITER_COLOUR_0 6E1111
    36  !define ARBITER_COLOUR_1 E76565
    37  !define ARBITER_COLOUR_2 F1A7A7
    38  
    39  !define FAIL FFDDDD
    40  !define SUCCESS DDFFDD
    41  !define WARNING FFDD80
    42  
    43  
    44  !define PARTICIPANT_DEVICE_BOOTLOADER(_alias, _desc) participant  "<color:#DEVICE_COLOUR_0><$mobile_alt>\n_desc" as _alias #DEVICE_COLOUR_2
    45  !define PARTICIPANT_DEVICE_FLASH(_alias, _desc) participant  "<color:#DEVICE_COLOUR_0><$file>\n_desc" as _alias #DEVICE_COLOUR_2
    46  !define PARTICIPANT_DEVICE_UPDATE(_alias, _desc) participant  "<color:#DEVICE_COLOUR_0><$cogs>\n_desc" as _alias #DEVICE_COLOUR_2
    47  !define PARTICIPANT_VENDOR(_alias, _desc) participant  "<color:#VENDOR_COLOUR_0><$user_tie>\n_desc" as _alias #VENDOR_COLOUR_2
    48  !define PARTICIPANT_LOG(_alias, _desc) participant  "<color:#LOG_COLOUR_0><$sitemap>\n_desc" as _alias #LOG_COLOUR_2
    49  !define PARTICIPANT_MONITOR(_alias, _desc) participant  "<color:#OBS_COLOUR_0><$eye>\n_desc" as _alias #OBS_COLOUR_2
    50  !define PARTICIPANT_ARBITER(_alias, _desc) participant  "<color:#ARBITER_COLOUR_0><$gavel>\n_desc" as _alias #ARBITER_COLOUR_2
    51  
    52  skinparam ParticipantPadding 60
    53  skinparam componentArrowThickness 2.5