                 return "null".jsonString
             }
             return "\(hexColor)".jsonString
+        case let .function(function):
+            return function.jsonString
         case .auto:
             return "auto".jsonString
         case .red:

    case rgba(Int, Int, Int, Float)
    case rgb(Int, Int, Int)
    case hexColor(String)
    case array([Color])
    case image(String, ImageRepeat)
    case linearGradient(Float, Float, Float, Float, [GradientColorElement], Bool)

            return false
        }
        
        var rgbValue: UInt64 = 0
        return NSScanner(string: cString).scanHexLongLong(&rgbValue)
    }
    
    public var jsonString: String {
