Last active
July 12, 2021 07:55
-
-
Save Dzordzu/229fcfe24ea53505cab0ee930176379d to your computer and use it in GitHub Desktop.
cyborgy-theme.puml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'' | |
'' Cyborg theme based off of the bootstrap theme of the same name | |
'' https://bootswatch.com/cyborg/ | |
'' | |
'' Original Author: Brett Schwarz | |
'' Original Copyright (c) 2019 by Brett Schwarz (MIT) | |
'' | |
'' Author: Tomasz Durda | |
'' Copyright (c) 2021 by Tomasz Durda (MIT) | |
!$THEME = "cyborg" | |
'' !if %not(%variable_exists("$BGCOLOR")) | |
''!$BGCOLOR = "transparent" | |
''!endif | |
!$BGCOLOR = "transparent" | |
skinparam backgroundColor $BGCOLOR | |
skinparam useBetaStyle false | |
'' | |
'' Colors taken from the css file of the BS theme | |
'' | |
!if %not(%variable_exists("$BLUE")) | |
!$BLUE = "#2A9FD6" | |
!endif | |
!$INDIGO = "#6610f2" | |
!$PURPLE = "#6f42c1" | |
!$PINK = "#e83e8c" | |
!$RED = "#CC0000" | |
!$ORANGE = "#fd7e14" | |
!$YELLOW = "#FF8800" | |
!$GREEN = "#77B300" | |
!$TEAL = "#20c997" | |
!$CYAN = "#9933CC" | |
!$WHITE = "#FFF" | |
!$GRAY_LIGHT = "#222" | |
!$GRAY = "#555" | |
!$PRIMARY = $BLUE | |
!$SECONDARY = "#555" | |
!$SUCCESS = "#77B300" | |
!$INFO = "#9933CC" | |
!$WARNING = "#FF8800" | |
!$DANGER = "#CC0000" | |
!$LIGHT = "#222" | |
!$DARK = "#ADAFAE" | |
'' *_DARK = tint (lighter) of the main color of 80% | |
'' where TINT is calculated by clr + (255-clr) * tint_factor | |
'' *_LIGHT = shade (darker) of the main color of 80% | |
'' and SHADE is calculated by clr * (1 - shade_factor) | |
'' | |
!$FGCOLOR = $WHITE | |
!$PRIMARY_DARK = "#55B2DE" | |
!$PRIMARY_LIGHT = "#227FAB" | |
!$PRIMARY_TEXT = $WHITE | |
!$SECONDARY_DARK = "#777777" | |
!$SECONDARY_LIGHT = "#444444" | |
!$SECONDARY_TEXT = $WHITE | |
!$INFO_DARK = "#AD5CD6" | |
!$INFO_LIGHT = "#9F161B" | |
!$INFO_TEXT = $WHITE | |
!$SUCCESS_DARK = "#92C233" | |
!$SUCCESS_LIGHT = "#5F8F00" | |
!$SUCCESS_TEXT = $WHITE | |
!$WARNING_DARK = "#FFA033" | |
!$WARNING_LIGHT = "#CC6D00" | |
!$WARNING_TEXT = $WHITE | |
!$DANGER_DARK = "#D63333" | |
!$DANGER_LIGHT = "#A30000" | |
!$DANGER_TEXT = $WHITE | |
!$DARK_DARK = "#BDBFBE" | |
!$DARK_LIGHT = "#8A8C8B" | |
!$LIGHT_DARK = "#4E4E4E" | |
!$LIGHT_LIGHT = "#1B1B1B" | |
!procedure $success($msg) | |
<font color=$SUCCESS><b>$msg | |
!endprocedure | |
!procedure $failure($msg) | |
<font color=$DANGER><b>$msg | |
!endprocedure | |
!procedure $warning($msg) | |
<font color=$WARNING><b>$msg | |
!endprocedure | |
!procedure $primary_scheme() | |
FontColor $PRIMARY_TEXT | |
!if (%variable_exists("$PRIMARY_AS_BORDER")) && ($PRIMARY_AS_BORDER == "true" ) | |
BorderColor $PRIMARY | |
!else | |
BorderColor $PRIMARY_DARK | |
!endif | |
BackgroundColor $PRIMARY | |
!endprocedure | |
'' | |
'' Global Default Values | |
'' | |
skinparam defaultFontName "Roboto" | |
skinparam defaultFontSize 12 | |
skinparam dpi 100 | |
skinparam shadowing false | |
skinparam roundcorner 8 | |
skinparam ParticipantPadding 40 | |
skinparam BoxPadding 40 | |
skinparam Padding 5 | |
skinparam ArrowColor $DARK | |
skinparam stereotype { | |
CBackgroundColor $SECONDARY_DARK | |
CBorderColor $SECONDARY_LIGHT | |
ABackgroundColor $SUCCESS_LIGHT | |
ABorderColor $SUCCESS_DARK | |
IBackgroundColor $DANGER_LIGHT | |
IBorderColor $DANGER_DARK | |
EBackgroundColor $WARNING_LIGHT | |
EBorderColor $WARNING_DARK | |
NBackgroundColor $INFO_LIGHT | |
NBorderColor $INFO_DARK | |
} | |
skinparam title { | |
FontColor $PRIMARY | |
BorderColor $SECONDARY_DARK | |
FontSize 20 | |
BorderRoundCorner 8 | |
BorderThickness 1 | |
BackgroundColor $SECONDARY_LIGHT-$SECONDARY | |
} | |
skinparam legend { | |
BackgroundColor $SECONDARY | |
BorderColor $SECONDARY_DARK | |
FontColor $DARK | |
} | |
!startsub swimlane | |
skinparam swimlane { | |
BorderColor $INFO | |
BorderThickness 1 | |
TitleBackgroundColor $SECONDARY_LIGHT-$SECONDARY | |
TitleFontColor $PRIMARY | |
} | |
!endsub | |
!startsub activity | |
skinparam activity { | |
$primary_scheme() | |
BarColor $SUCCESS | |
StartColor $INFO | |
EndColor $INFO | |
'' | |
DiamondBackgroundColor $SECONDARY_LIGHT | |
DiamondBorderColor $SECONDARY_DARK | |
DiamondFontColor $SECONDARY_TEXT | |
} | |
!endsub | |
!startsub participant | |
skinparam participant { | |
$primary_scheme() | |
ParticipantBorderThickness 2 | |
} | |
!endsub | |
!startsub actor | |
skinparam actor { | |
$primary_scheme() | |
FontColor $PRIMARY | |
} | |
!endsub | |
!startsub arrow | |
skinparam arrow { | |
Thickness 1 | |
Color $PRIMARY | |
FontColor $FGCOLOR | |
} | |
!endsub | |
!startsub sequence | |
skinparam sequence { | |
BorderColor $PRIMARY | |
' For some reason sequence title font color does not pick up from global | |
TitleFontColor $PRIMARY | |
BackgroundColor $BGCOLOR | |
StartColor $PRIMARY | |
EndColor $PRIMARY | |
'' | |
BoxBackgroundColor $BGCOLOR | |
BoxBorderColor $DARK | |
BoxFontColor $DARk | |
'' | |
LifeLineBorderColor $SECONDARY | |
LifeLineBorderThickness 1 | |
LifeLineBackgroundColor $SECONDARY_DARK | |
'' | |
GroupBorderColor $SECONDARY | |
GroupFontColor $DARK | |
GroupHeaderFontColor $INFO | |
GroupBackgroundColor $SECONDARY | |
GroupBodyBackgroundColor $BGCOLOR | |
GroupHeaderBackgroundColor $BGCOLOR | |
'' | |
DividerBackgroundColor $DARK | |
DividerBorderColor $DARK | |
DividerBorderThickness 1 | |
DividerFontColor $LIGHT | |
'' | |
ReferenceBackgroundColor $BGCOLOR | |
ReferenceBorderColor $SECONDARY | |
ReferenceFontColor $SECONDARY_TEXT | |
ReferenceHeaderBackgroundColor $SECONDARY | |
} | |
!endsub | |
!startsub partition | |
skinparam partition { | |
BorderColor $PRIMARY | |
FontColor $PRIMARY | |
BackgroundColor $BGCOLOR | |
} | |
!endsub | |
!startsub collections | |
skinparam collections { | |
$primary_scheme() | |
} | |
!endsub | |
!startsub control | |
skinparam control { | |
$primary_scheme() | |
FontColor $DARK | |
} | |
!endsub | |
!startsub entity | |
skinparam entity { | |
$primary_scheme() | |
FontColor $DARK | |
} | |
!endsub | |
!startsub boundary | |
skinparam boundary { | |
$primary_scheme() | |
FontColor $DARK | |
} | |
!endsub | |
!startsub agent | |
skinparam agent { | |
BackgroundColor $WARNING | |
BorderColor $WARNING_LIGHT | |
FontColor $DARK | |
} | |
!endsub | |
!startsub note | |
skinparam note { | |
BorderThickness 1 | |
BackgroundColor $INFO | |
BorderColor $INFO_DARK | |
FontColor $WHITE | |
} | |
!endsub | |
!startsub artifact | |
skinparam artifact { | |
BackgroundColor $DARK | |
BorderColor $DARK_DARK | |
FontColor $LIGHT | |
} | |
!endsub | |
!startsub component | |
skinparam component { | |
$primary_scheme() | |
} | |
!endsub | |
!startsub interface | |
skinparam interface { | |
BackgroundColor $DANGER_DARK | |
BorderColor $DANGER | |
FontColor $DARK | |
} | |
!endsub | |
!startsub storage | |
skinparam storage { | |
BackgroundColor $WARNING | |
BorderColor $WARNING_DARK | |
FontColor $WARNING_TEXT | |
} | |
!endsub | |
!startsub node | |
skinparam node { | |
$primary_scheme() | |
BackgroundColor $SECONDARY_LIGHT | |
} | |
!endsub | |
!startsub cloud | |
skinparam cloud { | |
BackgroundColor transparent | |
BorderColor $LIGHT | |
FontColor $DARK | |
} | |
!endsub | |
!startsub database | |
skinparam database { | |
$primary_scheme() | |
} | |
!endsub | |
!startsub actor | |
skinparam actor { | |
FontColor $DARK | |
} | |
!endsub | |
!startsub class | |
skinparam class { | |
$primary_scheme() | |
HeaderBackgroundColor $PRIMARY_LIGHT | |
StereotypeFontColor $DARK | |
BorderThickness 1 | |
AttributeFontColor $LIGHT | |
AttributeFontSize 11 | |
} | |
!endsub | |
!startsub object | |
skinparam object { | |
$primary_scheme() | |
StereotypeFontColor $DARK | |
BorderThickness 1 | |
AttributeFontColor $SECONDARY_TEXT | |
AttributeFontSize 11 | |
} | |
!endsub | |
!startsub usecase | |
skinparam usecase { | |
$primary_scheme() | |
BorderThickness 2 | |
StereotypeFontColor $PRIMARY | |
} | |
!endsub | |
!startsub rectangle | |
skinparam rectangle { | |
$primary_scheme() | |
BackgroundColor $SECONDARY_LIGHT | |
BorderThickness 1 | |
StereotypeFontColor $PRIMARY | |
} | |
!endsub | |
!startsub package | |
skinparam package { | |
BackgroundColor $SECONDARY | |
BorderColor $PRIMARY | |
FontColor $PRIMARY | |
BorderThickness 2 | |
} | |
!endsub | |
!startsub folder | |
skinparam folder { | |
BackgroundColor $SECONDARY_LIGHT | |
BorderColor $WARNING | |
FontColor $WARNING | |
BorderThickness 2 | |
} | |
!endsub | |
!startsub frame | |
skinparam frame { | |
BackgroundColor $SECONDARY_LIGHT | |
BorderColor $INFO | |
FontColor $INFO | |
BorderThickness 2 | |
} | |
!endsub | |
!startsub state | |
skinparam state { | |
$primary_scheme() | |
StartColor $INFO | |
EndColor $INFO | |
AttributeFontColor $SECONDARY_TEXT | |
AttributeFontSize 11 | |
} | |
!endsub | |
!startsub queue | |
skinparam queue { | |
$primary_scheme() | |
} | |
!endsub | |
!startsub card | |
skinparam card { | |
BackgroundColor $INFO | |
BorderColor $INFO_DARK | |
FontColor $INFO_TEXT | |
} | |
!endsub | |
!startsub file | |
skinparam file { | |
BackgroundColor $SECONDARY_DARK | |
BorderColor $DARK | |
FontColor $DARK | |
} | |
!endsub | |
!startsub stack | |
skinparam stack { | |
$primary_scheme() | |
} | |
!endsub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment