mirror of
https://github.com/octoleo/plantuml.git
synced 2024-11-21 20:45:10 +00:00
commit
e982bb326d
@ -1,12 +1,9 @@
|
|||||||
'' NAME = Sunlust
|
'' NAME = "Sunlust"
|
||||||
'' DESCRIPTION = sunlust theme based off of the [solarized theme](https://ethanschoonover.com/solarized)
|
'' DESCRIPTION = "Sunlust theme based off of the [solarized theme](https://ethanschoonover.com/solarized)"
|
||||||
'' AUTHOR = Artem V. Ageev
|
'' AUTHORS = ["Artem V. Ageev"]
|
||||||
'' LICENCE = GPL 3+
|
'' LICENCE = "GPL 3+"
|
||||||
|
|
||||||
!$THEME = 'sunlust'
|
!$THEME = 'sunlust'
|
||||||
!if %not(%variable_exists("$BGCOLOR"))
|
|
||||||
!$BGCOLOR = '#fdf6e3'
|
|
||||||
!endif
|
|
||||||
scale max 2000 * 2000
|
scale max 2000 * 2000
|
||||||
!$colors = {
|
!$colors = {
|
||||||
"font" : "#657b83",
|
"font" : "#657b83",
|
||||||
@ -27,33 +24,71 @@ scale max 2000 * 2000
|
|||||||
!$shapes = {
|
!$shapes = {
|
||||||
"TECHNOLOGY" : {
|
"TECHNOLOGY" : {
|
||||||
"color" : "#859900",
|
"color" : "#859900",
|
||||||
"shapes" : [ "Node", "File"]
|
"shapes" : [
|
||||||
|
"Node",
|
||||||
|
"File",
|
||||||
|
"Artifact",
|
||||||
|
"Circle"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"APPLICATION" : {
|
"APPLICATION" : {
|
||||||
"color" : "#268bd2",
|
"color" : "#268bd2",
|
||||||
"shapes" : [ "Participant", "Rectangle", "Component" ]
|
"shapes" : [
|
||||||
|
"Participant",
|
||||||
|
"Rectangle",
|
||||||
|
"Component",
|
||||||
|
"Hexagon",
|
||||||
|
"Agent"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"BUSINESS" : {
|
"BUSINESS" : {
|
||||||
"color" : "#b58900",
|
"color" : "#b58900",
|
||||||
"shapes" : [ "Actor", "Note", "Hexagon", "Boundary", "Control", "Entity" ]
|
"shapes" : [
|
||||||
|
"Actor",
|
||||||
|
"Note",
|
||||||
|
"Boundary",
|
||||||
|
"Control",
|
||||||
|
"Entity",
|
||||||
|
"Person"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"IMPLEMENTATION" : {
|
"IMPLEMENTATION" : {
|
||||||
"color" : "#dc322f",
|
"color" : "#dc322f",
|
||||||
"shapes" : [ "Class", "Map", "Json" ]
|
"shapes" : [
|
||||||
|
"Class",
|
||||||
|
"Map",
|
||||||
|
"Json",
|
||||||
|
"Package",
|
||||||
|
"Frame",
|
||||||
|
"Interface"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"MOTIVATION" : {
|
"MOTIVATION" : {
|
||||||
"color" : "#6c71c4",
|
"color" : "#6c71c4",
|
||||||
"shapes" : [ "Cloud", "Frame", "Collections", "Database", "Queue" ]
|
"shapes" : [
|
||||||
|
"Cloud",
|
||||||
|
"Collections",
|
||||||
|
"Database",
|
||||||
|
"Queue",
|
||||||
|
"Process",
|
||||||
|
"Stack",
|
||||||
|
"Storage"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"STRATEGY" : {
|
"STRATEGY" : {
|
||||||
"color" : "#STRATEGY",
|
"color" : "#cb4b16",
|
||||||
"shapes" : [ "Partition", "Folder", "Card" ]
|
"shapes" : [
|
||||||
|
"Action",
|
||||||
|
"Partition",
|
||||||
|
"Folder",
|
||||||
|
"Usecase",
|
||||||
|
"Card"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
!$thickness = 2
|
!$thickness = 2
|
||||||
<style>
|
<style>
|
||||||
!foreach $lib in %splitstr('root.wbsDiagram.mindmapDiagram.ganttDiagram.saltDiagram', '.')
|
nwdiagDiagram, wbsDiagram, mindmapDiagram, ganttDiagram, saltDiagram, jsonDiagram, yamlDiagram {
|
||||||
$lib {
|
|
||||||
BackGroundColor $colors.bg
|
BackGroundColor $colors.bg
|
||||||
arrow {
|
arrow {
|
||||||
LineColor $colors.font
|
LineColor $colors.font
|
||||||
@ -72,62 +107,44 @@ scale max 2000 * 2000
|
|||||||
BackGroundColor $colors.red_bg
|
BackGroundColor $colors.red_bg
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
!endfor
|
|
||||||
</style>
|
</style>
|
||||||
skinparam {
|
|
||||||
noteTextAlignment left
|
skinparam noteTextAlignment left
|
||||||
actorStyle awesome
|
skinparam actorStyle awesome
|
||||||
Dpi 100
|
skinparam Dpi 100
|
||||||
Shadowing false
|
skinparam Shadowing false
|
||||||
BackgroundColor $colors.bg
|
skinparam BackgroundColor $colors.bg
|
||||||
WrapWidth 200
|
skinparam WrapWidth 200
|
||||||
RoundCorner 15
|
skinparam RoundCorner 15
|
||||||
Swimlane {
|
skinparam SwimlaneBorderColor $colors.font
|
||||||
BorderColor $colors.font
|
skinparam SwimlaneThickness $thickness
|
||||||
Thickness $thickness
|
skinparam SwimlaneWrapTitleWidth 150
|
||||||
WrapTitleWidth 150
|
skinparam ArrowColor $colors.font
|
||||||
}
|
skinparam ArrowThickness $thickness
|
||||||
Arrow {
|
skinparam DefaultTextAlignment center
|
||||||
Color $colors.font
|
skinparam DefaultFontName Dejavu Serif
|
||||||
Thickness $thickness
|
skinparam LegendFontName VL Gothic
|
||||||
}
|
skinparam LegendBorderColor transparent
|
||||||
Default {
|
skinparam LegendBackgroundColor transparent
|
||||||
TextAlignment center
|
skinparam SequenceMessageAlign direction
|
||||||
FontName Dejavu Serif
|
skinparam SequenceArrowThickness $thickness
|
||||||
}
|
skinparam SequenceLifeLineBorderColor $colors.yellow
|
||||||
Legend {
|
skinparam SequenceBoxBorderThickness $thickness
|
||||||
FontName VL Gothic
|
|
||||||
BorderColor transparent
|
|
||||||
BackgroundColor transparent
|
|
||||||
}
|
|
||||||
Sequence {
|
|
||||||
MessageAlign direction
|
|
||||||
ArrowThickness $thickness
|
|
||||||
LifeLineBorderColor $colors.yellow
|
|
||||||
BoxBorderThickness $thickness
|
|
||||||
}
|
|
||||||
!foreach $shape in %splitstr('Activity.State', '.')
|
!foreach $shape in %splitstr('Activity.State', '.')
|
||||||
$shape {
|
skinparam $shape {
|
||||||
BackgroundColor transparent
|
BackgroundColor transparent
|
||||||
Border {
|
BorderColor $colors.violet
|
||||||
Color $colors.violet
|
BorderThickness $thickness
|
||||||
Thickness $thickness
|
DiamondBorderColor $colors.red
|
||||||
}
|
DiamondBackgroundColor transparent
|
||||||
Diamond {
|
|
||||||
BorderColor $colors.red
|
|
||||||
BackgroundColor transparent
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
!endfor
|
!endfor
|
||||||
!foreach $key in %get_json_keys($shapes)
|
!foreach $key in %get_json_keys($shapes)
|
||||||
!foreach $shape in $shapes[$key].shapes
|
!foreach $shape in $shapes[$key].shapes
|
||||||
$shape {
|
skinparam $shape {
|
||||||
BackgroundColor #$key
|
BackgroundColor #$key
|
||||||
Border {
|
BorderColor $shapes[$key].color
|
||||||
Color $shapes[$key].color
|
BorderThickness $thickness
|
||||||
Thickness $thickness
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
!endfor
|
!endfor
|
||||||
!endfor
|
!endfor
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user