Re: [community-group] The Designer’s Workflow (#43)

@mbrookes 
> Why is that?

Because the `lighter()` method in my example is meant to work based on `RGB` components. One might assume that multiplying the `L` component of `HSL` representation also makes the color lighter in the same fashion. But this is not the case - even if the `HSL` color model seems to be a perfect match for this kind of problem.

Feel free to try it out, try making a red lighter, also try to make a vibrant yellow _lighter_. You will see the yellow is less affected by a change of just lightness, while the red changes probably close to expectation, but both give very different results to the `RGB` based approach (will appear more washed out via `HSL`).

If can only assume that you thought along this way. If yes, it shows again how different actual behavior of such modifier methods is in reality from what one might expect just using them ;-)

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


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

Received on Friday, 16 October 2020 06:53:14 UTC