protected function materialDesignColorPalette($type, $name, $value) {

        $color = $this->getColors()[0];

        foreach ($this->getColors() as $current) {
            if ($name !== $current->getName()) {
                continue;
            }
            $color = $current;
        }

        $html = [];

        $html[] = "mdc";
        $html[] = $type;
        $html[] = $color->getName();
        if (null !== $value && true === array_key_exists($value, $color->getColors())) {
            $html[] = $value;
        }

        return implode("-", $html);
    }