Created
October 7, 2022 14:08
-
-
Save ChucKN0risK/354bedcfeec974892dbf7b78965ae0d6 to your computer and use it in GitHub Desktop.
Generate measurements in rem for Tailwind
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": "YOUR_SPECIFY_REPO", | |
"personalAccessToken": "YOUR_PAT", | |
"rules": [ | |
{ | |
"name": "Design Tokens / Everything but measurements", | |
"path": "./output/theme.js", | |
"filter": { | |
"types": [ | |
"color", | |
"textStyle", | |
"font" | |
] | |
}, | |
"parsers": [ | |
{ | |
"name": "to-tailwind", | |
"options": { | |
"formatName": "camelCase", | |
"formatConfig": { | |
"objectName": "extend", | |
"module": "commonjs" | |
} | |
} | |
} | |
] | |
}, | |
{ | |
"name": "Design Tokens / Measurements", | |
"path": "./output/measuemrent.js", | |
"filter": { | |
"types": [ | |
"measurement" | |
] | |
}, | |
"parsers": [ | |
{ | |
"name": "px-to-rem", | |
"options": { | |
"keys": ["value"] | |
} | |
}, | |
{ | |
"name": "to-tailwind", | |
"options": { | |
"formatName": "camelCase", | |
"formatConfig": { | |
"objectName": "extend", | |
"module": "commonjs" | |
} | |
} | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment