From 623bdd92841f3ad7bc33729e06a82e1ee4a562f2 Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Mon, 7 May 2018 21:20:06 -0400 Subject: [PATCH] Port `colorSVG` from Sass to TypeScript (React) --- ts/styles/colorSVG.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 ts/styles/colorSVG.ts diff --git a/ts/styles/colorSVG.ts b/ts/styles/colorSVG.ts new file mode 100644 index 0000000000..a749e5fdc7 --- /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, + }; +};