Port colorSVG from Sass to TypeScript (React)

This commit is contained in:
Daniel Gasienica 2018-05-07 21:20:06 -04:00
parent 16bc1d34c6
commit 623bdd9284

7
ts/styles/colorSVG.ts Normal file
View file

@ -0,0 +1,7 @@
export const colorSVG = (url: string, color: string) => {
return {
WebkitMask: `url(${url}) no-repeat center`,
WebkitMaskSize: '100%',
backgroundColor: color,
};
};