Port colorSVG
from Sass to TypeScript (React)
This commit is contained in:
parent
16bc1d34c6
commit
623bdd9284
1 changed files with 7 additions and 0 deletions
7
ts/styles/colorSVG.ts
Normal file
7
ts/styles/colorSVG.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
export const colorSVG = (url: string, color: string) => {
|
||||
return {
|
||||
WebkitMask: `url(${url}) no-repeat center`,
|
||||
WebkitMaskSize: '100%',
|
||||
backgroundColor: color,
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue