Templates for config files when using Specify
- Clone this repository
- Run
npm install
oryarn install
orpnpm install
to install all dependencies - Copy the
.env
filecp .env.example .env
and fill the required fields
- Run the extract command desired
yarn extract-xxx
|npm run extract-xxx
|pnpm run extract-xxx
replacingxxx
with the desired template - Check the output in the output folder created for each command
For each extract script there are two versions possible:
- The JS version
- The JSON version
For the JS version, you need to fill the .env
file with the required fields. For the JSON file, You need to fill the required fields in the JSON file itself.
yarn extract-css
- Extract all tokens in CSS files. You can check the code and output in the folderto-css
yarn extract-css-json
- Extract all tokens in CSS files. You can check the code and output in the folderto-css
yarn extract-svg-icons
- Extract and optimize all SVG assets from a repository. You can check the code and output in the folderto-svg-icons
yarn extract-svg-icons-json
- Extract and optimize all svg tokens from a repository. You can check the code and output in the folderto-svg-icons
yarn extract-react-native
- Extract all tokens to a TypeScript in the React Native usable format. You can check the code and output in the folderto-react-native
yarn extract-react-native-json
- Extract all tokens to a TypeScript in the React Native usable format. You can check the code and output in the folderto-react-native