@dxos/ui-theme
    Preparing search index...

    Function toHue

    • Normalise an arbitrary string into a known Hue, falling back to 'neutral' when the input doesn't match one of the catalogued palette entries. Useful when accepting hue values from user-authored data (e.g. ECHO objects, plugin settings) that need to be forwarded to a hue-keyed prop like Tag's palette.

      Parameters

      • hue: undefined | string

      Returns Hue