Move legend theming to CSS