Telefonica / mistica-design

Mística Design System (only design)
https://brandfactory.telefonica.com/mistica
20 stars 4 forks source link

displayCardGradient token #1701

Closed aweell closed 3 months ago

aweell commented 3 months ago

Description

With the new brand definition O2 will start using a different colors in the display card gradients. In order to keep the definition i all brands but o2 we need to tokenize the gradient.

The current definition:

linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 29.02%, rgba(0, 0, 0, 0.7) 100%)

The new o2 definition (WIP in https://github.com/Telefonica/mistica-design/issues/1689):

linear-gradient(180deg, rgba(0, 80, 255, 0) 0%, rgba(0, 80, 255, 0.6) 29.02%, rgba(0, 80, 255, 1) 100%)

With the new gradient definition:

"cardContentOverlay": {
    "type": "linear-gradient",
    "value": {
        "angle": 180,
        "colors": [
            {"value": "rgba({palette.beyondBlue}, 0)", "stop": 0},
            {"value": "rgba({palette.beyondBlue}, 0.4)", "stop": 0.3},
            {"value": "rgba({palette.beyondBlue}, 0.7)", "stop": 1},
        ],
    },
    "description": "beyondBlue"
},

Tasks

yceballost commented 3 months ago

0.29 could be 0.3 to round this number...? 😬

aweell commented 3 months ago

Yes, i donno why is 29.02% in production