.legend

%div{ :class => "color #{color}" }
.text
  %span{ :class => type }
  %span
    = text