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:
@@ -147,6 +147,12 @@ resolve_opencode_color() {
|
|||||||
neon-green) echo "#10B981" ;;
|
neon-green) echo "#10B981" ;;
|
||||||
neon-cyan) echo "#06B6D4" ;;
|
neon-cyan) echo "#06B6D4" ;;
|
||||||
metallic-blue) echo "#3B82F6" ;;
|
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
|
*) echo "$c" ;; # already hex or unknown — pass through
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user