generate

Resolves dimensions and background opacity using context.

Return

configuration with width and elevation in pixels; opacity defaults to 1 if unresolved.