Re: [community-group] Legacy color (#137)

I'd like to propose adding support for the CMYK color model to the specification. This enhancement aligns with our goal of making the specification more flexible and future-proof by accommodating various color spaces.

**Proposal Details:**
1. **Extend the Color Token Format:**
   - Introduce the ability to specify `colorSpace` as `"cmyk"`.
   - Allow `channels` to accept an array of four values representing the Cyan, Magenta, Yellow, and Key (black) components.
2. **Example Syntax:**
   Using decimal values between 0 and 1:
   ```json
   {
     "$type": "color",
     "$value": {
       "colorSpace": "cmyk",
       "channels": [0.0, 1.0, 1.0, 0.0],
       "alpha": 1.0
     }
   }
   ```
   Or using percentages between 0 and 100:
   ```json
   {
     "$type": "color",
     "$value": {
       "colorSpace": "cmyk",
       "channels": [0, 100, 100, 0],
       "alpha": 1.0
     }
   }
   ```
**Benefits:**
- **Print Design Integration:**
  - **Seamless Workflow:** Facilitates a smoother integration between digital and print design processes by allowing designers to specify print-ready colors directly in design tokens.
  - **Accuracy:** Reduces the need for manual color conversions and minimizes discrepancies between on-screen designs and printed materials.
- **Specification Flexibility:**
  - **Future-Proofing:** By supporting CMYK, we make the specification more adaptable to various mediums and industries.
  - **Consistency with Ongoing Discussions:** This proposal aligns with the existing discussions about supporting multiple color spaces through the `colorSpace` and `channels` properties.

-- 
GitHub Notification of comment by mck
Please view or discuss this issue at https://github.com/design-tokens/community-group/issues/137#issuecomment-2367381171 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 23 September 2024 07:05:23 UTC