• Preparing search index...
  • The search index is not available
Color.js API Docs - v0.6.0-alpha.1
  • Color.js API Docs
  • index-fn
  • tryColor

Function tryColor

  • tryColor(color, options?): PlainColorObject
  • Resolves a color reference (object or string) to a plain color object, or null if resolution fails. Can resolve more complex CSS colors (e.g. relative colors, calc(), CSS variables, color-mix(), etc.) through the DOM.

    Parameters

    • color: ColorTypes
    • Optional options: TryColorOptions

    Returns PlainColorObject

    • Defined in tryColor.js:13
  • tryColor(color, options?): PlainColorObject[]
  • Parameters

    • color: ColorTypes[]
    • Optional options: TryColorOptions

    Returns PlainColorObject[]

    • Defined in tryColor.js:19

Settings

Member Visibility

Theme

Color.js API Docs - v0.6.0-alpha.1
  • Loading...

Generated using TypeDoc