You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first argument specifies the shade of gray, equal to the CIE Lightness, while the second optional argument specifies the alpha channel of the gray.
What makes
gray()
special is that it is perceptual. According to CSS Color Module Level 4:And is specifically called out in the editor’s draft:
This means we’ll want to use Lab to calculate the shade of gray. It looks like you are currently using RGB to determine the shade of gray.
While fixing this creates a breaking change, I do recommend changing this plugin to follow the specification.
The text was updated successfully, but these errors were encountered: