Fold Design is a Node.js project that uses StyleDictionary to generate the design tokens used in Fold.
Ensure you have the following prerequisites installed:
The project uses Node v18, however any version 16+ should work.
-
Clone the repository:
git clone https://github.com/fold-dev/fold.git
-
Navigate to the project directory:
cd fold/packages/design
-
Install dependencies:
npm install
Please see config.js
for output configuration. More detailed guide coming soon.
# Builds token file
npm run build
# Watch build using nodemon
npm run watch
Yarn is also acceptable, but be sure to replace npm
with Yarn
in the package.json
watch
script.
For more information on how to integrate the generated design tokens, please see our theming guide.
We are not actively looking for contributers at this time, however you are very welcome to contribute by submitting a PR.
Here is how you can submit a pull request:
- Fork the project.
- Create your feature branch (
git checkout -b feature/your-feature
). - Commit your changes (
git commit -am 'Add some feature'
). - Push to the branch (
git push origin feature/your-feature
). - Open a pull request.
This project is licensed under the MIT License (as part of Fold)