Fix OpenCode color mapping for 6 missing named colors

Add yellow, violet, rose, lime, gray, and fuchsia to
resolve_opencode_color() — these were passing through as
plain strings and breaking OpenCode's hex-only color validation.

Fixes #108

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Michael Sitarzewski 2026-03-11 10:48:21 -05:00
parent 71c3bdf03c
commit 5e59a20bbf

View File

@ -147,6 +147,12 @@ resolve_opencode_color() {
neon-green) echo "#10B981" ;;
neon-cyan) echo "#06B6D4" ;;
metallic-blue) echo "#3B82F6" ;;
yellow) echo "#EAB308" ;;
violet) echo "#8B5CF6" ;;
rose) echo "#F43F5E" ;;
lime) echo "#84CC16" ;;
gray) echo "#6B7280" ;;
fuchsia) echo "#D946EF" ;;
*) echo "$c" ;; # already hex or unknown — pass through
esac
}