Skip to content

Conversation

@aweell
Copy link
Collaborator

@aweell aweell commented Aug 26, 2025

Pull Request Description: Tokens Create CLI

This pull request introduces a new command-line interface (CLI) tool for creating design tokens, specifically focused on managing color tokens, gradients, and other design-related properties.

Motivation

The need for a streamlined process to create and manage tokens arose from the challenges developers face when defining design properties across multiple brands and themes. This CLI tool simplifies the workflow by allowing users to interactively define and save tokens, ensuring consistency and reducing manual entry errors.

Key Features

  1. Interactive Token Creation: Users can easily create tokens by providing names and types through a guided prompt, enhancing usability for developers who may not be familiar with the underlying structure of the token files.

  2. Palette Management: The CLI checks for existing color references and prompts users to create new palette entries if necessary, ensuring that all tokens are valid and linked to defined colors.

  3. Support for Multiple Token Types: The tool supports various token types, including colors, gradients, and typography, making it versatile for different design needs.

  4. Brand Integration: The CLI can handle multiple brands, allowing for the creation of brand-specific tokens in a structured manner.

  5. Error Handling: The tool includes validation to ensure that inputs are correct, such as checking for valid hex color codes and ensuring palette keys are defined before usage.

Improvements to the Project

By integrating this CLI tool, the project benefits from:

  • Increased Efficiency: Developers can quickly create and manage tokens without diving into JSON files manually, speeding up the development process.

  • Consistency: The tool enforces rules around token creation, promoting consistency across different brands and reducing discrepancies.

  • Enhanced Developer Experience: The interactive prompts make it easier for developers to manage design tokens, which can lead to better adoption and usage of design systems within the team.

In summary, this pull request aims to enhance the project's design token management by providing a user-friendly CLI tool that streamlines the creation process and ensures consistency across brands and token types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants