public static function materialColors(string $color = null)
    {
        $colors = Collection::make([
            'red'           => '#F44336',
            'pink'          => '#E91E63',
            'purple'        => '#9C27B0',
            'deep_purple'   => '#673AB7',
            'indigo'        => '#3F51B5',
            'blue'          => '#2196F3',
            'light_blue'    => '#03A9F4',
            'cyan'          => '#00BCD4',
            'teal'          => '#009688',
            'green'         => '#4CAF50',
            'light_green'   => '#8BC34A',
            'lime'          => '#CDDC39',
            'yellow'        => '#FFEB3B',
            'amber'         => '#FFC107',
            'orange'        => '#FF9800',
            'deep_orange'   => '#FF5722',
            'brown'         => '#795548',
            'grey'          => '#9E9E9E',
            'blue_grey'     => '#607D8B'
        ]);

        if (!$color) {
            return $colors;
        }

        return $colors->has($color) ? $colors->get($color) : $color;
    }
public static function materialColors(string $color = null)
    {
        $colors = Collection::make([
            'red'           => '#F44336',
            'pink'          => '#E91E63',
            'purple'        => '#9C27B0',
            'deep_purple'   => '#673AB7',
            'indigo'        => '#3F51B5',
            'blue'          => '#2196F3',
            'light_blue'    => '#03A9F4',
            'cyan'          => '#00BCD4',
            'teal'          => '#009688',
            'green'         => '#4CAF50',
            'light_green'   => '#8BC34A',
            'lime'          => '#CDDC39',
            'yellow'        => '#FFEB3B',
            'amber'         => '#FFC107',
            'orange'        => '#FF9800',
            'deep_orange'   => '#FF5722',
            'brown'         => '#795548',
            'grey'          => '#9E9E9E',
            'blue_grey'     => '#607D8B'
        ]);

        if (!$color) {
            return $colors;
        }

        return $colors->has($color) ? $colors->get($color) : $color;
    }
public static function materialColors ( string $ color = null ) { $ colors = Collection :: make ( [ 'red' => '#F44336' , 'pink' => '#E91E63' , 'purple' => '#9C27B0' , 'deep_purple' => '#673AB7' , 'indigo' => '#3F51B5' , 'blue' => '#2196F3' , 'light_blue' => '#03A9F4' , 'cyan' => '#00BCD4' , 'teal' => '#009688' , 'green' => '#4CAF50' , 'light_green' => '#8BC34A' , 'lime' => '#CDDC39' , 'yellow' => '#FFEB3B' , 'amber' => '#FFC107' , 'orange' => '#FF9800' , 'deep_orange' => '#FF5722' , 'brown' => '#795548' , 'grey' => '#9E9E9E' , 'blue_grey' => '#607D8B' ] ) ; if ( ! $ color ) { return $ colors ; } return $ colors -> has ( $ color ) ? $ colors -> get ( $ color ) : $ color ; }
Return the material color list or an item inside.

@author Erik Campobadal Fores <soc@erik.cat>
@copyright 2017 erik.cat
@param string|null $color
@return mixed Collection|String
Return the material color list or an item inside .