When a caller customizes a background color (e.g. toolbarBackground) but
does NOT also supply the paired foreground (e.g. toolbarIconColor), the
default foreground from the light theme would silently bleed through and
become unreadable. To avoid that, we auto-derive a contrasting foreground
from the supplied background using WCAG relative luminance.
Deep merge configuration with defaults.
When a caller customizes a background color (e.g.
toolbarBackground) but does NOT also supply the paired foreground (e.g.toolbarIconColor), the default foreground from the light theme would silently bleed through and become unreadable. To avoid that, we auto-derive a contrasting foreground from the supplied background using WCAG relative luminance.