Skip to content

This integration brings new parameter types for design and layout control via Uniform UI extensions to help control and manage the look and feel of your components.

License

Notifications You must be signed in to change notification settings

uniformdev/uniform-design-extensions

Repository files navigation

Design Extensions Integration

Overview

The Design Extensions Integration enhances design and layout control via Uniform UI extensions, allowing you to manage the appearance of your components seamlessly.

Prerequisites

Before setting up the project, ensure you have the following installed:

Installation & Setup

To set up the project locally, follow these steps:

1. Clone the Repository

git clone https://github.com/your-repo/design-extensions.git
cd design-extensions

2. Install Dependencies

npm install

3. Configure Environment Variables

Create a .env file in the root directory and set up the necessary environment variables based on .env.example:

KV_URL=<your_kv_url>
KV_REST_API_URL=<your_rest_api_url>
KV_REST_API_TOKEN=<your_rest_api_token>
KV_REST_API_READ_ONLY_TOKEN=<your_read_only_token>

These credentials are required to interact with Vercel KV Storage.

4. Start the Application

Development Mode:

npm run dev

Access the application at http://localhost:4030.

Production Mode:

npm run build
npm start

The production server will be available at http://localhost:4030.

Available Scripts

  • npm run dev - Starts the development server.
  • npm run build - Builds the integration for production.
  • npm run start - Runs the production server.
  • npm run lint - Lints the project for code quality.
  • npm run lint:fix - Auto-fixes lint issues.
  • npm run format - Formats the code using Prettier.

Usage

To install and use the Design Extensions Integration within Uniform, follow these steps:

Installing the Integration

  1. Navigate to Uniform.app and open your Team.

  2. Go to the Settings tab and select Custom Integrations.

  3. Click Add Integration and provide the required manifest.

  4. Once added, the Custom Integration will be available for all projects under the selected team.

    Step 1

Deploying the Integration

  1. Run the integration locally or deploy it to a hosting provider.
  2. If deploying, update the integration manifest to replace http://localhost:4030 with the deployed domain.

Using the Integration

  1. Open the Canvas project settings tab and navigate to Integrations.

  2. Select the newly added Custom Integration.

    Step 2

  3. In the Integration Settings, configure:

    • Color
    • Size/Dimension
    • Font
    • Border

    You can also import Design Tokens from Figma for seamless configuration.

    Step 3

  4. You will now have access to custom parameters from the Design Extensions Integration.

    Step 4

Component Starter Kit & Additional Resources

For a quick start with a pre-configured application, use the Component Starter Kit, which is already set up for Design Extensions Integration:

  • GitHub repository: Component Starter Kit

  • Install via CLI:

    npx @uniformdev/cli@latest new

    Follow the interactive steps to set up the starter kit.

Recommended Packages

Enhance your development workflow with these essential packages:

Additional Resources

Technologies Used

This integration is built using:

  • Next.js (Framework)
  • React (UI Library)
  • Tailwind CSS (Styling)
  • Vercel KV Storage (Data Storage)
  • ESLint & Prettier (Code Quality & Formatting)

Conclusion

The Design Extensions Integration enhances design flexibility and control within Uniform, providing an optimized and streamlined development experience.

About

This integration brings new parameter types for design and layout control via Uniform UI extensions to help control and manage the look and feel of your components.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published