Re: [community-group] Gradient type feedback (#101)

Hello everyone, 

I have a question about the number of gradients. How about multiple gradients? Is the value then an array with arrays? Like like this:

```
{
  "blue-to-red": {
    "$type": "gradient",
    "$value": [
      [
        {
          "color": "rgba(0, 0, 255, 0.5)",
          "position": 0
        },
        {
          "color": "rgba(0, 0, 255, 1)",
          "position": 1
        }
      ],
      [
        {
          "color": "rgba(255, 0, 0, 1)",
          "position": 0
        },
        {
          "color": "rgba(255, 0, 0, 0.5)",
          "position": 1
        }
      ]
    ]
  }
}
```

Or is this a different type like »multifill«? 
And what about when gradients are to be mixed with solid color? Could this be something like this:

```
{
  "blue-and-red": {
    "$type": "multifill",
    "$value": [
      {
        "$type": "color",
        "$value": "rgba(0, 0, 255, 0.5)",
      },
      {
        "$type": "gradient",
        "$value": [
          {
            "color": "rgba(255, 0, 0, 0.5)",
            "position": 0
          },
          {
            "color": "rgba(255, 0, 0, 1)",
            "position": 1
          }
        ]
      }
    ]
  }
}
```
Thanks for all the work!

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


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

Received on Monday, 4 April 2022 20:06:57 UTC