diff --git a/ts/styles/colorSVG.ts b/ts/styles/colorSVG.ts new file mode 100644 index 000000000..a749e5fdc --- /dev/null +++ b/ts/styles/colorSVG.ts @@ -0,0 +1,7 @@ +export const colorSVG = (url: string, color: string) => { + return { + WebkitMask: `url(${url}) no-repeat center`, + WebkitMaskSize: '100%', + backgroundColor: color, + }; +};