These are chat archives for japgolly/scalacss

Jul 2015
Julie Pitt
Jul 07 2015 16:51
I'm trying out scalacss for the first time, and barely literate in CSS to boot. I would like to be able to style elements within an SVG using scalacss. Here's what an SVG style might look like (say, on a rect element): fill:blue;stroke:pink;stroke-width:5;opacity:0.5. These CSS attributes don't seem to be defined in scalacss.Defaults._Where might I find SVG styles, or do I need to extend scalacss for that?
Julie Pitt
Jul 07 2015 19:31
Not sure if this is right, but I defined my own attributes, like so:
  object fill extends TypedAttr_Color {
    override val attr = Attr.real("fill")