lib/class-kirki-color.php
public static function sanitize_color( $color = '', $mode = 'auto' ) {
		if ( is_string( $color ) && 'transparent' == trim( $color ) ) {
			return 'transparent';
		}
		$obj = ariColor::newColor( $color );
		if ( 'auto' == $mode ) {
			$mode = $obj->mode;
		}
		return $obj->toCSS( $mode );
	}
public static function sanitize_color( $color = '', $mode = 'auto' ) {
		if ( is_string( $color ) && 'transparent' == trim( $color ) ) {
			return 'transparent';
		}
		$obj = ariColor::newColor( $color );
		if ( 'auto' == $mode ) {
			$mode = $obj->mode;
		}
		return $obj->toCSS( $mode );
	}
public static function sanitize_color ( $ color = '' , $ mode = 'auto' ) { if ( is_string ( $ color ) && 'transparent' == trim ( $ color ) ) { return 'transparent' ; } $ obj = ariColor :: newColor ( $ color ) ; if ( 'auto' == $ mode ) { $ mode = $ obj -> mode ; } return $ obj -> toCSS ( $ mode ) ; }
Sanitize colors.
Determine if the current value is a hex or an rgba color and call the appropriate method.

@static
@access public
@since 0.8.5
@param string|array $color The color.
@param string       $mode  The mode to be used.
@return string
Sanitize colors . Determine if the current value is a hex or an rgba color and call the appropriate method .