{{- $vibrant := default .Site.Params.Default.Hero.Vibrant .Params.Hero.Vibrant -}}
{{- $themeColor := "#fff" -}}
{{ if $vibrant }}
{{ $image := .Scratch.Get "image" }}
{{ if $image }}
{{- $vibrantColor := partial "helper/image/vibrant" $image -}}
{{- $themeColor = $vibrantColor -}}
{{- $style := resources.Get "scss/helper/vibrant.scss" | css.Sass (dict "transpiler" "dartsass" "vars" (dict "color" ($themeColor | css.Unquoted) "blurry" ((.Scratch.Get "hasBlurryHero") | css.Unquoted))) -}}
{{ end }}
{{ end }}