diff --git a/src/Concerns/Palette.php b/src/Concerns/Palette.php index 5264f5a..a296b86 100644 --- a/src/Concerns/Palette.php +++ b/src/Concerns/Palette.php @@ -44,7 +44,7 @@ public function palette($color = null) ]); } - return ! empty($color) ? ( + return ! empty($color) && is_string($color) ? ( $colors[$color] ?? null ) : $colors; }