ound_color | default $meta.background_color | default ($ctx.Param "image.background_color") }}
  {{ $hex := findRE `^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$` . }}
  {{ if not $hex }}
    {{ partial "hri/private/utils/options-error" (dict 
      "var" "background_color"
      "val" .
      "opts" "3 or 6 digit hex color code"
      "ctx" $.error_ctx
    ) }}
  {{ else }}
    {{ $s.SetInMap "params" "background_color" . }}
  {{ end }}
{{ end }}

{{ return $s.Get "params" }}
