pyboxbuilder.preview.spacer_color

pyboxbuilder.preview.spacer_color(label: str = '') → Color[source]

Return the preview colour for a spacer tray — always a variant of grey.

Parameters:
label: str = ''

Optional spacer label; varies the lightness slightly so neighbouring spacers stay distinguishable. Grey regardless.

Returns:

A grey pybosl2.Color, never a hue from the box palette.