I've followed the solution proposed here successfully, but when trying to export the legend to SVG, the only thin visible is the last encoded color. Am I missing a closing instruction to avoid this?
Here you have a simplified example, try to export it to SVG and you will have a black square as a result. Export as PNG works fine.
@startuml
legend
|= |= Colours |
|<back:#F59175> </back>| Pink |
|<back:#FEFECE> </back>| Yellow |
|<back:#000000> </back>| Black |
endlegend
@enduml
Solution to the problem (thanks to the comment of GeekBoy ):
@startuml
legend
|= |= Colours |
|<#F59175>| Pink |
|<#FEFECE>| Yellow |
|<#000000>| Black |
endlegend
@enduml
NB. dimension of the first column is defined by the first cell |= |.