How to use the color-string.to.hex function in color-string

To help you get started, we’ve selected a few color-string examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tinacms / tinacms / packages / @tinacms / fields / src / ColorPicker / color-formatter.tsx View on Github external
getValue(color: ColorRGBA) {
      const colorVals = [color.r, color.g, color.b, color.a]
      return toColor.hex(colorVals)
    },
    parse: ParseColorStr,
github tinacms / tinacms / packages / @tinacms / fields / src / ColorPicker / color-formatter.tsx View on Github external
getValue(color: ColorRGBA) {
      const colorVals = [color.r, color.g, color.b, color.a]
      return toColor.hex(colorVals)
    },
    parse: ParseColorStr,