@fold-dev/design

0.11.0 • Public • Published

Fold Design

Fold Design is a Node.js project that uses StyleDictionary to generate the design tokens used in Fold.

Table of Contents

Getting Started

Prerequisites

Ensure you have the following prerequisites installed:

The project uses Node v18, however any version 16+ should work.

  • Node - v18.17.1
  • Npm (Node Package Manager) - v9.6.7

Installation

  1. Clone the repository:

    git clone https://github.com/fold-dev/fold.git
  2. Navigate to the project directory:

    cd fold/packages/design
  3. Install dependencies:

    npm install

Configuration

Please see config.js for output configuration. More detailed guide coming soon.

Usage

# 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.

Contributing

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:

  1. Fork the project.
  2. Create your feature branch (git checkout -b feature/your-feature).
  3. Commit your changes (git commit -am 'Add some feature').
  4. Push to the branch (git push origin feature/your-feature).
  5. Open a pull request.

License

This project is licensed under the MIT License (as part of Fold)

Package Sidebar

Install

npm i @fold-dev/design

Homepage

fold.dev

Weekly Downloads

85

Version

0.11.0

License

MIT

Unpacked Size

61.8 kB

Total Files

8

Last publish

Collaborators

  • joduplessis