Created
July 7, 2023 17:48
-
-
Save ChucKN0risK/3e551f167940f86e7805fb466999db25 to your computer and use it in GitHub Desktop.
Use token properties inside the SVGO config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"repository": "@acme-inc/all-design-data", | |
"personalAccessToken": "0210baf240fcbad016552bdbdceda65c134c1af92b3d6ce0d1226804ced0fa8d", | |
"rules": [ | |
{ | |
"name": "Design Tokens / Vector", | |
"path": "./priv/static/assets/designsystem/vectors", | |
"filter": { | |
"types": [ | |
"vector" | |
] | |
}, | |
"parsers": [ | |
{ | |
"name": "kebabcasify" | |
}, | |
{ | |
"name": "svgo-v3", | |
"options": { | |
"svgo": { | |
"js2svg": { | |
"pretty": true | |
}, | |
"plugins": [ | |
{ | |
"name": "removeDimensions" | |
}, | |
{ | |
"name": "convertColors", | |
"params": { | |
"currentColor": true | |
} | |
}, | |
{ | |
"name": "addAttributesToSVGElement", | |
"params": { | |
"attributes": ["focusable=\"false\""] | |
} | |
}, | |
{ | |
"name": "prefixIds", | |
"params": { | |
"prefix": "{{name}}-id" | |
} | |
} | |
] | |
} | |
} | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment