import { Paint } from "figma-api" ; const parseColor = ( { color , opacity } ) => { return `rgba(${ Math . round ( color . r * 255 ) }, ${ Math . round ( color . g * 255 ) }, ${ Math . round ( color . b * 255 ) }, ${ opacity !== undefined ? Math . round ( opacity * 100 ) / 100 : 1 })` ; } ; export default parseColor ;