Skip to content

Function: useNormalizedColor()

ts
function useNormalizedColor(
  color: Ref<string | null | undefined>,
  fallback: string,
  type: "background" | "foreground",
  modifiers?: MaybeRefOrGetter<ColorModifier>,
  failover?: RGB,
  modifyFallback?: boolean,
): ComputedRef<RGB>;

Parameters

ParameterTypeDefault value
colorRef<string | null | undefined>undefined
fallbackstringundefined
type"background" | "foreground"undefined
modifiers?MaybeRefOrGetter<ColorModifier>undefined
failover?RGB...
modifyFallback?booleantrue

Returns

ComputedRef<RGB>