     }
 
     public var cssAttributes:[String : String] = [ : ]
+
+    public var backgroundColor = SNColor(red: 0, green: 0, blue: 0, alpha: 0) {
+        didSet {
+            cssAttributes["background-color"] = backgroundColor.cssValue
+        }
+    }
 
     public required init(frame: CGRect) {
         cssAttributes["position"] = "absolute"

    public init(rawValue: UInt) {
        self.rawValue = rawValue
    }
    public static let TouchUpInside = SNControlEvents(rawValue: 1)
}

open class SNButton : SNView {
    public required init(frame: CGRect) {
        super.init(frame: frame)
        self.cssAttributes["font-size"] = "20px"
    }
    var normalTitle = "Button"
    open func setTitle(_ title: String, forState state: SNControlState) {
        self.normalTitle = title
    }


    public init(rawValue: UInt) {
        self.rawValue = rawValue
    }
    public static let normal = SNControlState(rawValue: 1)
}

public struct SNControlEvents : OptionSet {
