add header background contrast warning and improve branding UX
All checks were successful
deploy / deploy (push) Successful in 1m12s

- extract dominant colors from header images during optimization
- calculate WCAG contrast ratios against theme text color
- show warning in theme editor when text may be hard to read
- prevent hiding shop name when no logo is uploaded
- auto-enable shop name when logo is deleted
- fix image cache invalidation on delete
- add missing .hidden utility class

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
jamey
2026-03-08 22:40:08 +00:00
parent 32cc425458
commit 476da8121a
13 changed files with 429 additions and 220 deletions

View File

@@ -0,0 +1,9 @@
defmodule Berrypod.Repo.Migrations.AddDominantColorsToImages do
use Ecto.Migration
def change do
alter table(:images) do
add :dominant_colors, :string
end
end
end