normalizeCssColor(raw: string | undefined): string | undefined
Returns raw as a lowercase #rrggbb, from a hex, rgb(), rgba() or
common named color; undefined for any other form. The generic preview
stores it as the preview's accentColor, a tint over the app's own surface,
so alpha is dropped, and a fully transparent one is no color at all.